Hi all
The Flex 4 framework brought along the VideoPlayer component, which supposedly can automatically choose the best stream in terms of bitrate from a list of available multi-bitrate streams, play live videos and everything.
See here some information about it.
Here’s a working example for an MXML application under the Flex 4.1 framework:
<s:VideoPlayer width="100%" height="100%">
<s:source>
<s:DynamicStreamingVideoSource streamType="live" host="rtmp://88.87.56.214:1935/live/">
<s:DynamicStreamingVideoItem streamName="euronews_tmo_h.stream" bitrate="19200"/>
<s:DynamicStreamingVideoItem streamName="euronews_tmo_h.stream" bitrate="9000"/>
<s:DynamicStreamingVideoItem streamName="euronews_tmo_h.stream" bitrate="3600"/>
</s:DynamicStreamingVideoSource>
</s:source>
</s:VideoPlayer>
The streams are valid and they play, and I believe they are served by a Wowza. However, I’m bumping into a problem when the stream is paused: it will not resume.
The player state alternates correctly between ‘playing’ and ‘pause’ when you keep clicking the play/pause button. However, once the first stream pause(or stop) occurs, the image and sound seem to freeze…forever.
Any help ore guidance are most appreciated!