BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-22-2008, 08:58 AM   #1
ilh3-
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8300
PIN: N/A
Carrier: O2
Posts: 17
Default Playing video

Please Login to Remove!

Hi there,

is it possible to open up the BB media player with a specified video from a user program?

If so does anyone know how?

If not does anyone know how to get the javax.microedition.media.Player to fit into my just a section of my screen? In my program I have a list of videos which I can play using the Player. I open them in a new screen and i've tried to add stop/close functionality through the menu.

Here's the code i've used for that:

Code:
        try
        {
            _videoPlayer = Manager.createPlayer(c.LocalPath);
            _videoPlayer.realize();
            _videoPlayer.prefetch();
            //_videoControl = (VideoControl) _videoPlayer.getControl("javax.microedition.media.control.VideoControl");
            //_videoField = (Field) _videoControl.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");
            //_videoControl.setVisible(true);
            //add(_videoField);
            _videoPlayer.start();
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
The commented out stuff doesn't work. I followed page 52 of the BB Java Development 4.3.0 pdf which suggested the above and it complains that "GUI primitive type not supported" when it reaches the second commented out line.
If I run it with those lines commented out the video runs fine but it's seems the video runs on top of the screen as the menu appears behind it (can select the menu items but not see them).

Any idea what's wrong with it?

Cheers.

Last edited by ilh3-; 05-22-2008 at 09:00 AM..
Offline  
Old 05-22-2008, 10:04 AM   #2
CESAR7106
New Member
 
Join Date: Aug 2007
Model: 8300
PIN: N/A
Carrier: CINGULAR,AT&T
Posts: 2
Red face how play videos from bb 8300?

what kind of format does BB can play? with wap? windows media player? ,i just can play audios from my bb 8300..how can i play videos and what kind of media can play bb 8300? sorry about my english ,it`s no good..
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



Vintage Commodore 64/28 Computer Model C2N Cassette Datassette With Box picture

Vintage Commodore 64/28 Computer Model C2N Cassette Datassette With Box

$34.99



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2799.99



MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW  SIZE LARGE picture

MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW SIZE LARGE

$13.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.