Skip to content
Browse files

another way to stop auto-play when seeking timeline

  • Loading branch information...
1 parent 254593d commit 700aff4b5fff10759112462c5db41d5fcf65a804 @yanh yanh committed Jan 26, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/com/longtailvideo/jwplayer/media/VideoMediaProvider.as
View
5 src/com/longtailvideo/jwplayer/media/VideoMediaProvider.as
@@ -186,7 +186,7 @@
/** Seek to a new position. **/
override public function seek(pos:Number):void {
- seekStream(pos);
+ seekStream(pos, false);
}
private function seekStream(pos:Number, ply:Boolean=true):void {
@@ -196,6 +196,9 @@
clearInterval(_positionInterval);
_positionInterval = undefined;
_stream.seek(position);
+ if (ply){
+ play();
+ }
}
}

0 comments on commit 700aff4

Please sign in to comment.
Something went wrong with that request. Please try again.