Skip to main content

The strange behavior of MediaComponent in SonyErisson mobile phone

1 reply [Last post]
yt7589
Offline
Joined: 2008-05-06

Hi.

I used the following codes to get the captured video from the phone's camera. It works well in the emulator. But when I deploy it to SonyEricsson w810c mobile phone. It will display nothing for a long time ( at least several minutes ) then it can display the video correctlly. I think there has two possibility: one is my method is wrong. the other is there has a BUG in the SonyEricsson mobile phone.

Container ctnr = new Container(new FlowLayout());
try {
player = Manager.createPlayer("capture://video");
player.realize();
MediaComponent mc = new MediaComponent(player);
ctnr.addComponent(mc);
mc.start();
} catch (Exception ex) {

}

Reply viewing options

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

Hi,
Your code seems fine, the mmapi "realize" method may consume time(it
tries to allocate the device resources to play the media type).
If this method takes way too long, try to preform the realize on a
different thread and show a wait screen or a progress bar.

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> Hi.
>
> I used the following codes to get the captured video from the phone's camera. It works well in the emulator. But when I deploy it to SonyEricsson w810c mobile phone. It will display nothing for a long time ( at least several minutes ) then it can display the video correctlly. I think there has two possibility: one is my method is wrong. the other is there has a BUG in the SonyEricsson mobile phone.
>
> Container ctnr = new Container(new FlowLayout());
> try {
> player = Manager.createPlayer("capture://video");
> player.realize();
> MediaComponent mc = new MediaComponent(player);
> ctnr.addComponent(mc);
> mc.start();
> } catch (Exception ex) {
>
> }
> [Message sent by forum member 'yt7589' (yt7589)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283898
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net