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
710 stars 823 forks source link

Youtube doesn't count the views from this player #219

Open ngoan98tv opened 4 years ago

ngoan98tv commented 4 years ago

Hi @sarbagyastha , thanks for creating a great package. I'm not sure this is a bug or an enhancement. I have tried to watch my video on this player then checking out on the Youtube Studio, I see the view isn't counted. I also have tried to set autoPlay: false, but it does not work. With some experiences, I think it happens when we play the video programmatically. So, I suggest to add an option to use the origin Youtube controls for people who want Youtube count their views. Looking forward to your reply. Thanks.

sarbagyastha commented 4 years ago

@ngoan98tv Have you tested whether the count increments while using default UI instead of programmed one ?

ngoan98tv commented 4 years ago

@ngoan98tv Have you tested whether the count increments while using default UI instead of programmed one ?

What do you mean default UI? you mean using webview with iframe or something else?

I have faced with a same issue when working on a web app, and I figure out if we play the Youtube video by a trigger from code or set autoplay=true, Youtube won't count that view.

sarbagyastha commented 4 years ago

What do you mean default UI? you mean using webview with iframe or something else?

Ya, the UI that iFrame API provides.

I have faced with a same issue when working on a web app, and I figure out if we play the Youtube video by a trigger from code or set autoplay=true, Youtube won't count that view.

Okay, thanks for shading light on this. Will look into it.

onurmio commented 3 years ago

I am facing with same issue. Is it youtube related problem or something else?

abbas-25 commented 3 years ago

I am not sure how this package works but this might help the developers - Stackoverflow