Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a start and end time display option for the now showing display #83

Open
archiconda1976 opened this issue Apr 6, 2021 · 4 comments

Comments

@archiconda1976
Copy link

archiconda1976 commented Apr 6, 2021

Add a start and end time display option to the top or bottom line, as shown here:

image

Could possibly add as an alternative display mode to the progress bar display?

Start time can be found using the timeStamp:

$mediaStartTime = "Start Time </br>" . date("g:i A", (int)$clients->TranscodeSession['timeStamp']); 

End time can be calculated using the progress % in the TranscodeSession section, along with current time:

$media_duration = "End Time</br>" . date("g:i A", (int)time() + (int)($clients->TranscodeSession['duration'] * (1-$clients->TranscodeSession['progress']/100)/1000));
@ZeroCoolGOS
Copy link

@archiconda1976

This looks like a pretty cool idea, and I would like to look into this. The only thing that I can think of is that if you have a movie or show that you are resuming, do you care to see that the "start time" is not when you actually started the media or just have a calculation of what the start time would be relative to the current position of the video?

So for example if you start a 30 min video at 9pm and the end time is scheduled for 9:30pm. If you pause for 10 min, your "start time" would be 9:10 and your "end time" would be 9:40.

Is that fine with you?

Plex did have that "Estimated" end time in some of there clients, but has since phased that out, but I did find it pretty handy.

@archiconda1976
Copy link
Author

I was always more interested in the end time, it seemed like the code above produced the expected text. I just hacked it in as "always used" and wasn't sure how best to integrate it in as a display option. I can create a fork and push my proto code if it would help, it isn't much more than the code snippets shown above.

For the start time, I don't have a strong preference. I picked the timestamp as it was convinent, and typically I will maybe pause a movie like described, but still finish in one sitting. So seeing when the viewing started made sense.

The one thing I didn't try was stopping a movie and restarting it say the next day, not sure what the timestamp ends up being set to. I would assume the time of the new session? I will test that when I get a chance.

@ZeroCoolGOS
Copy link

Cool.

I will do some research and hopefully have something implemented next week sometime.
I would have gotten to this sooner but my time to this project has been dramatically reduced over the past month but I hope to get back to some support shortly.

ZeroCoolGOS added a commit to ZeroCoolGOS/Plex-Movie-Poster-Display that referenced this issue May 16, 2021
Progress Bar not displaying correctly (Issue MattsShack#85)
- Add new 'field' to store progress bar with a max of 2% of the screen height and 50% of the screen width.  This allows a separation of the progress bar from the top field
- Remove progress bar from 'top' field

Add a start and end time display option for the now showing display (Issue MattsShack#83)
- Add 'viewOffset' and 'lastViewedAt' as part of the Plex metadata media read
- Add new 'Now Playing' top option, 'Progress Info.'
- Display 'Start Time' and 'End Time'
- Add 'Title' display media
- 'Title' size is respected 'time' size is fixed.
- TODO:
    - Add Support for User defined font.

- BUGS:
    - TV Shows are working movies are displaying incorrectly

Updates and Bug Fixes:
- Update Dockerfile to support TimeZone. Set TimeZone to 'America/Los_Angeles'

Future Enhancements:
- Allow the user to control the size of each 'field'?
- Add multiple 'Progress Info.' layouts/formats
- When using 'Progress Info.', if 'TV Show' then use 'Episode Title' as subTitle (Display format: B)
ZeroCoolGOS added a commit to ZeroCoolGOS/Plex-Movie-Poster-Display that referenced this issue May 24, 2021
Add a start and end time display option for the now showing display (Issue MattsShack#83)
- Redesign and resolve 'Start Time/End Time' calculation to address inconstancy with calculations.
    - Supporting the following media types:
        - TV Shows
        - Movies
        - Music
- BUGS:
    - If size is set too large 'timer' display is unreadable.

Updates and Bug Fixes:
    - 'Progress Bar' dynamic size based on screen orientation.
    - BACKEND: Add 'Start Time/End Time' to 'Progress Bar'
    - BACKEND: Create standard progress calculation function.

Future Enhancements:
    - Add option to show 'Time Remaining' vs 'End Time'?
    - Add 'Start Time/End Time' to 'Progress Bar' (Frontend)
    - Possible support for refresh time options for different media types.
    - Enable/Disable 'Start Time/End Time' headers
ZeroCoolGOS added a commit to ZeroCoolGOS/Plex-Movie-Poster-Display that referenced this issue May 24, 2021
Add a start and end time display option for the now showing display (Issue MattsShack#83)
- Redesign and resolve 'Start Time/End Time' calculation to address inconstancy with calculations.
    - Supporting the following media types:
        - TV Shows
        - Movies
        - Music
- BUGS:
    - If size is set too large 'timer' display is unreadable.

Updates and Bug Fixes:
    - 'Progress Bar' dynamic size based on screen orientation.
    - BACKEND: Add 'Start Time/End Time' to 'Progress Bar'
    - BACKEND: Create standard progress calculation function.

Future Enhancements:
    - Add option to show 'Time Remaining' vs 'End Time'?
    - Add 'Start Time/End Time' to 'Progress Bar' (Frontend)
    - Possible support for refresh time options for different media types.
    - Enable/Disable 'Start Time/End Time' headers
@ZeroCoolGOS
Copy link

@archiconda1976

We have added this feature in the latest version (2.12.x).

Please let us know if it's working as per your request.

With how we are doing this, I have been thinking of different ways to display the information in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants