youtube-ios-player-helper icon indicating copy to clipboard operation
youtube-ios-player-helper copied to clipboard

Getting same player state for different actions

Open wasim954 opened this issue 3 years ago • 4 comments

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...

wasim954 avatar Feb 02 '22 06:02 wasim954

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.

brol1dev avatar Feb 02 '22 18:02 brol1dev

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 avatar Feb 03 '22 05:02 wasim954

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 avatar Feb 07 '22 05:02 wasim954

Hi @rcvrgs

can i get a reply over this

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

wasim954 avatar Feb 16 '22 14:02 wasim954