Package | org.osmf.net.dvr |
Class | public class DVRCastNetLoader |
Inheritance | DVRCastNetLoader RTMPDynamicStreamingNetLoader NetLoader LoaderBase EventDispatcher Object |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Public Properties
Public Methods
Protected Methods
Examples How to use this example
DVRCastNetLoaderExample.as
package { import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import org.osmf.elements.VideoElement; import org.osmf.media.MediaPlayerSprite; import org.osmf.net.StreamType; import org.osmf.net.StreamingURLResource; import org.osmf.net.dvr.DVRCastNetLoader; public class DVRCastNetLoaderExample extends Sprite { public function DVRCastNetLoaderExample() { super(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; var mediaPlayerSprite:MediaPlayerSprite = new MediaPlayerSprite(); var netLoader:DVRCastNetLoader = new DVRCastNetLoader(); var videoElement:VideoElement = new VideoElement(null, netLoader); var urlResource:StreamingURLResource = new StreamingURLResource("rtmp://example.com/dvrcast_origin/mystream", StreamType.DVR); videoElement.resource = urlResource; addChild(mediaPlayerSprite); mediaPlayerSprite.media = videoElement; } } }
Mon Nov 28 2011, 06:48 AM -08:00