mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
implement modular media sources
This commit is contained in:
parent
e266c8c4c8
commit
c2800786fa
1 changed files with 3 additions and 4 deletions
|
@ -665,10 +665,6 @@
|
||||||
DeviceProfile: deviceProfile
|
DeviceProfile: deviceProfile
|
||||||
};
|
};
|
||||||
|
|
||||||
if (mediaSource) {
|
|
||||||
postData.MediaSource = mediaSource;
|
|
||||||
}
|
|
||||||
|
|
||||||
var query = {
|
var query = {
|
||||||
UserId: Dashboard.getCurrentUserId(),
|
UserId: Dashboard.getCurrentUserId(),
|
||||||
StartTimeTicks: startPosition || 0
|
StartTimeTicks: startPosition || 0
|
||||||
|
@ -680,6 +676,9 @@
|
||||||
if (subtitleStreamIndex != null) {
|
if (subtitleStreamIndex != null) {
|
||||||
query.SubtitleStreamIndex = subtitleStreamIndex;
|
query.SubtitleStreamIndex = subtitleStreamIndex;
|
||||||
}
|
}
|
||||||
|
if (mediaSource) {
|
||||||
|
query.MediaSourceId = mediaSource.Id;
|
||||||
|
}
|
||||||
|
|
||||||
return ApiClient.ajax({
|
return ApiClient.ajax({
|
||||||
url: ApiClient.getUrl('Items/' + itemId + '/PlaybackInfo', query),
|
url: ApiClient.getUrl('Items/' + itemId + '/PlaybackInfo', query),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue