Skip to content

Improved: embedded video/audio show preview - #7288

Draft
math-GH wants to merge 3 commits into
FreshRSS:edgefrom
math-GH:audio-video-preload-metadata
Draft

math-GH wants to merge 3 commits into
FreshRSS:edgefrom
math-GH:audio-video-preload-metadata

Conversation

@math-GH

@math-GH math-GH commented Feb 1, 2025 •

Copy link
Copy Markdown
Contributor

Closes #7261

Changes proposed in this pull request:

  • preload="none" => preload="metadata" for <video> and <audio>

<video>

Before:
grafik

After:
length given. Preview image given.
grafik

<audio>

Before:
grafik

After:
length given
grafik

Pull request checklist:

  • clear commit messages
  • code manually tested

@math-GH math-GH added this to the 1.26.0 milestone Feb 1, 2025

@Frenzie Frenzie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine by me.

@math-GH

math-GH commented Feb 2, 2025

Copy link
Copy Markdown
Contributor Author

From the changelog 2014-01-29 FreshRSS 0.7

* HTML5 :
	* Support des balises HTML5 audio, video, et éléments associés
		* Utilisation de preload="none", et réécriture correcte des adresses, aussi en HTTPS

@Alkarex

Alkarex commented Feb 2, 2025

Copy link
Copy Markdown
Member

I would like to wait till 1.27 for that, as it should be combined with the lazy-loading logic. There are use-cases for which metadata would not be acceptable (e.g. network and/or privacy).

May be taken at the same time than #2371

@Alkarex Alkarex modified the milestones: 1.26.0, 1.27.0 Feb 2, 2025
@math-GH

math-GH commented Feb 2, 2025

Copy link
Copy Markdown
Contributor Author

I would like to wait till 1.27 for that, as it should be combined with the lazy-loading logic. There are use-cases for which metadata would not be acceptable (e.g. network and/or privacy).

you are right. There is a lazy load needed

@ikus060

ikus060 commented Feb 3, 2025

Copy link
Copy Markdown

I did not read all the code, but there seams to be other place where "preload=none" is enforce. In lib_rss.php and Sanitize.php and SimplePie.php

@math-GH
math-GH marked this pull request as draft February 4, 2025 11:36
@Inverle

Inverle commented Jun 3, 2025

Copy link
Copy Markdown
Member

yes, lazy loading is needed. specifically:
<video src>, <audio src>, <track src>, <source src> after this change is made

@Alkarex Alkarex modified the milestones: 1.27.0, 1.28.0 Aug 18, 2025
@Alkarex Alkarex modified the milestones: 1.28.0, 1.29.0 Dec 16, 2025
@Alkarex Alkarex modified the milestones: 1.29.0, 1.30.0 May 3, 2026
@Inverle Inverle modified the milestones: 1.30.0, 1.31.0 Sep 8, 2026
@Alkarex Alkarex modified the milestones: 1.31.0, 1.32.0 Nov 23, 2026

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

5 participants