From 0605dc76cbd493f368985adb5ee9373c872ed5e9 Mon Sep 17 00:00:00 2001 From: "Vladimir B." Date: Wed, 16 Apr 2014 12:11:45 +0300 Subject: [PATCH 1/5] Update IProvider.as --- src/com/videojs/providers/IProvider.as | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/videojs/providers/IProvider.as b/src/com/videojs/providers/IProvider.as index 523c949f..39c9cf67 100644 --- a/src/com/videojs/providers/IProvider.as +++ b/src/com/videojs/providers/IProvider.as @@ -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. From 9d0220b38a9eb0a43fb3a70005574d4aadd8616d Mon Sep 17 00:00:00 2001 From: "Vladimir B." Date: Wed, 16 Apr 2014 12:16:29 +0300 Subject: [PATCH 2/5] Update HTTPVideoProvider.as --- src/com/videojs/providers/HTTPVideoProvider.as | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/videojs/providers/HTTPVideoProvider.as b/src/com/videojs/providers/HTTPVideoProvider.as index 3656bbe3..fcdd36c0 100644 --- a/src/com/videojs/providers/HTTPVideoProvider.as +++ b/src/com/videojs/providers/HTTPVideoProvider.as @@ -205,6 +205,10 @@ package com.videojs.providers{ return 0; } + public function get startOffsetTime():Number{ + return _startOffset; + } + public function get playing():Boolean{ return _isPlaying; } From 9d503497955bbcf6b4d640c976557bf248dcf297 Mon Sep 17 00:00:00 2001 From: "Vladimir B." Date: Wed, 16 Apr 2014 12:20:55 +0300 Subject: [PATCH 3/5] Update HTTPAudioProvider.as --- src/com/videojs/providers/HTTPAudioProvider.as | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/videojs/providers/HTTPAudioProvider.as b/src/com/videojs/providers/HTTPAudioProvider.as index ea7f2b22..3f04eae9 100644 --- a/src/com/videojs/providers/HTTPAudioProvider.as +++ b/src/com/videojs/providers/HTTPAudioProvider.as @@ -138,6 +138,10 @@ package com.videojs.providers{ return _audioBytesTotal; } + public function get startOffsetTime():Number{ + return 0; + } + public function get playing():Boolean{ return _audioPlaybackStarted; } From 2fc6ba343b409c933e45da8b5e187d4a98cae5e6 Mon Sep 17 00:00:00 2001 From: "Vladimir B." Date: Wed, 16 Apr 2014 12:21:28 +0300 Subject: [PATCH 4/5] Update RTMPVideoProvider.as --- src/com/videojs/providers/RTMPVideoProvider.as | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/videojs/providers/RTMPVideoProvider.as b/src/com/videojs/providers/RTMPVideoProvider.as index b6d329e5..405b8098 100644 --- a/src/com/videojs/providers/RTMPVideoProvider.as +++ b/src/com/videojs/providers/RTMPVideoProvider.as @@ -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; } From 50b78bf703c852f8e67b59dadd160c4ba4a17271 Mon Sep 17 00:00:00 2001 From: "Vladimir B." Date: Wed, 16 Apr 2014 12:28:09 +0300 Subject: [PATCH 5/5] Update VideoJSModel.as --- src/com/videojs/VideoJSModel.as | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/com/videojs/VideoJSModel.as b/src/com/videojs/VideoJSModel.as index 5b4ec2eb..1032d352 100644 --- a/src/com/videojs/VideoJSModel.as +++ b/src/com/videojs/VideoJSModel.as @@ -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 @@ -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); }