sarbagyastha / youtube_player_flutter

A Flutter plugin for inline playback or streaming of YouTube videos using the official iFrame Player API.
https://youtube.sarbagyastha.com.np
BSD 3-Clause "New" or "Revised" License
691 stars 781 forks source link

Youtube Live URl issue #159

Open srinivasii opened 4 years ago

srinivasii commented 4 years ago

Hi, I am trying to embed this live URL https://www.youtube.com/channel/UCJj-ntbpTWWvtubIK0Aww9w/live but how to get the vidio id for this. i tried using YoutubePlayer.convertUrlToId( "https://www.youtube.com/channel/UCJj-ntbpTWWvtubIK0Aww9w/live"); but its returning null. @sarbagyastha

arulselvan commented 4 years ago

I think one way, if it is channel live URL we can directly put iframe instead of div inside raw_youtube player ?

https://github.com/sarbagyastha/youtube_player_flutter/blob/ea392c7612abe1b56a86d28d1dc12f4de2d0f669/lib/src/player/raw_youtube_player.dart#L275

ex: html:

js: var player = new YT.Player('player', {});

https://stackoverflow.com/questions/47241553/youtube-iframe-api-for-live-videos?rq=1

iamabhiee commented 3 years ago

Is there any way to solve this?

Suroor-Ahmmad commented 3 years ago

did anyone solve this issue?

UNIcodeX commented 2 years ago

also need to know this.