File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1800,10 +1800,12 @@ shaka.extern.LiveSyncConfiguration;
1800
1800
* <br>
1801
1801
* Defaults to <code>0.5</code>.
1802
1802
* @property {boolean } infiniteLiveStreamDuration
1803
- * If <code>true</code>, the media source live duration
1804
- * set as a<code>Infinity</code>
1803
+ * If <code>true</code>, the media source duration of livestreams will be set
1804
+ * to <code>Infinity</code>. Otherwise, it will be set to a high but
1805
+ * non-infinite number (2^32).
1805
1806
* <br>
1806
- * Defaults to <code>false</code>.
1807
+ * Defaults to <code>false</code> except on Safari 17 or above whose default
1808
+ * value is <code>true</code>.
1807
1809
* @property {number } preloadNextUrlWindow
1808
1810
* The window of time at the end of the presentation to begin preloading the
1809
1811
* next URL, such as one specified by a urn:mpeg:dash:chaining:2016 element
Original file line number Diff line number Diff line change @@ -276,6 +276,11 @@ shaka.util.PlayerConfiguration = class {
276
276
shaka . util . Platform . isTizen ( ) ,
277
277
} ;
278
278
279
+ const safariVersion = shaka . util . Platform . safariVersion ( ) ;
280
+ if ( safariVersion && safariVersion >= 17 ) {
281
+ streaming . infiniteLiveStreamDuration = true ;
282
+ }
283
+
279
284
// WebOS, Tizen, Chromecast and Hisense have long hardware pipelines
280
285
// that respond slowly to seeking.
281
286
// Therefore we should not seek when we detect a stall
You can’t perform that action at this time.
0 commit comments