mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
42 lines
1005 B
ActionScript
42 lines
1005 B
ActionScript
package org.osmf.traits
|
|
{
|
|
import org.osmf.events.DVREvent;
|
|
|
|
public class DVRTrait extends MediaTraitBase
|
|
{
|
|
|
|
private var _isRecording:Boolean;
|
|
|
|
public function DVRTrait(param1:Boolean = false)
|
|
{
|
|
this._isRecording = param1;
|
|
super(MediaTraitType.DVR);
|
|
}
|
|
|
|
final public function get isRecording() : Boolean
|
|
{
|
|
return this._isRecording;
|
|
}
|
|
|
|
final protected function setIsRecording(param1:Boolean) : void
|
|
{
|
|
if(param1 != this._isRecording)
|
|
{
|
|
this.isRecordingChangeStart(param1);
|
|
this._isRecording = param1;
|
|
this.isRecordingChangeEnd();
|
|
}
|
|
}
|
|
|
|
protected function isRecordingChangeStart(param1:Boolean) : void
|
|
{
|
|
}
|
|
|
|
protected function isRecordingChangeEnd() : void
|
|
{
|
|
dispatchEvent(new DVREvent(DVREvent.IS_RECORDING_CHANGE));
|
|
}
|
|
}
|
|
}
|
|
|