Skip to content

Commit

Permalink
Changed upload element's default video display to use the HTML5 video
Browse files Browse the repository at this point in the history
tag, falling back to the original real player plugin.
  • Loading branch information
cheesegrits committed Jan 20, 2015
1 parent 5ff839d commit 38c2bc8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions plugins/fabrik_element/fileupload/models/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function render(&$model, &$params, $file)
</object>';
break;
default:
/*
$this->output = "<object width=\"$w\" height=\"$h\"
classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"
codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">
Expand All @@ -128,6 +129,28 @@ classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"
</embed>
</object>";
*/
$this->output = "
<video
width=\"$w\" height=\"$h\"
controls
src=\"$src\"
>
<object width=\"$w\" height=\"$h\"
classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"
codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\"
>
<param name=\"src\" value=\"$src\">
<param name=\"autoplay\" value=\"false\">
<param name=\"controller\" value=\"true\">
<embed src=\"$src\" width=\"$w\" height=\"$h\"
autoplay=\"false\" controller=\"true\"
pluginspage=\"http://www.apple.com/quicktime/download/\"
>
</embed>
</object
</video>
";
break;
}
}
Expand Down

0 comments on commit 38c2bc8

Please sign in to comment.