Embedding VLC player in an image page
As a preface: I have very little prior experience in programming of any type and I've only started doing this since a couple days ago, but i'm learning a little on the way. Also, I'm only using this for personal use/userscipt stuff.
I want to embed a VLC player through the Firefox plugin onto an image page (the page where you right click on an image and 'view image' so that the address end with .jpg or something and you see the image in the middle of the browser). I also want to call this player with a button on the image page.
This is my button that has a onclick that calls the openvideo function. So this button is on the right side of the image page.
But my problem is that i am unable to embed VLC plugin on this image page
input.onclick = openvideo;
I tried with this snippet:
So this defines some things about the player and then embeds it and it works in the normal page but not in the image page.
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
var vlc = document.getElementById("vlc");
vlc.playlist.add('example video file path here', "live",
I was wondering if there was anyway to make it work.