Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom video player (Videojs) #1238

Closed
payflix opened this issue Dec 10, 2017 · 2 comments
Closed

Custom video player (Videojs) #1238

payflix opened this issue Dec 10, 2017 · 2 comments

Comments

@payflix
Copy link

@payflix payflix commented Dec 10, 2017

Did anyone figured out how to use the .renderTo function with videojs lib?

@Chocobozzz

This comment has been minimized.

Copy link
Contributor

@Chocobozzz Chocobozzz commented Dec 11, 2017

Yes, we use VideoJS with WebTorrent in PeerTube.

See the plugin we made https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/assets/player/peertube-videojs-plugin.ts (that we use here: https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/app/videos/%2Bvideo-watch/video-watch.component.ts#L286).

Basically you just need to call videojs function on the HTML element, and then use the renderTo function to render data in the element.

@payflix payflix closed this Dec 11, 2017
@Chocobozzz

This comment has been minimized.

Copy link
Contributor

@Chocobozzz Chocobozzz commented Dec 11, 2017

Yes, I forgot to add that you need this monkey patch with VideoJS >= 6.

@lock lock bot locked as resolved and limited conversation to collaborators May 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.