You can do it any way you want as long as you are creating valid XML. You can have a file for each video for example and retrieve it at playback time. The more separate files you have, the more of a bandwidth and CPU hit on your servers will be subject due to multiple retrieval requests, so might be best to have just one or two.
Of course you need to have at least one xml file that specifies where all the other files can be found.
For the Log Out:
You could set up a timer with rotimespan:
m.timer=createobject("roTimeSpan")
and then in every function in your channel make sure that the wait time is non zero, and, you can exit the channel when 2 hours completes:
while true
msg=wait(100,port)
if m.timer.totalseconds > 3600 then
dialog=createobject("roOneLineDialog")
Dialog.settitle("You have been logged out due to inactivity")
end
end if
if msg <> invalid then
'reset the timer on any activity
m.timer.mark()
end if
You would probably want to make it a bit more elaborate than that but hopefully that gets you the gist of it.
- Joel