The following did not work for me:
– begin example
local onComplete = function(event)
print( “video session ended” )
end
media.playVideo( “http://myserver/video/video.m4v”, true, onComplete )
–end example
Myserver is a pc in my local network. The video play on my iphone when I enter the video URL via safari.
The corona app on my iPhone immediately crashes.
Any tips? Thanks!
[import]uid: 7443 topic_id: 1417 reply_id: 301417[/import]
To access external videos you need to add the “baseSource” parameter: media.RemoteSource
local onComplete = function(event)
print( "video session ended" )
end
media.playVideo( "http://myserver/video/video.m4v", media.RemoteSource, true, onComplete )
The crash caused by the missing parameter is a bug that has been identified and will be fixed in an upcoming release. [import]uid: 7559 topic_id: 1417 reply_id: 3920[/import]
I’m testing this on a Android device and I’m getting an error message that it cannot play video. Is there a newer way of doing this? [import]uid: 8780 topic_id: 1417 reply_id: 53079[/import]