Skip navigation links

Codename One API

Package com.codename1.media

Video and Audio playback support are handled within this package using the Media & MediaManager APIs.

See: Description

Package com.codename1.media Description

Video and Audio playback support are handled within this package using the Media & MediaManager APIs. Said API's allow for video playback both within a native full screen player and embedded within an application screen.

Simplified video playback API is also available via the MediaPlayer class. Capture/recording is handled separately for the most part thru the Capture API. However, there is some basic low level recording functionality within MediaManager as well.

The code below demonstrates capturing and playing back audio files using this API:

Captured recordings in the demo

The sample code below demonstrates simple video playback.

Media player sample
Skip navigation links
Developed by Codename One