Skip to content

Commit

Permalink
Unify relative imports in example (livekit#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Jun 10, 2022
1 parent 879392c commit 2f89215
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions example/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import {
VideoCodec,
VideoQuality,
RemoteVideoTrack,
LogLevel,
} from '../src/index';
import { LogLevel } from '../src/logger';
import { TrackSource } from '../src/proto/livekit_models';

const $ = (id: string) => document.getElementById(id);

Expand Down Expand Up @@ -630,7 +629,7 @@ function renderBitrate() {
totalBitrate += t.track.currentBitrate;
}

if (t.trackInfo?.source === TrackSource.CAMERA) {
if (t.source === Track.Source.Camera) {
if (t.videoTrack instanceof RemoteVideoTrack) {
const codecElm = $(`codec-${p.identity}`)!;
codecElm.innerHTML = t.videoTrack.getDecoderImplementation() ?? '';
Expand Down

0 comments on commit 2f89215

Please sign in to comment.