Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

189
Vistas
Reactjs del reproductor WebTorrent

Estoy tratando de crear una página web que pueda transmitir videos desde torrent en reactjs. Encontré esta biblioteca que proporciona un reproductor para torrentss. No puedo averiguar qué pasar en las opciones.

 import WebTorrentPlayer from 'webtorrent-player' new WebTorrentPlayer({ opts })

siguientes son las opciones posibles:

 { 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 }

¿Qué nodo debo pasar a las opciones de video y reproductor y cómo accedo a esos nodos?

Puedes ver el repositorio de la biblioteca aquí webtorrent-player

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda