Explorar o código

HTML5 show controls audio video (#1642)

* HTML5 show controls audio video

* Changelog 1642
Alexandre Alapetite %!s(int64=8) %!d(string=hai) anos
pai
achega
f293cec492
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 0
      CHANGELOG.md
  2. 2 2
      lib/lib_rss.php

+ 1 - 0
CHANGELOG.md

@@ -9,6 +9,7 @@
 	* New page for subscription tools [#1534](https://github.com/FreshRSS/FreshRSS/issues/1354)
 	* Adjustments to the padding of the tree of categories and feeds [1589](https://github.com/FreshRSS/FreshRSS/pull/1589)
 	* Fix feed column position after lazy-loading images [#1616](https://github.com/FreshRSS/FreshRSS/pull/1616)
+	* Force UI controls for HTML5 video and audio [#1642](https://github.com/FreshRSS/FreshRSS/pull/1642)
 * CLI
 	* New command `./cli/update-user` to update user settings [#1600](https://github.com/FreshRSS/FreshRSS/issues/1600)
 * I18n

+ 2 - 2
lib/lib_rss.php

@@ -191,9 +191,9 @@ function customSimplePie() {
 		'onmouseover', 'onmousemove', 'onmouseout', 'onfocus', 'onblur',
 		'onkeypress', 'onkeydown', 'onkeyup', 'onselect', 'onchange', 'seamless', 'sizes', 'srcset')));
 	$simplePie->add_attributes(array(
-		'audio' => array('preload' => 'none'),
+		'audio' => array('controls' => 'controls', 'preload' => 'none'),
 		'iframe' => array('sandbox' => 'allow-scripts allow-same-origin'),
-		'video' => array('preload' => 'none'),
+		'video' => array('controls' => 'controls', 'preload' => 'none'),
 	));
 	$simplePie->set_url_replacements(array(
 		'a' => 'href',