sarbagyastha / youtube_player

A flutter plugin to play Youtube Videos without API Key in range of Quality(144p, 240p,360p,480p,720p and 1080p).
MIT License
120 stars 45 forks source link

Video does'nt play if the thumb dimensions & video dimensions are different #49

Closed Taosif7 closed 5 years ago

Taosif7 commented 5 years ago

I found a weird bug while trying to figure out why some videos were not playing. I tried with few videos and also saw their meta data and I found out that videos that have different resolutions of thumbnail & video, does'nt play.

for example:

this video plays: https://www.youtube.com/watch?v=mPQOizLReVU thumb:480x270 video:480x270

this does'nt: https://www.youtube.com/watch?v=fyHe9L2df_g thumb:480x360 video:480x270

for analysis: https://www.youtube.com/oembed?url=**YOUTUBE_URL**&format=xml

paste youtube url in above link and see for yourself

Taosif7 commented 5 years ago

Found out that this deduction was false