Media player object

A media player object implements a use case by performing media playback given a prescribed set of inputs and outputs. This object operates on audio and video data. This object also uses a set of supported codecs.

All parameters are defined in OpenMAXAL_QNXConfigExt.h.

The following configuration parameters are supported in the XAConfigExtensionItf interface:

Audio parameters

XAQ_CONFIGEXT_KEY_DEC_OUTPUT_CHANNELS

The number of audio output channels. Only valid for the Opus decoder.

Parameters
  • XAQ_CONFIGEXT_VALUE_DEC_OUTPUT_CHANNEL_MONO
  • XAQ_CONFIGEXT_VALUE_DEC_OUTPUT_CHANNEL_STEREO

XAQ_CONFIGEXT_KEY_DEC_SAMPLING_RATE

The sampling rate of the audio output. Only valid for the Opus decoder.

Parameters
  • XAQ_CONFIGEXT_VALUE_DEC_SAMPLING_RATE_8000
  • XAQ_CONFIGEXT_VALUE_DEC_SAMPLING_RATE_12000
  • XAQ_CONFIGEXT_VALUE_DEC_SAMPLING_RATE_16000
  • XAQ_CONFIGEXT_VALUE_DEC_SAMPLING_RATE_24000
  • XAQ_CONFIGEXT_VALUE_DEC_SAMPLING_RATE_48000

XAQ_CONFIGEXT_KEY_DEC_INBAD_FEC

Enables or disables forward error correction (FEC) for decoding. Only valid for the Opus decoder.

Parameters
  • XAQ_CONFIGEXT_VALUE_DISABLE
  • XAQ_CONFIGEXT_VALUE_ENABLE

Subtitle parameters

XAQ_CONFIGEXT_KEY_SUBTITLE_DISABLE

Enables or disables the subtitle.

Parameters
  • XAQ_CONFIGEXT_VALUE_DISABLE
  • XAQ_CONFIGEXT_VALUE_ENABLE

XAQ_CONFIGEXT_KEY_SUBTITLE_TRAC

The track number of the subtitle.

XAQ_CONFIGEXT_KEY_SUBTITLE_URL

The URL of the subtitle file.

Network parameters

You can use the libcurl built-in library which can transfer data with URL syntax, including FILE, HTTP, IMAP, POP3, FTP, and telnet. Make sure that libcurl parameters are set before you call the Realize() object, otherwise the parameters do not take effect even if it returns XA_RESULT_SUCCESS. The following parameters map to libcurl options:

  • XAQ_CONFIGEXT_KEY_VERBOSE
  • XAQ_CONFIGEXT_KEY_CONNECTTIMEOUT_MS
  • XAQ_CONFIGEXT_KEY_LOW_SPEED_LIMIT
  • XAQ_CONFIGEXT_KEY_LOW_SPEED_TIME
  • XAQ_CONFIGEXT_KEY_USERAGENT
  • XAQ_CONFIGEXT_KEY_USERNAME
  • XAQ_CONFIGEXT_KEY_PASSWORD
  • XAQ_CONFIGEXT_KEY_QNX_CREDMGR_HANDLE
  • XAQ_CONFIGEXT_KEY_PROXYUSERNAME
  • XAQ_CONFIGEXT_KEY_PROXYPASSWORD
  • XAQ_CONFIGEXT_KEY_QNX_PROXY_CREDMGR_HANDLE
  • XAQ_CONFIGEXT_KEY_COOKIE
  • XAQ_CONFIGEXT_KEY_COOKIELIST
  • XAQ_CONFIGEXT_KEY_COOKIEFILE
  • XAQ_CONFIGEXT_KEY_COOKIEJAR
  • XAQ_CONFIGEXT_KEY_COOKIESESSION
  • XAQ_CONFIGEXT_KEY_CAINFO
  • XAQ_CONFIGEXT_KEY_CAPATH
  • XAQ_CONFIGEXT_KEY_SSL_VERIFYPEER
  • XAQ_CONFIGEXT_KEY_SSL_VERIFYHOST
  • XAQ_CONFIGEXT_KEY_PROXY
  • XAQ_CONFIGEXT_KEY_NOPROXY
  • XAQ_CONFIGEXT_KEY_HTTPPROXYTUNNEL
  • XAQ_CONFIGEXT_KEY_PROXYPORT
  • XAQ_CONFIGEXT_KEY_PROXYTYPE
  • XAQ_CONFIGEXT_KEY_PROXYAUTH
  • XAQ_CONFIGEXT_KEY_HTTPAUTH
  • XAQ_CONFIGEXT_KEY_SO_RCVBUF
  • XAQ_CONFIGEXT_KEY_SO_SNDBUF
  • XAQ_CONFIGEXT_KEY_ACCEPT_ENCODING
  • XAQ_CONFIGEXT_KEY_HTTPHEADER
  • XAQ_CONFIGEXT_KEY_DNSCACHETIMEOUT
  • XAQ_CONFIGEXT_KEY_HEADERFILE

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus