Skip to content

Commit

Permalink
#154 VideoSyncのwarning対応
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Feb 14, 2025
1 parent 7a04e14 commit 838778e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/Next2D/service/VideoSyncService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ export const execute = async <D extends DisplayObject> (display_object: D): Prom
}

if (displayObject.isVideo) {

const muted = displayObject.muted;
displayObject.muted = true;

await displayObject.play();
displayObject.pause();
displayObject.muted = muted;

await new Promise<void>((resolve) =>
{
Expand Down

0 comments on commit 838778e

Please sign in to comment.