Skip to content

第一次创建视频的player,调[self.player isPlaying]判断是否在播放,明明在播放,返回的NO,只是第一次时候 #1411

Closed
@LikeSpeedSong

Description

@LikeSpeedSong
No description provided.

Activity

bbcallen

bbcallen commented on Jun 7, 2016

@bbcallen
Contributor

isPlaying() status is changed asynchronized, so that could happen.

LikeSpeedSong

LikeSpeedSong commented on Jun 8, 2016

@LikeSpeedSong
Author

那怎么解决这个问题啊

bbcallen

bbcallen commented on Jun 12, 2016

@bbcallen
Contributor

No good solution, for now.
But you can check the status periodly, as a work around.

Gagster

Gagster commented on Jun 14, 2016

@Gagster

// status
BOOL isPlaying = [self.delegatePlayer isPlaying];
self.playButton.hidden = isPlaying;
self.pauseButton.hidden = !isPlaying;

demo里面 为什么能够准确的获取 isPlaying 的状态呢?

bbcallen

bbcallen commented on Jun 15, 2016

@bbcallen
Contributor

It is changed asynchronized, that's to say, you don't know when it will be changed.

Gagster

Gagster commented on Jun 16, 2016

@Gagster

Alright,Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bbcallen@Gagster@LikeSpeedSong

        Issue actions

          第一次创建视频的player,调[self.player isPlaying]判断是否在播放,明明在播放,返回的NO,只是第一次时候 · Issue #1411 · bilibili/ijkplayer