Page 1 of 1
API for VLC Plugin 1.1.0
Posted: 24 Jun 2010 19:47
by ijesh
Does anyone know if there is an API for the latest version of VLC (1.1.0) or any api that works for this version. I am trying to embed a vlc player to stream videos and I got most of the things working with my old code for the new player but seems like the fullscreen function has changed or something. I also need to resize the video dynamically (like using a button) in the internet explorer which is already working in all other browsers which vlc supports.
Any help would be appreciated and I can also provide the code if needed.
Re: API for VLC Plugin 1.1.0
Posted: 24 Jun 2010 23:48
by Ilasir
I dropped back to 1.0.5 because the stop function wasn't working in 1.1.0. But resizing a video is easy, just change the style.width, style.height properties.
Re: API for VLC Plugin 1.1.0
Posted: 25 Jun 2010 01:25
by Jean-Baptiste Kempf
FIle a bug then.
Re: API for VLC Plugin 1.1.0
Posted: 25 Jun 2010 17:09
by ijesh
@ Ilasir->>The stop function is working for me in all browsers, but when I do the resize(which I did the same way as you explained) it works for all other browsers except for Internet explorer. Any idea on how we would do that. IN IE it just takes the video to the new position and doesn't resize it. The embed code looks like this:
Code: Select all
<div id="video">
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="./"
width="500"
height="370"
id="vlc"
events="True">
<param name="MRL" value="udp://@239.226.16.5:30120" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="False" />
<param name="Volume" value="80" />
<param name="StartTime" value="0" />
<embed pluginspage="http://www.videolan.org/mirror-geo.php?file=vlc/1.0.5/win32/vlc-1.0.5-win32.exe"
version="VideoLAN.VLCPlugin.2"
type="application/x-vlc-plugin"
width="500"
height="370"
name="vlc"
class="player"
id="vlcplayer"
>
</embed>
</object>
</div>
I have the embed for "Other browsers" and Object tag for IE...This works fine but when I do the resize function like this:
Code: Select all
function resize(height, width) {
document.getElementById("vlcplayer").setAttribute("width", width);
document.getElementById("vlcplayer").setAttribute("height", height);
}
It resizes for other browsers but not IE. I am wondering if there is a solution and if there is one, how do I do that?
@ j-b ->>How do I file a bug?
Re: API for VLC Plugin 1.1.0
Posted: 25 Jun 2010 17:21
by Jean-Baptiste Kempf
trac.videolan.org/vlc
And you are using ActiveX
Re: API for VLC Plugin 1.1.0
Posted: 25 Jun 2010 17:49
by ijesh
For your stop function you should be able to say
and it should work...it worked for me...if this doesn't, try creating a vlc object before you call that stop function
Re: API for VLC Plugin 1.1.0
Posted: 25 Jun 2010 17:51
by ijesh
@j-b ->>Yes I am using ActiveX. I can tell because the video works it is just the resize function that doesn't...And thanks for the link
Re: API for VLC Plugin 1.1.0
Posted: 25 Jun 2010 22:17
by Ilasir
I use the object tag and conditional comments to embed vlc. For resize, I use document.getElementById("vlc").style.width/height. I'll install 1.1 and give it a try. I'm pretty sure it worked the last time.
Re: API for VLC Plugin 1.1.0
Posted: 25 Jun 2010 22:49
by Ilasir
It seemed to work. I had several other problems with the api, but the dynamic resize option worked.
Re: API for VLC Plugin 1.1.0
Posted: 28 Jun 2010 19:27
by ijesh
Ok I did so and it worked like a charm...I did have to change some embedding code but it was worth it...Thanks a lot for the code
...Now the only problem remains is with the fullscreen function...Is it working for you?
Re: API for VLC Plugin 1.1.0
Posted: 29 Jun 2010 05:57
by Ilasir
I don't know. I've not tried it in 1.1, sorry.
Re: API for VLC Plugin 1.1.0
Posted: 01 Jul 2010 18:11
by ijesh
Does the vlc plugin work for the Safari browser on Mac. I cant figure out why it is working in Safari on Windows and not on Mac. It just says vlc.playlist [undefined] is not an object and vlc.input is not an object...has anyone been able to make it work with safari on Mac? If yes, what did you have to do?
I think that vlc object itself is not being created...This is for 1.0.5/1.1.0
Re: API for VLC Plugin 1.1.0
Posted: 21 Jul 2010 11:10
by garlantinapple
I also need to resize the video dynamically (like using a button) in the internet explorer which is already working in all other browsers which vlc supports.
Re: API for VLC Plugin 1.1.0
Posted: 21 Jul 2010 21:10
by Ilasir
What method are you currently using?
Re: API for VLC Plugin 1.1.0
Posted: 02 Aug 2010 14:09
by klsc
I used version 1.1.2 and have problems clear the playlist.
I use vlc.playlist.add and then vlc.playlist.play. If I stop and do vlc.playlist.clear the playlistcount is 0 but if I add a new playlistitem and start vlc.playlist.play it plays the file I used at the first time.
have anyone an idea how can i solve this problem?
I have this problem from version 0.9x to now
Re: API for VLC Plugin 1.1.0
Posted: 03 Aug 2010 18:51
by ijesh
used version 1.1.2 and have problems clear the playlist.
I use vlc.playlist.add and then vlc.playlist.play. If I stop and do vlc.playlist.clear the playlistcount is 0 but if I add a new playlistitem and start vlc.playlist.play it plays the file I used at the first time.
have anyone an idea how can i solve this problem?
I have this problem from version 0.9x to now
What are you trying to do?
Re: API for VLC Plugin 1.1.0
Posted: 03 Aug 2010 18:52
by ijesh
Does anyone know how to make vlc play a video in IE 7.. I have to be able to make it work on IE 7 and everything works fine without errors except that it doesn't play the video. It doesn't even show any errors. Has anyone been able to do it?
Re: API for VLC Plugin 1.1.0
Posted: 03 Aug 2010 20:01
by klsc
I would connect to other urls and save the files to disk. with version 0.8.6i it works well, but with all newer versions that I tested, it doesn't work. first the problem with the playlist clearing that I workaround with playlist-playitem. and now the activex doesn't save the raw input to file.
all things that works with version 0.8.6i but there is a verry bad bug in rtsp package.
I'm waiting since over a year for a newer version, with correct working activex. but I think I must wait for a long time or switch to other programs
Re: API for VLC Plugin 1.1.0
Posted: 11 Aug 2010 00:46
by tru
I used version 1.1.2 and have problems clear the playlist.
I use vlc.playlist.add and then vlc.playlist.play. If I stop and do vlc.playlist.clear the playlistcount is 0 but if I add a new playlistitem and start vlc.playlist.play it plays the file I used at the first time.
have anyone an idea how can i solve this problem?
I have this problem from version 0.9x to now
try doing a loop after clearing instead of just checking if the count is 0. like this:
vlc.playlist.items.clear
do 'nothing
loop until vlc.playlist.items.count = 0
it says in the api that it is being cleared async thats y its possible that there will remain items.
Re: API for VLC Plugin 1.1.0
Posted: 11 Aug 2010 11:15
by klsc
count is 0, but when i add a new playlistitem (then count=1) and start playlist-play, it plays the old deleted entry and ignore the new one.
I can solve this only with playlist-playitem(0).
but I can not save a stream to file. this works well in version 0.8.6i but in version 1.1.2 activex, nothing. no file no errors, same code. but the same options as commandline options and start vlc .exe in an cmd window, the file is written. but why not with the activex ???
Re: API for VLC Plugin 1.1.0
Posted: 11 Aug 2010 23:39
by tru
Syntax/API is slightly different from 0.8.6i to 1.1.2. Try using the Web Interface API wiki on the main page. For example the playlist handling has been modified aka your problem.