Media

Plays a media file using the device's media player.

eon_mobile_mediaex object

Functions
of_play

Description

Uses the default media player application to play the media files.

The supported audio file formats are .aac, .mp3, .aiff, and .wav; the supported video file formats are .m4v, .mp4, and .mov.

Not all the media files with these suffixes can be played; if some media files cannot be played, they can be transcoded via iTunes.

Supported on mobile client only.

Syntax

media.of_play ( value string as_filepath )

Argument Type

Argument

Description

eon_mobile_mediaex

media

The name of the eon_mobile_mediaex object.

string

as_filepath

Sets the full path of a media file to be played.

Return value

Integer.

1 - Play the media file successfully.

0 - Cancel playing the media file.

-1 - It is called in PowerBuilder or Appeon Web, or there is an error.