How to Load and Play streaming video?

Does anyone now how I can play streaming video that's hosted on my own webserver?

According to these release notes, it should be possible using the media.playVideo function:
http://developer.anscamobile.com/forum/2010/02/21/corona-11-now-shipping

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!

To access external videos you need to add the "baseSource" parameter: media.RemoteSource

1
2
3
4
local onComplete = function(event)
print( "video session ended" )
end
media.playVideo( "http://myserver/video/video.m4v", media.RemoteSource, true, onComplete )

Thanks! that fixed my problems

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?

views:1438 update:2011/9/26 15:43:22
corona forums © 2003-2011