Need experienced opinions about event catching

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
RobFR
New Cone
New Cone
Posts: 5
Joined: 15 Dec 2014 19:16

Need experienced opinions about event catching

Postby RobFR » 16 Dec 2014 10:21

Hi all,

My goal is to create a webclient for an opensource research project called GamingAnywhere. It's a cloud computing architecture.
I've made a huge benchmark about each browser video decoder and the best choice is VLC (Congrats :D ).

The fact is I need to catch events from mouse (position, right/left click) and keyboard but I saw it can't be done easily.
I found several solution:

-Overlay the embed player with div but it can only be done with fbvlc. (am I right?)

-Change directly the web plugin to make my own version.

-Constraint the mouse with pointer lock API and replay it on server side.

Do you have any other solutions and which one do you recommand me?

Two little questions not related:
-Is there way to get video stream resolution ?
-A way to set the caching time like in desktop version ?

Thank you very much for your time !
Rob

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

Re: Need experienced opinions about event catching

Postby RSATom » 16 Dec 2014 10:23

about catching mouse and keyboard events:
http://stackoverflow.com/questions/2513 ... -vlc-embed

RobFR
New Cone
New Cone
Posts: 5
Joined: 15 Dec 2014 19:16

Re: Need experienced opinions about event catching

Postby RobFR » 16 Dec 2014 10:37

Thanks, I already saw WebChimera. It has the same decoding performance than the vlc plugin ? Is it crossplatform like vlc?

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

Re: Need experienced opinions about event catching

Postby RSATom » 16 Dec 2014 10:42

it's based on vlc, but don't sure what overhead it has relative to pure vlc web plugin. At least it's much faster than plugin in windowless mode (performance is comparable to windowed mode).

about crossplatform - I'm working now on Os X port. I hope it will be ready around new year...

RobFR
New Cone
New Cone
Posts: 5
Joined: 15 Dec 2014 19:16

Re: Need experienced opinions about event catching

Postby RobFR » 16 Dec 2014 10:58

Ok I'm trying it. What about Linux ? And browsers compatibility ?

edit: It's works awsomely !! Mouse event demo is just perfect to me..! Please tell me that WebChimera handle RTSP flow ..

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

Re: Need experienced opinions about event catching

Postby RSATom » 16 Dec 2014 11:11

Proof of concept for linux is ready, but has some issues. Mac version is priority now.
compatibility:
Win: almost any browser except with disabled NPAPI (some latest versions of Chrome, but there will not work any other plugins). Tested on IE, Chrome, Firefox (not all versions, but many). One guy uses WebChimera even with Node-Webkit.
Mac: it will be compatible with Safary, and Firefox. Chrome for Mac will be not supported since it has only 32-bit version available (at least it was so some time ago), but latest libvlc is available only 64-bit .
Linux: any browser with NPAPI support

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

Re: Need experienced opinions about event catching

Postby RSATom » 16 Dec 2014 11:13

edit: It's works awsomely !! Mouse event demo is just perfect to me..! Please tell me that WebChimera handle RTSP flow ..
Yep, if it's supported by vlc, it will be supported by WebChimera. I'm using libvlc from official vlc distribution (just without some unused plugins)

RobFR
New Cone
New Cone
Posts: 5
Joined: 15 Dec 2014 19:16

Re: Need experienced opinions about event catching

Postby RobFR » 16 Dec 2014 12:14

Great! It's an awesome work congratulations Tom :).

Do you know if you can configure the caching time ?

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

Re: Need experienced opinions about event catching

Postby RSATom » 16 Dec 2014 12:17

I'm not Tom, I'm Sergey, but never mind :)

https://github.com/RSATom/WebChimera/wi ... parameters
"network-caching" maybe?

RobFR
New Cone
New Cone
Posts: 5
Joined: 15 Dec 2014 19:16

Re: Need experienced opinions about event catching

Postby RobFR » 16 Dec 2014 12:41

Sorry Sergey :).

And yes network-caching is exactly what I was looking for.

Anyway, thank you for your fast and good answers, I have work to do now :).
I'll closely follow this great project!

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

Re: Need experienced opinions about event catching

Postby RSATom » 16 Dec 2014 12:42

Thanks!


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests