vimeo / player.js

Interact with and control an embedded Vimeo Player.
https://player.vimeo.com/api/demo
MIT License
1.44k stars 262 forks source link

Feature request: getPlayerHDRState() #741

Open gabrielwolf opened 3 years ago

gabrielwolf commented 3 years ago

The native player does this already: https://vimeo.com/339951368 (You need an HDR capable device and HDR mode enabled!) If we knew, if the player is in HDR mode, we could show the user, that everything is working correctly.

Expected Behavior

The API provides a way to get the information, if the player is running in HDR mode.

Actual Behavior

There is no such way.

Steps to Reproduce

Some code for a fullscreen background video:

<head>
<style>
    iframe {
        box-sizing: border-box;
        height: 56.25vw;
        left: 50%;
        min-height: 100%;
        min-width: 100%;
        transform: translate(-50%, -50%);
        position: absolute;
        top: 50%;
        width: 188.88888889vh;
    }
</style>
</head>
<body>
<iframe src="https://player.vimeo.com/video/339951368?background=1&quality=auto" width="170" height="90" frameborder="0" allow="autoplay; fullscreen;" allowfullscreen></iframe>

<script src="https://player.vimeo.com/api/player.js"></script>
<script>
    var iframe = document.querySelector('iframe');
    var player = new Vimeo.Player(iframe);

    document.getElementById("start").onclick = function () { // start is an element above the video
        player.play();
    };
    </script>
</body>

My personal project: unaufgeregtes.de

fisherinnovation commented 3 years ago

Thanks for the feedback! The Player engineering team will review this and provide feedback in this thread.

gabrielwolf commented 3 years ago

Can I help with anything? Is there some progress? :-)

gabrielwolf commented 3 years ago

Hello Vimeo dev team!

Are there some problems in implementing the log info? It would help - not just me - in pushing HDR to the web.

Vimeo is standing for quality, isn't it? :-)

Best, Gabriel