how to set to play only HD Videos in YouTube Android Player API

前端 未结 2 1298
醉梦人生
醉梦人生 2020-12-20 01:50

How to make YouTube Android Player API play only HD Videos Link

@Override
public void onInitializationSuccess(YouTubePlayer.Provider provide         


        
相关标签:
2条回答
  • 2020-12-20 02:32

    You can use: player.setPlaybackQuality(suggestedQuality:String):Void

    From the YouTube API docs:

    This function sets the suggested video quality for the current video. The function causes the video to reload at its current position in the new quality. If the playback quality does change, it will only change for the video being played. Calling this function does not guarantee that the playback quality will actually change. However, if the playback quality does change, the onPlaybackQualityChange event will fire, and your code should respond to the event rather than the fact that it called the setPlaybackQuality function.

    0 讨论(0)
  • 2020-12-20 02:39

    I doubt that..i also need that once ..... on this like its written

    It will provide automatic support for fullscreen and orientation change, and will adjust the quality of the stream based upon the strength of the network connection.

    0 讨论(0)
提交回复
热议问题