Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions app/assets/stylesheets/includes/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -320,21 +320,6 @@ strong {
// ////////////////////////////////////////////////////////////
// Media

/*
Browsers and/or MediaElement.js don't seem to honor these,
but let's document it here anyway.
*/

video {
height: 270px; /* MediaElement.js default height */
width: 100%;
}

audio {
height: 40px;
width: 100%;
}

/// additional MediaElement.js styles

.mejs__overlay-button {
Expand Down
1 change: 1 addition & 0 deletions app/views/player/_player_head_additional.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
// (when the HLS stream contains WebVTT captions)
hls: { enableWebVTT: false },
iconSprite: "/assets/icons/mejs-controls.svg",
stretching: 'responsive',
success: function (mediaElement, originalNode, instance) {
if (typeof dashjs !== "undefined") {
// workaround for mediaelement/mediaelement#2964
Expand Down
4 changes: 1 addition & 3 deletions app/views/player/_video.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<%# TODO: figure out how to programmatically set height with JavaScript, or something %>
<%# should match app/assets/stylesheets/application.scss %>
<video id="video-<%= index %>" width="100%" height="270" preload="<%= preload %>" controls crossorigin="anonymous">
<video id="video-<%= index %>" preload="<%= preload %>" controls crossorigin="anonymous">
<% if browser.platform.ios? || browser.device.ipad? %>
<source src="<%= track.hls_uri %>" type="<%= BerkeleyLibrary::AV::Track::SOURCE_TYPE_HLS %>"/>
<%# a separate track tag is not necessary here for captions as Wowza sends them as part of the HLS stream, and iOS will auto discover them %>
Expand Down