Thanks Destruk. I passed the Playstart value to the ShowVideoScreen function and it still ignores the playstart value. To note I am using the modified appvideoscreen from the VAST 2.0 SDK.
Springboard loop while true
msg = wait(0, screen.GetMessagePort())
if type(msg) = "roSpringboardScreenEvent"
if msg.isScreenClosed()
print "Screen closed"
exit while
else if msg.isButtonPressed()
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
if msg.GetIndex() = 1
PlayVideo(episode)
endif
if msg.GetIndex() = 2
PlayStart = RegRead(episode.id)
if PlayStart <> invalid then
episode.PlayStart = PlayStart.ToInt()
ShowVideoScreen(episode)
endif
endif
else
print "Unknown event: "; msg.GetType(); " msg: "; msg.GetMessage()
endif
else
print "wrong type.... type=";msg.GetType(); " msg: "; msg.GetMessage()
endif
end while
From the Debugger consoleLocal Variables:
episode &h4010 bsc:roAssociativeArray, refcnt=2
global &h0020 rotINTERFACE:ifGlobal
m &h0010 bsc:roAssociativeArray, refcnt=3
screen &h0010 bsc:roSpringboardScreen, refcnt=1
msg &h0000 <uninitialized> val:Uninitialized
playstart &h0000 <uninitialized> val:Uninitialized
BrightScript Debugger> PlayStart = RegRead(episode.id)
BrightScript Debugger> print Playstart
256
BrightScript Debugger> episode.PlayStart = PlayStart.ToInt()
BrightScript Debugger> print episode.PlayStart
256
BrightScript Debugger> print episode
sdposterurl:
http://.pngdescription: invalid
rating: invalid
director: invalid
streamformat: mp4
length: 4541
url:
http://.mp4hdposterurl:
http://.pngplaystart: 256
title: TheLimpingMan
id: 6cfbee868849d50afdfce0611f2e2b87
contenttype: episode