diff --git a/web/includes/functions.php b/web/includes/functions.php
index 169f7d0eb..81a411a65 100644
--- a/web/includes/functions.php
+++ b/web/includes/functions.php
@@ -145,9 +145,30 @@ function getVideoStreamHTML($id, $src, $width, $height, $format, $title='') {
$mimeType = 'video/'.$format;
if ( ZM_WEB_USE_OBJECT_TAGS ) {
switch( $mimeType ) {
+ case 'video/mp4' :
+ // Use Video.js for MP4 playback instead of deprecated plugins
+ global $cspNonce;
+ $videoId = $id ?: 'videoobj_' . uniqid();
+ return '
+ ';
case 'video/x-ms-asf' :
case 'video/x-msvideo' :
- case 'video/mp4' :
if ( isWindows() ) {
return '