display transcode progress on web client dashboard

This commit is contained in:
dkanada 2022-05-31 10:56:38 +09:00
commit ba2f3c1224
2 changed files with 2 additions and 0 deletions

View file

@ -909,6 +909,7 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
progressInfo.setPositionTicks(progress * 10000); progressInfo.setPositionTicks(progress * 10000);
progressInfo.setVolumeLevel(mService.get().playback.getVolume()); progressInfo.setVolumeLevel(mService.get().playback.getVolume());
progressInfo.setIsPaused(!mService.get().playback.isPlaying()); progressInfo.setIsPaused(!mService.get().playback.isPlaying());
progressInfo.setPlaySessionId(Integer.toString(current.id.hashCode()));
progressInfo.setCanSeek(true); progressInfo.setCanSeek(true);
App.getApiClient().ReportPlaybackProgressAsync(progressInfo, new EmptyResponse()); App.getApiClient().ReportPlaybackProgressAsync(progressInfo, new EmptyResponse());

View file

@ -39,6 +39,7 @@ public class MusicUtil {
builder.append(song.id); builder.append(song.id);
builder.append("/universal"); builder.append("/universal");
builder.append("?UserId=").append(apiClient.getCurrentUserId()); builder.append("?UserId=").append(apiClient.getCurrentUserId());
builder.append("&PlaySessionId=").append(song.id.hashCode());
builder.append("&DeviceId=").append(apiClient.getDeviceId()); builder.append("&DeviceId=").append(apiClient.getDeviceId());
// web client maximum is 12444445 and 320kbps is 320000 // web client maximum is 12444445 and 320kbps is 320000