Search code examples
phpvimeovimeo-apivimeo-player

Vimeo API: need to set vimeo video mode HD using Vimeo API


I'm using vimeo API's and showing all videos from my vimeo account on my site. Problem is that I'm not found any setting to show videos in HD mode. I'm using vimeo video url in iframe and my code is that:

<iframe id="video_play" src="https://player.vimeo.com/video/<?php echo $video_id; ?>?api=1&player_id=video_play&autoplay=1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

Can anyone help me to show vimeo video in HD mode.


Solution

  • If you go to the settings for your video:

    https://vimeo.com/(your_video_id)/settings

    Then go to Embed, there is an option at the bottom under "Miscellaneous" where you can tick for "Default this video to HD when embedded":

    Default this video to HD when embedded