JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

The Media class represents a media resource. It contains information about the media, such as its source, resolution, and metadata.

Profile: common

Attribute Summary

nametypedescription
Public
durationDuration

The duration of the source media

More: [+]

The duration of the source media

Profile: common

onErrorfunction(:MediaError):Void

The function to be invoked when an error occurs on this Media object

More: [+]

The function to be invoked when an error occurs on this Media object

Profile: common

resolutionXNumber

The width resolution of the source media

More: [+]

The width resolution of the source media

Profile: common

resolutionYNumber

The height resolution of the source media

More: [+]

The height resolution of the source media

Profile: common

sourceString

Defines the String which specifies the URI of the media; It may be an absolute URI, such as "file://media.mov", or relative, such as "./media.mov"

More: [+]

Defines the String which specifies the URI of the media; It may be an absolute URI, such as "file://media.mov", or relative, such as "./media.mov"

Profile: common

Protected

Inherited Attributes

Function Summary

public getMetadata(key: java.lang.String) : java.lang.String

Returns the metadata stored in the source media for the specified key

More: [+]

Returns the metadata stored in the source media for the specified key

Parameters
key
Returns
String

Profile: common

Inherited Functions