Webtorrent: How to change default video/audio player

Created on 21 Jun 2016  路  6Comments  路  Source: webtorrent/webtorrent

  • 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

All 6 comments

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

I setup on my client so it is possible

My client in hostinger.co.uk

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.

A test with jwplayer would be awesome.

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Lev09 picture Lev09  路  3Comments

lacker picture lacker  路  6Comments

kocoten1992 picture kocoten1992  路  6Comments

mikeal picture mikeal  路  4Comments

feross picture feross  路  9Comments