Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

The startOffsetTime parameter. #88

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/com/videojs/VideoJSModel.as
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,18 @@ package com.videojs{
return 0;
}

/**
* Return a video start time.
* @return
*
*/
public function get startOffsetTime():Number{
if(_provider){
return _provider.startOffsetTime;
}
return 0;
}

/**
* Returns the pixel width of the currently playing video as interpreted by the decompressor.
* @return
Expand Down Expand Up @@ -411,10 +423,9 @@ package com.videojs{

/**
* Allows this model to act as a centralized event bus to which other classes can subscribe.
*
* @param e
*
*/
*/
public function broadcastEvent(e:Event):void {
dispatchEvent(e);
}
Expand Down
4 changes: 4 additions & 0 deletions src/com/videojs/providers/HTTPAudioProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ package com.videojs.providers{
return _audioBytesTotal;
}

public function get startOffsetTime():Number{
return 0;
}

public function get playing():Boolean{
return _audioPlaybackStarted;
}
Expand Down
4 changes: 4 additions & 0 deletions src/com/videojs/providers/HTTPVideoProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ package com.videojs.providers{
return 0;
}

public function get startOffsetTime():Number{
return _startOffset;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does _startOffset get set?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_startOffset to be set in case of reproduction.

}

public function get playing():Boolean{
return _isPlaying;
}
Expand Down
5 changes: 5 additions & 0 deletions src/com/videojs/providers/IProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ package com.videojs.providers{
*/
function get bytesTotal():int;

/**
* Should return a video start time
*/
function get startOffsetTime():Number;

/**
* Should return a boolean value that indicates whether or not the current media
* asset is playing.
Expand Down
6 changes: 4 additions & 2 deletions src/com/videojs/providers/RTMPVideoProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ package com.videojs.providers{
}

public function get bytesLoaded():int{

return 0;
}

public function get bytesTotal():int{

return 0;
}

public function get startOffsetTime():Number{
return 0;
}

Expand Down