maydogan
12 years agoVisitor
Roku 5.1 build 1164
Hi,
I developed my private channel and I was using fine till my development unit updated to 5.1 build 1164. I have three Roku 3 boxes. Two of them are still at Version 5.0 build 8045 and my private channel works fine on those two units.
When I realized that my private channel is not working on the unit with Version 5.1 build 1164 I tried to debug it and found a strange bug.
Here is the description of the problem. Hopefully it will help someone else.
I have a function checks the subscription status and returns true for active subscriptions false for expired subscription.
function CheckSubscription() as Boolean
Result=GetJSON("CheckSubscription",GetSubscriberID())
if (Result<>invalid)
if Result[0].Active
ShowDialogScreen("Active Subscription",1)
return true
else
ShowDialogScreen("Expired Subscription",10)
return false
end if
else
return false
end if
end function
I call the above function with
if CheckSubscription() then ShowCategoriesScreen(GetJSON("Categories",GetSubscriberID()))
Code above has no problem with Version 5.0 build 8045 and works just fine. Version 5.1 however makes my channel flash and close whether the CheckSubscription() returns true or false. When I disable ShowDialogScreen lines channel works just fine.
So I think Roku changed Showdialogscreen() function on Version 5.1
I developed my private channel and I was using fine till my development unit updated to 5.1 build 1164. I have three Roku 3 boxes. Two of them are still at Version 5.0 build 8045 and my private channel works fine on those two units.
When I realized that my private channel is not working on the unit with Version 5.1 build 1164 I tried to debug it and found a strange bug.
Here is the description of the problem. Hopefully it will help someone else.
I have a function checks the subscription status and returns true for active subscriptions false for expired subscription.
function CheckSubscription() as Boolean
Result=GetJSON("CheckSubscription",GetSubscriberID())
if (Result<>invalid)
if Result[0].Active
ShowDialogScreen("Active Subscription",1)
return true
else
ShowDialogScreen("Expired Subscription",10)
return false
end if
else
return false
end if
end function
I call the above function with
if CheckSubscription() then ShowCategoriesScreen(GetJSON("Categories",GetSubscriberID()))
Code above has no problem with Version 5.0 build 8045 and works just fine. Version 5.1 however makes my channel flash and close whether the CheckSubscription() returns true or false. When I disable ShowDialogScreen lines channel works just fine.
So I think Roku changed Showdialogscreen() function on Version 5.1