This part presents how to play audio and video contents.
Audio and video nodes require a Java ME including JSR135 and
MeMo player build with audio and video options.
Supported formats (for audio and video) depend of mobile phone.
Note:
Many MeMoPlayer versions does not support audio and video nodes.
To change the MeMo Player, add following line in your app.properties file.
MovieTexture node is not supported by MicroEmulator.
Install the Sun Wireless ToolKit
to test video on PC (MPEG video only).
[MovieTexture] can display a video file or a video stream.
[AudioClip] can play an audio file or an audio stream.
They are the same interface:
See MovieTexture and AudioClip documentation for more informations.
We use MovieTexture like a
ImageTexture.
Rectangle node define the video
size on mobile phone.
We use AudioClip like a ImageTexture... In Shape node without geometry field.
we can also use a Sound2D node.
Sound2D node replace Shape node and
offer control to sound intensity (volume).
To control media playing, see MediaSensor and MediaControl tutorial.
Error:
Solution: Change the MeMoPlayer.
To change the MeMo Player, add following line in your app.properties file.