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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:49:16+00:00 2026-06-11T07:49:16+00:00

I have project about Video on Demand via Android TV Box. I have problem,I

  • 0

I have project about Video on Demand via Android TV Box. I have problem,I can not find open source of RTMP player. Had someone can help me or guide me about the rtmp player source code ?

I use red5 to stream and buil for android 2.2(froyo).

  • 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-11T07:49:17+00:00Added an answer on June 11, 2026 at 7:49 am

    rtmp live stream can be play in Android webview embedding flash player. Give below is full source code to play rtmp.

    Though you must go through this url
    http://www.adobe.com/devnet-apps/flashruntimes/certified-devices.html
    here the flash supported device is listed. So test the code in such a device, which supports the flash.

    public class WebViewPlayer extends Activity {
    
        WebView webView;
    
        Utils utils;
        String bodyHtml;
        String rtmpUrl;
        String fileName;
        String htmlVideoEmbedCode ;
    
        String htmlPost = "</body></html>";
        String htmlPre = "<!DOCTYPE html>" 
                + "<html lang=\"en\">"
                + "<head><meta charset=\"utf-8\">" 
                + "</head>"
                + "<body style='margin:0; pading:0;"
                + " background-color: #71D5CA;'>";
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.flash_player);
            RegisterActivities.registerActivity(this);
    
            utils = new Utils(this);
    
            if(! utils.isConnectionPossible()){
    
                utils.getMessageDialogBox("Alert", "The Device cannot connect to the internet."
                        + "Please make sure internet is available.", "OK",
                true)
                .show();
    
            }
    
            rtmpUrl = YOUR_RTMP_URL);
            fileName = YOUR_FILE_NAME);
    
            htmlVideoEmbedCode = getVideoEmbedCode();
    
            webView = (WebView) findViewById(R.id.webView1);
    
            webView.getSettings().setJavaScriptEnabled(true);
            webView.getSettings().setAllowFileAccess(true);
            webView.getSettings().setPluginsEnabled(true);
            webView.getSettings().setSupportZoom(true);
            webView.getSettings().setAppCacheEnabled(true);
    
            webView.setWebChromeClient(new WebChromeClient(){
    
                 public void onProgressChanged(WebView view, int progress) {
                     if(progress == 100)
                         ((ProgressBar)findViewById(R.id.progressBarWebView))
                         .setVisibility(View.INVISIBLE);
                 }
            });
    
            refreshFileName();
        }
    
        @Override
        protected void onResume() {
            super.onResume();
            webView.refreshPlugins(true);
        }
    
        private String getVideoEmbedCode() {
            return "<embed " 
                    + "type=\"application/x-shockwave-flash\""
                    + "id=\"player1\" " + "name=\"player1\" "
                    + "src=\"http://www.c-span.org/"
                    + "cspanVideoHD.swf\""
                    + "width=\""+utils.getDisplayWidth()+"\""
                    + "height=\""+(utils.getDisplayHeight()+40)+"\"" + " flashvars=@FILESRC@"
                    + "allowfullscreen=\"true\"" 
                    + "allowscripaccess=\"always\""
                    + "/>";
        }
    
        private void refreshFileName() {
    
            if (fileName.endsWith(".flv")) {
                fileName = "flv:" + fileName;
            }
    
            bodyHtml = htmlVideoEmbedCode ;
            bodyHtml = bodyHtml.replaceAll("@FILESRC@", 
                    "\"file=" + fileName
                    + "&streamer=" + rtmpUrl + "\"");
            webView.loadDataWithBaseURL("http://127.0.0.1",
                    htmlPre + bodyHtml
                    + htmlPost, "text/html", "UTF-8", null);
        }
    
        @Override
        protected void onDestroy() {
            // TODO Auto-generated method stub
            super.onDestroy();
            webView.stopLoading();
            webView.destroy();
    //      webView = null;
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about video streaming from Android devices and maybe someone who
I am currently working on a project about calculations.I have done the main part
My project is about a school admin I have a page called : createClass.php,
I have a scene in my WPF project with about 2000 different user controls:
I have a question about symfony2. I have a project and I am using
We have a project that’s using many C++11 facilities, and we thought about this
In my current project I have data about colors. Each color is either a
I have a Java project that needs a addon interface. I was thinking about
I'm about to walk into a project that will have files (mostly PHP) behind
I have a .Net winforms project with a short time table (about a week

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.