Skip to content

WasabiAiR/vgplayer-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VG Player Public API

This repository contains VG Player public API documentation.

Sample Page

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>VG Player</title>
    <link rel="stylesheet" href="vgplayer.min.css"/>
</head>
<body>
<div id="playerContainer" style="width: 80%;"></div>
<script src="vgplayer.js"></script>
<script>
    var player;

    window.onload = function() {
      var playerContainer = document.getElementById("playerContainer");
      var options = {hotkeys: true};
      var player = new VG.Player(playerContainer, options);
      VG.VGThemeInit.init();
      
      player.load("http://server/to/video.mp4", function() {
          console.log("player Loaded");
      });
    };
</script>
</body>
</html>

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%