MetaCDN / videojs-vr_OLD

A video.js plugin that turns a video element into a HTML5 Panoramic 360 video player.
MIT License
24 stars 16 forks source link

projectionSelection #24

Open DJaeger opened 7 years ago

DJaeger commented 7 years ago

What is projectionSelection for and how can it be used? I can not figure out, how to display and use the menu button.

jbroberg commented 7 years ago

All supported transforms have been moved to config options. I kept the most useful ones that related to 360 formats. I had intended to strip out the menu code to simplify the plugin - I didn't really see the utility of it other than novelty value. There is usually one "right" transform and that can be set in the config or passed as a query parameter if you adapt the code.

DJaeger commented 7 years ago

You are right, that it's now possible to set this in the config options. Then the code should be removed or it should be possible to enable the menu button for debugging purposes.

In addition the fullscreen and vr button should be moved to the controlBar.

DJaeger commented 7 years ago

I use the following code (using jQuery) myself to push the buttons into the buttonBar:

                // Append the webvr buttons to the video.js control bar
                $(".webvr-button")
                    .appendTo(".vjs-control-bar")
                    .attr('style','')
                    .addClass("vjs-control")
                    .addClass("vjs-button");