vlc.addEventListener does not fire any event

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Tuizi
New Cone
New Cone
Posts: 7
Joined: 27 Jul 2012 23:11

Re: vlc.addEventListener does not fire any event

Postby Tuizi » 29 Jul 2012 08:03

It's OK! :) It's work... a little... I'm searching what is the problem, what is wrong...

For exemple if I launch file:///C:/demo/FBVLC_0.0.0.6.htm it's ok, but If a lauch the same file by http:// (http://localhost/demo/FBVLC_0.0.0.6.htm) I'll get an error:

Code: Select all

Error in event handler for 'undefined': Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined at X (eval at <anonymous> (chrome-extension://phahnhbgfdhgobenebnjbgmacgpbfaag/includes/wombat_content.js:11:30)) at Ka (eval at <anonymous> (chrome-extension://phahnhbgfdhgobenebnjbgmacgpbfaag/includes/wombat_content.js:11:30)) at eval at <anonymous> (chrome-extension://phahnhbgfdhgobenebnjbgmacgpbfaag/includes/wombat_content.js:11:30) at eval at <anonymous> (chrome-extension://phahnhbgfdhgobenebnjbgmacgpbfaag/includes/wombat_content.js:11:30) at miscellaneous_bindings:283:9 at [object Object].dispatch (event_bindings:203:41) at Object.<anonymous> (miscellaneous_bindings:250:22)

Tuizi
New Cone
New Cone
Posts: 7
Joined: 27 Jul 2012 23:11

Re: vlc.addEventListener does not fire any event

Postby Tuizi » 29 Jul 2012 18:06

In first time, thank you for your plugin FBVLC, it's perfect ;)
I have one last question, how switch to fullscreen? The toggleFullscreen method doesn't work.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: vlc.addEventListener does not fire any event

Postby RSATom » 29 Jul 2012 18:12

fullscreen works now only in windowed mode

Tuizi
New Cone
New Cone
Posts: 7
Joined: 27 Jul 2012 23:11

Re: vlc.addEventListener does not fire any event

Postby Tuizi » 29 Jul 2012 20:50

With toggleFullscreen method? how?

Code: Select all

TypeError: Property 'toggleFullscreen' of object <JSAPI-Auto Javascript Object> is not a function

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: vlc.addEventListener does not fire any event

Postby RSATom » 30 Jul 2012 03:32

Maybe it's a bug. I'll check. Anyway, you can use double clicking on player area.

Tuizi
New Cone
New Cone
Posts: 7
Joined: 27 Jul 2012 23:11

Re: vlc.addEventListener does not fire any event

Postby Tuizi » 30 Jul 2012 04:25

In my case I can't, I develop a remote, so I don't have a mouse to "double click" ;).

I'll wait if you enable this feature. :)

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: vlc.addEventListener does not fire any event

Postby RSATom » 30 Jul 2012 06:07

I am forget a little, fullscreen functions was not implemented yet, since in windowless mode there are no fullscreen mode. But I can add this functions at least for windowed mode. What do you think?

Tuizi
New Cone
New Cone
Posts: 7
Joined: 27 Jul 2012 23:11

Re: vlc.addEventListener does not fire any event

Postby Tuizi » 30 Jul 2012 14:50

It's perfect, I use windowed mode by the way... :)

MarcoScherer
New Cone
New Cone
Posts: 1
Joined: 26 Sep 2012 12:06

Re: vlc.addEventListener does not fire any event

Postby MarcoScherer » 26 Sep 2012 12:08

Hi guys,

can someone post a code how to setup the MediaPlayerEndReached function?
Unfortunately I wasn't able to get my script working to react on any events.

Thanks,
Marco

rgkluver
Blank Cone
Blank Cone
Posts: 13
Joined: 29 Jan 2013 13:08

Re: vlc.addEventListener does not fire any event

Postby rgkluver » 30 Jan 2013 02:09

Did we get a fix for IE event firing yet???

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: vlc.addEventListener does not fire any event

Postby Jean-Baptiste Kempf » 06 Feb 2013 17:29

Did we get a fix for IE event firing yet???
Did you try latest code?
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.

naphini
New Cone
New Cone
Posts: 4
Joined: 23 Jan 2013 01:26

Re: vlc.addEventListener does not fire any event

Postby naphini » 06 Feb 2013 23:26

I have a related question. I want to use keypress events for playback/fullscreen controls. I've got a global event handler for that (document.onkeydown), which is listening for a press of the 'f' key to toggle fullscreen. It works to put it into fullscreen, but when it's already in fullscreen the event doesn't fire. Thinking that my event handler being attached at the document level might be the problem, I attached it to the vlc object directly, and it still didn't work. Is there any way to get keypress events to fire when the plugin is in fullscreen?

rgkluver
Blank Cone
Blank Cone
Posts: 13
Joined: 29 Jan 2013 13:08

Re: vlc.addEventListener does not fire any event

Postby rgkluver » 19 Feb 2013 03:30

Latest I have is axvlc.dll labeled with version 2.0.2 (asian text for name) as part of 2.0.6 installation I believe.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 14 guests