1
0
Fork 0
miniflux/storage
Ztec 228bb62df4 Add Media Player and resume to last playback position
In order to ease podcast listening, the player can be put on top of the feed entry as main content.
Use the `Use podcast player` option to enable that. It works on audio and video.

Also, when playing audio or video, progression will be saved in order to be able to resume listening later.
This position saving is done using the original attachement/enclosures player AND podcast player and do not rely on
the podcast player option ti be enabled.

Additionally, I made the player fill the width with the entry container to ease seeking and have a bigger video.

updateEnclosures now keep existing enclosures based on URL

When feeds get updated, enclosures entries are always wiped and re-created. This cause two issue
 - enclosure progression get lost in the process
 - enclosure ID changes

I used the URL as identifier of an enclosure. Not perfect but hopefully should work.
When an enclosure already exist, I simply do nothing and leave the entry as is in the database.
If anyone is listening/watching to this enclosure during the refresh, the id stay coherent and progression saving still works.

The updateEnclosures function got a bit more complex. I tried to make it the more clear I could.
Some optimisation are possible but would make the function harder to read in my opinion.

I'm not sure if this is often the case, but some feeds may include tracking or simply change the url each
time we update the feed. In those situation, enclosures ids and progression will be lost.

I have no idea how to handle this last situation. Use the size instead/alongside url to define the identity of an enclosure ?

Translation: english as placeholder for every language except French

Aside, I tested a video feed and fixed a few things for it. In fact, the MimeType was not working
at all on my side, and found a pretty old stackoverflow discussion that suggest to use an Apple non-standard MimeType for
m4v video format. I only did one substitution because I only have one feed to test. Any new video feed can make this go away
or evolve depending on the situation. Real video feeds does not tend to be easy to find and test extensively this.

Co-authored-by: toastal
2023-06-04 14:49:46 -07:00
..
api_key.go Add per-application API Keys 2020-03-01 18:22:45 -08:00
category.go Rename column to CategoriesSortingOrder 2022-10-25 20:06:28 -07:00
certificate_cache.go Rename storage certificate cache 2021-02-13 14:16:30 -08:00
doc.go Fix some linter issues 2022-08-08 22:06:38 -07:00
enclosure.go Add Media Player and resume to last playback position 2023-06-04 14:49:46 -07:00
entry.go Mark only globally visible entries when marking all entries from UI 2023-05-30 20:29:44 -07:00
entry_pagination_builder.go Fix inconsistent navigation 2021-09-24 16:22:00 -07:00
entry_query_builder.go Add Media Player and resume to last playback position 2023-06-04 14:49:46 -07:00
feed.go Add Media Player and resume to last playback position 2023-06-04 14:49:46 -07:00
feed_query_builder.go Add Media Player and resume to last playback position 2023-06-04 14:49:46 -07:00
icon.go Correct spelling 2021-05-13 18:22:23 -07:00
integration.go Add default tag names for Linkding integration 2023-05-30 21:02:27 -07:00
job.go Add category feeds refresh 2022-12-12 19:41:30 -08:00
session.go Improve storage module 2019-10-29 22:59:00 -07:00
storage.go Add option to disable watchdog and set default timeout to DB healthcheck 2021-05-23 18:30:20 -07:00
timezone.go Improve storage module 2019-10-29 22:59:00 -07:00
user.go Add swipe as option for gesture navigation between entries. 2023-03-28 18:00:57 -07:00
user_session.go Use SQL transaction when creating user sessions 2020-12-22 20:28:34 -08:00