79838611

Date: 2025-12-05 07:09:55
Score: 1
Natty:
Report link

I am currently working on a Flutter project and I also getting this problem recently

Current youtube player dependency in mobile right now (mostly) won't be able play the video because they put only the id of the video like this
String url = www.youtube.com/watch?v={videoId}

Yesterday I also working on this also while trying to solve this problem, I browsed on youtube to get the embed html tag then I realized it has ?si parameter youtube_embed_html_tag

so apparently we need to provide that parameter a value to get the video loaded right. The ?si parameter can be filled with any string, here's the example

String url = www.youtube.com/watch?v={videoid}?si=j4sdf2ffh

After trying this, the player managed to load the video without any errors

n.b.: Some video may also won't load properly because some video authors may disabled the embed sharing

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zireha