Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
## Fixes

* fix: Null value for model numbers on some Roku devices
  • Loading branch information
daytime-em authored Jun 5, 2023
1 parent b75a888 commit 1b13ac8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mux-analytics.brs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function init()
m.MUX_SDK_VERSION = "1.3.0"
m.MUX_SDK_VERSION = "1.3.1"
m.top.id = "mux"
m.top.functionName = "runBeaconLoop"
end function
Expand Down Expand Up @@ -841,7 +841,12 @@ function muxAnalytics() as Object
props.viewer_device_name = deviceInfo.GetModelDisplayName()
props.viewer_device_category = "tv"
props.viewer_device_manufacturer = deviceInfo.GetModelDetails()["VendorName"]
props.viewer_device_model = deviceInfo.GetModel()
' If GetModel() is invalid, try the specific model number
seriesModel = deviceInfo.GetModel()
if seriesModel = invalid then
seriesModel = deviceInfo.GetModelDetails()["ModelNumber"]
end if
props.viewer_device_model = seriesModel
props.viewer_os_family = "Roku OS"
props.viewer_os_version = firmwareVersion
props.viewer_connection_type = _getConnectionType(deviceInfo)
Expand Down

0 comments on commit 1b13ac8

Please sign in to comment.