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

Feature request: getPlayerHDRState() #741

Open
gabrielwolf opened this issue Jul 19, 2021 · 3 comments
Open

Feature request: getPlayerHDRState() #741

gabrielwolf opened this issue Jul 19, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@gabrielwolf
Copy link

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 fisherinnovation added the enhancement New feature or request label Jul 19, 2021
@fisherinnovation
Copy link
Contributor

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

@gabrielwolf
Copy link
Author

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

@gabrielwolf
Copy link
Author

gabrielwolf commented Aug 24, 2021

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

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

No branches or pull requests

2 participants