Skip to content

Commit

Permalink
Fix/update live delay playback start (#4087)
Browse files Browse the repository at this point in the history
* Only call computeAndSetLiveDelay after a settings update if there is already an active stream
  • Loading branch information
dsilhavy authored Nov 15, 2022
1 parent d192008 commit c18ac0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/controllers/StreamController.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ function StreamController() {
* @private
*/
function _onLiveDelaySettingUpdated() {
if (adapter.getIsDynamic() && playbackController.getOriginalLiveDelay() !== 0) {
if (adapter.getIsDynamic() && playbackController.getOriginalLiveDelay() !== 0 && activeStream) {
const streamsInfo = adapter.getStreamsInfo()
if (streamsInfo.length > 0) {
const manifestInfo = streamsInfo[0].manifestInfo;
Expand Down

0 comments on commit c18ac0d

Please sign in to comment.