jaruba / wcjs-player

Node Player made for WebChimera.js (libVLC wrapper)
http://webchimera.org/
GNU Lesser General Public License v2.1
178 stars 46 forks source link

Add 'chromeless' and 'nonInteractive' parameters #62

Open romaincointepas opened 8 years ago

romaincointepas commented 8 years ago

chromeless would avoid creating the player UI elements and add the styles (leaving only the video surface/canvas)

nonInteractive would disable responding to events (like double-click on video, etc.)

Native HTML5

jaruba commented 8 years ago
// hide UI
player.ui(false);

// disable click and double click
player.find(".wcp-surface").unbind("click").unbind("dblclick").css("cursor","default","important");

These will give you the desired effect, but it will still add the html and css required for the UI to your pages.

I don't think that a chromeless is required thought, if you really want to start things from scratch, there's wcjs-renderer (which is a dependency of wcjs-player) that just renders the video to a canvas.

jaruba commented 8 years ago

Some sort of theming would be nice though, but I haven't yet found an easy way to do it.