aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-30 15:25:18 +1100
committerredmatrix <redmatrix@redmatrix.me>2015-10-30 15:25:18 +1100
commite0463f5a74ac56f19dd1159cb4ce2d3eff52dc90 (patch)
tree9f536e714dac985af786aacd224eee6be799cd5f /include
parenta1e28bb669b1a9376b9c15bc32a3496ef0d906b9 (diff)
parent1b302101209b44bfa82ca17ac9f6cf0d0cce553d (diff)
downloadvolse-hubzilla-e0463f5a74ac56f19dd1159cb4ce2d3eff52dc90.tar.gz
volse-hubzilla-e0463f5a74ac56f19dd1159cb4ce2d3eff52dc90.tar.bz2
volse-hubzilla-e0463f5a74ac56f19dd1159cb4ce2d3eff52dc90.zip
Merge pull request #107 from kenrestivo/fix-audio-preload
Save bandwidth on mobile networks.
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 1092c08a3..517f22bee 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -28,7 +28,7 @@ function tryzrlaudio($match) {
if($zrl)
$link = zid($link);
- return '<audio src="' . str_replace(' ','%20',$link) . '" controls="controls"><a href="' . str_replace(' ','%20',$link) . '">' . $link . '</a></audio>';
+ return '<audio src="' . str_replace(' ','%20',$link) . '" controls="controls" preload="none"><a href="' . str_replace(' ','%20',$link) . '">' . $link . '</a></audio>';
}
function tryzrlvideo($match) {
@@ -37,7 +37,7 @@ function tryzrlvideo($match) {
if($zrl)
$link = zid($link);
- return '<video controls="controls" src="' . str_replace(' ','%20',$link) . '" style="width:100%; max-width:' . get_app()->videowidth . 'px"><a href="' . str_replace(' ','%20',$link) . '">' . $link . '</a></video>';
+ return '<video controls="controls" preload="none" src="' . str_replace(' ','%20',$link) . '" style="width:100%; max-width:' . get_app()->videowidth . 'px"><a href="' . str_replace(' ','%20',$link) . '">' . $link . '</a></video>';
}
// [noparse][i]italic[/i][/noparse] turns into