Problem in playing the 3GP in Nokia 6600 mobile...

Hi,
I am developing application with MMAPI. I want to play the video file saved in 3GP. It is not supported by the emulator. So i am directly checking with the Nokia 6600. The video is not visible on the screen. Any one please help in this topic. The file size very is small. My coding is as follows:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import java.io.*;
public class PlayVideo extends MIDlet
     private Display display;
     private MyCanvas canvas;
     private Player player;
     private VolumeControl vc;
     private InputStream is;
     private VideoControl vdc;
     private HttpConnection connection;
     private ContentConnection c = null;
     private DataInputStream dis = null;
     public PlayVideo()
          display = Display.getDisplay(this);
          canvas = new MyCanvas(this);
     protected void startApp()
          display.setCurrent(canvas);
          canvas.setFullScreenMode(true);
     protected void pauseApp()
     protected void destroyApp(boolean unconditional)
     class MyCanvas extends Canvas
          private PlayVideo playVideo;
          private int Xposition = 0, Yposition = 0, volume = 30, keyValue = 0, width = 30, count = 0, run = 0, barWidth = 0;
          private int videoCount = 0, delay = 0, keyValueCopy = 0;
          private long[] barValue = new long[100];
          private long mediaDuration = 0, totalDuration = 0, temp = 0, newDuration = 0, startDuration = 0, firstDuration = 0;
          private String error, fileFormat = null, filename = null;
          private Image upImage, downImage;
          private boolean isPause = true, isMute = false, isOptionTwo = false, isOptionThree = false, isRewindMode = false, isForwardMode = false;
          private boolean isHTTP = false, isOptionFour = false, isOptionFive = false, isRunning = false, isError = false;
          public MyCanvas(PlayVideo playVideo)
               this.playVideo = playVideo;
/*               try
                    upImage = Image.createImage("/up_arrow.png");
                    downImage = Image.createImage("/dn_arrow.png");
               catch(Exception error)
                    System.out.println("Error is = "+error);
//               thread.start();
          public void setMute()  //Setting sound in Mute
               try
                    vc = (VolumeControl) player.getControl("VolumeControl");
                    vc.setMute(true);
               catch (Exception e)
                    System.out.println("Error in setMute() = "+e);
          public void setUnmute()  //Setting sound to ReMute
               try
                    vc = (VolumeControl) player.getControl("VolumeControl");
                    vc.setMute(false);
               catch (Exception e)
                    System.out.println("Error in setUnmute() = "+e);
          public void playVideoFile(Graphics graphics)  //Playing video file from the local path
               try
                    filename = "02.3gp";
                    fileFormat = TypeOfFile(filename);
                    fileFormat = "video/" + fileFormat;
                    is = getClass().getResourceAsStream(filename);//  To play given file from jar file
                    player = Manager.createPlayer(is, fileFormat);
                    player.realize();
                    vdc = (VideoControl) player.getControl("VideoControl");
                    if(vdc != null)
                         vdc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
                         vdc.setDisplayLocation(5, 25); //Setting location for video
                         vdc.setVisible(true); //Setting visible
                         player.start(); //Start playing
                         graphics.drawString("Now playing . . .", 5, getHeight()-24, Graphics.LEFT | Graphics.BASELINE);
               catch(Exception e)
                    error = "Error: "+e;
                    graphics.drawString(error, 5, getHeight()-24, Graphics.LEFT | Graphics.BASELINE);
          public String TypeOfFile(String filename)
               String filetype = null;
               filename = filename.toLowerCase();
               int positionFrom = filename.indexOf(".") + 1;
               int positionTo = filename.length();
               String extension = filename.substring(positionFrom, positionTo);  //Splitting the string
               if (extension.equals("mpg"))
                    filetype = "mpeg";
               else if (extension.equals("mp3"))
                    filetype = "mp3";
               else if (extension.equals("mp4"))
                    filetype = "mp4";
               else if (extension.equals("3gp"))
                    filetype = "3gpp";
               else if (extension.equals("aac"))
                    filetype = "aac";
               else if (extension.equals("wma"))
                    filetype = "x-ms-wma";
               else if (extension.equals("mpeg4"))
                    filetype = "mpeg4";
               else if (extension.equals("gif"))
                    filetype = "gif";
               else if (extension.equals("jts"))
                    filetype = "x-tone-seq";
               else if (extension.equals("wav"))
                    filetype = "x-wav";
               else if (extension.equals("au"))
                    filetype = "x-au";
               else if (extension.equals("amr"))
                    filetype = "x-amr";
               else if (extension.equals("awb"))
                    filetype = "amr-wb";
               else if (extension.equals("mid"))
                    filetype = "midi";
               return filetype;
          public void paint(Graphics graphics)
               if(keyValue == 51)
                    playVideoFile(graphics);
          public void keyPressed(int keyCode)
               keyValue = keyCode;
               switch(keyCode)
               case 51:
                    repaint();
                    break;
               case 35://Exit from the application
                    destroyApp(true);
                             notifyDestroyed();
                    break;
     }//  end of Canvas
}//  end of MIDLETRegards,
G.Dhanalakashmi

Hi,
I am trying to install the Oracle Lite suit versioned 5.0.2 for Windows. The RDBMS is Oralce 9i (9.2.0.1). I am able to install the Mobile server. Refering the Installation mannual I am trying to configure and run the mobile serve in either standalone mode or with Oracle HTTP server. In the installation mannual it is mentioned that the HTTPD.conf file for apache http server should be modified to include the wtgapach.conf file from the Oralce Lite ORACLE_HOME\mobile\server\bin folder. On making this change and starting the apache server I am getting the error listed in the post. In the mannual it is mentioned that for standalone mode run the webtogo executable from the bin folder. On doing so I am getting a message
"D:\oracle\oralite\Mobile\Server\bin>webtogo
Unrecognized option: -Xrs"
So currently I am stuck and do not know how to start the mobile server. Please let me know the appropriate steps to start the Mobile server in stadalone as well as with Oracle HTTP server.
Also as mentioned by you I replaced the wtgapach.conf with wtgias.conf. The warning message which was displaying earlier on start of Apache is now gone but if tried to start the mobile server from the browser it is not working as expected.
Thanks and Regards,
Sachin.

Similar Messages

  • Problems with software the update with Nokia 6233

    Problems with software the update with Nokia 6233
    Hello,
    I have so far some-paints tries my software to update.
    Each time the update procedure begins, sometime stands then on the telephone “test mode”.
    On the computer wars I the reference in the update manager “connection to the telephone broken off” and wants the update to again start.
    If I change my profile attitudes since that for example, then after a telephone restart again deleted.
    What there can I make?
    GreetingsMessage Edited by adisaily on 24-Aug-2007 09:03 AM

    It sounds like your 5800 has the earpiece fault that was common with 5800's made before February.
    You need to take it to a nokia care point for repair under warranty.
    Care points/service centres and repair info:
    UK • Europe • Asia-Pacific • USA •
    Canada • Middle East and Africa
    Elsewhere: Click here, select your country, go to the support section, then select repair.

  • Windows Media Player encountered a problem while playing the file...

    I am running WMP 11.0.5721.5280. I am running XP SP3 with every update that has come out. I have 4 GB RAM and my processor is a Pentium 4, 2.6GHz.
    I have a large collection of music file ripped from my CD collection. Almost every time I want to plat a music file I get a message; Windows Media Player encountered a problem while playing the file, For additional assistance, click Web Help. When this
    error box is displayed, a red 'X' placed next to the file in WMP.
    When I click the "Web Help" button, I am taken to a MS website (http://windows.microsoft.com/en-us/windows7/c00d11b1) which tells me that I should go to the sound device website and make certain I have the latest driver. All of the advice which
    is given does not apply to me. My sound device works fine! I can play CD, DVD (movies), and MP3 files. Even when I use RealPlayer, the same thing happens, but not as frequently.
    Can anyone offer a solution to this problem?

    They'll help you over here.
    Windows
    XP forums on Microsoft Answers
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Hello guy, i have a problem when playing the FL commando which when i am playing the game , sudden the game is log out by itself. I would like to know what is the problem for my ipod 4g, just buy recently only and having ios 5.0.1

    Hello guy, i have a problem when playing the FL commando which when i am playing the game , sudden the game is log out by itself. I would like to know what is the problem for my ipod 4g, just buy recently only and having ios 5.0.1

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar      

  • Problem with filling the forms in Nokia browser af...

    Hello,
     I updated my Nokia 808 to FP2 successfuly. But i realized one problem in web browser and the new keyboard. For example when i want to write into a form box i can only see virtual keyboard. I cannot see what i type. If you want to test this, please open your local nokia website and click on support / e mail us. You will see a form which will ask your phone model and OS etc. Try to type into the boxes. Yesterday i failed to write anything. Also reaction is very slow. You can see what i m talking about in the attachments.
      Also with the new update, videos are not working correctly. Sometimes video player is crashing. Sometimes i see strange and colourful images while it is trying to play the video. Then it turns to normal and i see the video clearly.
      Im satisfied with some new things in the update but there are problems and slow downs. Some features are not working such as Nokia Social. I hope Nokia Team will find a solution. Thank you.
    Attachments:
    Fotoğraf0001.jpg ‏183 KB
    Fotoğraf0150.jpg ‏179 KB

    HI ilkerol,
    Welcome to Nokia Support Discussions!
    Thanks for the feedback! I tested the support form with the same results, the page was slow and kept on moving up to the top when I was typing in the textbox.  I tried it with a Lumia device, and even though I was able to fill the textbox without problems, the drop down menus did not work. Based on that experience, it seems that the form is meant to be used with a personal computer, not a mobile device. I will, however, escalate this issue in case there is a possibility of a quick fix. 
    As for the video issue, does this happen with all videos or just certain ones? Colorful images etc. usually mean that the video file encoding is somehow broken and the player cannot read it properly.
    Hope this helps!
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Problems for playing the same wav "n "times

    Hi everybody
    I ve this problem:
    In the emulator in my pc, i can play the same "bomb" sound (a file, with extension.wav) the times i want... but when i upload my app to the device, the sound only plays one time(the first time), the next times, it doesnt make any sound... what can be happening? I dont undestand
    This sound i use it, to notify when a user, sends me a message.
    The device, i m using is a Motorola C650.
    Any suggestions(HELP)?
    Cheers

    Not with Acrobat, no. There's a Search & Replace function, but only for one
    instances at a time.

  • S930 screen colour have a problem when play the video

    I have the problem about my S930 smartphone when I was playing the video.The screen colour to become gray and striped.I just bought at the beginning of this month but already there is a problem.What I need to do.help me......
    This lenovo S930 original still under warranty Lenovo Malaysia not AP Lenovo S930

    I also have this problem with Grey stripes appearing on & off during the usage all the time.
    Just over 3 months of usage but within 2nd month this screen effect started
    The screen scrolling also affected with delays or double images due to delays.
    Can anyone suggest what i shoud do ?

  • My media player is not working, no sound. keeps saying encountered problem while playing the file.

    HP Pavilion g series (g6-1b50us Notebook PC), windows 7, 64-bit.
    My media player keeps saying  it encountered problems while playing a file. and little red x's appearing beside song titles. They did play before. Please help.

    Hi,
    This may happen if the files were moved to a different folder or a different location.
    Try this:
    http://answers.microsoft.com/en-us/windows/forum/windows_7-sound/red-x-symbol-next-to-each-song-whil...
    Note:
    If you have HP Support Assistant installed on the computer(The Blue Question Mark) then open it ==> Complete all pending Updates & Tuneups==> Restart and Check. It may solve your problem
    Although I am an HP employee, I am speaking for myself and not for HP.
    **Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed.

  • Problem sensitivity of the screen on Nokia 1520

    I'm very disappointed with the problem of Nokia 1520 screen sensitivity. I will never again rely on Nokia.
    They expect to fix the problem with an update. Nothing more. Thank you

    sorry to hear the problems you are having. i assume you have checked and installed the latest firmware for your device. have you also installed the latest Nokia system app updates from the Store, and performed a soft reset?

  • Sending http data via GPRS Nokia 6600

    Hello!
    We are trying to make a multiplayer game over GPRS. The midlet-server application works fine when we were using the emulator. however, when we test it on the real phone, Nokia 6600, it seems that the data being sent by the MIDlet is not received by the server. We have no idea why it's not working and we hope that maybe some of you are familiar with this and might have some input. Could the problem be caused by our service provider?
    I found this post in the forum wherein they recommended the use of GPRS-internet instead of GPRS-wap since wap could probably be blocking the data due to the content-type.
    Is there a way to set the Nokia 6600 to use GPRS-internet instead of GPRS-wap?
    We hope someone could reply as soon as possible.
    Thanks! =)

    Solution I found:
    Normally when you browser through your mobile ,you connect through Access Point or Access Point Name(APN).these normally connect to WAP sites and you browse through them.
    When you want to access your own server (or servlets) from the j2me MIDlet suite you have to have the Access Point Setting to internet access.This you have to get the settings from the service provider of the mobile connection you are using. I am in India and using Hutch so I activated HUTCH_WWW ie "HUTCH ACCESS" Service.
    If this seeting is done your Httpconnection will work fine.
    Hope people who face similar problem will find this helpful.
    If problem persists then please contact me at [email protected]
    Vishwajeet Wadhwa

  • Starz PLAY "Windows Media Player encountered a problem while playing this file" error!?!

    My laptop running Windows 7 is having the error, " Windows Media Player encountered a problem while playing the file." when trying to play downloaded movies whereas the "live Starz TV" works fine. My netbook is working properly though, anyone seen this before?

    -  if you're still having the issue, make sure you are running all the latest video/audio codec's for windows media player and win 7   and also take a moment to check this article from microsoft.
    http://www.microsoft.com/windows/windowsmedia/player/10/errors.aspx
     if you find an answer let us know what fixed it!
    buggin wrote:
    My laptop running Windows 7 is having the error, " Windows Media Player encountered a problem while playing the file." when trying to play downloaded movies whereas the "live Starz TV" works fine. My netbook is working properly though, anyone seen this before?

  • Search of nokia 6600

    I have lost my nokia 6600 mobile on 27-05-07, but my phone/sim active up to till date.
    How can trace the phone?
    Manish Garg
    EDIT: deleted SIM numberMessage Edited by damocles on 01-Jun-2007 08:44 PM

    Contact your original network operator or local police.
    There are no easy tools, programs or websites for users to track the whereabouts of a lost or stolen phone.

  • Problem to synch with Nokia 6600

    Hi all
    I have 10.3.9 on my G5 and I syncronize my (old) Nokia 6600 (V 3.42.1) with isync, without any problem.
    Now, I bot a second 6600 and there is the firmware V 5.27.0 installed. I am not able to synch with that phone.
    Any idea if it would work when I update to tiger and the new isync, or do I run into other problems?
    TIA
    kk
    G5   Mac OS X (10.3.9)  

    I have the same problem ,
    tried using same application in 6600 and sony erricssion ,
    works fine in sony but not in 6600 ,
    i think there is more to fear..
    the itemcommands also doesn't work
    so only way is to add commands at form level ! it's strange

  • Problem loading Images in Nokia 6600

    I have noticed that, in some Nokia 6600 firmware versions, there are some PNG's that, although perfectly legal (tested in emulator and other handsets and firmware versions), will refuse to load. Have any of you also encountered this problem and found a workaround to it? Does anybody know what pricular part of the PNG is causing the uncompatibility?
    Thanks in advance :)

    Hi,
    Check for firmware version of 6600 by pressing *#0000#. Be sure to have the latest firmware for 6600. I read an article 3 years ago, that mentions about this problem..
    Good luck

  • Nokia Lumia 920: problems when playing videos on p...

    Dear All,
    thanks to this great support community website, I will b hopefully able to solve my prob.
    Description:
    my nokia lumia 920 has got the latest Win8 firmware and Lumia Amber update ( with 3 UK) but when trying to play videos on my win 7 pc's,
    the actual video is corrupt or does not work properly,ie sound and slow immage processing.
    I have the latest win 7 codec pack on pc and tried apps like VLC,ITunes,Windows Media Player,Nokia Media Player,Nokia Video Converter and others without success......not sure what's wrong but video were ok with my old Nokia N8......perhaps the format is not recognised??????
    The fact that the pc plays the video means that format is not an issue but the quality is just terrible,video and sound.
    I used both the WP desktop app to sync and dragging and/or dropping file with no difference at all.
    DESPERATE,PLS HELP!!!!!!!!
    Any suggestion is very much appreciated......Many thanks in advance,
    Rgds, DD1  

    Camera resolution is low and can’t change resolution (Nokia N8 has better)
    Lumia 920 is 8Mpix, N8 is 12 Mpx, that said please elaborate. I am pretty sure that you will not be able to tell which phone took a shot if I show you one and don't tell you which I used.
    Navigation (Here drive + beta) not comes with traffic updates and not giving alternate routes. Yeah traffic update is in the maps but there’s no point in there (Nokia N8 has better).
    HERE suite of apps is relatively new and constantly being updated. I'll come
    NBA live streaming No App. And flash player not support. (IOS and Android has it) not on N8 also.
    Flash is dead, not available anymore for any up to date OS. Talk to the developer of an app on bringing it to WP8
    Alarm won’t work when the phone off (N8 will turn on and works)
    Your N8 is never really off
    Keyboard not comes with arrow (<>) keys. Can’t type a missing letter between a word, have to delete the word and type the whole thing again.
    tap and hold in textbox, cursor appears, move finger (while holding) to where it needs to go
    Music player app can’t close. Just pause the song.
    There's an app if you feel you must remove the player. Last I checked when paused playback is stopped.
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

Maybe you are looking for