Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

Re: IP Camera app/channel

"YungBlood" wrote:
For viewing a single webcam, try this:

https://owner.roku.com/add/PNVUS

I will be adding a multi-cam app later. Smiley Happy


Hi youngblood.
PNVUS is not a valid channel !!!!!
Best regards
vasentak
0 Kudos
Highlighted
Level 7

Re: IP Camera app/channel

I believe his app is now officially in Channel Store.
----------------------------------------------------------------------------------
current: two roku XDS 2xs, dtvpal, boxeebox, kylo.tv,
radar: wdlxtv.com
0 Kudos
Highlighted
Level 7

Re: IP Camera app/channel

Good looking channel- has anyone found a working JPG stream from FosCam? I can get it on my browser at http://cameraip/snapshot.cgi -- but this doesn't seem to work with the Webcam-One app written by YungBlood.
0 Kudos
Highlighted
Level 7

Re: IP Camera app/channel

Good looking channel- has anyone found a working JPG stream from FosCam? I can get it on my browser at http://cameraip/snapshot.cgi -- but this doesn't seem to work with the Webcam-One app written by YungBlood.


Try http://<IP address>/cgi-bin/video.jpg I have a different model and it worked for me.

For other cameras: http://www.crazypixels.com/support.htm
----------------------------------------------------------------------------------
current: two roku XDS 2xs, dtvpal, boxeebox, kylo.tv,
radar: wdlxtv.com
0 Kudos
Highlighted
Level 7

Re: IP Camera app/channel

This just worked for me on Roku's Webcam One Channel using the Foscam FI8918W model.
Device Firmware Version 11.22.2.38
Device Embeded Web UI Version 2.4.18.17


http://ipaddressSmiley Tongueort/snapshot.cgi?user=xxxxx&pwd=xxxxx


Waiting for WebCam-Multi. Smiley Very Happy
0 Kudos
Highlighted
Level 12

Re: IP Camera app/channel

Webcam One works great.
Anyone know if WebCam-Multi Info or a similar channel exists?

The website DNS is not registered anymore, but internet archive has the last change to the website Aug 12,2012. Anyone know if source code is available for WebCam-One / Multi ?
TheTick (aka "Moose Twit" affectionately called by chht)
Roku 3 for Pokémon TV / YouTube / Animal Planet GO / HBO GO. Chromecast for most other media because Roku Mirroring sucks , how many clicks in Wndows 10 (about a dozen) to Miracast on Roku vs 2 with Chromecast.
Verizon FIOS TV and Internet Service
0 Kudos
Highlighted

Re: IP Camera app/channel

Having Trouble getting URL's to update JPG image!

Sub main()

facade = CreateObject("roImageCanvas")
facade.SetLayer(0, {Color:"#FF000000", CompositionMode:"Source"}) 'Set opaque background
facade.Show()

m.canvas = CreateObject("roImageCanvas")
m.port = CreateObject("roMessagePort")
m.canvas.SetMessagePort(m.port)
m.canvas.SetLayer(0, {Color:"#FF000000", CompositionMode:"Source"}) 'Set opaque background

showImageCanvas()

while(true)
msg = wait(0,m.port)
if type(msg) = "roImageCanvasEvent" then
if (msg.isRemoteKeyPressed()) then
i = msg.GetIndex()
print "Key Pressed - " ; msg.GetIndex()
if (i = 2) then
' Up - Close the screen.
m.canvas.close()
m.port = invalid
print "Closed"
facade.close()
return
end if
if (i = 3) then
print "Refreshing..."
m.canvas.close()
m.canvas = CreateObject("roImageCanvas")
m.canvas.SetMessagePort(m.port)
m.canvas.SetLayer(0, {Color:"#FF000000", CompositionMode:"Source"}) 'Set opaque background
showImageCanvas()
end if
end if
end if
end while

End Sub

Sub showImageCanvas()

date = CreateObject("roDateTime")
print "The date is now "; date.AsSeconds()

canvasItems = [
{
url:"http://192.168.1.12:82/SnapShot/cam1.jpg"
TargetRect:{x:0,y:20,w:640,h:340} '0,0 ~ 640,360 upper left
CompositionMode:"Source"
},
{
url:"http://192.168.1.12:82/SnapShot/cam2.jpg"
TargetRect:{x:0,y:380,w:640,h:340} '0,360 ~ 640,360 lower left
CompositionMode:"Source"
},
{
url:"http://192.168.1.12:82/SnapShot/cam0.jpg"
TargetRect:{x:640,y:20,w:640,h:340} '640,0 ~ 640,360 upper right
CompositionMode:"Source"
},
{
url:"http://192.168.1.12:82/SnapShot/cam3.jpg"
TargetRect:{x:640,y:380,w:640,h:340} '640,360 ~ 640,360 lower right
CompositionMode:"Source"
},
{
'upper left
Text:"FRONT LEFT"
TextAttrs:{Color:"#FFFFFFFF", Font:"Small",HAlign:"Left", VAlign:"Center",Direction:"LeftToRight"}
TargetRect:{x:0,y:2,w:640,h:20}
CompositionMode:"Source"
},
{
'upper left
Text:date.AsSeconds()
TextAttrs:{Color:"#FFFFFFFF", Font:"Small",HAlign:"Right", VAlign:"Center",Direction:"LeftToRight"}
TargetRect:{x:320,y:2,w:320,h:20}
CompositionMode:"Source"
},
{
'lower left
Text:"FRONT CENTER"
TextAttrs:{Color:"#FFFFFFFF",Font:"Small",HAlign:"Left", VAlign:"Center",Direction:"LeftToRight"}
TargetRect:{x:0,y:362,w:640,h:20}
CompositionMode:"Source"
},
{
'upper right
Text:"FRONT RIGHT"
TextAttrs:{Color:"#FFFFFFFF", Font:"Small",HAlign:"Left", VAlign:"Center",Direction:"LeftToRight"}
TargetRect:{x:640,y:2,w:640,h:20}
CompositionMode:"Source"
},
{
'lower right
Text:"REAR VIEW"
TextAttrs:{Color:"#FFFFFFFF",Font:"Small",HAlign:"Left", VAlign:"Center",Direction:"LeftToRight"}
TargetRect:{x:640,y:362,w:640,h:20}
CompositionMode:"Source"
}
]

m.canvas.SetRequireAllImagesToDraw(true)
m.canvas.SetLayer(1, canvasItems)
m.canvas.Show()

m.canvas.PurgeCachedImages()
canvasItems.clear()

End Sub


Images on Website are constantly updated by DVR (i.e. GeoVision) using FTP to a folder under IIS. Therefore every .1 sec a new image is written.
When I reload the roImageCanvas I don't get the updated JPG Images.
Any help would be nice!
Thanks
0 Kudos
Highlighted
Roku Employee
Roku Employee

Re: IP Camera app/channel

tag a random string to the end of the url each time you load the image otherwise it will be cached, for example:

 {
url:"http://192.168.1.12:82/SnapShot/cam1.jpg"+"?random="+rnd(10000).tostr()
TargetRect:{x:0,y:20,w:640,h:340} '0,0 ~ 640,360 upper left
CompositionMode:"Source"
}
0 Kudos
Highlighted

Re: IP Camera app/channel

Thank you!

I would have never thought of that.

Is there a way to clear the cache?
0 Kudos
Highlighted
Roku Employee
Roku Employee

Re: IP Camera app/channel

http://sdkdocs.roku.com/display/sdkdoc/ifImageCanvas#ifImageCanvas-VoidPurgeCachedImagesVoid

This is supposed to do it, there were some reports that it doesn't work.

- Joel
0 Kudos