Page 1 of 1

Need experienced opinions about event catching

Posted: 16 Dec 2014 10:21
by RobFR
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

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 10:23
by RSATom
about catching mouse and keyboard events:
http://stackoverflow.com/questions/2513 ... -vlc-embed

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 10:37
by RobFR
Thanks, I already saw WebChimera. It has the same decoding performance than the vlc plugin ? Is it crossplatform like vlc?

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 10:42
by RSATom
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...

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 10:58
by RobFR
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 ..

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 11:11
by RSATom
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

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 11:13
by RSATom
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)

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 12:14
by RobFR
Great! It's an awesome work congratulations Tom :).

Do you know if you can configure the caching time ?

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 12:17
by RSATom
I'm not Tom, I'm Sergey, but never mind :)

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

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 12:41
by RobFR
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!

Re: Need experienced opinions about event catching

Posted: 16 Dec 2014 12:42
by RSATom
Thanks!