Author: ygrego Date: 2015-04-20 12:24:34 +0000 (Mon, 20 Apr 2015) New Revision: 1235 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1235 Log: Complete implementation of class "AVOutput". Modified: oipf/js/impl/model/AVOutput.js Modified: oipf/js/impl/model/AVOutput.js =================================================================== --- oipf/js/impl/model/AVOutput.js 2015-04-20 11:40:39 UTC (rev 1234) +++ oipf/js/impl/model/AVOutput.js 2015-04-20 12:24:34 UTC (rev 1235) @@ -14,7 +14,7 @@ */ name: null, - /* + /* * Description: * The type of the output. Valid values are “ audio ”, “ video ”, or “ both ”. * @@ -22,7 +22,7 @@ */ type: null, - /* + /* * Description: * Flag indicating whether the output is enabled. Setting this property SHALL enable or disable the output. * @@ -30,6 +30,167 @@ */ enabled: null, + /* + * Description: + * Flag indicating whether the subtitles are enabled. The language of + * the displayed subtitles is determined by a combination of the value of + * the Configuration.preferredSubtitleLanguage property (see section 7.3.2) + * and the subtitles available in the stream. + * For audio outputs, setting this property will have no effect. + * + * Type : Boolean + */ + subtitleEnabled: null, + + videoMode: null, + + /* + * Description: + * Read or set the output mode for digital audio outputs for which hardware + * support MAY be available on the device. Valid values are shown below. + * ------------------------------------------------------------------------ + * Value | Behaviour + * ------------- ---------------------------------------------------------- + * ac3 | Output AC-3 audio. + * ------------- ---------------------------------------------------------- + * uncompressed | Output uncompressed PCM audio. + * ------------- ---------------------------------------------------------- + * For video-only outputs, setting this property SHALL have no effect. + * + * Type: String + * + */ + digitalAudioMode: null, + + /* + * Description: + * Read or set the range for digital audio outputs for which hardware + * support MAY be available on the device. + * Valid values are shown below + * ------------------------------------------------------------------------ + * Value | Behaviour + * --------- -------------------------------------------------------------- + * normal | Output AC-3 audio. + * --------- -------------------------------------------------------------- + * narrow | Output uncompressed PCM audio. + * --------- -------------------------------------------------------------- + * wide | Output uncompressed PCM audio. + * ------------------------------------------------------------------------ + * For video-only outputs, setting this property SHALL have no effect. + * + * Type: String + * + */ + audioRange: null, + + /* + * Description: + * Read or set the video format for HD and 3D video outputs for which + * hardware support MAY be available on the device. Valid values are: + * 480i + * 480p + * 576i + * 576p + * 720i + * 720p + * 1080i + * 1080p + * 720p_TaB + * 720p_SbS + * 1080i_SbS + * 1080p_TaB + * 1080p_SbS + * For audio-only or standard-definition outputs, setting this property + * SHALL have no effect. + * + * Type: String + * + */ + hdVideoFormat: null, + + /* + * Description: + * Indicates the output display aspect ratio of the display device connected + * to this output for which hardware support MAY be available on the device. + * Valid values are: + * 4:3 + * 16:9 + * For audio-only outputs, setting this property SHALL have no effect. + * + * Type: String + * + */ + tvAspectRatio: null, + + /* + * Description: + * Read the video format conversion modes that may be used when + * displaying a 4:3 input video on a 16:9 output display or 16:9 input video + * on a 4:3 output display. The assumption is that the hardware supports + * conversion from either format and there is no distinction between the + * two. See the definition of the 'videoMode' property for valid values. + * For audio outputs, this property will have the value null . + * + * Visibility Type: readonly StringCollection + */ + supportedVideoModes: null, + + /* + * Description: + * Read the supported output modes for digital audio outputs. + * See the definition of the 'digitalAudioMode' property for valid values. + * For video outputs, this property will have the value null. + * + * Visibility Type: readonly StringCollection + */ + supportedDigitalAudioModes: null, + + /* + * Description: + * Read the supported ranges for digital audio outputs. + * See the definition of the 'audioRange' property for valid values. + * For video outputs, this property will have the value null. + * + * Visibility Type: readonly StringCollection + */ + supportedAudioRanges: null, + + /* + * Description: + * Read the supported HD and 3D video formats. + * See the definition of the 'hdVideoFormat' property for valid values. + * For audio outputs, this property will have the value null. + * + * Visibility Type: readonly StringCollection + */ + supportedHdVideoFormats: null, + + /* + * Description: + * Read the supported TV aspect ratios. See the definition of the + * 'tvAspectRatio' property for valid values. + * For audio outputs, this property will have the value null . + * + * Visibility Type: readonly StringCollection + */ + supportedAspectRatios: null, + + /* + * Description: + * Read whether the display is currently in a 2D or 3D mode. + * Return values are: + * ------------------------------------------------------------------------ + * Value | Behaviour + * ------------- ---------------------------------------------------------- + * 0 | The display is in a 2D video mode + * ------------- ---------------------------------------------------------- + * 1 | The display is in a 3D video mode + * ------------- ---------------------------------------------------------- + * + * Type: Integer + */ + current3DMode: null, + init: function(name, type, enabled) { this.name = name; this.type = type;
participants (1)
-
ygrego@users.nuiton.org