Skip to content

Commit

Permalink
display transcode progress on web client dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
dkanada committed May 31, 2022
1 parent 0233e12 commit ba2f3c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ public void onProgress() {
progressInfo.setPositionTicks(progress * 10000);
progressInfo.setVolumeLevel(mService.get().playback.getVolume());
progressInfo.setIsPaused(!mService.get().playback.isPlaying());
progressInfo.setPlaySessionId(Integer.toString(current.id.hashCode()));
progressInfo.setCanSeek(true);

App.getApiClient().ReportPlaybackProgressAsync(progressInfo, new EmptyResponse());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static String getTranscodeUri(Song song) {
builder.append(song.id);
builder.append("/universal");
builder.append("?UserId=").append(apiClient.getCurrentUserId());
builder.append("&PlaySessionId=").append(song.id.hashCode());
builder.append("&DeviceId=").append(apiClient.getDeviceId());

// web client maximum is 12444445 and 320kbps is 320000
Expand Down

0 comments on commit ba2f3c1

Please sign in to comment.