Exoplayer: r2.0.0 isPlaying()

Created on 30 Sep 2016  路  3Comments  路  Source: google/ExoPlayer

Hello,

isPlaying() method removed on the new version ?

question

Most helpful comment

You shouldn't be calling methods on UI components to query the state of the player (in V1 or V2). If you want to query the state of the player, query it directly.

A one minute investigation as to what that method did in V1 (by looking here) would tell you that it's equivalent to calling getPlayWhenReady directly on the player.

All 3 comments

You shouldn't be calling methods on UI components to query the state of the player (in V1 or V2). If you want to query the state of the player, query it directly.

A one minute investigation as to what that method did in V1 (by looking here) would tell you that it's equivalent to calling getPlayWhenReady directly on the player.

thank you @ojw28

Isn't this getPlayWhenReady indicate the autoplay feature? isPlaying is expected to return true if the player is currently playing otherwise it will return false.

Was this page helpful?
0 / 5 - 0 ratings