Support Forums for LiveMesh Themes & Plugins › Forums › Agile Theme Support › video when I visit the page from iPhone
- This topic has 7 replies, 4 voices, and was last updated 11 years ago by
Raghavendra.
-
AuthorPosts
-
April 15, 2014 at 3:10 pm #5964
James
MemberHi guys,
When I visit the site from my pc, everything is fine, I can see YouTube videos with auto play on the header but when I visit the site from my iPhone, video do not appear. what can I do if I want them to appear in the responsive way as well?
Thanks.April 16, 2014 at 4:17 pm #5993Ernesto
MemberHi, could you send us a link so we can check the issue by ourselves?
April 16, 2014 at 4:49 pm #5994James
MemberSure, here you have:
http://bit.ly/1ezuFi0
if you visit this page from your laptop you will see the video
if you do it from your iPhone,there is no video
please, let me know as soon as possible, I really need to fix this-.April 19, 2014 at 4:15 am #6083Raghavendra
ModeratorAt present, the video shortcode does not support mobile devices due to a numbers of reasons – restrictions on videos on mobile devices due to battery concerns and limited resources, flash support. Best way to go about this is to have two separate sections for mobile and desktop and then use media queries or CSS to hide/show the appropriate sections on the respective devices. So, you can have two page sections desktop-video and another mobile-video. For mobile video, you can use the regular youtube video URL. Then use CSS like this
.mobile-video { display: none; } .mobile-device .desktop-video { display: block; } .mobile-device .mobile-video { display: block; }Hope that helps.
December 12, 2014 at 12:01 pm #11026tewo
MemberI think the posted code is wrong. This CSS should work:
.mobile-video {display: none;} .mobile-device .desktop-video {display: none;} .mobile-device .mobile-video {display: block;}Then wrap your video in HTML like this:
<div class=”mobile-video”>
your mobile video goes here
</div>
<div class=”desktop-video”>
your desktop video here
</div>Show, don’t tell. And test before posting.
(LiveMesh: Your cr*ppy forum does not support HTML tags in code blocks.)
December 12, 2014 at 1:33 pm #11033Raghavendra
Moderatoryour mobile video goes hereyour desktop video hereDecember 15, 2014 at 8:39 am #11073tewo
MemberI’m glad you got it working. (The code snippet that was incorrect was the CSS bit.)
December 15, 2014 at 12:23 pm #11078Raghavendra
ModeratorYeah – I saw that. Thanks for the correction posted by you. To post HTML, pls use pre tag – that should work most of the time.
-
AuthorPosts
- The forum ‘Agile Theme Support’ is closed to new topics and replies.