You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi !
Could someone explain to me how to install this plugin in PeerTube (on Ubuntu 20.04) ?
I've used the command: "sudo npm i videojs-vr".
So...What should I do next ?
I suppose the next step is:
<script> Tag
This is the simplest case. Get the script in whatever way you prefer and include the plugin after you include [video.js][videojs], so that the videojs global is available.
<script src="//var/www/peertube/versions/peertube-v5.0.1/node_modules/video.js/dist/video.min.js"></script>
<script src="//var/www/peertube/versions/peertube-v5.0.1/node_modules/videojs-vr/dist/videojs-vr.min.js"></script>
<script>
var player = videojs('my-video');
player.vr();
</script>
But i have no idea where to put it )
Should I change 'my-video' to something?
Thanks in advance for your reply!
Sorry for my english )
The text was updated successfully, but these errors were encountered:
Hi !
Could someone explain to me how to install this plugin in PeerTube (on Ubuntu 20.04) ?
I've used the command: "sudo npm i videojs-vr".
So...What should I do next ?
<script> Tag This is the simplest case. Get the script in whatever way you prefer and include the plugin after you include [video.js][videojs], so that the videojs global is available. <script src="//var/www/peertube/versions/peertube-v5.0.1/node_modules/video.js/dist/video.min.js"></script> <script src="//var/www/peertube/versions/peertube-v5.0.1/node_modules/videojs-vr/dist/videojs-vr.min.js"></script> <script> var player = videojs('my-video'); player.vr(); </script>I suppose the next step is:
But i have no idea where to put it )
Should I change 'my-video' to something?
Thanks in advance for your reply!
Sorry for my english )
The text was updated successfully, but these errors were encountered: