Skip to main content

Sagem my700x - Video Playback

2 replies [Last post]
Anonymous

Hi,

Has anyone succeeded playing video using the MMAPI in Sagem my700x ?
Basically, I am using the sample code from the spec:

try {
Player p = Manager.createPlayer(is,"video/3gp");
p.realize();
VideoControl vc;
if ((vc = (VideoControl)p.getControl("VideoControl")) != null) {
vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, canvas);
vc.setVisible(true);
}
p.start();
} catch (MediaException pe) {
} catch (IOException ioe) {
}

When running it on the device, I can hear the sound but can not see the
video.

thanks,
Avi

===========================================================================
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".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Adrian Valentin Dan

Hi Avi,

Please check that you are not doing the following :

1. Not drawing on the canvas, since you use DIRECT_VIDEO, no other
operations are allowed.

2. Not clipping the Graphic context.

3. Not showing the wrong canvas.

Cheers.
Adrian.

Avi Mizrahi wrote:
> Hi,
>
> Has anyone succeeded playing video using the MMAPI in Sagem my700x ?
> Basically, I am using the sample code from the spec:
>
> try {
> Player p = Manager.createPlayer(is,"video/3gp");
> p.realize();
> VideoControl vc;
> if ((vc = (VideoControl)p.getControl("VideoControl")) != null) {
> vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, canvas);
> vc.setVisible(true);
> }
> p.start();
> } catch (MediaException pe) {
> } catch (IOException ioe) {
> }
>
> When running it on the device, I can hear the sound but can not see
> the video.
>
> thanks,
> Avi
>
> ===========================================================================
> 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".

Avi Mizrahi

Hi Adrian,
Checked.
I am using an empty canvas. No clipping.
The problem still exists.

Avi

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Adrian Valentin Dan
Sent: Monday, January 22, 2007 08:53
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Sagem my700x - Video Playback

Hi Avi,

Please check that you are not doing the following :

1. Not drawing on the canvas, since you use DIRECT_VIDEO, no other
operations are allowed.

2. Not clipping the Graphic context.

3. Not showing the wrong canvas.

Cheers.
Adrian.

Avi Mizrahi wrote:
> Hi,
>
> Has anyone succeeded playing video using the MMAPI in Sagem my700x ?
> Basically, I am using the sample code from the spec:
>
> try {
> Player p = Manager.createPlayer(is,"video/3gp");
> p.realize();
> VideoControl vc;
> if ((vc = (VideoControl)p.getControl("VideoControl")) != null)
{
> vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, canvas);
> vc.setVisible(true);
> }
> p.start();
> } catch (MediaException pe) {
> } catch (IOException ioe) {
> }
>
> When running it on the device, I can hear the sound but can not see
> the video.
>
> thanks,
> Avi
>
> ======================================================================
> ===== 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".