@ericchen1990/pano-view 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -396,7 +396,7 @@ type PanoSpatialControlAdapter = {
396
396
  };
397
397
 
398
398
  type PanoMediaController = Pick<PanoVideoController, "subscribe" | "play" | "pause" | "seek" | "setVolume" | "setMuted"> & {
399
- getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "volume" | "volumeAdjustable" | "muted">;
399
+ getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "hasAudio" | "volume" | "volumeAdjustable" | "muted">;
400
400
  };
401
401
  type PanoControlAction = {
402
402
  id: string;
@@ -492,6 +492,8 @@ type PanoVideoPlaybackSnapshot = {
492
492
  ended: boolean;
493
493
  currentTime: number;
494
494
  duration: number;
495
+ /** Undefined when audio track presence is unknown. */
496
+ hasAudio?: boolean;
495
497
  volume: number;
496
498
  /** False when the element ignores `volume` (iOS Safari). Mute still works. */
497
499
  volumeAdjustable: boolean;
package/dist/index.d.ts CHANGED
@@ -396,7 +396,7 @@ type PanoSpatialControlAdapter = {
396
396
  };
397
397
 
398
398
  type PanoMediaController = Pick<PanoVideoController, "subscribe" | "play" | "pause" | "seek" | "setVolume" | "setMuted"> & {
399
- getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "volume" | "volumeAdjustable" | "muted">;
399
+ getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "hasAudio" | "volume" | "volumeAdjustable" | "muted">;
400
400
  };
401
401
  type PanoControlAction = {
402
402
  id: string;
@@ -492,6 +492,8 @@ type PanoVideoPlaybackSnapshot = {
492
492
  ended: boolean;
493
493
  currentTime: number;
494
494
  duration: number;
495
+ /** Undefined when audio track presence is unknown. */
496
+ hasAudio?: boolean;
495
497
  volume: number;
496
498
  /** False when the element ignores `volume` (iOS Safari). Mute still works. */
497
499
  volumeAdjustable: boolean;