Save media position to local storage. #4098

Closed
jeffslofish wants to merge 1 commit from issue-2775 into master
jeffslofish commented 2020-04-29 09:21:09 +02:00 (Migrated from github.com)

Closes #2775

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: #2775

What is the current behavior?

The media player always starts at the beginning of the video

What is the new behavior?

The position of the media player is saved to local storage and the next time that video is played, the video will start at the position it was last played at.

Other information

The following is a screenshot of what the local storage will start to look like with this solution:
Screen Shot 2020-04-29 at 12 10 12 AM

Closes #2775 ## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: #2775 ## What is the current behavior? The media player always starts at the beginning of the video ## What is the new behavior? The position of the media player is saved to local storage and the next time that video is played, the video will start at the position it was last played at. ## Other information The following is a screenshot of what the local storage will start to look like with this solution: ![Screen Shot 2020-04-29 at 12 10 12 AM](https://user-images.githubusercontent.com/1240484/80569998-de976500-89ae-11ea-8b46-9e740a4f7390.png) <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
neb-b commented 2020-04-29 19:39:11 +02:00 (Migrated from github.com)

Nice! We used to have this functionality but it was removed when we switched video players. Could you use this instead? https://github.com/lbryio/lbry-desktop/blob/master/ui/redux/actions/content.js#L215

Also there were some changes to videoViewer/view.jsx that were merged today. Those changes will affect this PR.

Nice! We used to have this functionality but it was removed when we switched video players. Could you use this instead? https://github.com/lbryio/lbry-desktop/blob/master/ui/redux/actions/content.js#L215 Also there were some changes to `videoViewer/view.jsx` that were merged today. Those changes will affect this PR.
neb-b commented 2020-04-29 23:24:59 +02:00 (Migrated from github.com)

I forgot to leave a comment on your previous PR, but can you make a changelog entry for this PR and the one that was merged already?
https://github.com/lbryio/lbry-desktop/blob/master/CHANGELOG.md

I forgot to leave a comment on your previous PR, but can you make a changelog entry for this PR and the one that was merged already? https://github.com/lbryio/lbry-desktop/blob/master/CHANGELOG.md

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LBRYCommunity/lbry-desktop!4098
No description provided.