Hi! I’ve been searching for an answer, but all I got were old bug-related posts.
I need to play a video (MPEG-4), so I am calling
[lua]media.playVideo(“vid/mpeg-4-5sec.mpg”, true, videoEnded)[/lua]
There is an error that’s driving me crazy:
WARNING: Cannot create path for resource file 'vid/mpeg-4-5sec.mpg'. File does not exist.
WARNING: Could not load video from path (vid/mpeg-4-5sec.mpg)
This happens even though the file is there, or even if I try to open a file in the project’s root directory. I’ve also tried this:
[lua]local path = system.pathForFile(“vid/mpeg-4-5sec.mpg”)
print(tostring(path))[/lua]
but I get nil.
Can someone enlighten me? [import]uid: 94362 topic_id: 18414 reply_id: 318414[/import]
[import]uid: 52491 topic_id: 18414 reply_id: 70744[/import]