Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Developer
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Player thread

If I create a player inside a run method of a thread, such as follows:

 

private class PlayerThread extends Thread
  {
       public void run()
        {
            try {
                    _player = Manager.createPlayer(_source);
                    _player.addPlayerListener(_parent);
                    _Player.start();
                } catch (Exception e) {}
           }

}

 

Which thread is the player going to end using to play ? 

 

Thanks

Developer
Developer
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Re: Player thread

For more details: the _source in the previous message is an implementation of the DataSource class.

 

 

Thanks

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Player thread

The Player class creates its own threads required to download and play back media, as well as fire PlayerListener methods. 
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Posts: 9
Registered: ‎08-30-2012
My Device: BlackBerry 5.0
My Carrier: Airtel India

Re: Player thread

Hi Mark Sohm,

With the reference of above post, As you said Download what,

Can you plz describe. how can i play online video in player class.