How to make a flutter video player to play youtube videos with fixed video quality? [closed]
I want to make a video player with flutter to play youtube videos where I can fix the quality(240p, 360p, 480p, 720p) of the video in code. I tried youtube_player_flutter but there were not any functions to specify the video quality. Here is my code
void initState() {
super.initState();
YoutubePlayerValue(
playbackRate: PlaybackRate.normal,
);
_controller = YoutubePlayerController(
initialVideoId: _videoId,
flags: YoutubePlayerFlags(
loop: true,
autoPlay: true,
forceHD: false,
enableCaption: false,
hideControls: true,
),
);
}
YoutubePlayer(
controller: _controller,
aspectRatio: 16 / 9,
onReady: () {
print('The Video ID : $_videoId');
},
),
Now, Is there any flutter package that can provide the features described before?
from Recent Questions - Stack Overflow https://ift.tt/3Blie5b
https://ift.tt/eA8V8J
Comments
Post a Comment