Hi,
does anyone else experience the same issue with video not being able to scrub forward ( to move fast through video clip by changing position in player controls) in Google Chrome?
It works in IE and Firefox but not in Chrome (but only on Dolphin site).
I am using H264 codec (it is enabled in video player settings)
Is this a bug or just a problem on our site?
Kind regards
Mayki
"When things get tough the tough get going..." |
ManOfTeal.COM a Proud UNA site, six years running strong! |
It's kind of a mixture of how Chrome's default HTML5 player works, and how Dolphin creates the HTML5 video and audio tags for playback. To prevent unauthorized downloading of media, Dolphin uses a PHP file and hashed URL to load the video, and this doesn't play well with scrubbing when the video hasn't fully loaded in Chrome. So unless Google changes something, you'll need to edit the HTML5 code in Dolphin to use a direct link (/flash/modules/video/files/ - etc.) to the files. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
It's kind of a mixture of how Chrome's default HTML5 player works, and how Dolphin creates the HTML5 video and audio tags for playback. To prevent unauthorized downloading of media, Dolphin uses a PHP file and hashed URL to load the video, and this doesn't play well with scrubbing when the video hasn't fully loaded in Chrome. So unless Google changes something, you'll need to edit the HTML5 code in Dolphin to use a direct link (/flash/modules/video/files/ - etc.) to the files.
I think google will not do changes, so it would be nice Nathan if you can please tell me / us more about how to change Dolphin....
Greetings
Mayki
"When things get tough the tough get going..." |
Please try the following and let me know about the results.
Change smartReadFile in flash/modules/global/inc/functions.inc.php file from:
function smartReadFile($location, $filename, $mimeType='application/octet-stream')
{
...
}
to:
function smartReadFile($sPath, $sFilename = '', $sMimeType = 'application/octet-stream', $iCacheAge = 0, $sCachePrivacy = 'public')
{
if (!file_exists($sPath)) {
header ("HTTP/1.0 404 Not Found");
return false;
}
$fp = @fopen($sPath, 'rb');
$size = filesize($sPath);
$length = $size;
$start = 0;
$end = $size - 1;
header('Content-type: ' . $sMimeType);
header('Cache-Control: ' . $sCachePrivacy . ', must-revalidate, max-age=' . $iCacheAge);
header("Accept-Ranges: 0-$length");
if ($sFilename)
header('Content-Disposition: inline; filename=' . $sFilename);
if (isset($_SERVER['HTTP_RANGE'])) {
$c_start = $start;
$c_end = $end;
list(, $range) = explode('=', $_SERVER['HTTP_RANGE'], 2);
if (strpos($range, ',') !== false) {
header('HTTP/1.1 416 Requested Range Not Satisfiable');
header("Content-Range: bytes $start-$end/$size");
return false;
}
if ($range == '-') {
$c_start = $size - substr($range, 1);
}else{
$range = explode('-', $range);
$c_start = $range[0];
$c_end = (isset($range[1]) && is_numeric($range[1])) ? $range[1] : $size;
}
$c_end = ($c_end > $end) ? $end : $c_end;
if ($c_start > $c_end || $c_start > $size - 1 || $c_end >= $size) {
header('HTTP/1.1 416 Requested Range Not Satisfiable');
header("Content-Range: bytes $start-$end/$size");
return false;
}
$start = $c_start;
$end = $c_end;
$length = $end - $start + 1;
fseek($fp, $start);
header('HTTP/1.1 206 Partial Content');
}
header("Content-Range: bytes $start-$end/$size");
header("Content-Length: ".$length);
$buffer = 1024 * 8;
while(!feof($fp) && ($p = ftell($fp)) <= $end) {
if ($p + $buffer > $end) {
$buffer = $end - $p + 1;
}
set_time_limit(0);
echo fread($fp, $buffer);
flush();
}
fclose($fp);
return true;
}
Rules → http://www.boonex.com/terms |
Please try the following and let me know about the results.
Will try that today Alex, Thanks.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Seems like an error or mistype.
Parse error: syntax error, unexpected '$end' (T_VARIABLE) in /home/site/html/flash/modules/global/inc/functions.inc.php on line 358
$buffer = 1024 * 8;
while(!feof($fp) && ($p = ftell($fp)) $end) {
$buffer = $end - $p + 1;
}
set_time_limit(0);
echo fread($fp, $buffer);
flush();
}
ManOfTeal.COM a Proud UNA site, six years running strong! |
Tried and it is not working,
I mean the site at all doesn't load....
Greetings
Mayki
"When things get tough the tough get going..." |
I've corrected the code, please could you try again?
Thank you.
Rules → http://www.boonex.com/terms |
Perfect! Problem resolved in my case.
AlexT, THANKS!!
|
I've corrected the code, please could you try again?
Thank you.
Yes, this fixed it.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Rules → http://www.boonex.com/terms |
Thank you AlexT,
video buffering problem in Chrome solved.
Thanks again.
Greetings Mayki
"When things get tough the tough get going..." |
just curious - with this new change - does this allow persons to download the video - in our site we do not want them to download. caredesign.net |
just curious - with this new change - does this allow persons to download the video - in our site we do not want them to download.
Downloading or allowance is selected in the Flash settings for both audio and video files.
Not for embedded videos either.
ManOfTeal.COM a Proud UNA site, six years running strong! |
caredesign.net |
Hello,
I have noticed that since upgrade to Dolphin 7.3 video scrubbing is not working again, not in Chrome, not in Firefox or IE.....
What have changed?
Members should be able to fast move to half on near end of video or any time position they want to play video from.... so I hope someone can tell me what to do.
Is the ffmpeg encoding issue or something else changed ?
Kind regards
Mayki
"When things get tough the tough get going..." |
We usually upgrade ffmpeg when new version is released, so it could potentially make some difference, but since we upgrade to the newer version the things should get better.
I've checked the latest demo and there is no such problem.
I would suggest to try clean install and/or download other ffmpeg binaries:
ffmpeg for Windows
ffmpeg for Mac OSX
ffmpeg for Linux
Rules → http://www.boonex.com/terms |