videojs-dvr | A Video
kandi X-RAY | videojs-dvr Summary
kandi X-RAY | videojs-dvr Summary
A Video.js plugin for Seekbar with DVR support.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of videojs-dvr
videojs-dvr Key Features
videojs-dvr Examples and Code Snippets
Community Discussions
Trending Discussions on videojs-dvr
QUESTION
I want to implement a videoJS player capable of playing live DVR stream. It should play the live stream but the user should be able to go back and watch like 30 minutes back.
I tried to use videojs-dvrseekbar plugin as shown in the following web page https://www.npmjs.com/package/videojs-dvrseekbar.
Like in the web page I tried the following
...ANSWER
Answered 2019-Jun-10 at 02:47Hello after searching through many pages I have found the answer. After the videjs 7.xx the dvrseekbar plugin functionality is added to videojs. You don't have to download or import an extra plugin for that.
It is explained here https://github.com/videojs/video.js/blob/master/docs/guides/live.md
The new user interface is currently opt-in to prevent breaking backwards compatibility. We feel that the new user interface is much better and it will likely become the new default in the next major version. If you want to use the new user interface you will have to pass {liveui: true} during player setup. This can be done in two ways:
Using data-setup
Using the videojs function
var player = videojs('some-player-id', {liveui: true}); The new user interface shows the ProgressControl component on the control bar, hides the LiveDisplay component, and shows the new SeekToLive component when Video.js detects that the video that it is playing is live (via a durationchange event). Along with the ProgressControl update we also updated all the time tooltips on the player to indicate a negative number from the live current time, rather than seeking to a specific time.
Here is a simple example for you:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install videojs-dvr
Usage <script> Tag Browserify/CommonJS RequireJS/AMD
License
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page