Methods
(static) GetBitRateLimit(codec) → {object}
| Name | Type | Description |
|---|---|---|
codec | string |
- Type:
- object
(static) GetDirectPlayProfiles() → {object}
- Type:
- object
(static) canDeviceDecodeCodec(codec, channelCount) → {boolean}
Test if device can decode a specific codec at a given channel count This is a public wrapper for getActualCodecSupport that can be called from other files Returns true if the Roku can decode this codec at this channel count
| Name | Type | Description |
|---|---|---|
codec | string | |
channelCount | integer |
- Type:
- boolean
(static) canPlay4k() → {boolean}
does this roku device support playing 4k video?
- Type:
- boolean
(static) getActualCodecSupport(codec, channelCount, di) → {boolean}
Override false positives from Roku API using known hardware limits Returns true if codec can actually decode/passthrough the specified channel count For surround codecs (>2ch), prioritizes PassThru check to detect receiver support
| Name | Type | Description |
|---|---|---|
codec | string | |
channelCount | integer | |
di | object |
- Type:
- boolean
(static) getCodecProfiles() → {object}
- Type:
- object
(static) getContainerProfiles() → {object}
- Type:
- object
(static) getDeviceCapabilities() → {object}
Returns the Device Capabilities for Roku. Also prints out the device profile for debugging
- Type:
- object
(static) getDeviceProfile() → {object}
- Type:
- object
(static) getMaxHeightArray(isRequiredopt) → {object}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
isRequired | boolean | <optional> | false |
- Type:
- object
(static) getSubtitleProfiles() → {object}
- Type:
- object
(static) getSupportedPassthruCodecs(di, channelCount) → {object}
Get list of surround codecs that support passthrough at specified channel count Returns array of codec strings in priority order: eac3, ac3, dts
| Name | Type | Description |
|---|---|---|
di | object | |
channelCount | integer |
- Type:
- object
(static) getTranscodingProfiles() → {object}
- Type:
- object
(static) removeDecimals(value) → {string}
Remove all decimals from a string
| Name | Type | Description |
|---|---|---|
value | string |
- Type:
- string
(static) updateProfileArray(profileArray, videoCodec, videoProfile, profileLevelopt) → {object}
Recieves and returns an assArray of supported profiles and levels for each video codec
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
profileArray | object | |||
videoCodec | string | |||
videoProfile | string | |||
profileLevel | string | <optional> | "" |
- Type:
- object