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

How to change default video/audio player #843

Closed
phuchptty opened this issue Jun 21, 2016 · 6 comments
Closed

How to change default video/audio player #843

phuchptty opened this issue Jun 21, 2016 · 6 comments

Comments

@phuchptty
Copy link

@phuchptty phuchptty commented Jun 21, 2016

  • WebTorrent version:
  • Node.js version:
  • Browser name/version (if using WebTorrent in the browser):

Like a title, i want change webtorrent default player. What do i do??
Thanks

@rom1504

This comment has been minimized.

Copy link
Member

@rom1504 rom1504 commented Jun 21, 2016

Webtorrent doesn't have any default player.
Are you using webtorrent-cli, webtorrent-desktop, instant.io,... ?

@phuchptty

This comment has been minimized.

Copy link
Author

@phuchptty phuchptty commented Jun 21, 2016

I setup on my client so it is possible

@phuchptty

This comment has been minimized.

Copy link
Author

@phuchptty phuchptty commented Jun 21, 2016

My client in hostinger.co.uk

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jun 22, 2016

If you want to use a custom player like video.js or jwplayer, then you need to use the renderTo() method and pass it the video html element.

See: https://github.com/feross/webtorrent/blob/master/docs/api.md#filerendertoelem-function-callback-err-elem--browser-only

Read the documentation for the video player you're using to make sure that it supports MediaSource -- which is what WebTorrent is using under the hood.

@feross feross closed this Jun 22, 2016
@Nou4r

This comment has been minimized.

Copy link

@Nou4r Nou4r commented Oct 1, 2016

A test with jwplayer would be awesome.

Sorry for the push, i wasn't able to use jwplayer.

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 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
4 participants
You can’t perform that action at this time.