I too have been trying for so long at this can you help me
I notice that when the player is playing the stream if you press the back button on the remote the screen locks up.I found that there is no index 3 but the index is 0 which is a poster event in the detail screen.
Here is the detail screen
if msg.GetIndex() = 1
' if showlist[showindex].contentformat <> "audio" then
PlayStart = RegRead(showList[showIndex].ContentId)
if PlayStart <> invalid then
showList[showIndex].PlayStart = PlayStart.ToInt()
endif
refreshShowDetail(screen,showList,showIndex)
' showVideoScreen(showList[showIndex])
endif
endif
if msg.GetIndex() = 2
if showlist[showindex].contentformat <> "audio" then
showList[showIndex].PlayStart = 0
showVideoScreen(showList[showIndex])
refreshShowDetail(screen,showList,showIndex)
else msg = playaudio(screen.GetMessagePort(), showlist, showindex)
'else
' refreshShowDetail(screen,showList,showIndex)
if msg <> Invalid then
refreshShowDetail(screen,showList,showIndex)
end if
'refreshShowDetail(screen,showList,showIndex)
endif
'refreshShowDetail(screen,showList,showIndex)
)
endif
print "This Button pressed: "; msg.GetIndex(); " " msg.GetData()
end if
else
print "Unexpected message class: "; type(msg)
end if
end while
return showIndex
End Function
and here is what on the terminal before the back button is pressed
Request Time: 9
Show Feed Parse Took : 8
ButtonPressed
ButtonPressed
Button pressed: 2 0
and this is what is on the terminal after the back button is pressed
Request Time: 9
Show Feed Parse Took : 8
ButtonPressed
ButtonPressed
Button pressed: 2 0
This Button pressed: 0 0
This occur when the stream is playing and you just press the back button or up button twice.
I am thinking that this is because its not refreshing the detail screen or exit properly notice my test in quotes.
Could you tell me how to process that msg at "if msg.getindex()=3"
I tried it at the spots highlighted above the Green it will bring up the poster screen but the video screen is dead and I have to remove the else above it which is necessary to play the video.
Ps. I thought the Msg= invalid would take care of this but since the msg is a poster event the screen is waiting for some action.
Channel: Goaheadmission
O/S : Linux
Home media: MYTHROKUPLAYER With Homerun