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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:13:45+00:00 2026-06-05T00:13:45+00:00

I’m trying to play a video via RTSP using Adobe Air, I have the

  • 0

I’m trying to play a video via RTSP using Adobe Air, I have the permissions:

<action>access_internet</action>
<action>set_audio_volume</action>
<action>access_shared</action>
<action>play_audio</action>

but when I play (), it does nothing.

It’s possible to do RTSP Streaming on Playbook? If not, it’s possible any other kind of videostreaming? webworks? html5 video tag?

The native Youtube App preinstaled do streaming video.

Thanks in advance

here the sample code

package{
import flash.display.Sprite;
import flash.filesystem.File;
import flash.events.Event;

import qnx.events.MediaPlayerEvent;
import qnx.media.MediaPlayer;
import qnx.media.VideoDisplay;
import qnx.ui.events.MediaControlEvent;
import qnx.ui.media.*;
import qnx.dialog.AlertDialog;
import qnx.dialog.DialogSize;



/**
 * ...
 * @author Fernando Franco Giraldez
 */

// The following metadata specifies the size and properties of the canvas that
// this application should occupy on the BlackBerry PlayBook screen.
[SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]

public class Main extends Sprite 
{

    private var _myPlayer:MediaPlayer;
    private var _myVD:VideoDisplay;
    private var _myMediaControl:MediaControl;
    private var alert:AlertDialog;

    public function Main()
    {
        try {
        initializeUI();
        initializePlayer();  
        }catch (ex:Error) {
            showAlertDialog("Initialize error", ex.name + " - " + ex.message + "\n"+ex.getStackTrace());
        }
    }

    private function initializePlayer():void
    {

        _myVD = new VideoDisplay;
        _myVD.setPosition(1024/2 - 800/2, 600/2 - 480/2);
        _myVD.setSize(800, 480);
        _myVD.backgroundColor = 0xFFFFFF;
        addChild(_myVD);

        _myPlayer = new MediaPlayer();
        _myPlayer.addEventListener(MediaPlayerEvent.INFO_CHANGE, infoChange);        

        var file:File = File.userDirectory.resolvePath("shared/videos/Wildlife.wmv");
                    //_myPlayer.url = file.nativePath;   //using this i can see the video  
        _myPlayer.url = "http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"; 
        //_myPlayer.url = "rtsp://stream.the.sk/live/joj/joj-hm.3gp"
                    // but using any of internet urls i can`t see anything
        _myPlayer.videoDisplay = _myVD;
        _myPlayer.prepare();
        showAlertDialog("Preparando video", "acabo de meteer: " + _myPlayer.url);

    }

    private function initializeUI():void
    {

        _myMediaControl = new MediaControl();
        _myMediaControl.width = 900;
        _myMediaControl.x = Math.round((stage.stageWidth - _myMediaControl.width) / 2);
        _myMediaControl.y = stage.stageHeight - _myMediaControl.height;

        _myMediaControl.setOption( MediaControlOption.VOLUME, true );
        _myMediaControl.setOption( MediaControlOption.PLAY_PAUSE, true );
        _myMediaControl.setOption( MediaControlOption.NEXT, true );
        _myMediaControl.setOption( MediaControlOption.PREVIOUS, true );
        _myMediaControl.setOption( MediaControlOption.STOP, true );
        _myMediaControl.setOption( MediaControlOption.SEEKBAR, true );
        _myMediaControl.setOption( MediaControlOption.DURATION, true );
        _myMediaControl.setOption( MediaControlOption.POSITION, true );
        _myMediaControl.setOption( MediaControlOption.BACKGROUND, true);
        _myMediaControl.setProperty( MediaControlProperty.VOLUME, 80 );

        _myMediaControl.addEventListener( MediaControlEvent.STATE_CHANGE, mediaControlStateChange );
        _myMediaControl.addEventListener( MediaControlEvent.PROPERTY_CHANGE, mediaControlPropChange );

        addChild(_myMediaControl);            

    }

    private function infoChange(event:MediaPlayerEvent):void {

        if (event.what.position) {
            _myMediaControl.setProperty(MediaControlProperty.POSITION, _myPlayer.position);
        }
        if (event.what.duration) {
            _myMediaControl.setProperty(MediaControlProperty.DURATION, _myPlayer.duration);
        }
        if (event.what.state) {
            _myMediaControl.setState(_myPlayer.isPlaying ? MediaControlState.PLAY : MediaControlState.PAUSE);
        }        


    }

    private function mediaControlStateChange(mediaControlEvent:MediaControlEvent):void
    {
        var state:String = _myMediaControl.getState();

        switch( state )
        {
            case MediaControlState.PLAY:
                if (!_myPlayer.isPlaying) 
                {
                    try {                           
                        _myPlayer.play();
                        showAlertDialog("Play", "play detectado");
                    }catch (ex:Error) {
                        showAlertDialog("play() error", ex.name + " - " + ex.message + "\n"+ex.getStackTrace());
                    }
                } 
                else 
                {
                    _myPlayer.speed = 1000;
                }
                break;
            case MediaControlState.PAUSE:
                _myPlayer.pause();
                break;
            case MediaControlState.STOP:
                _myPlayer.stop();
                break;
            case MediaControlState.SEEK_START:
                _myPlayer.pause();
                break;
            case MediaControlState.SEEK_END:
                _myPlayer.play();
                break;
            default:
                break;
        }
    }

    private function mediaControlPropChange(event:MediaControlEvent):void {

        switch (event.property) {

            case MediaControlProperty.POSITION:
            {
                _myPlayer.seek(uint( _myMediaControl.getProperty(MediaControlProperty.POSITION)));
            }
                break;
            case MediaControlProperty.DURATION:
                break;
            case MediaControlProperty.FULLSCREEN:
                break;
            case MediaControlProperty.VOLUME:
                break;
            default:
                break;
        }
    }

    private function showAlertDialog(title:String,message:String):void
    {
        alert = new AlertDialog();
        alert.title = title;
        alert.message = message;
        alert.addButton("OK");
        alert.addButton("CANCEL");
        alert.dialogSize= DialogSize.SIZE_MEDIUM;
        alert.addEventListener(Event.SELECT, alertButtonClicked); 
        alert.show();
    }

    private function alertButtonClicked(event:Event):void
    {
        trace("Button Clicked Index: " + event.target.selectedIndex);
        trace("Button properties Object"+event.target.getItemAt(event.target.selectedIndex));
    }

}

}

  • 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-05T00:13:46+00:00Added an answer on June 5, 2026 at 12:13 am

    It seems that RTSP wasnt supported in 6/2011 (a year ago). From the release notes on the updates of the NDK. The native Youtube App may not be using RSTP for streaming (there are other ways to stream video). Check out this link for more information.

    But on the Webworks side, Yes. The Html5 video tag is fully implemented. You can find out more information here: https://bdsc.webapps.blackberry.com/html5/apis/HTMLVideoElement.html it will use the built in video player. Just note that this will not work on BB10.

    Update: The HTML5 video tag is now also supported on the BB10 platform.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
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

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.