Skip to content

Commit

Permalink
chore: code quality issue (blame @Maximvdw)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed May 6, 2024
1 parent 6fb4aae commit e81f333
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion modules/web-sensors/src/legacy/SensorSourceNode.ts
Expand Up @@ -16,7 +16,6 @@ import { SensorSourceNodeInterface } from '../SensorSourceNodeInterface';

/**
* IMU source using the HTML5 browser API for device motion and device orientation.
*
* @category Source node
*/
export class SensorSourceNode extends SourceNode<DataFrame> implements SensorSourceNodeInterface {
Expand Down
11 changes: 5 additions & 6 deletions modules/webrtc/src/nodes/VideoSource.ts
Expand Up @@ -26,8 +26,11 @@ export class VideoSource extends SourceNode<VideoFrame<ImageData>> {
private _onBuild(): Promise<void> {
return new Promise((resolve, reject) => {
navigator.getUserMedia =
navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia ||
navigator.mediaDevices.getUserMedia || navigator.msGetUserMedia;
navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.mediaDevices.getUserMedia ||
navigator.msGetUserMedia;

if (navigator.getUserMedia === undefined) {
throw new Error(`getUserMedia is not supported by the browser!`);
Expand Down Expand Up @@ -69,7 +72,6 @@ export class VideoSource extends SourceNode<VideoFrame<ImageData>> {

/**
* Start playback of the video stream
*
* @returns {number} Running frame grab timer
*/
play(): NodeJS.Timer {
Expand Down Expand Up @@ -144,7 +146,6 @@ export class VideoSource extends SourceNode<VideoFrame<ImageData>> {

/**
* Pull the next frame
*
* @returns {Promise<VideoSource>} Pull promise
*/
onPull(): Promise<VideoFrame> {
Expand Down Expand Up @@ -177,7 +178,6 @@ export class VideoSource extends SourceNode<VideoFrame<ImageData>> {

/**
* Load video from file, stream, port
*
* @param {string | HTMLVideoElement} videoSource File path
* @returns {VideoSource} Video source instance
*/
Expand Down Expand Up @@ -249,7 +249,6 @@ export interface VideoSourceOptions extends SourceNodeOptions, MediaTrackConstra
height?: number;
/**
* Frames to skip
*
* @default 1
*/
frameSkip?: number;
Expand Down
1 change: 0 additions & 1 deletion modules/webxr/src/nodes/source/XRSource.ts
Expand Up @@ -149,7 +149,6 @@ export interface XRSourceOptions extends SourceNodeOptions {
includeImage?: boolean;
/**
* Show the output in the frame buffer
*
* @default true
*/
output?: boolean;
Expand Down
1 change: 0 additions & 1 deletion modules/webxr/src/service/WebXRService.ts
Expand Up @@ -53,7 +53,6 @@ export class WebXRService extends Service {

/**
* Create a new XR session
*
* @returns {Promise<XRSession>} XR session promise
*/
createSession(): Promise<XRSession> {
Expand Down

0 comments on commit e81f333

Please sign in to comment.