javax.microedition.Media.Control - where is it?

So still trying to stream - and this time watching the video.  This HAS to be a simple explanation.

I'm trying to create a VideoControl object - but get an error 'undefined class' VideoControl.

I have:

Javax.microedition.media import. *; in my file, then in frustration, I added:

Import javax.microedition.media.control;

How I got an error saying "cannot find class symbol control" on this line.

I'm missing a few packets of MIDP 2.0 or something?

I am using JDE 4.5 - but have tried ad 4.3 4.7 with the same result.

Where are these stored in the JDE packages?

Jim

Good problem solved. Please mark the thread as solved.

Tags: BlackBerry Developers

Similar Questions

  • Play sounds of media on a certain event? "Error: javax.microedition.media.MediaException: no support type.

    Hello, I'm trying to play MP3 files.
    Example, if the answer is just play then "sound1.mp3 '...
    However, I get this error: "" javax.microedition.media.MediaException: unsupported type of «»
    Although I read that mp3 files are supported.
    I used this tutorial " http://docs.blackberry.com/en/developers/deliverables/17968/CS_Playing_audio_in_a_BB_device_app_1222... ".

    Note: I use Blackberry JDE 5.

    This is the code that I have actually used (has not changed anything core):

    Try
    {

    Player p = javax.microedition.media.Manager.createPlayer ("C:/Documents and Settings/User/space work/celebrity/res/sounds/RoundStart");
    p.Realize ();
    VolumeControl volume = (VolumeControl) p.getControl ("VolumeControl");
    volume.setLevel (30);
    p.prefetch ();
    p.Start ();

    }
    catch(MediaException me)
    {
    Dialog.Alert(me.) ToString());
    System.out.println ("Error:" + me.toString ());
    }
    catch (IOException ioe)
    {
    Dialog.Alert (ioe. ToString());
    System.out.println ("Error:" + ioe.toString ());
    }

    ------------------

    Thanks for the help in advance

    If you want to reference audio files in your application, the above will not work.  You must code differently.

    try something like this

    Class cl = Class.forName(replace_this_with_your: packageName.classname); //
    InputStream is = cl.getResourceAsStream("/somesound.mp3");
                   
    Create an instance of the reader of the InputStream
    p = Manager.createPlayer (that is, "audio/mp3");

  • javax.microedition.media.MediaException: unsupported type of record coding

    I try to capture the audio using the MMAPI:

    Manager.createPlayer ("capture://audio?encoding=pcm")

    Also tried: Manager.createPlayer ("capture://audio?encoding=audio/basic")

    The above work on a "BOLD" (4.6) device, but on the storm (4.7) he throws as the MediaException in the GPO. I tried on the 9500 Simulator and the real device.

    PCM encoding is no longer supported?

    The BlackBerry Storm does not support PCM encoding.  Quote from the article below: "Note: the PCM format is not supported by the BlackBerry smartphones that operate on the Code Division Multiple Access (CDMA) network.»

    How - Audio recording on a BlackBerry smartphone
    Article number: DB-00562

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/How_To...

  • Application crashes with the Exception when using javax.microedition.media.Player

    Hello

    I have an application that processes data from bluetooth and send it to the web service. Recently, there was a request to add sounds to the request. Now when the application processes lots of data and the player plays constantly after a few seconds I get exception "Application is not responding. And then the treatment is finished. In the newspapers, I see many connected after this exception ForcedStackTrace exception.

    The sounds are played in the separate thread. If the app is not play sounds or short sounds - everything works fine. Is it possible to avoid what happens an exception? Why this is happening?

    Thanks in advance,

    Viktor.

    Solved by implementing my own PlayerManager, which running in a separate thread would point the way to the queue rather then the number of threads by using the internal player application.

  • Satellite U400-217 - does not of media control buttons

    Hey all,.

    I have a Toshiba Satellite U400-217, which is one year old.

    For some reason any lately the light on the media controls button doesn't seem to work - where he usually lit up the touchpad line and writing of Satellite. Other media control buttons seem to work well. If I hit the light button, it turns on for a second to tell me his touchdown then disappears and nothing happens.
    What could be the problem?

    I have searched several sites looking for a response, but can't seem to find it, I even looked for the driver, but could not find this not even on the Toshiba site - I have no idea of what is still called the driver. I also tried turning the phone off, remove the battery, put the battery back in and connect to the charger. With no luck. Help would be very appreciated: I hope someone can give me information to operate! Thank you in advance,

    Julie

    Hello

    > Hey well thanks for all the answers, they came flooding in lol.
    This forum is a user to s. That means you don t have a guarantee that you will get a response within a few hours. You must wait and you need a bit of luck ;)

    In any case, I I'm happy to hear that you could solve your problem, but to be honest, the forum already contains 100 threads on this problem and the solution is always reinstall package of added value.

    Good day! :)

  • javax.microedition.io.file.FileConnection JavaDoc?

    I'm looking for the JavaDoc on the next class: javax.microedition.io.file.FileConnection

    I searched the JavaDoc for the GCF at the link below.  There is no results for FileConnection, or javax.microedition.io.file else.

    Generic connection framework, Version 8 (b75)

    Based on this link for the docs to Blackberry, the javax.microedition.io.file.FileConnection used to be generated with the JavaDocs (there are maybe, but always seems the JavaDoc has a bug)

    FileConnection (BlackBerry JDE API Reference 7.1.0)

    If you know where the CURRENT package and class are documented, I would be grateful for the tip!

    Brent S

    Hi Brent,

    In fact, that javadoc FileConnection on the blackberry site should be current. This is because is JSR 75 FileConnection and JSR 75 had only one version, 1.00. This JSR is not owned by Oracle so you see it's javadoc on the Oracle website. However in regards to any JSR you can download it here https://jcp.org/en/jsr/detail?id=75

    One more comment: GCF as he is of his name is a framework. It outlines the principles of the Organization of generic access to the connections so that provides some specific protocols. But this is not the end: it is designed, the other parts of the Java stack would be connect by providing specific features of protocols. And actually, there are these parts there. For example JSR75 FileConnection or Bluetooth JSR82

    Kind regards

    Andrey

  • Re: Driver for Satellite A305-S6872 media control buttons?

    OK, so I just got this laptop Sunday.
    There the media control buttons, but they do not work.
    I read a few posts about this, saying that I need to download the driver control...
    Well, I spent hours last night looking for him. :\
    Anyone got the direct link to it?

    Hallo Kitsune

    Try reinstalling the value-added package. You can download it from the Toshiba support page. If you have laptop model please visit http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_modSel.jsp

    Hallo Glead

    S manuals are described that this button is not for 2 functions, but only for one. For the MUTE to turn the lights. I have too many Satellite A300 and this button is how to turn off the LEDs only.
    Take a look at this symbol, and you will see that it is not pregnant but symbol of light.

    Compare with symbol on the ESC key and you will see that this is not the same.

  • The media controls on my Satellite 2450 S203 do not work

    Hello

    On my Toshiba Satellite S2450 S203 media controls do not work you had no idea what's wrong?

    This means that they have suddenly stopped working? One last thing: you didn't describe when it does not work (no OS not running or running). As far as I know, they work even when OS is not started.

  • Media control buttons do not work on Qosmio F40

    Sometimes I had to format my HARD drive... and I've used the two DVD that came with my laptop... the thing is, there are two things missing. Sure that the media control buttons work altogether, only some of them... And there was a slide the top panel that looks like the keys FN + Fx... How can I return these two things?

    Well as far as I know, and everything is ok
    I had to format the HARD drive, but its ok too. (maybe its different on F30)

    only I had problems when connected left external HARD disk
    This toshiba recovery disc tried to install on the external, formatted and found out that it won't :D

  • Blackberry problems with javax.microedition.HttpConnection

    Hi all

    I am currently working on an application that connects to the Web service using javax.microedition.io.HttpConnection;

    I want to do several generations for the request of 4.7, 5.0 and 6.0. I have a very big problem because as I've debugged since now the request to the server is only to send the version 4.7 and I have not found a solution to work for other versions. The code is the same, but I have an InterruptedIOException with the message that LocalConnection expired after ~ 10000. I had this error on the 9800 Simulator tests.

    How it is possible to work on 4.7 but on other versions of crash?

    Have you had similar problems? Shoud I code to help with this? This is a very critical situation.

    Kind regards

    Bogdan

    Try to use '; deviceside = true' to your URL. Also, take a look at Peter in sticky for many useful code to develop applications of HttpConnection.

  • AllDAY using javax.microedition.pim.Event events calendar

    Hi all

    I try to save an event all day in the database using javax.microedition.pim.Event of PIM data. According to the Docs, I add an event that has a start time of 00:00:00:000 (defined by DateTimeUtilities.zeroCalendarTime) and a set of end for the next time, once again, the 00:00:00:000 value.

    The event shows correctly in the application calendar of BB, but it is not recognized as an Allday event.

    It is: that I need TO use the BlackBerryEvent interface to get the calendar to acknowledge an event like allday or I can do this with just using the event interface?

    Another issue: State of the Docs for the event interface:

    ------------------------------

    RIM implementation notes

    The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

    ------------------------------

    Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

    Kind regards

    Carsten

    PS: Need to add that I use 4.5 JDE and the 8820 4.5 Simulator

    You must use BlackBerryEvent to specify a appointent all day.

    DerCarstenUK wrote:

    Hi all

    Another issue: State of the Docs for the event interface:

    ------------------------------

    RIM implementation notes

    The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

    ------------------------------

    Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

  • new javax.microedition.lcdui.Graphics () error (not public are accessible)

    Hey. Just do some drawing and had a compilation error

    Graphics is not public in javax.microedition.lcdui.Graphics; are not accessible from the outer packaging

    javax.microedition.lcdui.Graphics gr = new javax.microedition.lcdui.Graphics ();   //

    gr.drawRect (100,50,200,100);

    In the online JDE 4.7 QAnywhere, the class is public not private. There's no docs for the Builder. I have tried providing an arg but no dice. I use this class of lcdui because other graphics can't shoot a picture object.

    Ideas appreciated, has soon

    J

    Hey-learned that the only way to get an instance of the javax.microedition.lcdui.Graphics object is to use

    myGraphics = javax.microedition.lcdui.Image.getGraphics)

    So that's it.

    JD

  • Consume a Web service using javax.microedition.xml.rpc.Operation

    Requirement. Consume a Web Service using native libraries of Blackberry.

    Target WebService: http://ws.cdyne.com/WeatherWS/Weather.asmx

    WebService of the operation: http://ws.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP

    Environment: Eclipse JDE 1.3.0 with BB SDK Enterprise Server BB 5.0.0

    First Guide of: http://blog.bayestech.com/?tag=blackberry

    1 Java Stub

    public interface IWeatherServiceZip
    {
        public String getWeatherServiceByZip(String zipCode) throws java.rmi.RemoteException;
    
    }
    

    2. Service Java class

    import java.rmi.RemoteException;
    import javax.microedition.xml.rpc.ComplexType;
    import javax.microedition.xml.rpc.Element;
    import javax.microedition.xml.rpc.Operation;
    import javax.microedition.xml.rpc.Type;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    
    import com.lm.bb.ws.interfaces.IWeatherServiceZip;
    
    /**
     * @author lmo0
     *
     */
    public class WeatherServiceZip implements IWeatherServiceZip, javax.xml.rpc.Stub
    {
        protected static final QName _qname_operation_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final QName _qname_GetCityWeatherByZIPResponse = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIPResponse");
        protected static final QName _qname_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final Element _type_GetCityWeatherByZIP;
        protected static final Element _type_GetCityWeatherByZIPResponse;
    
        private String[] _propertyNames;
        private Object[] _propertyValues;
    
        public WeatherServiceZip()
        {
            _propertyNames = new String[]
            { ENDPOINT_ADDRESS_PROPERTY };
            _propertyValues = new Object[]
            { "http://ws.cdyne.com/WeatherWS/Weather.asmx" };
        }
    
        public void _setProperty(String name, Object value)
        {
            int size = _propertyNames.length;
            for (int i = 0; i < size; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    _propertyValues[i] = value;
                    return;
                }
            }
            String[] newPropNames = new String[size + 1];
            System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
            _propertyNames = newPropNames;
            Object[] newPropValues = new Object[size + 1];
            System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
            _propertyValues = newPropValues;
    
            _propertyNames[size] = name;
            _propertyValues[size] = value;
        }
    
        public Object _getProperty(String name)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    return _propertyValues[i];
                }
            }
            if (ENDPOINT_ADDRESS_PROPERTY.equals(name)
                    || USERNAME_PROPERTY.equals(name)
                    || PASSWORD_PROPERTY.equals(name))
            {
                return null;
            }
            if (SESSION_MAINTAIN_PROPERTY.equals(name))
            {
                return new Boolean(false);
            }
            throw new JAXRPCException("Stub does not recognize property: " + name);
        }
    
        protected void _prepOperation(Operation op)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                op.setProperty(_propertyNames[i], _propertyValues[i].toString());
            }
        }
    
        public String getWeatherServiceByZip(String zipCode) throws RemoteException
        {
            Object inputObject[] = new Object[]
            { zipCode };
    
            Operation op = Operation.newInstance(_qname_operation_GetCityWeatherByZIP,    _type_GetCityWeatherByZIP, _type_GetCityWeatherByZIPResponse);
            _prepOperation(op);
            op.setProperty(Operation.SOAPACTION_URI_PROPERTY,"http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP");//SOAP Action
            Object resultObj;
            try
            {
            resultObj = op.invoke(inputObject);
            System.out.print(resultObj.toString());
            } catch (JAXRPCException e)
            {
            e.printStackTrace();
            Throwable cause = e.getLinkedCause();
            if (cause instanceof java.rmi.RemoteException)
            {
            throw (java.rmi.RemoteException) cause;
            }
            throw e;
            }
            return (String) ((Object[]) resultObj)[0];
        }
    
        static
        {
            _type_GetCityWeatherByZIPResponse = new Element(_qname_GetCityWeatherByZIPResponse,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","GetCityWeatherByZIPResult"), Type.STRING, 0, 1, false) }), 1, 1,false);
            _type_GetCityWeatherByZIP = new Element(_qname_GetCityWeatherByZIP,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","ZIP"), Type.STRING, 0, 1, false) }), 1, 1, false);
            }
    
        private static ComplexType _complexType(Element[] elements)
        {
            ComplexType result = new ComplexType();
            result.elements = elements;
            return result;
        }
    }
    

    3 problem

    There is no information about the exception that occurs when I try to debug my Application actually when you call the Web Service to:

    resultObj = op.invoke (inputObject);

    Any help.  If you have any other suggestions on how to consume a web service using BB. I don't want to use KSOAP2 because the source code is not updated more and prefer the native BB mode without using the 3rd party jars.

    Thank you

    How do you generate the stub class? Have you used Sun's Wireless Toolkit?

  • media control devices... (mci) midi sequencer... Properties... (No devices)... !

    media control devices... (mci) midi sequencer... Properties... (No devices)... !

    XP Home... SP3... Re-installed last Realtek audio pack (sp26552.exe)

    No hardware conflict, devices activated, control of the Volume number, number Sytem sounds, etc... !

    His Manager, speaker Test works Fine... ! O.o

    Any help would be greatly appreciated... !

    ;-)

    No idea of what has past... Blue screened...
    reboot... and everything works as should be OO... Gremlins... !

  • How to set up a Multicast UDP connection? I get the following error: javax.microedition.io.ConnectionNotFoundException

    I need build a Multicas UDP connection, with the following connection string: multicast://224.2.3.4:8888,.
    udpMulticastConnection = (UDPMulticastConnection) Connector.open (" " "multicast://224.2.3.4:8888");

    but I'm javax.microedition.io.ConnectionNotFoundException.

    I read in the doc of the api, I have made a UDPDatagramConnection. I wore the UDPDatagramConnection but the udpMulticast still not do.

    Can someone help me? Please

    Thank you.

    Some useful links:

    https://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/package-summary.html

    UDPDatagramConnection (Java (TM) ME generic connection Framework, Version 8 (final JSR360))

    BNF multicast protocol

    Java (TM) ME generic connection Framework, Version 8 (final version of JSR360)

    http://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/ConnectionNotFoundException.html

    https://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/package-summary.html

    Hello!

    Unfortunately, multicast is not supported by Java ME on RPi. Looks like it still takes much effort to patch raspbian OS itself to support so that we did not continue to support me. Sorry

    Kind regards

    Andrey

Maybe you are looking for

  • Address bar is replaced with a solid group

    All of the text in my address bar is obscured by a band of color, that the text should be. For example, now I see a green for the secure connection to Mozilla, gray Strip where http://www. It is black to the field and gray for the rest of the URL. By

  • How can I remove sites from the list of "allow and don't forget ' Flash plugin?

    My plugin Flash (version 12.0.0.44) is set to "ask to activate. I accidentally gave a site 'Allow and Remember' permission when I tried to click on 'allow', and now I can't figure out how to cancel it. I have pretty much eliminated Flash itself as th

  • I just download firfox and it makes FF as my default browser, I want to default IE

    I just downloaded Firefox and he made it my default browser. I want IE as my default, how to fix

  • formula node

    I send it a zone indicator shows full decimal form but receive and whole. I changed the data types of the double room on long extended float etc, with no result. Y at - it something I am doing wrong?

  • Question about reversal of pin of the PXI-6562

    I have a PXI-6562 card with cable which is the note. Note  If you create a customized with connector wiring solution (779157 - 01) and cable (192744-01), the NI 656 x pinout is reversed at the level of the end fitting. For example, the signal on pin