Page 1 of 1

A new API for the VLC 0.9 plugin ?!!

Posted: 05 Sep 2008 09:39
by mathsaddict
Hi folks,
I'm wondering if something in the API has changed during the upgrade process from version 0.8.6 to 0.9 ?
It seems that the new version fixes many problems including crashing mozilla firefox and incapability to load more than one plugin on the same webpage.
However, some issues with API may have changed and I would be grateful to anyone who can tell me where can I find new API documentation (if changed).
Example: vlc.playlist.itemCount does't seem to work with vlc.playlist.clear
the following code was working with the previous version but not working anymore with the new one:
while (vlc.playlist.itemCount > 0) {
vlc.playlist.clear();
}
I think it loops to infinity and this what causes the browser to not respond and finally crash.
Help please !

Re: A new API for the VLC 0.9 plugin ?!!

Posted: 05 Sep 2008 10:19
by Jean-Baptiste Kempf
No, only the API2 is present, I think.

Re: A new API for the VLC 0.9 plugin ?!!

Posted: 05 Sep 2008 10:45
by mathsaddict
Try this link please: http://people.videolan.org/~damienf/plugin-0.8.6.html
with the new plugin installed on your PC.
You'll notice nothing when you load one sample movie. But when you load the first one, play it (and eventually stop it) and then load another one, your browser will crash immediately. Debug that with firebug or whatever debugger and you'll figure out the problem.

Re: A new API for the VLC 0.9 plugin ?!!

Posted: 12 Sep 2008 18:42
by gborzi
Hi all

I have a similar issue.

I am testing the latest VLC 1.0 downloaded from:
http://nightlies.videolan.org/build/win32/latest/

The new VLC 1.0 firefox plugin does not open the video URLs properly.
If I test a video URL using the test page: http://people.videolan.org/~damienf/plugin-0.8.6.html then videolan 1.0 firefox plugin gives the message:
"Open of URL failed could not create access"

If I test using the videolan 1.0 standalone GUI, copying/pasting the same URL into the "open network" file menu, then the URL works (I see the video).

My question is: is it the API that is changed?
or is it just a problem with the nightly build firefox plugin that will be fixed?

I hope somebody takes care of this before the release of VlC 0.9 or 1.0...
Thanks

gb

Re: A new API for the VLC 0.9 plugin ?!!

Posted: 17 Sep 2008 17:35
by gborzi
No the API has not changed, it is the 0.9.2 release that is broken. Hope they fix this soon.

Re: A new API for the VLC 0.9 plugin ?!!

Posted: 18 Sep 2008 01:08
by Sjaaky
I also encountered this problem.
The vlc 0.9.2 browser plugin (tested in ff 3.0.1) chooses the mms access module instead of the http access module.
That doesn't work with the stream delivered by zapstream. Zapstream is a streaming application for streaming the current television/radio channel from the dreambox, a DVB settopbox.
I'm the developer of zapstream and trying to make it work with the vlc 0.9.2 browser plugin. So if it's my fault please tell me ;).

Debug output obtained from http://code.revolunet.com/VLCcontrols/V ... anced.html

VLC: main input : Creating an input for 'http://dreambox:31344'
VLC: main input : thread started
VLC: main input : waiting for thread initialization
VLC: main input : `http://dreambox:31344' gives access `http' demux `' path `dreambox:31344'
VLC: main input : thread 14556 (input) created at priority 1 (input/input.c:368)
VLC: main input : creating demux: access='http' demux='' path='dreambox:31344'
VLC: main demux : looking for access_demux module: 0 candidates
VLC: main demux : no access_demux module matched "http"
VLC: main input : creating access 'http' path='dreambox:31344'
VLC: main access : looking for access module: 1 candidate
VLC: main access : option http-proxy does not exist
VLC: main access : net: connecting to dreambox port 31344
VLC: main access : connection: Resource temporarily unavailable
VLC: main access : connection succeeded (socket = 14560)
VLC: access_mms access : HTTP reply 'HTTP/1.0 200 OK'

The connection gets closed immediately after this.

On a HTTP level:

GET / HTTP/1.0
Host: dreambox:31344
Accept: */*
User-Agent: NSPlayer/7.10.0.3059
Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
Pragma: xClientGUID={babac001-b46b-cb33-dd90741cbbe673bf}
Connection: Close

HTTP/1.0 200 OK
Server: zapstream 1.2 (ts)

<<Some data>>
<<Close>>

I also tried to respond with

HTTP/1.0 200 OK
Content-Type: application/octet-stream
Server: zapstream 1.2 (ts)
Connection: Keep-Alive

But to no avail.

When I open the same url with VLC it works perfectly (just like 0.8.x did)

main debug: Creating an input for 'http://dreambox:31344'
main debug: thread started
main debug: waiting for thread initialization
main debug: `http://dreambox:31344' gives access `http' demux `' path `dreambox:31344'
main debug: thread 5056 (input) created at priority 1 (input/input.c:368)
qt4 debug: Updating the stream status: 3
main debug: creating demux: access='http' demux='' path='dreambox:31344'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "http"
main debug: TIMER module_Need() : 0.329 ms - Total 0.329 ms / 1 intvls (Avg 0.329 ms)
main debug: creating access 'http' path='dreambox:31344'
main debug: looking for access module: 2 candidates
access_http debug: http: server='dreambox' port=31344 file='(null)
main debug: net: connecting to dreambox port 31344
main debug: connection: Resource temporarily unavailable
main debug: connection succeeded (socket = 5360)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Content-Type: application/octet-stream
access_http debug: Server: zapstream 1.2 (ts)
access_http debug: Connection: Keep-Alive
main debug: using access module "access_http"

Thanks in advance
Hope you can look into this. :)

As a last note, thank you for VLC, it's a great product. And 0.9.2 just made it better! (apart from some minor bugs ;) )

Sjaaky

Re: A new API for the VLC 0.9 plugin ?!!

Posted: 18 Sep 2008 15:27
by thannoy
Here is the trac ticket for this bug: https://trac.videolan.org/vlc/ticket/2062

It appears that between 10-09-2008 and 13-09-2008, a bug appear which make mozilla-plugin discard usage of access_http for http:// streams '-(

Re: A new API for the VLC 0.9 plugin ?!!

Posted: 23 Sep 2008 13:50
by ToNyT
Hi I have installed VLC media player 0.9.2 Grishenko.
I have tried to use the object in this link:

http://code.revolunet.com/VLCcontrols/V ... anced.html
http://people.videolan.org/~damienf/plugin-0.8.6.html

but i have only listened the sound.

I have used these links before of upgrade VLC and it was all ok.
I use API in my web page to generate the object and view rtsp video. My page worked untill i have do the upgrade.
Someone can explain me what was happened