再生中かどうか
Whether the music source is being played or not
現在の再生位置 [ms]
Timer
実装クラスはこの値をリアルタイムに計算して返さなくてはなりません。
TextAlive には他にも再生位置を返すAPIが以下の2種類用意されていますが、実装手法の違いにより、このAPIが常に最も精確な値を返します。
Timer
実装クラスによって定期的に更新されますこのAPIを利用するアプリでは、動画のシーク操作に対応するために PlayerEventListener.onVideoSeekStart PlayerEventListener.onVideoSeek PlayerEventListener.onVideoSeekEnd イベントを適切にハンドルする必要があります。
Current playback position [ms]
Timer
implementations need to calculate this property value in real time.
While TextAlive also has the following APIs to retrieve the current playback position, this one returns the most precise value at any time.
Timer
implementations periodicallyApplications utilizing this API need to handle PlayerEventListener.onVideoSeekStart PlayerEventListener.onVideoSeek PlayerEventListener.onVideoSeekEnd events appropriately so that the applications respond to the video seeking operation.
Songleのプレイヤーインスタンスです。
この Timer
を破棄する
Dispose this Timer
instance
再生を一時停止する
Pause music playback
再生を開始する
Start music playback
再生位置を指定する
Seek specified position in the current music playback
再生を停止する(一時停止したうえで先頭に巻き戻しする)
Stop music playback (pause and then seek the beginning)
Songle timer
Songle API を利用した Timer の実装:
accessToken
などを指定することで Songle Sync 対応になりますPlayer
インスタンスにアクセスできますA Timer implementation using Songle API:
accessToken
property enables Songle SyncPlayer
instancehttps://api.songle.jp/