APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.media.jfxmediaimpl.platform.gstreamer

public final Class GSTPlatform

extends Platform
Class Inheritance
Imports
com.sun.javafx.PlatformUtil, com.sun.media.jfxmedia.Media, .MediaError, .MediaPlayer, com.sun.media.jfxmedia.events.PlayerStateEvent.PlayerState, com.sun.media.jfxmedia.locator.Locator, com.sun.media.jfxmedia.logging.Logger, com.sun.media.jfxmediaimpl.MediaUtils, com.sun.media.jfxmediaimpl.platform.Platform, java.util.Arrays

GStreamer platform implementation.

Field Summary

Modifier and TypeField and Description
private static final String[]
CONTENT_TYPES

The MIME types of all supported media on Windows and Linux.

private static final String[]
CONTENT_TYPES_MACOS

The MIME types of all supported media on macOS.

private static GSTPlatform
private static final String[]
PROTOCOLS

All supported protocols.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Media
public MediaPlayer
createMediaPlayer(Locator source)

Implements abstract com.sun.media.jfxmediaimpl.platform.Platform.createMediaPlayer.

Prepare for playing the specified media.

public static synchronized Platform
public String[]
public String[]
private static native int

Returns:

A status code.
gstInitPlatform
()

Initialize the native peer of this media manager.

public boolean
Inherited from com.sun.media.jfxmediaimpl.platform.Platform:
canPlayContentTypecanPlayProtocolcreateMetadataParser

Field Detail

CONTENT_TYPESback to summary
private static final String[] CONTENT_TYPES

The MIME types of all supported media on Windows and Linux.

CONTENT_TYPES_MACOSback to summary
private static final String[] CONTENT_TYPES_MACOS

The MIME types of all supported media on macOS.

globalInstanceback to summary
private static GSTPlatform globalInstance
PROTOCOLSback to summary
private static final String[] PROTOCOLS

All supported protocols.

Constructor Detail

GSTPlatformback to summary
private GSTPlatform()

Method Detail

createMediaback to summary
public Media createMedia(Locator source)

Implements abstract com.sun.media.jfxmediaimpl.platform.Platform.createMedia.

Annotations
@Override
createMediaPlayerback to summary
public MediaPlayer createMediaPlayer(Locator source)

Implements abstract com.sun.media.jfxmediaimpl.platform.Platform.createMediaPlayer.

Doc from com.sun.media.jfxmediaimpl.platform.Platform.createMediaPlayer.

Prepare for playing the specified media. If the media stream is unsupported return null so other platforms may be used.

Annotations
@Override
getPlatformInstanceback to summary
public static synchronized Platform getPlatformInstance()

Hides com.sun.media.jfxmediaimpl.platform.Platform.getPlatformInstance.

getSupportedContentTypesback to summary
public String[] getSupportedContentTypes()

Overrides com.sun.media.jfxmediaimpl.platform.Platform.getSupportedContentTypes.

Annotations
@Override
getSupportedProtocolsback to summary
public String[] getSupportedProtocols()

Overrides com.sun.media.jfxmediaimpl.platform.Platform.getSupportedProtocols.

Annotations
@Override
gstInitPlatformback to summary
private static native int gstInitPlatform()

Initialize the native peer of this media manager.

Returns:int

A status code.

loadPlatformback to summary
public boolean loadPlatform()

Overrides com.sun.media.jfxmediaimpl.platform.Platform.loadPlatform.

Annotations
@Override