Playing Media using Plazmic Media Engine

I'm playing media using the plazmic media engine, but I can't get the application runs, it just hangs. The code used is less than

import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.plazmic.mediaengine.*;

public final class MediaSample extends UiApplication {
    private MainScreen mainScreen;
    private MediaPlayer mediaPlayer = new MediaPlayer();
    private MediaManager mediaManager = new MediaManager();

    public static void main(String[] args) {
        MediaSample theApp = new MediaSample();
        theApp.enterEventDispatcher();
    }

    public MediaSample() {
        Object mediaFile;

        // Create the MainScreen to display all elements.

        // The screen must be non-scrollable in order to display content from
        // the version 4.2 Plazmic CDK.

        mainScreen = new MainScreen(MainScreen.NO_VERTICAL_SCROLL
                | MainScreen.NO_HORIZONTAL_SCROLL);

        // Add a title to the MainScreen.
        LabelField title = new LabelField("Media Player Example",
                LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);

        mainScreen.setTitle(title);

        try {
            // Download the Plazmic media file to display.
            // To access a file packaged with your application you would
            // use one of the following formats:
            // "jar:///file.pme"
            System.out.println("cretaing media player");
            mediaFile = mediaManager.createMedia("http://vwsirl.mo2do.net/multimedia/videoDownload/1533549/Miami_Green_Flag.3gp");
            System.out.println("setting media player");

            // Set the media in the player.
            mediaPlayer.setMedia(mediaFile);
        } catch (Exception ex) {
            System.out.println(ex.toString());
        }

        // The MediaPlayer can create a Ui Field we can use to
        // display the media. Get the Object from the Player.
        Object uiObject = mediaPlayer.getUI();

        // Add the Object to the MainScreen.
        mainScreen.add((Field) uiObject);

        // Display the main screen
        pushScreen(mainScreen);

        // If the MediaPlayers state is REALIZED, the media is loaded.
        // We can start the animation.
        if (mediaPlayer.getState()  == MediaPlayer.REALIZED) {
            try {
                mediaPlayer.start();
            } catch (Exception e) {
                System.out.println(e.toString());
            }
        }

    }

//  protected void onExit() {
//      mediaPlayer.stop();
//      mediaPlayer.close();
//      mediaManager.dispose();
//  }
}

Any ideas on what could be the problem?

Concerning

Rakesh Shankar.P

Plazmic classes can only read content Plazmic (.pme and .pmb files) created in the composer of BlackBerry Theme Studio application (aka Plazmic CDK).

You can use the javax.microedition.media.Player class to read back of other types of multi media files.

Tags: BlackBerry Developers

Similar Questions

  • why I have no sound when playing DVD using the media. ?

    I have an image of good quality but no sound at all when playing DVD using Media Player, but when I play the music is very well please help.

    Hello Jogly22,

    Thank you for posting.  This can happen if the Audio track of the DVD is on anything other than what your computer uses.  We will try to change the audio track of the DVD.  You can do this in Media player by clicking on the DVD button at the bottom near the play button.  In the context menu, you should see audio, from there, you should be able to select different audio tracks.

    DVD audio is determined by the configuration of the selected in Set Up Your speakers are involved, the type of audio connection that you use to connect your computer to your speakers or stereo receiver and audio settings of the DVD in Windows Media Center. For more information on the configuration of the speakers in Windows Media Center.  Also, the availability of audio digital is based on the options that are enabled by the audio hardware that is installed on your computer. For more information about the features of your audio hardware, refer to the documentation that came with your computer.

    Please let me know if this helps you.

    Zack
    Engineer Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • CD has stopped playing media

    my internal CD has stopped working. The computerized test says it's working properly, but it's not. When I place a CD ROM or audio cd and close the tray sometimes it will spit on the cd, sometimes she closes and the light flashes several times and then nothing. When I go into my computer and click on the cd-rom drive, it says insert the disc, when I do the hourglass icon rises, but nothing happens. I bought a disc plu usb n play multi and the computer recognizes it, but as with the drive internal it too does not play media. Any help to solve this problem will be greatly appreciated.

    I am running:

    Windows xp home edition

    version 2002

    service pack 3

    Hi j13h,

    1. did you of recent changes on the computer?

    2 when was the last time it was working fine?

    3. you have any third-party DVD burning software installed on the computer?

    See the Microsoft article below and run them the fixit tool available, check if it helps.

    If the fixit tool does not solve the problem, then you will need to try the mentioned manual steps and check if it helps.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs

    http://support.Microsoft.com/kb/982116

     

    Also check the State of the CD player internal on the computer using Device Manager and the poster with the details.

    How to manage devices in Windows XP

    http://support.Microsoft.com/kb/283658

  • Fast forward video its exception throw year error has occurred trying to play media.

    My problem is that if I'm fast video transfer its exception throw year error has occurred trying to play media.

     

    CODE

     

      public MyScreen()
          {
        try {
             setTitle("MyTitle");
    
            Invocation invocation = new Invocation("http://dl.dropboxusercontent.com/u/17458564/Nueva%20carpeta/Video/lovingyou.mp4;interface=wifi");
            // Get the Registry object using the class name of the application
            Registry _registry=Registry.getRegistry(Application.getApplication().getClass().getName());
            //Invoke the content handler.
            _registry.invoke(invocation);
        } catch (IOException e){
        }}Any solution will be appreciated Thanks
    
    
    

     

    Hi @tej,

    I'm assuming that you actually see the core MediaPlayer card app transition when you perform this invocation. But if this is the case, you simply reference to a * looking to come * operation from the progress bar? (i.e. component UI slider). Because the only way you can actually get a * operation forward fast * is increasing reading speek, through the Cascades MediaPlayer API or mm-renderer C API; links to documentation for the MediaPlayer card above, there is no way to specify the quick delivery.

    Now, assuming that your * search * operationg is a failure, it could even be on how Dropbox is expected or with HTTP calls. A few things to consider (the URL you pasted is not accessible to me, at least my network to work here):

    (1) the same video file works with the search when you already downloaded on your phone (which is pointing to a local path instead)?

    (2) the same Dropbox URL works perfectly well with the streaming/looking for a browser based player? (for example VLC client on the default player on Google Chrome or Firefox)

    For example, here's a .mp4 from a video podcast site: http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/tnt/tnt0920/tnt0920_h264b_640x368_256.mp...

    Let us know what you think / search.

    See you soon,.
    Rashid

    Applications development consultant | Relationships with developers

    BlackBerry @surashid

  • CD/DVD player will not play media error no program associated with this file.

    OT: cds play do not
    Hi guys, my cd/dvd drive on board won't play media, says no program associated with this file. I checked the driver is up to date, have run windows test and player is fine, don't, then reinstalled my Media Player program, have cd player connected to them, any suggestions please accepted with gratitude. Cheers. shadow

    Hello

    1. the problem occurs with any particular media or all media?
    2. don't you make changes to the computer before the show?
    3. What is the accurate and complete error message you get?

    I suggest you try the steps from the following link:

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.Microsoft.com/kb/982116

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article: back up the registry in Windows Vista

  • where I can the software free dawnload to play media with "avi. A.rar"codecs?

    original title: where I can the software free dawnload to play media with "avi. A.rar"codecs? If someone kindly refer me to any link please?

    Hi all
    I have a multimedia file with ' avi. A.rar "but I can not play in Windows Media Player 7" Someone please recommend me any link or what to do? THX

    .rar is a compression file which can be opened by Winrar and other compression programs. It is not a codec.

    .AVI is an audio visual 'container' that contains audio and video files.
    Then, a rar file in WMP theory should be able to play. If he can then download the program on the internet called GSpot freeware, drag and drop the file on the small window of GSpot and it will tell you the necessary codecs. Get gifts on the internet.
    See you soon,.
    Jerry
  • Tried all your suggestions and always receive "Unable to connect" when using ANY search engine.

    Can't use any search engine of FF 40.0.3 on Macbook Pro model with 10.8.5 OS 9.2. Receive "Unable to connect" message when you try to use a search engine. Other than the search engine and Mozilla Web sites to connect properly. 40.0.3 on another Mac FireFox works fine without any problems.

    In addition, I can not access the FF "Get modules" page or the home page of Mozilla. Search engines will connect not their home page or the search bar. Problem just started. I had previously been upgrade and have resorted, FF 40.0.3 without problem when it was issued. Solutions of attempts included refresh FF, launch FF in safe mode, run with all plugins disabled, graphics hardware acceleration disabled. None of these fixed the issue.

    Had already tried your suggestions, without success, but has once again to be sure. Without success. However, I made a further exploration of my own and found out that IPv6 is set to "Link Local" only in my router. I have reset on 'Automatic', the router reset to update, and my problem was solved. So it was the IPv6 setting (unlikely) or the router reset (probably) that solved the problem, or it is your suggestions I tried and did not work, COMBINED with the router reset which solved the problem (quite possible).

    Thanks for the comments!

  • in firefox, I can't use the search engine as to order a product or research, it seems to be in the half top of the screen

    in firefox. Icannot use the search engine to the screen and I can't order anything as well. I get the arrow cursor instead of the I symbol... I reloaded even firefox too. Can help?

    Try Firefox Safe mode to see how it works there.

    A way of solving problems, which disables most of the modules.

    The problems of Firefox using Firefox SafeMode

    When in Safe Mode...

    • The State of plugins is not affected.
    • Custom preferences are not affected.
    • All extensions are disabled.
    • The default theme is used, without a character.
    • userChrome.css and userContent.css are ignored.
    • The layout of the default toolbar is used.
    • The JIT Javascript compiler is disabled.
    • Hardware acceleration is disabled.
    • You can open the mode without failure of Firefox 15.0 + by pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox Safe mode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

    When find you what is causing that, please let us know. It might help others who have this problem.

  • update firmware 3.0.0f0 in 1900 to 3.5.0f0 and propellant myrio works not when use turn the engine.

    Dear Sir

    I run this problem when I updated the firmware in myrio 1900 version 3.0 to 3.5. Before update, thrusters worked fine using the runtime engine, after update, propellers no longer exists. Any help will be much appreciated!

    Thank you

    Long

    Hey Tao!

    I'm glad to hear that your ports are now displayed in MAX. And I think it is a good idea to use the outputs analog on the myRIO. As long as you know the needs of the motor controller to order the right moves tension and a control loop in place, you should be good to go.

  • Setup using LV Runtime Engine 2010 build error

    I had an executable and installer work which was built in LV2009.  Since then, I changed my source code and registered as LV version 2010.  I have rebuilt the executable, but when I tried to run it on the target computer, I got an error message saying that it had LV Runtime Engine 2010.  So I tried to rebuild the installer using LV Runtime Engine 2010 as an extra Installer.  However, this version was missed and I got a long error msg that I don't understand (see attached).

    Thanks in advance.

    See this knowledge base article . There are a few possible solutions listed.  Let us know if these don't work.

    Error code - 12 creating an installer of LabVIEW or LabVIEW SDK installation.

    http://digital.NI.com/public.nsf/allkb/afc375154efbd6ae8625760b005fb723

  • Retail price displayed only if the item is in stock by using the rendering engine liquid?

    Is there anyone who knows the liquid rendering engine? Customer Meluka.co.nz wish the price of sale displayed only if the item is in stock. LiveChat advised that this can be implemented using the rendering engine liquid if the stock is greater or equal to a sale price (reduced price) will be displayed. If no product in stock, the retail price is displayed. The announcement is tomorrow's paper so that the pressure is on--helps the developer urgently required please!

    Each product - large currently:

    < ul >

    < div id = "{tag_productid} rrpprice_" >

    < h10 > {tag_retailprice} < / h10 >

    < / div >

    < class li = 'price' > < {tag_saleprice} fort > < h9 >(inc. GST) < / h9 > < / strong > < /li >

    < class li 'quantity' = >

    Amount of < p5 >: < / p5 >

    {tag_addtocartinputfield} < /li >

    < class li = "instock-message instock-{tag_instock}" >

    < div >

    < p5 > in Stock: < / p5 >

    < p2 > please allow 2-3 days (plus delivery) < / p2 >

    < / div >

    < div class = "stock" >

    < p5 > made to order: < / p5 >

    < p2 > please allow 4-6 weeks for manufacturing (plus delivery) < / p2 >

    < / div >

    < /li >

    < br / >

    < class li 'quantity' = > {tag_addtocart, < img alt = "" src="/images/btn-add-cart.gif" / > "} < /li >

    < /ul >

    Of course

    You see where I am getting-"Can you do that for me for free" - I cringe.

    But its simple. Liquid you have if statements...

    http://docs.BusinessCatalyst.com/dev-assets/reference#! / liquid-reference/reference/logic-t ags.html

    And you have your liquid tags:

    The developer reference

    {% If isOnSale is true-%}

    TO DO THIS

    {%-%}

    DO THIS

    {endif %}

    You should check that the old tag returns 0 or 1 and the liquid must be good true or false, but do not know where BC got too much consistency yet, they have been quite on the updates recently. If this does not work with == true, then it will be == 1

  • Illustrator has some sort of "scissors" and "glue" like those used in genetic engineering?

    Illustrator has some sort of "scissors" and "glue" like those used in genetic engineering, but for the railways?

    I believe the term is "recombined DNA.

    Background info: I develop an Acrobat plugin that will implement the copy half a facility 'copy & paste '. Not that this is important, but the dough half will be interpreted by a SolidWorks Addin.

    Internally, Illustrator and Acrobat can have 2 completely different games paths that appear nevertheless identical. Let's see is worth 1,000 words:

    The drawing shows 8 distinct paths, unique which will be displayed as the typical rounded rectangle:

    recombinant.png

    This is what the user sees: he or she has no idea about the Internals:

    assembled.png

    Question: Is it possible to take the last form (1, 8-element, narrow path) and using a kind of 'scissors', convert it to 8 paths of 1 segment of each? What about the opposite? The ability to 'stick' the elements, which makes them a part of the same way?

    TIA

    The current versions of Illustrator can cut anchor selected (many) points (see the scissors button in the control panel) as well as some segments/inking of join (multiple) selected (see object > path > Join).

    There are other ways as well.

  • How can I check RKM used to Reverese engineering tab?

    Hello

    How can I check which RKM is used to Reverese engineering in ODI models?
    Links or pointers would be apreciated.

    Thank you
    Mahesh

    On the tree of the KM, expand of the RKM and ' used in ', will give you the line of what models are using it.
    You can also write some SQL against the rest of the work, all the data is there.

  • Play music using vista, need to MS windows Media Services to install, plug in where is it?

    Vista I want to play some of my music I copied from the CD that I have purchased., I was informed that "a license is required to play this file." I press 'Download license' and then it comes up with the statement - next
    Error: your Netscape browser is not "Microsoft® Windows Media Services" plugins installed.
    That point me in the right direction - where is this plugin - obviously I need to install it. Why Vista came not with it? strange and a waste of time. Please give the directions/help. Thank you.

    Hi Christine B1B2,.

    What browser do you use to download the licenses?

    In the meantime, if you are using a third-party browser, you can try to set Internet Explorer as default browser and check if the problem is resolved.

    You can view discussions in the link below.
    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/2eae60f2-45b8-482B-B749-e40bb079e78f

    Please post back and let us know if it helped to solve your problem.

    Kind regards
    KarthiK TP

  • Burner DVD and software (Power2Go) questions, impossible to play ligthscribe using Windows media Player

    Original title: Power2Go and Windows Media Player does not detect a burner will not play DVD/CD

    After exploring 9 has been downloaded on Vista, Power2Go does not detect a burner. Windows media player won't even allow me to play a dvd or cd as well.
    Varies not savvy with such things.

    Please notify.
    Thank you!
    Madeyez

    * original title - explore 9 does not detect burner *.

    Hello

    1. is that the DVD drive is detected in Windows Explorer/Device Manager?

    2 are you able to access the files on the DVD through windows Explorer?

    Please follow the link s below to help troubleshoot problems with you DVD player

    http://support.Microsoft.com/mats/cd_dvd_drive_problems/en-us

    I suggest uninstalling the Power2Go software and install back and check if it helps.

    How to uninstall a program.

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    Reference link

    http://www.Microsoft.com/athome/Setup/CleanSweep.aspx

    Hope this information helps

Maybe you are looking for