-
Notifications
You must be signed in to change notification settings - Fork 855
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
[BUG] Problem with playing videos that their ids have a hyphen #1021
Comments
I'm facing a similar issue, after updating video ids with hyphen is not working. As a temporary workout by loading the video using url, this is found to be working.
|
@Anupdas do you know from which version the bug was introduced? I may decide to downgrade unless it's fixed. Migrating to using URL can't be done in my project. If it's not fixed I may try your solution in the future. My project isn't released now so there is no need for URL migration. |
Duplication of #981 |
Is there an existing issue for this?
Package
youtube_player_iframe (Default)
What happened?
I am trying to play videos in my app using youtube_player_iframe and have used the package for a while and I think the bug was introduced in a recent update as I have not encountered the issue before even though I have used the package a lot.
Below is what happens when I play videos with hyphens in id (first and second have hyphens in ids)
My app:
Example app of the package(second video has hyphen and don't load):
In the example app, the second video of the video list page doesn't load and it's the only one that have an hyphen in it. When I replace it with another ID it works. The homepage doesn't have that problem even though two of the video IDs have hyphens in it.
SO I think it happens when YoutubePlayerController.fromVideoId is used?
This is a sample of my code:
This is a shorter sample
What is the expected behaviour?
I expect the videos to load but they show error or black screen
How to reproduce?
You play a video by using YoutubePlayerController. The video ID should have an hyphen in it, such as: wG8gYDWj-mg
Flutter Doctor Output
The text was updated successfully, but these errors were encountered: