chore: Enforce a few house rules via eslint (#2539)
This commit is contained in:
committed by
dermotduffy
parent
5572ec728e
commit
921d45e577
@@ -6,12 +6,12 @@ import { View } from './view';
|
||||
// the target-ID namespace. Must not collide with real camera IDs or media IDs.
|
||||
export const IMAGE_VIEW_TARGET_ID_SENTINEL = '__IMAGE_VIEW__';
|
||||
|
||||
// Returns a universal target identifier for the current view — the single key
|
||||
// Returns a universal target identifier for the current view -- the single key
|
||||
// used by PTZ/zoom state and media retry epochs to identify "what is currently
|
||||
// being displayed." For live, this is the *base* camera ID (substream is an
|
||||
// implementation detail of how to play camera X, not a separate logical
|
||||
// identity — see `getStreamCameraID` for the substream-aware variant used
|
||||
// only inside the playback chain).
|
||||
// identity -- see `getStreamCameraID` for the substream-aware variant used only
|
||||
// inside the playback chain).
|
||||
export const getViewTargetID = (view: View): string | null => {
|
||||
if (view.isViewerView()) {
|
||||
return view.queryResults?.getSelectedResult()?.getID() ?? null;
|
||||
|
||||
Reference in New Issue
Block a user