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

Fixes YouTube on iOS and Android #1383

Merged
merged 2 commits into from
Dec 10, 2014
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
2 changes: 0 additions & 2 deletions src/css/mediaelementplayer.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

.me-plugin {
position: absolute;
height: auto;
width: auto;
}

.mejs-embed, .mejs-embed body {
Expand Down
7 changes: 4 additions & 3 deletions src/js/mep-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,10 @@
t.setControlsSize();
});

// TEMP: needs to be moved somewhere else
if (t.media.pluginType == 'youtube' && t.options.autoplay) {
//LOK-Soft: added t.options.autoplay to if -- I can only guess this is for hiding play button when autoplaying youtube, general hiding play button layer causes missing button on player load
// This is a work-around for a bug in the YouTube iFrame player, which means
// we can't use the play() API for the initial playback on iOS or Android;
// user has to start playback directly by tapping on the iFrame.
if (t.media.pluginType == 'youtube' && ( mf.isiOS || mf.isAndroid ) ) {
t.container.find('.mejs-overlay-play').hide();
}
}
Expand Down