kazim
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2011
07:55 AM
2 mins preview
Hi,
I've been trying to implement "2 mins preview" functionality for live stream and I tried using "SetPreviewMode(true)" function of "roVideoScreen" but it's not working. Following is the piece of code:
port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)
screen.SetPreviewMode(true)
screen.SetContent(episode)
screen.Show()
Can someone please explain what is the correct way of using it?
Thanks.
I've been trying to implement "2 mins preview" functionality for live stream and I tried using "SetPreviewMode(true)" function of "roVideoScreen" but it's not working. Following is the piece of code:
port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)
screen.SetPreviewMode(true)
screen.SetContent(episode)
screen.Show()
Can someone please explain what is the correct way of using it?
Thanks.
1 REPLY 1

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2011
08:54 AM
Re: 2 mins preview
You can just set PlayDuration to the amount of time in the preview. Playback will stop when it reaches the PlayDuration time.
--Mark
--Mark