mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 01:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package org.osmf.net.dvr
|
||||
{
|
||||
import flash.net.NetConnection;
|
||||
import flash.net.NetStream;
|
||||
import flash.net.NetStreamPlayOptions;
|
||||
import org.osmf.media.MediaResourceBase;
|
||||
|
||||
public class DVRCastNetStream extends NetStream
|
||||
{
|
||||
|
||||
private var recordingInfo:DVRCastRecordingInfo;
|
||||
|
||||
public function DVRCastNetStream(param1:NetConnection, param2:MediaResourceBase)
|
||||
{
|
||||
super(param1);
|
||||
recordingInfo = param2.getMetadataValue("http://www.osmf.org/dvrCast/1.0/recordingInfo") as DVRCastRecordingInfo;
|
||||
}
|
||||
|
||||
override public function play(... rest) : void
|
||||
{
|
||||
super.play(rest[0],recordingInfo.startOffset,-1);
|
||||
}
|
||||
|
||||
override public function play2(param1:NetStreamPlayOptions) : void
|
||||
{
|
||||
if(param1)
|
||||
{
|
||||
param1.start = recordingInfo.startOffset;
|
||||
param1.len = -1;
|
||||
}
|
||||
super.play2(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user