Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
shamoon
f67905f526 Update README.md 2023-10-08 06:45:13 -07:00
shamoon
2b575140a8 Fix: emby / jellyfin isVideoDirect 2023-10-07 17:27:46 -07:00
2 changed files with 5 additions and 7 deletions

View file

@ -122,7 +122,7 @@ pnpm dev
# Configuration
Please refere to the [homepage documentation](https://gethomepage.dev/) website for more information. Everything you need to know about configuring Homepage is there. Please read everything carefully before asking for help, as most questions are answered there or are simple YAML configuration issues.
Please refer to the [homepage documentation](https://gethomepage.dev/) website for more information. Everything you need to know about configuring Homepage is there. Please read everything carefully before asking for help, as most questions are answered there or are simple YAML configuration issues.
# Development
@ -144,6 +144,8 @@ This is a [Next.js](https://nextjs.org/) application, see their documentation fo
# Documentation
The homepage documentation is available at [https://gethomepage.dev/](https://gethomepage.dev/).
Homepage uses Material for MkDocs for documentation. To run the documentation locally, first install the dependencies:
```bash

View file

@ -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;
@ -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;