mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3668 from dmitrylyzo/show-play-settings
This commit is contained in:
commit
0701c4dff3
3 changed files with 6 additions and 8 deletions
|
@ -199,7 +199,8 @@ function showWithUser(options, player, user) {
|
|||
});
|
||||
}
|
||||
|
||||
if (user && user.Policy.EnableVideoPlaybackTranscoding) {
|
||||
if (options.quality && supportedCommands.includes('SetMaxStreamingBitrate')
|
||||
&& user?.Policy?.EnableVideoPlaybackTranscoding) {
|
||||
const secondaryQualityText = getQualitySecondaryText(player);
|
||||
|
||||
menuItems.push({
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<input is="emby-slider" type="range" step="1" min="0" max="100" value="0" class="osdVolumeSlider" />
|
||||
</div>
|
||||
</div>
|
||||
<button is="paper-icon-button-light" class="btnVideoOsdSettings hide autoSize" title="${Settings}">
|
||||
<button is="paper-icon-button-light" class="btnVideoOsdSettings autoSize" title="${Settings}">
|
||||
<span class="largePaperIconButton material-icons settings" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button is="paper-icon-button-light" class="btnAirPlay hide autoSize" title="${AirPlay}">
|
||||
|
|
|
@ -677,12 +677,6 @@ import { appRouter } from '../../../components/appRouter';
|
|||
updateTimeDisplay(playState.PositionTicks, nowPlayingItem.RunTimeTicks, playState.PlaybackStartTimeTicks, playState.PlaybackRate, playState.BufferedRanges || []);
|
||||
updateNowPlayingInfo(player, state);
|
||||
|
||||
if (state.MediaSource && state.MediaSource.SupportsTranscoding && supportedCommands.indexOf('SetMaxStreamingBitrate') !== -1) {
|
||||
view.querySelector('.btnVideoOsdSettings').classList.remove('hide');
|
||||
} else {
|
||||
view.querySelector('.btnVideoOsdSettings').classList.add('hide');
|
||||
}
|
||||
|
||||
const isProgressClear = state.MediaSource && state.MediaSource.RunTimeTicks == null;
|
||||
nowPlayingPositionSlider.setIsClear(isProgressClear);
|
||||
|
||||
|
@ -860,6 +854,8 @@ import { appRouter } from '../../../components/appRouter';
|
|||
const player = currentPlayer;
|
||||
|
||||
if (player) {
|
||||
const state = playbackManager.getPlayerState(player);
|
||||
|
||||
// show subtitle offset feature only if player and media support it
|
||||
const showSubOffset = playbackManager.supportSubtitleOffset(player) &&
|
||||
playbackManager.canHandleOffsetOnCurrentSubtitle(player);
|
||||
|
@ -868,6 +864,7 @@ import { appRouter } from '../../../components/appRouter';
|
|||
mediaType: 'Video',
|
||||
player: player,
|
||||
positionTo: btn,
|
||||
quality: state.MediaSource?.SupportsTranscoding,
|
||||
stats: true,
|
||||
suboffset: showSubOffset,
|
||||
onOption: onSettingsOption
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue