HTML - Responsive Youtube Vids Going To Small On Devices
Hi ,
I am playing around with the code for getting videos to resize in response to what device they are being viewed on . The youtube screen is 50% on desktop but when i minimise the youtube box on other media its making it to small for that devices .. .size-one .fluid-width-video-wrapper iframe, .size-one .fluid-width-video-wrapper object, .size-one .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 50% !important; height: 50% !important; <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="https://raw.github.com/davatron5000/FitVids.js/master/jquery.fitvids.js"></script> <script> // FitVids jQuery(document).ready(function(){ // Target your .container, .wrapper, .post, etc. jQuery("#wrapper").fitVids(); }); </script> <div class="my-size-one"> "DUozxfgsclY" </div> <div id="featured"> <h3>video tests...</h3> <div class="size-one"> <iframe src="http://www.youtube.com/embed/DUozxfgsclY" frameborder="0" width="560" height="315"></iframe> </div> Anyone know why ? Thanks in advance and im sorry if this is in the wrong posting place. If so can you tell me where it needs to go . adam Similar TutorialsHi I recently used an emulator service to see how a page I made would look on mobile devices. note that it's just a web page - not an app for any of them. Here's the screenshot for four of them: I want it to look like the last one on mobile phones, so that the screen is filled. how do I do that on the iPhone and in Chrome? The wrapper DIV width is 302px. Thanks for your time and help. Shaun Hi peeps So I finally sorted out my website. Tested it on the main browsers and everything was okay. I uploaded it and then went to show a friend on my Iphone and waddya know, it doesn't display properly. For some reason the background image tiles 4 times. And this goes for Iphone, Ipad, and Ipod. There are parts of the site that use flash so It's not optimised for Iwhatevers anyway, but I'd definately like to sort out this "first impression" problem. The site is an adult site (Don't worry there is nothing more than sexy images to be seen. no genitalia or anything). It's www.xturnmeonx.com Any ideas peeps. Hi all, I have desgiend and coded an HTML newsletter to be compatible with mobile devises however when testing this newsletter through the email marketing service the images do not load automatically. My service provided says its something with the coding and has nothing to do with the fact that I'm sending email through their service. Sidenote: when I test the newsletter and send it through my outlook via the "send page by email" in browser ...images do load automatically when I view it on my blackberry. :/ Here's a link to the page http://www.globalaerospace.com/ftp/e...012/index.html Any feedback would be greatly appreciated. I'm not so good with programming., mainly a designer Hi everyone. I need some advice. I currently run a website for the local snooker league here, http://www.ldbsa.co.uk, and I have a mobile version of the site, http://mobile.ldbsa.co.uk. Currently these are two separate sites, with a PHP script running on the pages to determine what browser and device is being used, and being re-directed to the mobile site should you be on a mobile device. My main issue with this is that I have to update both websites separately, as they are two compeltely independent websites, both pulling the same data in from a MySQL database though. What I would like to do, is to have the same website for both, with a different stylesheet loading depending on the device. This obviously has its advantages in that I only have to update the site once, but the disadvantages come when coding the site. One other method I though about doing is to turn virtually all areas of the site into database driven, including menu items, headers, references to images etc. This way, all I need to do is the write two different stylesheets for the main structure and look of the both versions. The main difficulty I see happening is coding a structure in html that will work for both mobile nad desktop devices. Is this the best way to go about it? Or would you advise keeping the two sites separate? I need to create an HTML page for mobile devices that displays videos. Ideally, it needs to work with older phone browsers too, so I was hoping someone could help me with the following questions: 1. What doctype should I use (XHTML Basic 1.1?)? 2. What's the best way to embed the video in the HTML? 3. If the video can't be embedded, is it good practice to (also?) provide a link so the user can download the video to show in a separate video player application? 4. What video media type(s) are best supported in mobile devices? NB - I will be using Java to create the HTML, so if there's a need to get any request headers, etc. then I could do that in order to provide the best output according to the device. Thanks in advance, James hi well i have one query regarding allignment i am trying to embed sm youtube videos in one of website but i am unable to allign thm as i wanna put thm to center plz help thanx in advance Code: <div allign="center"> <object width="225" height="144"> <param name="movie" value="http://www.youtube.com/v/pa-iiKJ1QHI&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6"> </param> <param name="allowFullScreen" value="true"> </param> <embed src="http://www.youtube.com/v/pa-iiKJ1QHI&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6" type="application/x-shockwave-flash" div allign="center" allowfullscreen="true" width="225" height="144"> </embed> </object> </div > When I embed a YouTube video in my webpage, it is left-justified. What HTML tweak do I need to center this puppy? The standard code is: <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/NA0iGQCd4TM"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/NA0iGQCd4TM" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> Thanks in advance for the help. I am looking to do something, that seems a bit complex, because I cannot find anything similar online to use as an example. In simple terms: I am trying to show on a web page a display of YouTube content from a specific user, that will automatically update through the RSS feed showing the latest videos, and when a user clicks on the video, it plays on the same web page. I have found HALF of this, with a script called video box, however you need to manually enter the videos in yourself. I am looking for this to be an automatic thing and it seems that RSS is the best way to do that. If anyone has any suggestions please respond. So I found this website: http://blogoscoped.com/youtube-api/ And I want to be able to use some of the code on a program I am using that will write the HTML to a GUI. But, if I simply copy the source and then paste to a blank HTML and run (I do have the SWFObject) none of the commands register. I can see all of the windows/objects, but clicking anything does nothing. Any help would be awesome! Sorry do not know which forum to post this. I would like to post videos on my site but behind my user authentication. It would be nice to use the YouTube service since it optimizes automatically but I do not want the videos public. I already have some public ones on my YouTube channel. Is there an alternative method I can post videos on my authenticated pages that cannot be access with a direct link? Hi, I'm looking to be able to put a little youtube login onto my site. It's a personal site, where i have some private videos embedded, and i don't want to need to go to youtube each time to login, but rather do it directly out of my site. So, i need this login to do 2 things 1) successfully login me into my youtube account 2) bring me back to my site, instead of taking me to the youtube homepage I tried copying the relevant code from the page source, and placing it on my site, but, it wouldn't even log me in. I'm pretty clueless when it comes to trying to examine code and figuring out what does what, and what i need to change to get it the way i want. Any help at all - if at all possible specific instructions - would be greatly appreciated. Thanks all! Hello, IE8 can't read my Youtube video here : http://www.imi-solutions.com/?page_id=1631 Thank you for your help ! <object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="0" width="0" data="http://www.youtube.com/v/link&autoplay=1&rel=0"> <param name="allowScriptAccess" value="never" /> <param name="allowNetworking" value="internal" /> <param name="movie" value="http://www.youtube.com/v/link&autoplay=1&rel=0" /> </object> I want to add a code to make the YouTube audio off. Any ideas? Hi, What is the html code to have a Youtube video on my website? Is it possible to embed just the Audio with a stop, pause, progress display? What is the html for this hello, i want to put a youtube video on my site,for example <object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/QmIDEGtFfhU&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/QmIDEGtFfhU&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object> as you can see the size is "425 with 355".but i dont want that size,its too big for my site. so i tryed to modify it, putting width="220" and height="200" in both object and embed. i tested my page,the movie window is indeed smaller but the video image IS NOT.you know that there is youtube logo on each clip when you put it on a website,and on my page that logo is seen on half. can i make it to show full image? (i hope you understand the problem) thank you. Hey, I embedded a youtube video on my site and then I tweak the youtube embed video code and added in hidden=true and &autoplay=1&loop=1. I hid the video and made it autoplay and loop, and got background sound. Works great and works both on IE and Firefox. But I'm just wondering, is it against youtube's rules to hide their videos on your site. I feared that so I took the video off. hi, i have a twelve videos and want upload on my website...! i want to create a youtube video gallery like in which video play on left hand side and other video thumbnail on right hand side with paging...! and all the pages have this gallery...! i dont know whatz the method or tool to create video gallery...! if u have any idea and tool or any suggestion kindly inform me...! last thing is that i dont want to use any database...! is it possible? Hi everyone! I'm new here! And i got a real weird problem! Like you can see on my image, i use a Spry Horizontal Menu and a Youtube Video. And when i use Firefox the Menu is over the video (Ok) But when i use other kind of browsers the video is over the menu, only able to see the 3 sub menus! I'm using javascript in the Spry Horizontal Menu and the iframe embed code in the youtube video. As already happened this to anyone! Someone know how to solve it? What code do you need to see? Please help Website URL - http://www.cae.eu5.org How do I post a youtube video at a 30deg angle? |