no commit message

This commit is contained in:
niandeng
2020-09-17 18:40:01 +08:00
parent 4382915d09
commit d957abceaa
283 changed files with 86935 additions and 63 deletions
@@ -0,0 +1,28 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mangui.osmf.plugins.loader {
import flash.net.NetStream;
import flash.net.NetConnection;
import org.osmf.net.NetLoader;
import org.osmf.media.URLResource;
import org.mangui.hls.HLS;
public class HLSNetLoader extends NetLoader {
private var _hls : HLS;
private var _connection : NetConnection;
private var _resource : URLResource;
public function HLSNetLoader(hls : HLS) {
_hls = hls;
super();
}
override protected function createNetStream(connection : NetConnection, resource : URLResource) : NetStream {
_connection = connection;
_resource = resource;
return _hls.stream;
}
}
}