Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add muted option to embeddable player #909

Merged
merged 12 commits into from
Jun 12, 2017
Prev Previous commit
Next Next commit
pass muted option through to PlayerContainer
  • Loading branch information
tjenkinson authored Jun 12, 2017
commit 48caea48331a12077218f4296ed2802cabef2a6e
5 changes: 3 additions & 2 deletions app/assets/src/app/pages/embed/player-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ $(document).ready(function() {
var autoPlayVod = $(this).attr("data-auto-play-vod") === "1";
var autoPlayStream = $(this).attr("data-auto-play-stream") === "1";
var vodPlayStartTime = $(this).attr("data-vod-play-start-time") === "" ? null : parseInt($(this).attr("data-vod-play-start-time"));
var muted = $(this).attr("data-muted") === "1";
var ignoreExternalStreamUrl = $(this).attr("data-ignore-external-stream-url") === "1";
var bottomBarMode = $(this).attr("data-hide-bottom-bar") === "1" ? "none" : "full";
var initialVodQualityId = $(this).attr("data-initial-vod-quality-id") === "" ? null : parseInt($(this).attr("data-initial-vod-quality-id"));
Expand All @@ -75,7 +76,7 @@ $(document).ready(function() {
require(["app/components/player-container"], function(PlayerContainer) {

// replace the player-container on the dom with the PlayerContainerComponent element when the component has loaded.
playerContainer = new PlayerContainer(playerInfoUri, registerWatchingUri, registerLikeUri, recommendationsUri, enableAdminOverride, loginRequiredMsg, embedded, autoPlayVod, autoPlayStream, vodPlayStartTime, ignoreExternalStreamUrl, bottomBarMode, initialVodQualityId, initialStreamQualityId, disableFullScreen, placeQualitySelectionComponentInPlayer, showTitleInPlayer, disablePlayerControls, enableSmartAutoPlay);
playerContainer = new PlayerContainer(playerInfoUri, registerWatchingUri, registerLikeUri, recommendationsUri, enableAdminOverride, loginRequiredMsg, embedded, autoPlayVod, autoPlayStream, vodPlayStartTime, ignoreExternalStreamUrl, bottomBarMode, initialVodQualityId, initialStreamQualityId, disableFullScreen, placeQualitySelectionComponentInPlayer, showTitleInPlayer, disablePlayerControls, enableSmartAutoPlay, muted);

playerContainer.onLoaded(function() {

Expand Down Expand Up @@ -178,4 +179,4 @@ $(document).ready(function() {
});

});
});
});