Skip to content

Commit

Permalink
Add TethrManager.pairedCameras
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Sep 17, 2024
1 parent 867cdb2 commit 5e52ab8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/TethrManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ export class TethrManager extends EventEmitter<TethrManagerEvents> {
}

#emitPairedCameras() {
const cameras = [
this.emit('pairedCameraChange', this.pairedCameras)
}

get pairedCameras(): Tethr[] {
return [
...this.#ptpusbCameras.values(),
...(this.#webcam ? [this.#webcam] : []),
]

this.emit('pairedCameraChange', cameras)
}

/**
Expand Down

0 comments on commit 5e52ab8

Please sign in to comment.