diff options
author | ken restivo <ken@restivo.org> | 2015-10-29 20:50:52 -0700 |
---|---|---|
committer | ken restivo <ken@restivo.org> | 2015-10-29 20:50:52 -0700 |
commit | 1b302101209b44bfa82ca17ac9f6cf0d0cce553d (patch) | |
tree | 4038004e10126dfad7fc571edb6f97523c77f27e /include | |
parent | 714832bb498fb5e3b295e3c4aefe93ba035de23d (diff) | |
download | volse-hubzilla-1b302101209b44bfa82ca17ac9f6cf0d0cce553d.tar.gz volse-hubzilla-1b302101209b44bfa82ca17ac9f6cf0d0cce553d.tar.bz2 volse-hubzilla-1b302101209b44bfa82ca17ac9f6cf0d0cce553d.zip |
Save bandwidth on mobile networks.
Diffstat (limited to 'include')
-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 |