Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent-Bouisset committed Jul 23, 2024
1 parent 88f0c7b commit 6138922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main_thread/api/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1704,6 +1704,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
throw new Error("invalid time given");
}
log.info("API: API Seek to", positionWanted);
console.log("DEBUG TEST CI 9: seeking from api", positionWanted);

Check failure on line 1707 in src/main_thread/api/public_api.ts

View workflow job for this annotation

GitHub Actions / typechecking_and_linting (20.x)

Unexpected console statement
this.videoElement.currentTime = positionWanted;
return positionWanted;
}
Expand Down
1 change: 1 addition & 0 deletions src/playback_observer/media_element_playback_observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export default class PlaybackObserver {

private _actuallySetCurrentTime(time: number): void {
log.info("API: Seeking internally", time);
console.log("DEBUG TEST CI 9: seeking internally", time);

Check failure on line 308 in src/playback_observer/media_element_playback_observer.ts

View workflow job for this annotation

GitHub Actions / typechecking_and_linting (20.x)

Unexpected console statement
this._internalSeeksIncoming.push(time);
this._mediaElement.currentTime = time;
}
Expand Down

0 comments on commit 6138922

Please sign in to comment.