Skip to content

Commit

Permalink
Merge pull request #4953 from avalonmediasystem/ios-fs-captions-bugfix
Browse files Browse the repository at this point in the history
Fix for ios fullscreen captions not displaying
  • Loading branch information
cjcolvar authored Nov 15, 2022
2 parents ce38462 + e1e3882 commit 03f4d3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/views/modules/player/_video_element.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Unless required by applicable law or agreed to in writing, software distributed
height="<%= @player_height || 270 %>"
data-canvasindex=0
poster="<%= section_info[:poster_image] if f_start == 0 %>"
preload="auto">
preload="auto"
playsinline="true"
webkit-playsinline="true">
<% section_info[:stream_hls].each do |hls| %>
<source src="<%= hls[:url] %>" type="application/x-mpegURL" data-quality="<%= hls[:quality] %>"/>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ Object.assign(_player.config, {

fullscreenText: null,

useFakeFullscreen: false
useFakeFullscreen: true
});

Object.assign(_player2.default.prototype, {
Expand Down Expand Up @@ -1462,6 +1462,10 @@ Object.assign(_player2.default.prototype, {
t.setControlsSize();
}, 500);

if(_constants.IS_ANDROID || _constants.IS_IOS) {
t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'overlay-button').style.display = 'none';
}

if (isNative) {
t.node.style.width = '100%';
t.node.style.height = '100%';
Expand Down

0 comments on commit 03f4d3d

Please sign in to comment.