youtube / youtube-ios-player-helper

Lightweight helper library that allows iOS developers to add inline playback of YouTube videos through a WebView
Other
1.64k stars 677 forks source link

Getting same player state for different actions #458

Open wasim954 opened 2 years ago

wasim954 commented 2 years ago

Hi @rcvrgs

i am getting same player state of player for two different actions

  1. Pause video
  2. Close video

IMG_2242

func playerView(_ playerView: YTPlayerView, didChangeTo state: YTPlayerState) {

 }

can we get different player state for these...

brol1dev commented 2 years ago

What is the state that you are getting. Is it paused?

Currently if you exit fullscreen it is expected to get a paused event. There is not an additional state for exiting fullscreen at the moment.

wasim954 commented 2 years ago

Hi

i am getting kYTPlayerStatePaused for both

i am unable to differentiate among these state. please let me know how i can identify these events separately

wasim954 commented 2 years ago

Hi

i am getting kYTPlayerStatePaused for both

i am unable to differentiate among these state. please let me know how i can identify these events separately

@rcvrgs : let me know if there a way to identify these state separately

wasim954 commented 2 years ago

Hi @rcvrgs

can i get a reply over this

let me know if there a way to identify these state separately