diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-30 15:25:18 +1100 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-30 15:25:18 +1100 |
commit | e0463f5a74ac56f19dd1159cb4ce2d3eff52dc90 (patch) | |
tree | 9f536e714dac985af786aacd224eee6be799cd5f | |
parent | a1e28bb669b1a9376b9c15bc32a3496ef0d906b9 (diff) | |
parent | 1b302101209b44bfa82ca17ac9f6cf0d0cce553d (diff) | |
download | volse-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.
-rw-r--r-- | include/bbcode.php | 4 |
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 |