Language Selector

Swing Media Player

Phoenix AWR · Swing Media Player · Java 8+

Swing Media Player Test

A multimedia demonstration component for Phoenix Applet & WebStart Revival. It allows a classic Swing media player to run from Liferay 7.4 while preserving Java applet compatibility and delegating modern audio and video playback to the Phoenix multimedia platform.

Multimedia playback

The component makes it possible to test multimedia playback from a classic Swing interface, including audio files, video files and playlists.

  • MP4 video through the Phoenix Media Platform driver.
  • MP3 audio through the JavaFX or Android backend.
  • WAV/PCM audio compatible with Java Sound.
  • Support for loading individual files or complete folders.

Player-style experience

The test version includes an interface closer to a traditional media player, with basic controls and continuous playback.

  • Side playlist.
  • Play, Pause, Stop, Previous and Next buttons.
  • Continuous playback.
  • Repeat playlist mode.
  • Progress bar and playback time.

Compatible with Phoenix AWR

The applet runs on Phoenix AWR, making it possible to revive Swing/Applet applications without rewriting them as modern web applications.

  • Compatible with desktop and Android execution.
  • Integration with CacioCavallo on Android.
  • Support for the native Android file picker.
  • Multimedia bridge to JavaFX and Android Media.

What happens underneath?

1. Classic Java API:
The applet uses a traditional Swing interface and preserves the Java Applet/JApplet execution model.

2. Phoenix Media Platform driver:
The player relies on a driver compatible with javax.media, avoiding the need for developers to manually register handlers or use Class.forName(...).

3. JavaFX / Android backend:
On desktop, Phoenix can delegate modern playback to JavaFX Media. On Android, Phoenix routes playback to its native bridges to use mobile platform capabilities.

4. Android file picker:
On Android, Swing dialogs such as JFileChooser can delegate file selection to the native system picker, copy the file into a local Phoenix space and return a java.io.File to the applet.

Main component capabilities

  • Runs a Swing media player from a Liferay 7.4 portal.
  • Allows Java applet compatibility testing inside Phoenix AWR.
  • Plays MP4 video through the Phoenix Media Platform layer.
  • Plays MP3 audio using a modern multimedia backend.
  • Maintains Java Sound audio compatibility for WAV/PCM.
  • Allows loading individual files, folders and media URLs.
  • Supports playlists and continuous playback.
  • Includes Android integration through the phoenix: deep link.
Java 8..25 · Swing · Phoenix AWR