Brought up to date with the private repository (feea4c7)

This commit is contained in:
S committed 2026-10-14 20:57:33 +03:00
1 parent 1aa738d692
commit 1b1df1ae48
7925 files changed
+2617237 -20

No files matched your search

@@ -0,0 +1,40 @@
package org.osmf.elements
{
import org.osmf.media.MediaResourceBase;
import org.osmf.net.NetLoader;
import org.osmf.net.httpstreaming.HTTPStreamingNetLoader;
import org.osmf.net.rtmpstreaming.RTMPDynamicStreamingNetLoader;
import org.osmf.traits.LoaderBase;
public class VideoElement extends LightweightVideoElement
{
private var _alternateLoaders:Vector.<LoaderBase>;
public function VideoElement(param1:MediaResourceBase = null, param2:NetLoader = null)
{
super(null,null);
super.loader = param2;
this.resource = param1;
}
override public function set resource(param1:MediaResourceBase) : void
{
loader = getLoaderForResource(param1,alternateLoaders);
super.resource = param1;
}
private function get alternateLoaders() : Vector.<LoaderBase>
{
if(_alternateLoaders == null)
{
_alternateLoaders = new Vector.<LoaderBase>();
_alternateLoaders.push(new HTTPStreamingNetLoader());
_alternateLoaders.push(new RTMPDynamicStreamingNetLoader());
_alternateLoaders.push(new NetLoader());
}
return _alternateLoaders;
}
}
}