Skip to content

Commit

Permalink
Prevent stream player from seeking on streams
Browse files Browse the repository at this point in the history
This could cause issues on HLS streams in some cases see #55
  • Loading branch information
MerlinVR committed Sep 28, 2022
1 parent a056763 commit 6ee185a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Assets/USharpVideo/Scripts/USharpVideoPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,11 @@ public override void OnVideoStart()
#else
_videoStartNetworkTime = GetNetworkTime() - _videoTargetStartTime;
#endif

_videoPlayerManager.SetTime(_videoTargetStartTime);

if (IsInVideoMode())
{
_videoPlayerManager.SetTime(_videoTargetStartTime);
}

_ownerPlaying = true;

Expand Down

0 comments on commit 6ee185a

Please sign in to comment.