You Are Here:

Community: Developer Discussion Boards

#1 Old 3gp player errors - 2005-10-02, 18:29

Join Date: Sep 2005
Posts: 1
DONBING
Offline
Registered User
hi, i'm trying to play a 3gp file using java on a 6630...

using this code i can play an mpeg file in the sun 'default colour phone' emulator...
Code:
import java.io.IOException;

import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import javax.microedition.midlet.*;
import java.io.InputStream;

public class VideoMIDlet extends MIDlet implements PlayerListener {
 
private Player videoPlayer;
    
protected void startApp() throws MIDletStateChangeException {
Thread fullScreenThread = new Thread() {
public void run() {
showFullScreenDisplay();
}
};
            
fullScreenThread.start();
    
}

private void showFullScreenDisplay() {
Canvas canvas = new Canvas() {
protected void paint(Graphics g) {
 }
 };
Display.getDisplay(this).setCurrent(canvas);
        try {
               InputStream is = getClass().getResourceAsStream("funnyalien1131.3gp");
          videoPlayer = Manager.createPlayer(is, "video/3gpp");
        
            videoPlayer.addPlayerListener(this);
            videoPlayer.realize();
            VideoControl videoControl = (VideoControl)videoPlayer.getControl("VideoControl");            videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, canvas);
            videoControl.setVisible(true);
            videoPlayer.start();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (MediaException e) {
            e.printStackTrace();
        }
    }
    protected void pauseApp() {     
    }


    protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
       
    }
however if i use this to try and play a .3gp file on the nokia s60 emu, i get the following error

Code:
java.lang.Exception: Cannot parse this type of AMR
	at com.nokia.phone.sdk.concept.util.mmedia.audio.amr.AMRParser.parse(AMRParser.java)
	at com.nokia.phone.sdk.concept.util.mmedia.audio.amr.VideoAMRParser.parse(VideoAMRParser.java)
	at com.nokia.phone.sdk.concept.util.mmedia.audio.amr.AMRDecoderPlugIn.process(AMRDecoderPlugIn.java)
	at com.sun.media.BasicFilterModule.process(BasicFilterModule.java:322)
	at com.sun.media.BasicModule.connectorPushed(BasicModule.java:69)
	at com.sun.media.BasicOutputConnector.writeReport(BasicOutputConnector.java:120)
	at com.sun.media.SourceThread.process(BasicSourceModule.java:729)
	at com.sun.media.util.LoopThread.run(LoopThread.java:135)
the error seems to vary depending on the .3gp file i try to play.

any input would be greatly appreciated, thanks.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Chaining Player instances smoothly jrosebor Mobile Java General 3 2005-10-18 07:36
how to set new video player to the default player rj55 General Symbian C++ 1 2005-06-16 13:15
Audio Player / MMAPI Class laukikwatve Mobile Java Media (Graphics & Sounds) 1 2004-07-06 12:54
Video Player Midlet problem - please help L_Tambiah Mobile Java General 0 2004-06-26 16:00
Downloading 3gp video over WAP - Status Codes 406 cyanwap General Browsing 4 2004-04-30 06:45

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ