-
Notifications
You must be signed in to change notification settings - Fork 842
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
Support for hiding the thumbnail and changing the video quality #27
Comments
@KerianFiter, There is currently no way to change video quality in Iframe API. |
@sarbagyastha, isn't it possible to change it with player.setPlaybackQuality as mentionned here? |
No it's not possible. It's broken since 2011 AD. |
Okay thanks for the answer. And for the thumbnail I managed to modify a bit the code at the 266th line of youtube_player.dart to get it working. |
@KerianFiter Can you publish the changes? Will they be in the new version? |
@adrianvintu What I can do is paste the code here so you can use it. But because the code is not clean I don't think it will be in the next version unless @sarbagyastha implements this new functionnality. Here is the code, in youtube_player.dart, in _buildPlayer: if (!controller.value.hasPlayed)
// ! Modified to prevent the thumbnail from loading
/* Image.network(
widget.thumbnailUrl ??
YoutubePlayer.getThumbnail(videoId: controller.initialSource),
fit: BoxFit.cover,
), */
// Shows a black Container instead of the thumbnail
Container(
color: Colors.black,
), |
* Faster fullscreen toggling. * Toggles fullscreen on orientation change. [Issue #3](#3). * Option to add own custom thumbnail. * **FIXED** Video stuck at unknown state [Issue #24](#24). * Added `hideThumbnail` and `disableDragSeek` flags. [#27](#27), [#29](#29). * **FIXED** Fullscreen toggle in iOS. * Minor UI improvements here and there.
* Faster fullscreen toggling. * Toggles fullscreen on orientation change. [Issue #3](#3). * Option to add own custom thumbnail. * **FIXED** Video stuck at unknown state [Issue #24](#24). * Added `hideThumbnail` and `disableDragSeek` flags. [#27](#27), [#29](#29). * **FIXED** Fullscreen toggle in iOS. * Minor UI improvements here and there.
* Faster fullscreen toggling. * Toggles fullscreen on orientation change. [Issue #3](sarbagyastha/youtube_player_flutter#3). * Option to add own custom thumbnail. * **FIXED** Video stuck at unknown state [Issue #24](sarbagyastha/youtube_player_flutter#24). * Added `hideThumbnail` and `disableDragSeek` flags. [#27](sarbagyastha/youtube_player_flutter#27), [#29](sarbagyastha/youtube_player_flutter#29). * **FIXED** Fullscreen toggle in iOS. * Minor UI improvements here and there.
* Faster fullscreen toggling. * Toggles fullscreen on orientation change. [Issue #3](sarbagyastha/youtube_player_flutter#3). * Option to add own custom thumbnail. * **FIXED** Video stuck at unknown state [Issue #24](sarbagyastha/youtube_player_flutter#24). * Added `hideThumbnail` and `disableDragSeek` flags. [#27](sarbagyastha/youtube_player_flutter#27), [#29](sarbagyastha/youtube_player_flutter#29). * **FIXED** Fullscreen toggle in iOS. * Minor UI improvements here and there.
* Faster fullscreen toggling. * Toggles fullscreen on orientation change. [Issue #3](sarbagyastha/youtube_player_flutter#3). * Option to add own custom thumbnail. * **FIXED** Video stuck at unknown state [Issue #24](sarbagyastha/youtube_player_flutter#24). * Added `hideThumbnail` and `disableDragSeek` flags. [#27](sarbagyastha/youtube_player_flutter#27), [#29](sarbagyastha/youtube_player_flutter#29). * **FIXED** Fullscreen toggle in iOS. * Minor UI improvements here and there.
* Faster fullscreen toggling. * Toggles fullscreen on orientation change. [Issue #3](sarbagyastha/youtube_player_flutter#3). * Option to add own custom thumbnail. * **FIXED** Video stuck at unknown state [Issue #24](sarbagyastha/youtube_player_flutter#24). * Added `hideThumbnail` and `disableDragSeek` flags. [#27](sarbagyastha/youtube_player_flutter#27), [#29](sarbagyastha/youtube_player_flutter#29). * **FIXED** Fullscreen toggle in iOS. * Minor UI improvements here and there.
Hi,
I'm using the version 3.0.0-beta.4 I'd like to know if it was possible to prevent the plugin from loading the thumbnail and to change the video quality on the fly.
Thank you !
The text was updated successfully, but these errors were encountered: