Added: 1 year ago
From: optikalefxx
Views: 38,240
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (68)

Sign In or Sign Up now to post a comment!
  • Hey can you help me make it so my members can view the videos i post on their ipods and ipads the site is clonewars . tk (wiouth the space) 

  • Unfortunately, This went a little fast for me. I didn't quite understand what this was for. Are we trying to make the videos from YouTube and Vimeo appear on JUST the iPad & iPhone or are we trying to use this for all smartphones (I.E. - iPhone, iPad, Android, Windows, etc, etc.)?

  • If you're doing this on a large site with lots of different javascripts embedded in it, please for your own sake have a programmer look at it and fix the issues with global variables, user agent detection instead of feature detection, and with document.write which is a performance killer.

  • @SeanBlader I agree with most of this, but the general rule of thumb is to use feature detection instead of user agent sniffing. Not the other way around. You don't want to hinder html5 devices if they can use html5 video just because you only allow iphone and ipad.

  • i had a client who couldn't watch my embedded video on his ipad and i know nothing about code but i fixed it within 30 seconds after watching this. you're like a magical smartdude fairy. thank you!

  • @blimpified should i take offense to that? lol. thanks!

  • thank you! i had a client who couldn't watch my embedded video on his ipad and i know nothing about code but i fixed it within 30 seconds after watching this. you're like a magical smartdude fairy. thank you!

  • Really awesome video! Thanks much!

    P.S. You might want to post that top code in your description too.

  • the user agent string looks very version specific... won't it stop working with a newer version of ipad, or an update, etc?

  • hey man your video is really good. i'm a little new to this coding world. i'm trying to watch facebook videos on my ipad. how did you bring up the html 5 window on your computer. i'm running mac os 4.3 on my ipad.

  • Dont work with VIMEO, how can i make it to WORK?

  • @estelalim Vimeo is now html5 comparable by default.

  • @optikalefxx I'm plus member on VIMEO, but i dont redirect users to vimeo to watch my videos, i need to embed html5 on website and i dont know how can i make it, can you help me?

  • @estelalim vimeo gives you an Iframe embed code. Use that. It will be html5 on ipad and iphone, and flash for others.

    Thats the best you can do - you could steal the raw mp4 file, but they can come after you for that.

  • They can sometimes automatically size in some Internet browsers, but it probably wouldn't be that good.

  • Aye... 4:55 = absolute user experience fail. 

  • Hmmm, I still have something wrong.

  • @PHILRESCUE Send me your code, ill take a look.

  • Has anyone figured out the code for getting this to work on Firefox?

  • Has anyone figured out the code for getting this to work on Firefox?

  • @PHILRESCUE you need to encode your videos in OGG format. use FireOGG or FFMPEG to do that. OR for firefox 4.0, you can encode in webM format.

  • @optikalefxx OK, thats what I was assuming, but lets just make this clear for us idiots :) I need to convert my video file to a. .ogg file format, upload it, so the browser will now shoe the .ogg file correct?

    Now, why before adding this ipad code did the firefox play the flash video but won't now?

  • @PHILRESCUE Close, you need to encode it as OGG, upload the video, change your <video tag to have 2 <source tags inside. The top one being the orignal mp4 source, the next one being the OGG source. That way when firefox fails to play the mp4, it will move on to play the OGG. Doing it this way will allow iPad to still play the mp4.

  • @optikalefxx OK, but why did the original code stop the flash from playing.  Did I right the code wrong? The original video I had is still there as a flash.

  • @PHILRESCUE Yea, if you did it correctly then the flash would still play. Test your document.write("") to make sure your detection and IF statement is correct.

  • Has anyone figured out the code for gettingn this to work on Firefox?

  • Hi,

    This is really helpful. Can you give advice on doing this for TED.com videos. I want to embed these on my blog somnetimes and have Iphone, Ipad people be able to see them. Any ideas?

  • Worked like a charm for me! Thanks so much!

  • have you had any luck getting the code to work for ANDROID / Skyfire /Browser? I have purchased the Chinese knock off of the iPad called the aPad, running Android 1.5

    I need to recode my sites to work on this thing...any suggestions?

  • Great video man, worked perfectly. It might be worth dropping that code into the info box.

  • How do you make the youtube video also play in html5 in google chrome and safari?

    I find it weird that through that simple code, suddenly youtube videos get shown well on iPhone's, iPods and iPads!

  • @arbitterr Youtube is a partner with apple.

    I'm sure mobile safari recognizes YouTube.

  • @optikalefxx Yesyes, with your simple code I've made it possible that in normal webbrowsers it's in flash but on my iPod it's in html. But I was wondering if you could also make it standard html for normal Safari and google chrome, perhaps using the <video> tag?

  • @arbitterr totally. Use <video> tags and then inside the tags have your flash code. Basically browsers that can't use <video> will use the flash instead. I plan on a video soon of this.

  • @optikalefxx I don't really know where to put the video tag or what to put in it, tried some possibilities but didn't quite do the trick... But I guess I'll wait for the video!

    thanks :)

  • @arbitterr Basically

    <video src='' type=''>

     <object blah blah>

    </video>

    the object bla blah is the code you get from youtube for embedding, or the code you get from any flash video for embedding video

  • @optikalefxx Though I still don't get what I need to put in the src'' and type'' parts of the video tag..

  • @arbitterr don't worry then, ill make a video on it soon. this week.

  • Did you find a solution to change the resolution of YouTube HTML 5 on safari? Using the iPad? Thanks.

  • @Martins2012 youtube is working on fixing it, but it has worked quite a few times as of late. I sold my iPad so i can't test it anymore.

  • @optikalefxx Its none of my business, but please, do tell why you sold your iPad? I'm just curious, I would only sell mine to buy the next iPad.

  • @Martins2012 Gonna buy iPhone 4 with the money I got For it.

  • @optikalefxx Ohhhh, I thought about this too, it's a difficult decision for me, I decided to keep the iPad tethered to tmobile, because the screen on the iPhone is too small. I really think the next iPad will have camera to do that iphone4 magic. I will wait. Thanks for your reply.

  • If this is really all. It's not a big deal after all

  • optikalefxx I have a website with Justin videos embedded into it. Will this script also work for those type of videos?

  • @fierced1989 what are Justin videos?

  • justin. tv videos, the broadcasting website.

  • is there a way to make it play automatically like a flash video would? how much u pay for ur ipad? is it gud?

  • Hey nice video, the true is you can buy USA iTunes gift cards at this store  iTunesgiftScards at COM, they are legit iTunes Gift card store, they deliver to me by email, and Fast, my advise to you :)

    - iTunesGiftSCards . C O M with an S after the Gift :)

  • Hmmmm you should check if html5 is supported and use that. Cause I want to see your videos with html5 on the desktop as well =)

  • @dmitrijledkov Very true. But until I make a desktop interface I'll let the flash video do their thing. The html5 controls are plain.

  • Thanks, I was interested in the whole issue because the blog I write to (and post losts of videos) has some users who don't have flash but most likely use firefox. The "firefox only supports theora" piece of info was thus very useful to me :)

  • Thank you @optikalefxx, finally I have downloaded Permute for Mac, I tried encoding videos by myself but I had a lot of trouble with movie size.

  • Great video, could you please tell us what's the max video size that can be embedded in the iPad? (Safari)

  • @creatiu so the ipad resolution is 1024x768 so i wouldn't make the SIZE of the video larger than that, or your letting iPad scale it down. That doesn't mean you can't make 1080p video which is 1920x1280, but the size on the website shouldn't be larger than 1024x768

  • Do you know how to enable a thumbnail (static image before play) with the Vimeo embed?

  • Flash should die.

  • How do I embed this in a wordpress post?

  • For the life of me, I cannot get this to work.

  • thanks love this. your sound usually isn't this bad, but oh well. thanks!

  • @redsxtreme yea, not sure what happened, I think my mic is dying

  • Why Is It That My Hulu Is Not Working? .. I Need Help

  • @RightWingBashers hulu doesn't support html5 yet

  • Thanks! This is a lot of help! :)

    Could you do a tutorial on a jquery slider? None of the ones I've seen explain very well.

  • @petab10 By slider do you mean a thing you drag back and forth?

  • COOL!!!!!  <3 great vid! :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more