hackernoob99
hackernoob99

Reputation: 19

Play MP4 with Psychopy

I'm having problems finding a solution to play a mp4 file with psychopy. Should I put the file in a special folder? How can I find this folder? And is there a special function to open then the file when running the code?

I tried making a class, but I have problems when defining the path. Please taking in consideration that I just started programming. Probe-Code

Thanks in advance

Upvotes: 1

Views: 96

Answers (1)

Shubham Kumar Jha
Shubham Kumar Jha

Reputation: 21

import playsound
playsound.playsound('sample.mp3')

Process to play this song: first create a file play.mp3 and copy the path of file and paste that code on the place of sample.mp3 in your code editor.

Upvotes: 2

Related Questions