Methods
(static) GetBitRateLimit(codec) → {object}
Parameters:
Name | Type | Description |
---|---|---|
codec | string |
Returns:
- Type:
- object
(static) GetDirectPlayProfiles() → {object}
Returns:
- Type:
- object
(static) canPlay4k() → {boolean}
does the connected display support playing 4k video?
Returns:
- Type:
- boolean
(static) getCodecProfiles() → {object}
Returns:
- Type:
- object
(static) getContainerProfiles() → {object}
Returns:
- Type:
- object
(static) getDeviceCapabilities() → {object}
Returns the Device Capabilities for Roku. Also prints out the device profile for debugging
Returns:
- Type:
- object
(static) getDeviceProfile() → {object}
Returns:
- Type:
- object
(static) getMaxHeightArray() → {object}
Returns:
- Type:
- object
(static) getMaxWidthArray() → {object}
Returns:
- Type:
- object
(static) getSubtitleProfiles() → {object}
Returns:
- Type:
- object
(static) getTranscodingProfiles() → {object}
Returns:
- Type:
- object
(static) printDeviceProfile(profile) → {void}
Print out the deviceProfile for debugging
Parameters:
Name | Type | Description |
---|---|---|
profile | object |
Returns:
- Type:
- void
(static) removeDecimals(value) → {string}
Remove all decimals from a string
Parameters:
Name | Type | Description |
---|---|---|
value | string |
Returns:
- Type:
- string
(static) setPreferredCodec(codecString, preferredCodec) → {string}
Takes and returns a comma delimited string of codecs. Moves the preferred codec to the front of the string
Parameters:
Name | Type | Description |
---|---|---|
codecString | string | |
preferredCodec | string |
Returns:
- Type:
- string
(static) updateProfileArray(profileArray, videoCodec, videoProfile, profileLevelopt) → {object}
Recieves and returns an assArray of supported profiles and levels for each video codec
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
profileArray | object | |||
videoCodec | string | |||
videoProfile | string | |||
profileLevel | string | <optional> | "" |
Returns:
- Type:
- object