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

Support for hiding the thumbnail and changing the video quality #27

Closed
KerianFiter opened this issue Jun 11, 2019 · 6 comments
Closed

Comments

@KerianFiter
Copy link

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 !

@sarbagyastha
Copy link
Owner

@KerianFiter, There is currently no way to change video quality in Iframe API.

@KerianFiter
Copy link
Author

@sarbagyastha, isn't it possible to change it with player.setPlaybackQuality as mentionned here?

@sarbagyastha
Copy link
Owner

No it's not possible. It's broken since 2011 AD.

@KerianFiter
Copy link
Author

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.

@adrianvintu
Copy link

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?

@KerianFiter
Copy link
Author

@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,
            ),

sarbagyastha added a commit that referenced this issue Jun 23, 2019
* 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.
sarbagyastha added a commit that referenced this issue Jun 23, 2019
* 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.
suzukidavid added a commit to suzukidavid/flutter_youtube_player that referenced this issue Feb 24, 2023
* 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.
suzukidavid added a commit to suzukidavid/flutter_youtube_player that referenced this issue Feb 24, 2023
* 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.
tommy725 added a commit to tommy725/flutter_youtube_player that referenced this issue Aug 9, 2023
* 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.
tommy725 added a commit to tommy725/flutter_youtube_player that referenced this issue Aug 9, 2023
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants