Skip to main content

Problem writing audio to a stream with SE JP7 phones

4 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Christophe Planty

Hi Chris,

This occurred into the first version of JP7 phones (k800)
Have been corrected later.
unfortunately I haven't the exact list of handsets and versions impacted. (k800 exists in at least 4 different versions)

I had similar issue on the SE M600 (UIQ) and it could be solved using setRecordLocation(). (stores the data to filesystem) .
It might be a workaround.

Note that there's no 'streaming' provided, the data is sent to the stream only when record is stopped.
(it'll always behave like a buffer , even if you use your own OutputStream subclass).

/Chris

[I've cc to SE dev support, they might have more accurate info on that]

-----Message d'origine-----
De : A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM] De la part de Chris B
Envoyé : lundi 1 octobre 2007 00:40
À : KVM-INTEREST@JAVA.SUN.COM
Objet : Problem writing audio to a stream with SE JP7 phones

Has anyone tried writing audio to a stream with a SE JP7 phone such as a
K800i?

eg. http://developer.sonyericsson.com/thread.jspa?threadID=41168

It always returns 0 bytes

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris B

Cheers Christophe,

Let's hope it isn't too many phone models because it's a big part of MMAPI.
Do you know whether it can be fixed by updating the firmware on the K800?

----- Original Message -----
From: "Christophe Planty"
To:
Sent: Wednesday, October 03, 2007 1:09 PM
Subject: Re: Problem writing audio to a stream with SE JP7 phones

Hi Chris,

This occurred into the first version of JP7 phones (k800)
Have been corrected later.
unfortunately I haven't the exact list of handsets and versions impacted.
(k800 exists in at least 4 different versions)

I had similar issue on the SE M600 (UIQ) and it could be solved using
setRecordLocation(). (stores the data to filesystem) .
It might be a workaround.

Note that there's no 'streaming' provided, the data is sent to the stream
only when record is stopped.
(it'll always behave like a buffer , even if you use your own OutputStream
subclass).

/Chris

[I've cc to SE dev support, they might have more accurate info on that]

-----Message d'origine-----
De : A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM] De
la part de Chris B
Envoyé : lundi 1 octobre 2007 00:40
À : KVM-INTEREST@JAVA.SUN.COM
Objet : Problem writing audio to a stream with SE JP7 phones

Has anyone tried writing audio to a stream with a SE JP7 phone such as a
K800i?

eg. http://developer.sonyericsson.com/thread.jspa?threadID=41168

It always returns 0 bytes

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris B

Has anyone tried writing audio to a stream with a SE JP7 phone such as a
K800i?

eg. http://developer.sonyericsson.com/thread.jspa?threadID=41168

It always returns 0 bytes

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

sfitzjava
Offline
Joined: 2003-06-15

Does your code write out chunks of data? I'm assuming that you are posting this back to a server, is that correct?

In using the K800i I built a video capture tool that would capture the vid/aud and post it back to the server using a multipart-form post, however 2 things messed the transmission up.

1) the k800i I had used http1.1 which chunked the data meaning the server couldn't handle the multipart form correctly.
2) I wrote the entire chunk in one write request. After about 30k of info it would return and not post the rest of the data.

So I wrote a socket handler that mimic an http1.0 socket to write the information out, and then wrote 2k of the buffer at a time until finished.

Maybe that info will help.

-Shawn