Example of player integrating for Vue.js

  Lo sentimos, esta página está pendiente de traducción al español

Example of a simple Vue2 application that creates a player in the player container

<div id="player"><div/>
var app = new Vue({
   methods: {
      init: function () { 
         const script = document.createElement("script");
         script.async = true;
         script.src = "playerjs.js";
         document.head.appendChild(script);
      },
      playerjs: function () {
         let player = new Playerjs({id:"player", file:"https://plrjs.com/sample.mp4"});
      }
   },
   created: function () {
      this.init()
   }
});
function PlayerjsAsync(){
   app.playerjs();
}

You need to change the selected links to your own.


19.12.2
2024 © PlayerJS

Inicio de sesión

Conectarse

Regístrate gratis

Inscríbete
Al registrarte, aceptas Condiciones del servicio
Iniciar sesión si tienes una cuenta.

Restaurar contraseña

Restaurar
¿Ha olvidado su correo electrónico? Contacte con nosotros