Player Info Plugin
Version: 1.0
Status:
PlayerInfo plugin for Thunder framework.
Table of Contents
Introduction
Scope
This document describes purpose and functionality of the PlayerInfo plugin. It includes detailed specification about its configuration, properties provided and notifications sent.
Case Sensitivity
All identifiers of the interfaces described in this document are case-sensitive. Thus, unless stated otherwise, all keywords, entities, properties, relations and actions should be treated as such.
Acronyms, Abbreviations and Terms
The table below provides and overview of acronyms used in this document and their definitions.
Acronym | Description |
---|---|
API | Application Programming Interface |
HTTP | Hypertext Transfer Protocol |
JSON | JavaScript Object Notation; a data interchange format |
JSON-RPC | A remote procedure call protocol encoded in JSON |
The table below provides and overview of terms and abbreviations used in this document and their definitions.
Term | Description |
---|---|
callsign | The name given to an instance of a plugin. One plugin can be instantiated multiple times, but each instance the instance name, callsign, must be unique. |
References
Ref ID | Description |
---|---|
HTTP | HTTP specification |
JSON-RPC | JSON-RPC 2.0 specification |
JSON | JSON specification |
Thunder | Thunder API Reference |
Description
The PlayerInfo plugin helps to get system supported Audio Video codecs.
The plugin is designed to be loaded and executed within the Thunder framework. For more information about the framework refer to [Thunder].
Configuration
The table below lists configuration options of the plugin.
Name | Type | M/O | Description |
---|---|---|---|
callsign | string | mandatory | Plugin instance name (default: PlayerInfo) |
classname | string | mandatory | Class name: PlayerInfo |
locator | string | mandatory | Library name: libWPEPlayerInfo.so |
startmode | string | mandatory | Determines in which state the plugin should be moved to at startup of the framework |
Interfaces
This plugin implements the following interfaces:
-
IPlayerProperties (IPlayerInfo.h) (version 1.0.0) (compliant format)
This interface uses legacy
lowercase
naming convention. With the next major release the naming convention will change tocamelCase
. -
Dolby::IOutput (IDolby.h) (version 1.0.0) (compliant format)
This interface uses legacy
lowercase
naming convention. With the next major release the naming convention will change tocamelCase
.
Properties
The following properties are provided by the PlayerInfo plugin:
PlayerProperties interface properties:
Property | R/W | Description |
---|---|---|
audiocodecs | read-only | Query Audio Codecs List |
videocodecs | read-only | Query Video Codecs List |
resolution | read-only | Current Video playback resolution |
isaudioequivalenceenabled | read-only | Checks Loudness Equivalence in platform |
Dolby Output interface properties:
Property | R/W | Description |
---|---|---|
dolbyatmossupported / dolby_atmosmetadata | read-only | Atmos capabilities of Sink |
dolbysoundmode / dolby_soundmode | read-only | Sound Mode - Mono/Stereo/Surround |
dolbyatmosoutput / dolby_enableatmosoutput | write-only | Enable Atmos Audio Output |
dolbymode / dolby_mode | read/write | Dolby Mode |
audiocodecs property
Provides access to the query Audio Codecs List.
This property is read-only.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | array | mandatory | Query Audio Codecs List |
(property)[#] | string | mandatory | ... (must be one of the following: AudioAac, AudioAc3, AudioAc3Plus, AudioDts, AudioMpeg1, AudioMpeg2, AudioMpeg3, AudioMpeg4, AudioOpus, AudioUndefined, AudioVorbisOgg, AudioWav) |
Example
Get Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.audiocodecs"
}
Get Response
{
"jsonrpc": "2.0",
"id": 42,
"result": [
"AudioAac"
]
}
videocodecs property
Provides access to the query Video Codecs List.
This property is read-only.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | array | mandatory | Query Video Codecs List |
(property)[#] | string | mandatory | ... (must be one of the following: VideoH263, VideoH264, VideoH265, VideoH26510, VideoMpeg, VideoMpeg2, VideoMpeg4, VideoUndefined, VideoVp10, VideoVp8, VideoVp9) |
Example
Get Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.videocodecs"
}
Get Response
{
"jsonrpc": "2.0",
"id": 42,
"result": [
"VideoH263"
]
}
resolution property
Provides access to the current Video playback resolution.
This property is read-only.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | string | mandatory | Current Video playback resolution (must be one of the following: Resolution1080i, Resolution1080i24, Resolution1080i25, Resolution1080i30, Resolution1080i50, Resolution1080p, Resolution1080p24, Resolution1080p25, Resolution1080p30, Resolution1080p50, Resolution2160p, Resolution2160p24, Resolution2160p25, Resolution2160p30, Resolution2160p50, Resolution2160p60, Resolution480i, Resolution480i24, Resolution480i25, Resolution480i30, Resolution480i50, Resolution480p, Resolution480p24, Resolution480p25, Resolution480p30, Resolution480p50, Resolution576i, Resolution576i24, Resolution576i25, Resolution576i30, Resolution576i50, Resolution576p, Resolution576p24, Resolution576p25, Resolution576p30, Resolution576p50, Resolution720p, Resolution720p24, Resolution720p25, Resolution720p30, Resolution720p50, ResolutionUnknown) |
Example
Get Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.resolution"
}
Get Response
{
"jsonrpc": "2.0",
"id": 42,
"result": "Resolution480i24"
}
isaudioequivalenceenabled property
Provides access to the checks Loudness Equivalence in platform.
This property is read-only.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | boolean | mandatory | Checks Loudness Equivalence in platform |
Example
Get Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.isaudioequivalenceenabled"
}
Get Response
{
"jsonrpc": "2.0",
"id": 42,
"result": false
}
dolbyatmossupported property
Provides access to the atmos capabilities of Sink.
This property is read-only.
dolby_atmosmetadata
is an alternative name for this property. This name is deprecated and may be removed in the future. It is not recommended for use in new implementations.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | boolean | mandatory | Atmos capabilities of Sink |
Example
Get Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.dolbyatmossupported"
}
Get Response
{
"jsonrpc": "2.0",
"id": 42,
"result": false
}
dolbysoundmode property
Provides access to the sound Mode - Mono/Stereo/Surround.
This property is read-only.
dolby_soundmode
is an alternative name for this property. This name is deprecated and may be removed in the future. It is not recommended for use in new implementations.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | string | mandatory | Sound Mode - Mono/Stereo/Surround (must be one of the following: Dolbydigital, Dolbydigitalplus, Mono, Passthru, SoundmodeAuto, Stereo, Surround, Unknown) |
Example
Get Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.dolbysoundmode"
}
Get Response
{
"jsonrpc": "2.0",
"id": 42,
"result": "Mono"
}
dolbyatmosoutput property
Provides access to the enable Atmos Audio Output.
This property is write-only.
dolby_enableatmosoutput
is an alternative name for this property. This name is deprecated and may be removed in the future. It is not recommended for use in new implementations.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | boolean | mandatory | Enable/Disable |
Example
Set Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.dolbyatmosoutput",
"params": false
}
Set Response
{
"jsonrpc": "2.0",
"id": 42,
"result": "null"
}
dolbymode property
Provides access to the dolby Mode.
dolby_mode
is an alternative name for this property. This name is deprecated and may be removed in the future. It is not recommended for use in new implementations.
Value
Name | Type | M/O | Description |
---|---|---|---|
(property) | string | mandatory | Dolby mode type (must be one of the following: Auto, DigitalAc3, DigitalPassthrough, DigitalPcm, DigitalPlus, Ms12) |
Name | Type | M/O | Description |
---|---|---|---|
(property) | string | mandatory | Dolby mode type (must be one of the following: Auto, DigitalAc3, DigitalPassthrough, DigitalPcm, DigitalPlus, Ms12) |
Example
Get Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.dolbymode"
}
Get Response
{
"jsonrpc": "2.0",
"id": 42,
"result": "DigitalPlus"
}
Set Request
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.dolbymode",
"params": "DigitalPlus"
}
Set Response
{
"jsonrpc": "2.0",
"id": 42,
"result": "null"
}
Notifications
Notifications are autonomous events triggered by the internals of the implementation and broadcasted via JSON-RPC to all registered observers. Refer to [Thunder] for information on how to register for a notification.
The following events are provided by the PlayerInfo plugin:
Dolby Output interface events:
Notification | Description |
---|---|
soundmodechanged / dolby_audiomodechanged | Signal audio mode change |
soundmodechanged notification
Signal audio mode change.
dolby_audiomodechanged
is an alternative name for this notification. This name is deprecated and may be removed in the future. It is not recommended for use in new implementations.
Notification Parameters
Name | Type | M/O | Description |
---|---|---|---|
params | object | mandatory | ... |
params.mode | string | mandatory | Changed Mode (must be one of the following: Dolbydigital, Dolbydigitalplus, Mono, Passthru, SoundmodeAuto, Stereo, Surround, Unknown) |
params.enabled | boolean | mandatory | Enabled/Disabled |
Example
Registration
{
"jsonrpc": "2.0",
"id": 42,
"method": "PlayerInfo.1.register",
"params": {
"event": "soundmodechanged",
"id": "myid"
}
}
Notification
{
"jsonrpc": "2.0",
"method": "myid.soundmodechanged",
"params": {
"mode": "Mono",
"enabled": false
}
}
The client ID parameter is passed within the notification designator, i.e.
<client-id>.soundmodechanged
.