Skip to content

Commit

Permalink
Fix: emby / jellyfin isVideoDirect (#2156)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Oct 8, 2023
1 parent 4c2ecb9 commit d1d81e5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/widgets/emby/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ function SingleSessionEntry({ playCommand, session }) {

const RunTimeTicks = session.NowPlayingItem?.RunTimeTicks ?? session.NowPlayingItem?.CurrentProgram?.RunTimeTicks ?? 0;

const { IsVideoDirect, VideoDecoderIsHardware, VideoEncoderIsHardware } = session?.TranscodingInfo || {
IsVideoDirect: true,
VideoDecoderIsHardware: true,
VideoEncoderIsHardware: true,
};
const { IsVideoDirect, VideoDecoderIsHardware, VideoEncoderIsHardware } = session?.TranscodingInfo || { IsVideoDirect: true }; // if no transcodinginfo its videodirect

const percent = Math.min(1, PositionTicks / RunTimeTicks) * 100;

Expand Down Expand Up @@ -106,7 +102,7 @@ function SessionEntry({ playCommand, session }) {

const RunTimeTicks = session.NowPlayingItem?.RunTimeTicks ?? session.NowPlayingItem?.CurrentProgram?.RunTimeTicks ?? 0;

const { IsVideoDirect, VideoDecoderIsHardware, VideoEncoderIsHardware } = session?.TranscodingInfo || {};
const { IsVideoDirect, VideoDecoderIsHardware, VideoEncoderIsHardware } = session?.TranscodingInfo || { IsVideoDirect: true }; // if no transcodinginfo its videodirect

const percent = Math.min(1, PositionTicks / RunTimeTicks) * 100;

Expand Down

0 comments on commit d1d81e5

Please sign in to comment.