Skip to content

Commit

Permalink
different default deviceID, phetsims/ratio-and-proportion#543
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 3, 2023
1 parent 29d7cdd commit 52d731f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/mediaPipe/MediaPipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ let failedOnFrame = false;
let videoPlaying = false;

class MediaPipe {
public static readonly selectedDeviceProperty = new StringProperty( '' );

// device id from the browser often will be and empty string (`''`), so make sure the default value is a unique string
// so that the initial Property notifications happen.
public static readonly selectedDeviceProperty = new StringProperty( 'DEFAULT_VALUE' );
public static readonly availableDevices: MediaDeviceInfo[] = [];

// Flip across the x axis, flipping y values
Expand Down

0 comments on commit 52d731f

Please sign in to comment.