Has anyone successfully streamed a Live feed from Wowza on AmazonEC2 (or Wowza 2) using either the VideoPlayer or VideoDisplay Components in Flash Builder 4?
I cannot get the spark VideoPlayer or VideoDisplay component to play a Live stream from Wowza.
They stream a recorded file, without problem.
I know my serverside application is working, because I CAN playback the exact same live feed using the example client LiveStreamingVideo application.
i’ve tried setting the source as a URL;
<s:VideoPlayer x="331" y="74" source="rtmp://ec2-123456789.compute-1.amazonaws.com/uxlivefeeder/live666/liveFeed" autoPlay="true" />
i’ve tried setting the source, using the DynamicStreamingVideoSource and DynamicStreamingVideoItem Objects:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import org.osmf.events.MediaPlayerStateChangeEvent;
protected function videoplayer1_mediaPlayerStateChangeHandler(event:MediaPlayerStateChangeEvent):void
{
// TODO Auto-generated method stub
trace("event:MediaPlayerStateChangeEvent -" + event.state);
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:DynamicStreamingVideoSource id="lfeed" host="rtmp://ec2-123456789.compute-1.amazonaws.com/uxlivefeeder/live666/" streamType="live" >
<s:DynamicStreamingVideoItem streamName="liveFeed.flv" />
</s:DynamicStreamingVideoSource>
</fx:Declarations>
<s:VideoPlayer x="21" y="28" id="vplayer" source="lfeed" autoPlay="true" mediaPlayerStateChange="videoplayer1_mediaPlayerStateChangeHandler(event)">
</s:VideoPlayer>
</s:Application>
tracing out the MediaPlayerStateChangeEvent i get the following:
event:MediaPlayerStateChangeEvent -loading
event:MediaPlayerStateChangeEvent -ready
event:MediaPlayerStateChangeEvent -playing
event:MediaPlayerStateChangeEvent -playbackError
Do I have to change my wowza applications, in order to play live video using Flex4 / Flash Builder 4 components?
thanks,
drewbe