@@ -4308,7 +4308,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
4308
4308
* @export
4309
4309
*/
4310
4310
isLive ( ) {
4311
- if ( this . manifest_ ) {
4311
+ if ( this . manifest_ && ! this . isRemotePlayback ( ) ) {
4312
4312
return this . manifest_ . presentationTimeline . isLive ( ) ;
4313
4313
}
4314
4314
@@ -4346,7 +4346,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
4346
4346
* @export
4347
4347
*/
4348
4348
isAudioOnly ( ) {
4349
- if ( this . manifest_ ) {
4349
+ if ( this . manifest_ && ! this . isRemotePlayback ( ) ) {
4350
4350
const variants = this . manifest_ . variants ;
4351
4351
if ( ! variants . length ) {
4352
4352
return false ;
@@ -4387,7 +4387,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
4387
4387
* @export
4388
4388
*/
4389
4389
seekRange ( ) {
4390
- if ( this . manifest_ ) {
4390
+ if ( this . manifest_ && ! this . isRemotePlayback ( ) ) {
4391
4391
// With HLS lazy-loading, there were some situations where the manifest
4392
4392
// had partially loaded, enough to move onto further load stages, but no
4393
4393
// segments had been loaded, so the timeline is still unknown.
@@ -4645,7 +4645,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
4645
4645
* @export
4646
4646
*/
4647
4647
getVariantTracks ( ) {
4648
- if ( this . manifest_ ) {
4648
+ if ( this . manifest_ && ! this . isRemotePlayback ( ) ) {
4649
4649
const currentVariant = this . streamingEngine_ ?
4650
4650
this . streamingEngine_ . getCurrentVariant ( ) : null ;
4651
4651
@@ -4701,7 +4701,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
4701
4701
* @export
4702
4702
*/
4703
4703
getTextTracks ( ) {
4704
- if ( this . manifest_ ) {
4704
+ if ( this . manifest_ && ! this . isRemotePlayback ( ) ) {
4705
4705
const currentTextStream = this . streamingEngine_ ?
4706
4706
this . streamingEngine_ . getCurrentTextStream ( ) : null ;
4707
4707
const tracks = [ ] ;
@@ -4914,7 +4914,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
4914
4914
* @export
4915
4915
*/
4916
4916
selectTextTrack ( track ) {
4917
- if ( this . manifest_ && this . streamingEngine_ ) {
4917
+ if ( this . manifest_ && this . streamingEngine_ && ! this . isRemotePlayback ( ) ) {
4918
4918
const stream = this . manifest_ . textStreams . find (
4919
4919
( stream ) => stream . id == track . id ) ;
4920
4920
@@ -5005,7 +5005,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5005
5005
* @export
5006
5006
*/
5007
5007
selectVariantTrack ( track , clearBuffer = false , safeMargin = 0 ) {
5008
- if ( this . manifest_ && this . streamingEngine_ ) {
5008
+ if ( this . manifest_ && this . streamingEngine_ && ! this . isRemotePlayback ( ) ) {
5009
5009
const variant = this . manifest_ . variants . find (
5010
5010
( variant ) => variant . id == track . id ) ;
5011
5011
if ( ! variant ) {
@@ -5119,7 +5119,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5119
5119
*/
5120
5120
selectAudioLanguage ( language , role , channelsCount = 0 , safeMargin = 0 ,
5121
5121
codec = '' ) {
5122
- if ( this . manifest_ && this . playhead_ ) {
5122
+ if ( this . manifest_ && this . playhead_ && ! this . isRemotePlayback ( ) ) {
5123
5123
this . currentAdaptationSetCriteria_ =
5124
5124
new shaka . media . PreferenceBasedCriteria (
5125
5125
language ,
@@ -5192,7 +5192,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5192
5192
* @export
5193
5193
*/
5194
5194
selectTextLanguage ( language , role , forced = false ) {
5195
- if ( this . manifest_ && this . playhead_ ) {
5195
+ if ( this . manifest_ && this . playhead_ && ! this . isRemotePlayback ( ) ) {
5196
5196
this . currentTextLanguage_ = language ;
5197
5197
this . currentTextRole_ = role || '' ;
5198
5198
this . currentTextForced_ = forced ;
@@ -5235,7 +5235,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5235
5235
* @export
5236
5236
*/
5237
5237
selectVariantsByLabel ( label , clearBuffer = true , safeMargin = 0 ) {
5238
- if ( this . manifest_ && this . playhead_ ) {
5238
+ if ( this . manifest_ && this . playhead_ && ! this . isRemotePlayback ( ) ) {
5239
5239
let firstVariantWithLabel = null ;
5240
5240
for ( const variant of this . manifest_ . variants ) {
5241
5241
if ( variant . audio . label == label ) {
@@ -5488,7 +5488,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5488
5488
presentationTime = this . startTime_ ;
5489
5489
}
5490
5490
5491
- if ( this . manifest_ ) {
5491
+ if ( this . manifest_ && ! this . isRemotePlayback ( ) ) {
5492
5492
const timeline = this . manifest_ . presentationTimeline ;
5493
5493
const startTime = timeline . getInitialProgramDateTime ( ) ||
5494
5494
timeline . getPresentationStartTime ( ) ;
@@ -5516,7 +5516,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5516
5516
* @export
5517
5517
*/
5518
5518
getPresentationStartTimeAsDate ( ) {
5519
- if ( this . manifest_ ) {
5519
+ if ( this . manifest_ && ! this . isRemotePlayback ( ) ) {
5520
5520
const timeline = this . manifest_ . presentationTimeline ;
5521
5521
const startTime = timeline . getInitialProgramDateTime ( ) ||
5522
5522
timeline . getPresentationStartTime ( ) ;
0 commit comments