A new API for the VLC 0.9 plugin ?!!

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
mathsaddict
New Cone
New Cone
Posts: 3
Joined: 29 Aug 2008 17:33

A new API for the VLC 0.9 plugin ?!!

Postby mathsaddict » 05 Sep 2008 09:39

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 !

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 05 Sep 2008 10:19

No, only the API2 is present, I think.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mathsaddict
New Cone
New Cone
Posts: 3
Joined: 29 Aug 2008 17:33

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

Postby mathsaddict » 05 Sep 2008 10:45

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.

gborzi

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

Postby gborzi » 12 Sep 2008 18:42

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

gborzi

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

Postby gborzi » 17 Sep 2008 17:35

No the API has not changed, it is the 0.9.2 release that is broken. Hope they fix this soon.

Sjaaky
New Cone
New Cone
Posts: 3
Joined: 14 Mar 2008 20:16

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

Postby Sjaaky » 18 Sep 2008 01:08

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

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

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

Postby thannoy » 18 Sep 2008 15:27

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 '-(

ToNyT
New Cone
New Cone
Posts: 1
Joined: 23 Sep 2008 11:30

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

Postby ToNyT » 23 Sep 2008 13:50

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests