Merge pull request #7183 from thornbill/theme-videos
Improve theme video support
This commit is contained in:
@@ -649,6 +649,7 @@ function normalizePlayOptions(playOptions) {
|
||||
|
||||
function truncatePlayOptions(playOptions) {
|
||||
return {
|
||||
aspectRatio: playOptions.aspectRatio,
|
||||
fullscreen: playOptions.fullscreen,
|
||||
mediaSourceId: playOptions.mediaSourceId,
|
||||
audioStreamIndex: playOptions.audioStreamIndex,
|
||||
@@ -2663,6 +2664,7 @@ export class PlaybackManager {
|
||||
const audioStreamIndex = playOptions.audioStreamIndex;
|
||||
const subtitleStreamIndex = playOptions.subtitleStreamIndex;
|
||||
const options = {
|
||||
aspectRatio: playOptions.aspectRatio,
|
||||
maxBitrate,
|
||||
startPosition,
|
||||
isPlayback: null,
|
||||
@@ -2720,7 +2722,7 @@ export class PlaybackManager {
|
||||
}
|
||||
|
||||
const streamInfo = createStreamInfo(apiClient, item.MediaType, item, mediaSource, startPosition, player);
|
||||
|
||||
streamInfo.aspectRatio = playOptions.aspectRatio;
|
||||
streamInfo.fullscreen = playOptions.fullscreen;
|
||||
|
||||
const playerData = getPlayerData(player);
|
||||
|
||||
@@ -40,6 +40,7 @@ function playThemeMedia(items, ownerId) {
|
||||
|
||||
playbackManager.play({
|
||||
items: currentThemeItems,
|
||||
aspectRatio: 'cover',
|
||||
fullscreen: false,
|
||||
enableRemotePlayers: false
|
||||
}).then(function () {
|
||||
|
||||
Reference in New Issue
Block a user