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

BlackBerry® World™ Development

Reply
Regular Visitor
usama_fci
Posts: 1
Registered: ‎10-16-2011
My Device: 9800

Problem In video stream

I am anew BB Programmer and i have one problem makes me crazy

I try to stream Video on BlackBerry App the problem is

When I search About Code I find all people say Like that :

(

 

Just  Write this Code and Let Black berry Handel all work :

//----------------------------Code Start
        Player player;
        String URL = "rtsp://192.168.1.1";
        try {
           
            player = Manager.createPlayer(url);
            player.start();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (MediaException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

//-------------------------------Code End

 

)

But In fact It is Not Run and Make Error LIke :

"Error 104  Uncaught MediaNativesExiption "

 

I try to use some other codes like add player to videoform But I cant Add Player Or Videoform to screen to be shown

then I try Some MMAPI Code

but its very difficult and I can't add Its component to My blackberry Screen finally

 

 

Please I want Some One Help Me to Write Full  Screen Code To show Player that Stream Videos

But Pleas It Must Be full Screen Code