Skip to content

Commit

Permalink
export
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed Jul 3, 2024
1 parent 925bafb commit e41f1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webrtc/src/nonstandard/navigator.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { MediaStream, MediaStreamTrack } from "../media/track";

export class Navigator {
readonly mediaDevices: MediaDevices;
mediaDevices: MediaDevices;

constructor(props: ConstructorParameters<typeof MediaDevices>[0] = {}) {
this.mediaDevices = new MediaDevices(props);
}
}

class MediaDevices extends EventTarget {
export class MediaDevices extends EventTarget {
video?: MediaStreamTrack;
audio?: MediaStreamTrack;

Expand Down

0 comments on commit e41f1f8

Please sign in to comment.