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 7536985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:43:28+00:00 2026-05-30T06:43:28+00:00

So I’m working on a project and I’m using YouTubes iframe embed code and

  • 0

So I’m working on a project and I’m using YouTubes iframe embed code and it’ll work on newer devices like the iPhone and Android devices. However, when viewed on older Android and Blackberry I get a couple links about Getting newest Flash Player and Learn more about upgrading to a HTML5 browser. To remedy this I decided to try and embed the rstp link in the site and it worked on the older Androids but not the Blackberry

Does anyone know of anything that would make this simpler? I need to try to play the videos in all mobile browsers if possible and I’ve been looking for a day and not found much of anything. I thought about doing HTML5 and using the video tag, converting them to ogg, 3gp and mp4 or mpeg and let the browser show the correct one but again, still wont work on Blackberrys.

  • 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-05-30T06:43:30+00:00Added an answer on May 30, 2026 at 6:43 am

    Just for anyone that may come across something like this, this is what I came up with. It isn’t pretty but it worked.

    <script>
    if ( !location.href.match(/mobile=no/) ) {
        var useragents = [['blackberry9700', 'blackberry9780'], ['android 1.5', 'android 1.6', 'android eclair', 'android 2.0', 'android 2.1']];
    
        var agt = navigator.userAgent.toLowerCase();
        var mobile_type = 2;
        var i, j;
    
        for ( j=0; j<2; j++ ) {
            for ( i=0; i<useragents[j].length; i++ ) {
                if ( agt.indexOf(useragents[j][i]) != -1 ) {
                    mobile_type = j;
                    user_agent = agt;
                    break;
                }
            }
    
            if ( mobile_type == j ) break;
        }
    
        switch ( mobile_type ) {
            case 0:
                document.write("<a href='nan.3gp'><img src='videoimg.png' alt='' width='310' height='151' /></a>");
                break;
            case 1:
                document.write("<a href='nan2.m4v'><img src='videoimg.png' alt='' width='310' height='151' /></a>");
                break;
            default:
                document.write("<iframe width='312' height='192' src='http://www.youtube.com/embed/aE2b75FFZPI?rel=0' type='text/html' frameborder='0' allowfullscreen></iframe>");
        }
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am trying to render a haml file in a javascript response like so:

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.