Skip to content

Commit

Permalink
Add documentation for getLiveview method
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Sep 9, 2024
1 parent 6d8fbcc commit e0625b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/Tethr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,10 @@ export abstract class Tethr
async setLiveview(value: MediaStream): Promise<OperationResult> {
return UnsupportedOperationResult
}

/**
* Get the liveview stream when liveview is running. Use {@link getCanStartLiveview} to check if the camera supports this action, and {@link startLiveview} or {@link stopLiveview} to control liveview.
*/
async getLiveview() {
return (await this.getLiveviewDesc()).value
}
Expand Down

0 comments on commit e0625b9

Please sign in to comment.