Youtube embed live chat is not working on mobile (recently)

后端 未结 2 395
情歌与酒
情歌与酒 2021-01-21 03:26

I\'m working on a web app that depends on YouTube live streams and live chats (also from YouTube). Things went great, when suddently embeded chat refused to work on mobile devic

相关标签:
2条回答
  • 2021-01-21 03:36

    I believe that the only way of fixing it is to change mentioned earlier "User-Agent" header in HTTP request to a desktop one, like:

    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36

    Maybe the issue will be fixed from the YouTube side someday.

    0 讨论(0)
  • 2021-01-21 04:01

    This seems to have been caused by a user on YouTube picking the username "live_chat" for their channel, which conflicted with YouTube's own chat embed code.

    Having reported the problem to YouTube using their feedback option and including a screenshot of the user's channel, within 24 hours YouTube had fixed the issue!

    Now embedding YouTube's live chat works on Android devices without the need to request the desktop version of the site in Chrome or alter the user-agent in any way!

    0 讨论(0)
提交回复
热议问题