Reputation: 61
I am using Html video tag. I have added video URL from azure blob. When I click on play then it starts playing but when I want to make forward and backward to video, it is not going on that position where I want to start play. It is still on that current position. So I want to show loading when I click on forward when video is not ready to play same as YouTube. Here is my code:
<video id="video" class="family-post-img" controls="controls"
<source src="@Model.FileURL" type="video/mp4">
</video>
I want to show video buffering as YouTube when I directly click on forward and backward if video is not ready to play.
Thanks
Upvotes: 1
Views: 1498
Reputation: 11
When a user seeks through a video two events fire...
onseeking triggers while they are seeking
onseeked triggers when they are finished seeking.
Therefore, you need to monitor these events and take appropriate action, like this...
<video src="movie.mp4" type="video/mp4" onseeking="CallAction1();" onseeked="CallAction2();" controls></video>
Upvotes: 1