readyStateプロパティを追跡する
例
トラックリソースの現在の準備完了状態を取得します。
var x = document.getElementById("myTrack").readyState;
xの結果は次のようになります。
2 // Indicates that the text track has been loaded with no errors
定義と使用法
readyStateプロパティは、トラックリソースの現在の準備完了状態を返します。
準備完了状態は、リソースを再生する準備ができているかどうかを示します。
注:このプロパティは読み取り専用です。
ブラウザのサポート
Property | |||||
---|---|---|---|---|---|
readyState | Yes | 10.0 | Not supported | Not supported | Yes |
構文
trackObject.readyState
技術的な詳細
戻り値: | トラックリソースの準備完了状態を表す番号:
|
---|
❮トラックオブジェクト