Methods

(static) GetBitRateLimit(codec) → {object}

Parameters:
NameTypeDescription
codecstring
Returns:
Type: 
object

(static) GetDirectPlayProfiles() → {object}

Returns:
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

Parameters:
NameTypeDescription
codecstring
channelCountinteger
Returns:
Type: 
boolean

(static) canPlay4k() → {boolean}

does this roku device support playing 4k video?

Returns:
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

Parameters:
NameTypeDescription
codecstring
channelCountinteger
diobject
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(isRequiredopt) → {object}

Parameters:
NameTypeAttributesDefaultDescription
isRequiredboolean<optional>
false
Returns:
Type: 
object

(static) getSubtitleProfiles() → {object}

Returns:
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

Parameters:
NameTypeDescription
diobject
channelCountinteger
Returns:
Type: 
object

(static) getTranscodingProfiles() → {object}

Returns:
Type: 
object

(static) removeDecimals(value) → {string}

Remove all decimals from a string

Parameters:
NameTypeDescription
valuestring
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:
NameTypeAttributesDefaultDescription
profileArrayobject
videoCodecstring
videoProfilestring
profileLevelstring<optional>
""
Returns:
Type: 
object