How to hide Youtube play button on mobile device if video is added as background2019 Community Moderator ElectionHow can I know which radio button is selected via jQuery?How do I give text or an image a transparent background using CSS?How to prevent buttons from submitting formsHow do I get a YouTube video thumbnail from the YouTube API?How to create an HTML button that acts like a link?What is the best way to detect a mobile device in jQuery?Cannot display HTML stringvimeo iframe for IOS how to hide “like” and “share” button from right side of UIWebViewCSS background video sizing issue with large videosYouTube iFrame API Video Intermittently Playing on Mobile Devices
How does insurance birth control work?
Are there other characters in the Star Wars universe who had damaged bodies and needed to wear an outfit like Darth Vader?
“I had a flat in the centre of town, but I didn’t like living there, so …”
Should I use HTTPS on a domain that will only be used for redirection?
3.5% Interest Student Loan or use all of my savings on Tuition?
Is there a way to find out the age of climbing ropes?
Why won't the strings command stop?
Why is it "take a leak?"
What is better: yes / no radio, or simple checkbox?
How can I be pwned if I'm not registered on the compromised site?
Giving a talk in my old university, how prominently should I tell students my salary?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Understanding the template
Correct physics behind the colors on CD (compact disc)?
Why is my Contribution Detail Report (native CiviCRM Core report) not accurate?
Can I solder 12/2 Romex to extend wire 5 ft?
Split a number into equal parts given the number of parts
When do _WA_Sys_ statistics Get Updated?
Every subset equal to original set?
PTIJ: Aharon, King of Egypt
Deal the cards to the players
Has Wakanda ever accepted refugees?
Caulking a corner instead of taping with joint compound?
Meaning of word ягоза
How to hide Youtube play button on mobile device if video is added as background
2019 Community Moderator ElectionHow can I know which radio button is selected via jQuery?How do I give text or an image a transparent background using CSS?How to prevent buttons from submitting formsHow do I get a YouTube video thumbnail from the YouTube API?How to create an HTML button that acts like a link?What is the best way to detect a mobile device in jQuery?Cannot display HTML stringvimeo iframe for IOS how to hide “like” and “share” button from right side of UIWebViewCSS background video sizing issue with large videosYouTube iFrame API Video Intermittently Playing on Mobile Devices
I am trying to use video as a background which works fine & i can loop it but it doesnt work for following
loop=1
doesn't loop again fromstart=180
when video endssame code show video with with play button on iphone but doesnt play the video which i belive autoplay is now blocked by iphone but i cant play the video when i hut play button.
how can i only show thumbnail image on YT video without play button
Can i loop video between start & end time
CODE
<div class="videobg">
<div class="videobg-width">
<div class="videobg-aspect">
<div class="videobg-make-height">
<div class="videobg-hide-controls">
<iframe src="https://www.youtube.com/embed/tOjJ2BhKCnw?controls=0&start=180&autoplay=1&loop=1&playlist=tOjJ2BhKCnw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
var timeoutId;
var $videoBgAspect = $(".videobg-aspect");
var $videoBgWidth = $(".videobg-width");
var videoAspect = $videoBgAspect.outerHeight() / $videoBgAspect.outerWidth();
function videobgEnlarge()
console.log('resize');
windowAspect = ($(window).height() / $(window).width());
if (windowAspect > videoAspect)
$videoBgWidth.width((windowAspect / videoAspect) * 100 + '%');
else
$videoBgWidth.width(100 + "%")
$(window).resize(function()
clearTimeout(timeoutId);
timeoutId = setTimeout(videobgEnlarge, 100);
);
$(function()
videobgEnlarge();
);
CodePen: https://codepen.io/anon/pen/XGpXzd
javascript html ios video youtube
add a comment |
I am trying to use video as a background which works fine & i can loop it but it doesnt work for following
loop=1
doesn't loop again fromstart=180
when video endssame code show video with with play button on iphone but doesnt play the video which i belive autoplay is now blocked by iphone but i cant play the video when i hut play button.
how can i only show thumbnail image on YT video without play button
Can i loop video between start & end time
CODE
<div class="videobg">
<div class="videobg-width">
<div class="videobg-aspect">
<div class="videobg-make-height">
<div class="videobg-hide-controls">
<iframe src="https://www.youtube.com/embed/tOjJ2BhKCnw?controls=0&start=180&autoplay=1&loop=1&playlist=tOjJ2BhKCnw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
var timeoutId;
var $videoBgAspect = $(".videobg-aspect");
var $videoBgWidth = $(".videobg-width");
var videoAspect = $videoBgAspect.outerHeight() / $videoBgAspect.outerWidth();
function videobgEnlarge()
console.log('resize');
windowAspect = ($(window).height() / $(window).width());
if (windowAspect > videoAspect)
$videoBgWidth.width((windowAspect / videoAspect) * 100 + '%');
else
$videoBgWidth.width(100 + "%")
$(window).resize(function()
clearTimeout(timeoutId);
timeoutId = setTimeout(videobgEnlarge, 100);
);
$(function()
videobgEnlarge();
);
CodePen: https://codepen.io/anon/pen/XGpXzd
javascript html ios video youtube
add a comment |
I am trying to use video as a background which works fine & i can loop it but it doesnt work for following
loop=1
doesn't loop again fromstart=180
when video endssame code show video with with play button on iphone but doesnt play the video which i belive autoplay is now blocked by iphone but i cant play the video when i hut play button.
how can i only show thumbnail image on YT video without play button
Can i loop video between start & end time
CODE
<div class="videobg">
<div class="videobg-width">
<div class="videobg-aspect">
<div class="videobg-make-height">
<div class="videobg-hide-controls">
<iframe src="https://www.youtube.com/embed/tOjJ2BhKCnw?controls=0&start=180&autoplay=1&loop=1&playlist=tOjJ2BhKCnw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
var timeoutId;
var $videoBgAspect = $(".videobg-aspect");
var $videoBgWidth = $(".videobg-width");
var videoAspect = $videoBgAspect.outerHeight() / $videoBgAspect.outerWidth();
function videobgEnlarge()
console.log('resize');
windowAspect = ($(window).height() / $(window).width());
if (windowAspect > videoAspect)
$videoBgWidth.width((windowAspect / videoAspect) * 100 + '%');
else
$videoBgWidth.width(100 + "%")
$(window).resize(function()
clearTimeout(timeoutId);
timeoutId = setTimeout(videobgEnlarge, 100);
);
$(function()
videobgEnlarge();
);
CodePen: https://codepen.io/anon/pen/XGpXzd
javascript html ios video youtube
I am trying to use video as a background which works fine & i can loop it but it doesnt work for following
loop=1
doesn't loop again fromstart=180
when video endssame code show video with with play button on iphone but doesnt play the video which i belive autoplay is now blocked by iphone but i cant play the video when i hut play button.
how can i only show thumbnail image on YT video without play button
Can i loop video between start & end time
CODE
<div class="videobg">
<div class="videobg-width">
<div class="videobg-aspect">
<div class="videobg-make-height">
<div class="videobg-hide-controls">
<iframe src="https://www.youtube.com/embed/tOjJ2BhKCnw?controls=0&start=180&autoplay=1&loop=1&playlist=tOjJ2BhKCnw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
var timeoutId;
var $videoBgAspect = $(".videobg-aspect");
var $videoBgWidth = $(".videobg-width");
var videoAspect = $videoBgAspect.outerHeight() / $videoBgAspect.outerWidth();
function videobgEnlarge()
console.log('resize');
windowAspect = ($(window).height() / $(window).width());
if (windowAspect > videoAspect)
$videoBgWidth.width((windowAspect / videoAspect) * 100 + '%');
else
$videoBgWidth.width(100 + "%")
$(window).resize(function()
clearTimeout(timeoutId);
timeoutId = setTimeout(videobgEnlarge, 100);
);
$(function()
videobgEnlarge();
);
CodePen: https://codepen.io/anon/pen/XGpXzd
javascript html ios video youtube
javascript html ios video youtube
edited 13 hours ago
Learning
asked 14 hours ago
LearningLearning
9,58131127254
9,58131127254
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021266%2fhow-to-hide-youtube-play-button-on-mobile-device-if-video-is-added-as-background%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021266%2fhow-to-hide-youtube-play-button-on-mobile-device-if-video-is-added-as-background%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown