How to read mouse events when mousing over an embed VLC video object?
In my C#, .Net MVC4 application given the following HTML:
<div id="centerContent">
Some Text...
<embed id="plugin" type="application/x-vlc-plugin"
pluginspage="http://www.videolan.org"version="VideoLAN.VLCPlugin.2"
width="100%"
height="100%" id="vlc" loop="yes"autoplay="yes"
target="http://10.1.2.201:8000/"></embed>
</div>
I created wrote some JS code to output events like double left/right
click, and coordinates within the container. However, after installing the
VLC plugin, no events are available when the mouse is inside the player.
Makes sense.
Is there a way to return mouse events from within that container without
using WPF/Silverlight?
I have been looking at the LibVLC video controls, where you can get the
mouse coordinates from within a player:
LIBVLC_API int libvlc_video_get_cursor (
libvlc_media_player_t * p_mi,
unsigned num,
int * px,
int * py
)
However this option looks like rewriting the codec code (??). Using
libvlc_video_set_mouse_input to handle mouse events.
I'd like the simplest way to simply capture these events over the video
player. Setting the z-index of the embed object had no effect.
Would there be a ffmpeg option - on-the fly conversion to a different
format where I can still capture mouse events?
Is it possible to wrap the player in another JS-accessible object or some
MVC extension?
Thanks.
No comments:
Post a Comment