Skip to content

Commit

Permalink
fix(webpage): fix player may be frozen when switching source
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenlx committed Feb 16, 2024
1 parent b6d97c0 commit 6fb472f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/app/src/media-view/iframe-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class MediaEmbedView extends MediaRemoteView {
console.warn("Invalid URL", state.source);
} else {
this.store.getState().setSource(url);
this.render();
}
}
return super.setState(state, result);
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/media-view/webpage-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class MediaWebpageView extends MediaRemoteView {
console.warn("Invalid URL", state.source);
} else {
this.store.getState().setSource(url, { enableWebview: true });
this.render();
}
}
return super.setState(state, result);
Expand Down

0 comments on commit 6fb472f

Please sign in to comment.