Skip to content

Commit

Permalink
Enable starting playback from the playlist file details pane also on …
Browse files Browse the repository at this point in the history
…NC28
  • Loading branch information
paulijar committed Jan 7, 2024
1 parent 265c0c4 commit 87535d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/embedded/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,12 @@ function initEmbeddedPlayer() {
// Before NC28
mFileList = OCA.Files.App.fileList;
mCurrentFile = mFileList.findFile(playlistName);
openPlaylistFile(() => jumpToPlaylistFile(mPlaylist.jumpToIndex(itemIdx)));
} else {
// NC28 or later
// TODO
// We don't know all of the file details but those are not actually needed for a playlist file
mCurrentFile = {id: playlistId, name: playlistName, mimetype: null, path: null}
}
openPlaylistFile(() => jumpToPlaylistFile(mPlaylist.jumpToIndex(itemIdx)));
}
});
OCA.Music.playlistTabView.on('rendered', () => {
Expand Down

0 comments on commit 87535d3

Please sign in to comment.