This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 3024adf  [OPENMEETINGS-2369] playsinline attribute is added to video 
tag
3024adf is described below

commit 3024adfb0ca871fa5eab866299db0540b55fb554
Author: Maxim Solodovnik <solomax...@gmail.com>
AuthorDate: Mon Jul 27 20:15:32 2020 +0700

    [OPENMEETINGS-2369] playsinline attribute is added to video tag
---
 .../src/main/java/org/apache/openmeetings/web/room/VideoSettings.html   | 2 +-
 .../src/main/java/org/apache/openmeetings/web/room/raw-video.js         | 1 +
 .../src/main/java/org/apache/openmeetings/web/room/wb/raw-player.js     | 1 +
 .../main/java/org/apache/openmeetings/web/user/record/VideoPlayer.html  | 2 +-
 4 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/VideoSettings.html
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/VideoSettings.html
index a01753d..15434ce 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/VideoSettings.html
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/VideoSettings.html
@@ -76,7 +76,7 @@
                                                </div>
                                                <div class="vid-block">
                                                        <div 
class="video-conainer">
-                                                               <video 
autoplay="autoplay"></video>
+                                                               <video 
autoplay="autoplay" playsinline="playsinline"></video>
                                                        </div>
                                                        <canvas 
class="level-meter" data-orientation="horizontal" wicket:message="title:767" 
width="250" height="16"></canvas>
                                                        <div class="sett-row 
right">
diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js
index e5f6988..f350d5a 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js
@@ -410,6 +410,7 @@ var Video = (function() {
                        VideoUtil.setPos(v, 
VideoUtil.getPos(VideoUtil.getRects(VIDWIN_SEL), sd.width, sd.height + 25));
                }
                video = $(hasVideo ? '<video>' : '<audio>').attr('id', 'vid' + 
_id)
+                       .attr('playsinline', 'playsinline')
                        .width(vc.width()).height(vc.height())
                        .prop('autoplay', true).prop('controls', false);
                if (data) {
diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-player.js
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-player.js
index 82fbb0a..97ce4cc 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-player.js
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-player.js
@@ -84,6 +84,7 @@ var Player = (function() {
        player.create = function(canvas, _o, wb) {
                const vid = $('<video>').hide()
                        .attr('class', 'wb-video slide-' + canvas.slide)
+                       .attr('playsinline', 'playsinline')
                        .attr('id', 'wb-video-' + _o.uid)
                        .attr("width", _o.width)
                        .attr("height", _o.height)
diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/record/VideoPlayer.html
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/record/VideoPlayer.html
index 1882bbf..a46bbe4 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/record/VideoPlayer.html
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/record/VideoPlayer.html
@@ -21,7 +21,7 @@
 <html xmlns:wicket="http://wicket.apache.org";>
 <wicket:panel>
        <div class="video" wicket:id="container">
-               <video wicket:id="player">
+               <video wicket:id="player" playsinline="playsinline">
                        <source wicket:id="mp4" />
                </video>
        </div>

Reply via email to