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

  • Home
  • SEARCH
  • 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 7432149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:24:40+00:00 2026-05-29T09:24:40+00:00

I am developing a mobile website with audio (links to self hosted MP3 files)

  • 0

I am developing a mobile website with audio (links to self hosted MP3 files) and video (youtube links). My target users are the blackberry, android and iphone platforms.

I want the audio/video file to play within the browser using HTML5 with flash fallback, or else to open the device’s native media player. If both fail, I can then show a link to download the MP3 or a link to visit the youtube page.

For the Youtube video, I read something on S/O about RSTP but it’s a manual process, I don’t know if there is any way to automate this via the Youtube API.

From my findings, the blackberry might tend to be the most challenging platform because I cannot find a lot of audio/video javascript/css/html support for it. Unfortunately, it’s the major target platform in my case.

Links to any articles, resources or plugins that can help will be highly appreciated.

  • 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-29T09:24:41+00:00Added an answer on May 29, 2026 at 9:24 am

    I have fixed the video part. I stumbled on a blog with this info and unfortunately as I kept on trawling the web I have lost the link again. Here is what he/she suggested.

    E.g. PHP code for a video with youtube ID Mgi4fkp9YAg this is what I did. It worked fine on blackberry and Android, I don’t have an iPhone but I guess it should work there too:

        <?php
        $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
        $pos_blackberry = strrpos($ua, "blackberry");
        $pos_webkit = strrpos($ua, "webkit");
    
        if (!($pos_blackberry === false)) {
            if (!($pos_webkit === false)) {          
                        $output = '<a href="http://www.youtube.com/watch?v=Mgi4fkp9YAg"><img width="310" height="160" title="videotitle" alt="videoalt" src="http://img.youtube.com/vi/Mgi4fkp9YAg/0.jpg" /></a>';        
                }
        }else{
            $output = '<iframe width="310" height="160" src="http://www.youtube.com/embed/Mgi4fkp9YAg?controls=1&showinfo=0&showsearch=0&modestbranding=1"></iframe>';
        }
    
        echo $output;
    ?>
    

    Now I need to know how to play self-hosted MP3 files within webpages on blackberry and android. Still looking…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a WAP/mobile website that would allow users to stream audio/video (although
I'm developing a relatively simple website using a media query to target mobile devices
I am developing a mobile website for android and I have multi level menus.
I am developing a mobile web application (for iPhone & Android) with a local
I am developing applications for mobile phones with different operating systems (Android, Symbian, iPhone).
I am developing a mobile website, and I've come across an interesting issue. I'm
I'm developing an website which is to be viewed on mobile (cellphone) devices. I'm
I'm developing mobile website with jQTouch. Let's pick official demo site for example. When
I'm developing mobile part of website and I need recommendation for a module and
I'm currently developing a mobile website which is heavy on the images, css and

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.