Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'chromeless' and 'nonInteractive' parameters #62

Open
romaincointepas opened this issue Jun 6, 2016 · 2 comments
Open

Add 'chromeless' and 'nonInteractive' parameters #62

romaincointepas opened this issue Jun 6, 2016 · 2 comments

Comments

@romaincointepas
Copy link

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
Copy link
Owner

jaruba commented Jun 6, 2016

// 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
Copy link
Owner

jaruba commented Jun 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants