Example of integrating the player in Vue.js

Example of a simple Vue 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";
      playerjs: function () {
         let player = new Playerjs({id:"player", file:"https://plrjs.com/sample.mp4"});
   created: function () {
function PlayerjsAsync(){

You need to change the selected links to your own.

18.12.22023 © PlayerJS

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Restore password

Forgot email? Contact us