1
0

Loop and other fixes
All checks were successful
Test / test (push) Successful in 9m37s

This commit is contained in:
Aiden
2026-06-10 16:17:08 +10:00
parent 857c9ac980
commit 707cad3719
13 changed files with 342 additions and 51 deletions

View File

@@ -11,10 +11,12 @@ import type { MediaCapabilities } from '../media/media-adapter.js';
type TwoDModeCallbacks = {
createMediaTexture: () => any;
forward: () => void;
getIsLooping: () => boolean;
positionPlaneForPresentation: (isFallback2D?: boolean) => void;
rewind: () => void;
seekToProgress: (progress: number) => void;
showActiveContentMesh: () => void;
toggleLoop: () => boolean;
toggleMute: () => void;
togglePlayPause: () => void;
};
@@ -72,6 +74,7 @@ export class TwoDMode {
this.controls = new TwoDControlPanel({
callbacks: {
getIsLooping: this.callbacks.getIsLooping,
onForward: () => {
this.callbacks.forward();
},
@@ -84,7 +87,8 @@ export class TwoDMode {
},
onSeek: (progress) => {
this.callbacks.seekToProgress(progress);
}
},
onToggleLoop: this.callbacks.toggleLoop
},
mediaCapabilities: this.mediaCapabilities,
fullscreenTarget: this.fullscreenTarget,