Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCould anybody run WebTorrent with VideoJS 6.xx or 7.xx ? #1685
Comments
This comment has been minimized.
This comment has been minimized.
|
I'm not sure how to do it since I haven't used VideoJS 7. We can keep this issue open and see if anyone responds. I like the page that you linked to. We should add more examples to the |
This comment has been minimized.
This comment has been minimized.
|
I have found the problem and it seems its not a serious problem, when I press the show controls on the VideoJS player, the main player controlls is displayed, then I can see when I seek or pause the player is paused, but the resume button of videojs controll isn't resuming the player, instead pressing the video player play will resume it. |
This comment has been minimized.
This comment has been minimized.
|
I am still working on VideoJS to work but found that the problem is VideoJS doesn't work properly on <video src="somefile.mp4" and when it pause it can not be resumed. |
This comment has been minimized.
This comment has been minimized.
|
You can use the |
This comment has been minimized.
This comment has been minimized.
|
No the problem is more complicated. Html: simplified script: //Initialize VideoJS, with some optional options //the after adding torrent to client and got the playable file //Get blob url from the video, we need to set this to the video so webtorrent works, getting this from //a method of webtorrent is not enough, we have to render it to the video anyways. //this is the magic line, I have tested using the vjs.src(blobUrl) written in the vjs documentation but that doesn't work, it seems doing this right after renderTo is too soon and it shows an error over the player that the player doens't know the source, using a setTimeout(function(vjs.src(blobUrl)),100); maked it work in Chrome and Firefox, but not Edge, putting it in video event "metadataloaded" didn't help either so I tried doing this: I hope it help many hours like my few days |
This comment has been minimized.
This comment has been minimized.
|
Great, thanks for sharing your solution. |
This comment has been minimized.
This comment has been minimized.
|
After a week working on videojs, I decided not to use it, I am currently interested in Plyr which is lightweight and mature enough. |
What version of WebTorrent?
the version on 2019-08-06 dont know where to find the version?!
What operating system and Node.js version?
Browser
What browser and version? (if using WebTorrent in the browser)
Chrome version 76
This is an old question but could not post under it because the issue was closed.
This page shows example of how to use WebTorrent with Javascript Players like VideoJS but it works with VideoJS 5.19
https://qiita.com/mehdi/items/22ba55ae30bdcedd0746
But when using VideoJS 7 it doesn't work properly, when you pause or seek the video it never resumes.
Does anybody know any trick to make it work?