Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
WebTorrent-player reactjs

I am trying to make webpage that can stream vidoes from torrent in reactjs. I found this library that provides player for torrentss. I can't figure out what to pass in the options

import WebTorrentPlayer from 'webtorrent-player'

new WebTorrentPlayer({ opts })

following are the possible options:

{
  video: Node,                  // * Video element for the player
  player: Node,                 // * DOM Node that contains the player elements
  playerWrapper: Node,
  controls: {                   // Object of player control DOM nodes
    functionName: Node|[Node]   // DOM Node or Array of Nodes that trigger their respective key functions
  },
  defaultSSAStyles: String,     // Default/fallback styles for subtitles following the ASS format
  resolveFileMedia: Function,   // Function to return media of currently played file, more below
  generateThumbnails: Boolean,  // If true, the player will generate thumbnails after a file is downloaded [CPU intensive]
  thumbnailWidth: Number,       // Number in px for thumbnail width
  visibilityLossPause: Boolean, // If true, video playback will pause if the tab lost visibility
  immerseTime: Number,          // Time in seconds of inactivity that it takes for the player controls to hide
  burnIn: Boolean,              // If true, PiP will burn-in subtitles real time [only if subtitles are available][VERY CPU intensive]
  seekTime: Number,             // Time in seconds for the player to seek
  streamedDownload: Boolean,    // If true, the player will only download pieces directly needed for playback
  destroyStore: Boolean,        // If false, the files will be kept in storage even after playback finishes
  WebTorrentOpts: Object       // Object of opts for WebTorrent
}

What node should I pass to video and player options and how do I access those nodes?

You can see the repo for library here webtorrent-player

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda