Module: deviceCapabilities

Methods


<static> GetBitRateLimit(codec)

Parameters:
Name Type Description
codec string
Source:
Returns:
Type
object

<static> GetDirectPlayProfiles()

Source:
Returns:
Type
object

<static> getCodecProfiles()

Source:
Returns:
Type
object

<static> getContainerProfiles()

Source:
Returns:
Type
object

<static> getDeviceCapabilities()

Returns the Device Capabilities for Roku.
Also prints out the device profile for debugging

Source:
Returns:
Type
object

<static> getDeviceProfile()

Source:
Returns:
Type
object

<static> getMaxHeightArray()

Source:
Returns:
Type
object

<static> getMaxWidthArray()

Source:
Returns:
Type
object

<static> getSubtitleProfiles()

Source:
Returns:
Type
object

<static> getTranscodingProfiles()

Source:
Returns:
Type
object

<static> printDeviceProfile(profile)

Print out the deviceProfile for debugging

Parameters:
Name Type Description
profile object
Source:
Returns:
Type
void

<static> removeDecimals(value)

Remove all decimals from a string

Parameters:
Name Type Description
value string
Source:
Returns:
Type
string

<static> setPreferredCodec(codecString, preferredCodec)

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
Source:
Returns:
Type
string

<static> updateProfileArray(profileArray, videoCodec, videoProfile [, profileLevel])

Recieves and returns an assArray of supported profiles and levels for each video codec

Parameters:
Name Type Argument Default Description
profileArray object
videoCodec string
videoProfile string
profileLevel string <optional>
""
Source:
Returns:
Type
object