How do I embed the different video formats that are required for different browsers?

I have a short video in the different formats required to play across different browsers but I can't seem to get the HTML 5 code correct. I can only get it to play in one browser at a time. It seems to only play in the browser that has the video code first. What should the code look like?

Yah the code goes just like that, the first line "var vid_html" declaires the variable. += just adds everything after it to what was already there. You've probably seen this with numbers before: some_number += 50; (will increment that number by 50 more than what it was previous to calling that)
Another way to write the above is like this:
var vid_html = '<video width="320" height="240" controls poster="video/v4b2.jpg">'+
                         '<source src="video/v4b.mp4" type="video/mp4">'+
                         '<source src="video/v4b.oggtheora.ogv" type="video/ogg">'+
                         '<source src="video/v4b.webmsd.webm" type="video/webm">'+
                         'Your browser does not support HTML5 video'+
                       '</video>';
It's just appending strings together to be a little more readable. And I removed your reference to "var vid=sym.$("holder");" because you're only calling "vid" to set the html text.

Similar Messages

  • How can I use the color adjustments interface that shows up for camera RAW on jpeg files?

    How can I use the color adjustments interface that shows up for camera raw on other files types? The HLS controls had the secondary color adjustments (6 colors instead of the 3). Plus, it had same vibrancy and a better Curves interface. Yesterday was the first time I imported raw into Photoshop CS5 and I got that really cool interface. What is that? Can I use that on other file formats?

    Actually I am using the Tradional Chinese Version, when I try to edit the jpg file with camera raw, the system shows that there is no camera raw plug-in. The cmaera raw never work.

  • How do you regulate the number of emails that are kept on your phone before they are deleted?

    HOW DO YOU CHANGE THE NUMBER OF EMAILS THAT ARE KEPT ON YOUR PHONE BEFORE YOU DELETE THEM?

    Your carrier sets this by time, not the number of "rings" since different ring tones take different times/ring.  The typical setting is 30 seconds, sometimes up to 40 seconds.  Contact your carrier to shorten it.

  • What are the essential services that are required for ensuring server is healthy up ?

    Hi All,
    Please advise me What are the essential services that are required for ensuring server is healthy up ?
    Warm regards,
    jk1510

    The easiest way to find the Health report of server or workstation follow the below steps which is very much easiest way to get it done
    There are a few ways to find this in Windows Server 2008.
    First click “Start” and type “Generate a system health report”
    Or second navigate your way to the Control Panel choose “System and Security” and choose “Generate a system health report”.
    The last is to type “Generate a system health report” into the “Search Control Panel” box in the upper right hand corner of the Control Panel window.
    Once armed with this data it’s easier to refute or acknowledge an issue is at hand.
    BTW if you’re looking for this same thing in Windows 7 it’s there just buried a bit more.
    Search Performance in the Start Menu, choose “Performance Information and Tools”, click “Advanced Tools” from the menu on the left, and finally choose “Generate a system
    health report”.
    Ref: http://blogs.technet.com/b/rmontee/archive/2012/02/23/generate-a-system-health-report.aspx
    Exchange Queries

  • What is the best video format to export to for use on the web?

    I am looking for a quick anawer.  What is the best format and size setting to use to export a video for use on a web page (I am using DreamWeaver to develop my web site and FCX to creat the movie).  I like the size and quality of the opening video on the Apple home page if anyone knows what that is.

    Use the  http streamimg preset so the movie will be compatible with a range of different devices.
    Russ

  • How an i compare the two forms ( script) that are in two systems ?

    Hi,
    How can I compare the two forms(sap script)  which are in different versions  or systems? One form is in D22 and other form is P22 .
    My requirement is to change the form when they are different.
    Thanks,
    Suresh.

    Hi,
    You can download the form info for each script and compare these two files.
    In the SAPscript choose Utilities -> Form info and save this as a file.  As they are structured in the same format you can then look for differences in these files rather than having to look through the form window by window.
    Regards,
    Nick

  • How can I show the recipients of emails that are invisible now?

    My email screen shows the sender, the subject and the date and time but not the recipients? How do I get the screen to show recipients?

    There is a small icon at the far right end of the header bar. Clicking it brings up all column options. Check the columns you want displayed.

  • Need help with pages.  How do I remove the " " from my flyer that are around  the text box

    How do I remove the blue + on this???????? HELP please!!!!!!!!!! This is done on pages for IOS
    <Edited by Host>

    Hi Baurhouse,
    I case you are wondering why your post was <Edited by Host> I reported your post for your own protection. It showed an email address and a postal address. Not good to show personal details on this public forum .
    Regards,
    Ian.

  • Can someone explain the difference in what Passwords are required for Apple sites?

    It seems that every time I want to login to MobileMe, or the Apps store or this Forum site my passwords rarely work and I end up resetting the one I'm trying to use.
    I do keep track of my passwords.   So, I'm wondering if each site I listed needs a different password.  Plus, I continually get errors in my MacMail.  It shows an error that needs a password for my IMAP... can't remember exactly what it says...
    I hope that's enough info for someone to help me out.... thx

    Hi..
    It seems that every time I want to login to MobileMe, or the Apps store or this Forum site my passwords rarely work and I end up resetting the one I'm trying to use.
    Might be corrupted keychains. Your passwords are stored in Keychain Access.
    Launch Keychain Access located in /Applications/Utilities
    Select Passwords on the left.
    Type   mobileme   in the search field top right corner of the window.
    Now right or control click that keychain then click Delete.
    Now type  daw   in the search field.  (that's your access to the Apple forums),
    Right or control click the daw.apple.com keychain then click Delete.
    Now from the Keychain Access menu bar top of your screen click Keychain Access > Keychain First Aid. Enter your admin password then click Verify, if necessary, click Repair.
    Now launch the App Store. From that menu bar top of your screen click Store > Sign In
    Enter your Apple ID and current password. Click Yes when prompted to save that data to a new keychain.
    Do the same for MobileMe and the Apple forums.

  • How to limit the number of emails that are shown for each account

    Hi, I'm going from iOS 6.1 to my new 5s iOS 7 and I wanted to know if there was a way to limit the number of emails shown for each of my accounts? In iOS 6 there is a setting "show" where you can choose how many you would like to be loaded at a time from 50-1,000 , is there a setting similar to this and I am just not seeing it? Please help me asap. I have only logged in 3 of my 12 email accounts and already have over 13k emails loaded...

    You can't limit it to the last 50 messages, but you can limit it to the last 1000 messages in each "folder" (label).
    Go to the Gmail website and click on the gear icon to the top-right side.
    Click on Settings.
    Click on the "Forwarding and IMAP/POP" tab across the top of the Settings area.
    Towards the bottom of the IMAP section, change the "Folder Size Limit" setting to "Limit IMAP folders to contain no more than this many messages". By default 1000 is selected, though you can also choose 2000, 5000, or 10000.
    Click Save Changes at the bottom.

  • How can I limit the size of emails that are downloaded in Mail 6.2

    I currently have limited bandwith.  How can I set up Mail 6.2 to only download email headers for messages greater than 50 kb in size

    Thank you. I just needed to be pointed in the right direction. After looking over this stuff, including FilePermission, I think this may give me what I was looking for. It will be a while before I get to implementing it or testing something like this, I'm just trying to get a grasp on all of the things I need to do and how to approach it.
    By doing this I can control how much filespace it can use.
    I can control CPU usage by monitoring for extra threads that don't belong and killing or settings the priority on it.
    Now I just need to think of something to monitor how much memory the plugin uses. I suppose I could gc, then store the current memory usage, then execute the plugin, gc again, and measure the size again. Does that sound like a reasonable way to estimate it's memory usage? I'm not looking for tiny changes, I just want to see large, substantial increases.

  • My computer crashed and my hard drive is wiped out. How do I get the songs from itunes that are loaded on to my ipod back on my computer and in my itunes library?  In the simpliest terms possible, please.

    Anyone able to help me with this...I have to redo my ipod and my husbands...My back up was on my hardrive and now that is gone...All I have is what is on my ipod...

    How to use your iPod to move your music to a new computer

  • I believe my firefox is viewing some websites on my laptop in formats that are used for cellular devices. Sites like facebook, sports illustrated, yahoo are not functioning correctly but certain sites work fine.

    sits such as facebook, yahoo, and sports illustrated do not function correctly on firefox but they do on my internet explorer. I believes its somehow set itself into the same format used for cellular devices... My JSU.edu page says somethin about it being in (portal mode). It is also a different format now that normal.

    Hi @TheBigGiggle ,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP ENVY TouchSmart 17 Notebook PC and a keys not functioning correctly. Here is a document on cleaning the keyboard.
    I would start with air on the keys as sometimes debris can cause this issue.
    Here is a link to uninstall the keyboard. In the device manager have you uninstall all that is listed in keyboards, restart the computer after uninstalling, it should reinstall automatically and resolve any issues with the keyboard.
    Here is a link to keyboard troubleshooting.
    Here is a fix from Microsoft that might help.
    Let me know how this goes.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • What is the best video format to stream my movies?

    So I was just curious as or what the best video format would be to stream movies from my personal cloud to my device. The reason I ask is because I have the 32GB mode and alas I do not want to copy movies over only to delete them later. Plus I would have access to them on all my devices (PC, windows, and android....soon a Mac mini) currently I have them in the .avi format because it just would not make sense to have four different formats uploaded to ,my four terabyte personal cloud especially when I own hundreds of DVDs. Now I noticed that there is a bit of pixelation on my iPad Air when streaming, my upload speed is like 5mbps and download is close to 25mbps. I have several other devices communicating with my router, but they are inactive..so to say. The connection strength is strong (on my desk next to my bed. Speaking of streaming my movies how do I clear the actual cache (may not be called that on Apple). Thought it was on settings, but alas I was unable to find it.

    As long as your video is transferred via Firewire into a DV AVI type 2 file (I don't know your camera) your edit footable is the best you can get
    If what you want to create is a DVD, you already have Encore bundled with PrPro (I have the CS3 version of both)
    Simply export as DV AVI and give that file to Encore... then tell Encore to use the AUTOMATIC setting when creating the DVD
    Otherwise, work through all of the steps here http://ppro.wikia.com/wiki/Troubleshooting
    If your problem isn't fixed, report back with the DETAILS asked for in the questions at the end of that link

  • How can I keep the edited video which in project into Libray for re-edit ?

    How can I keep the edited video which in project into Libray for re-edit later ??
    As i used i movie 06 before....
    after i imported the videos in to the library, then i can drag the videos to the timeline(now is project)
    then edit it.
    After that i can just drag all the timeline clips which is edited to the library.So I can keep it for next time if i wanna re-edit.
    But Now if did all the editing at the library clips then drag to project, i can not drag the project clips back to library, so how can i keep it for my editing safty?
    I do not wanna to edit again the same clips from the library!!! as i need to edit many different short clips together then export to individual videos, and i may need to re-edit.
    or i can keep the edited video in project, then i can selected the clips which i willing to export, the rest video who in the project will not be export at the same video? I m wondering....
    please help!!! Urgent!!

    Just keep the project. Then you can just duplicate the project and make the next set of changes as needed. By duplicating the project, you are not duplicating the event, just the links to the event library.
    This way you are not eating up disk space.
    Does that help?

Maybe you are looking for