Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8996685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:47:16+00:00 2026-06-15T23:47:16+00:00

I am using the following code and wanted some advice on this approach. We

  • 0

I am using the following code and wanted some advice on this approach. We are optimizing our site for iPad, tablet, mac, iPhone and mobile such as Android.

I decided that the best approach is to do HTML5 first, if HTML5 does not exist then fall back to Flash. However it won’t work properly. For example, if all the HTML5 videos do not exist it shows the mime error and not fall back to Flash?

<video width="294" height="530" loop="" preload="false" autoplay="" id="GCFlashAlt" controls="controls" tabindex="0">
        <source type="video/webm" src="http://cdn.com/718_blacklep/718_blacklep.webm"></source>
        <source type="video/ogg" src="http://cdn.com/718_blacklep/718_blacklep.ogv"></source>
        <source type="video/mp4" src="http://cdn.com/718_blacklep/718_blacklep.mp4"></source>
        <object width="294" height="530" align="middle" id="product2a" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
                <param value="http://cdn.com/718_blacklep/718_blacklep.swf" name="movie">
                <param value="best" name="quality">
                <param value="#ffffff" name="bgcolor">
                <param value="true" name="play">
                <param value="true" name="loop">
                <param value="transparent" name="wmode">
                <param value="showall" name="scale">
                <param value="true" name="menu">
                <param value="false" name="devicefont">
                <param value="" name="salign">
                <param value="sameDomain" name="allowScriptAccess">
                <!--[if !IE]>-->
                <object width="294" height="530" data="http://cdn.com/718_blacklep/718_blacklep.swf" type="application/x-shockwave-flash">
                        <param value="http://cdn.com/718_blacklep/718_blacklep.swf" name="movie">
                        <param value="best" name="quality">
                        <param value="#ffffff" name="bgcolor">
                        <param value="true" name="play">
                        <param value="true" name="loop">
                        <param value="transparent" name="wmode">
                        <param value="showall" name="scale">
                        <param value="true" name="menu">
                        <param value="false" name="devicefont">
                        <param value="" name="salign">
                        <param value="sameDomain" name="allowScriptAccess">
                        <!--<![endif]--> 

                        <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
        </object>
</video>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:47:17+00:00Added an answer on June 15, 2026 at 11:47 pm

    This is the solution we have gone with. Cross browser and Cross device compliant.

    We did not want to use an external library, although mediaelementsjs and the others out their are good alternatives, this is the best solution for us.

    1 – Check the user has Flash, if they do, play the SWF version of the video

    2 – If the user has no Flash, check if they have HTML5 enabled.

    3 – If they have HTML5, play the mp4 first (must supported browser playback)

    4 – If they have HTML5 but on Firefox or a phone, example play the .ogv

    5 – Lastly play the webm failing all the above

    6 – If they have none of these features, we simply include a blank div. This triggers the video play button on the site not to show the video feature at all.

    No PHP, a litte jQuery and the rest is valid HTML5. This is the best solution we found as it works on all devices including the iPad. We also have an IF CONDITIONAL for older Internet Explorer drawback – this too has helpled for IE playback.

    The results we have seen are excellent, the file works on every customer device and browser we have for our demographic. We use GetClicky and they have an API, adding <video title="video name" gives the HTML5 and SWF playback trackable.

    <div class="videobox showorhide" id="videoisonbox">
    <object width="294" height="530" align="middle" id="product2a" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
            <param value="http://cdn.com/718_blacklep/718_blacklep.swf" name="movie">
            <param value="best" name="quality">
            <param value="#ffffff" name="bgcolor">
            <param value="true" name="play">
            <param value="true" name="loop">
            <param value="transparent" name="wmode">
            <param value="showall" name="scale">
            <param value="true" name="menu">
            <param value="false" name="devicefont">
            <param value="" name="salign">
            <param value="sameDomain" name="allowScriptAccess">
            <!--[if !IE]>-->
            <object width="294" height="530" data="http://cdn.com/718_blacklep/718_blacklep.swf" type="application/x-shockwave-flash">
                    <param value="http://cdn.com/718_blacklep/718_blacklep.swf" name="movie">
                    <param value="best" name="quality">
                    <param value="#ffffff" name="bgcolor">
                    <param value="true" name="play">
                    <param value="true" name="loop">
                    <param value="transparent" name="wmode">
                    <param value="showall" name="scale">
                    <param value="true" name="menu">
                    <param value="false" name="devicefont">
                    <param value="" name="salign">
                    <param value="sameDomain" name="allowScriptAccess">
                    <!--<![endif]-->
                    <video title="718 Black Lep Dress" width="294" height="530" loop preload="false" autoplay id="GCFlashAlt" controls tabindex="0">
                            <source type="video/mp4" src="http://cdn.com/718_blacklep/718_blacklep.mp4"></source>
                            <source type="video/ogg" src="http://cdn.com/718_blacklep/718_blacklep.ogv"></source>
                            <source type="video/webm" src="http://cdn.com/718_blacklep/718_blacklep.webm"></source>
                    </video>
                    <div class="blank" class="enabled disable detect" id="isvideooncheck"><!-- jQuery Update for disabling video --></div>
                    <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
    </object>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code in HTML and wanted to replace them using javascript
I am using following code to show a spinning wheel: $(#loading) .hide() .ajaxStart(function(){ $(this).show();
I am using following code to get bitmap from url. This function is used
I'm using the following jQuery code to hide and show some HTML element in
Trying to clean up some code and i wanted to know if the following
Using following code I try to get updated list of checkbuttons' corresponding text values,
I using following code: var search = 'test'; if ($('#sku').find(search) ){ //alert(search); $(document).find(search).css('color','red'); <TABLE>
I am creating date using following code try { newdatetime = new DateTime(2012, 2,
I am using following code for showing a MessageBox with ok and cancel button.
i am using following code. public class MyCount extends CountDownTimer { public MyCount(long millisInFuture,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.