webcam plugin/hotspot

  • Thanks. But to understand this more, could you please post an example and explain it? I would really appreciate it.


    First of all you need to build your virtual tour without embedding everything in one single SWF !
    When you build your virtual tour, when you need to put an hotspot that points to a webcam, just create a hotspot that displays a copy of the picture locally saved of your webcam.
    Upload your whole virtual tour online.
    Create a cron job (it depends of your hosting system:
    -> if you get a telnet/ssh access to your hosting website, then you can just add it in cron by hand a line like that:

    Code
    */15 * * * * /usr/bin/wget http://www.les7laux.com/~webcam/webcam3.jpg -O /srv/Data/web/visites/7_Laux/2010-2011/indexdata/graphics/spots/object0.jpg


    the */15 means it will be updated every 15min, you'll probably need to adjust the /usr/bin depending of your linux system, then changes url for one of your website where are your webcam and /srv/Data... by way to where you want to save the file in your virtual tour uploaded
    -> if you have a control panel such as CPanel or Plesk you should be able to do that in graphic interface of it.

    Hope you can understand my explanations, it's easier than it looks :)

    One example here: http://visites.skivr.com/visites/7_Laux/2010-2011/index.html (sorry for long wait at start, still need to resolve that problem ! Open the map and click on one of the red I and you'll get webcam in real time :)

    Vincèn

  • Thanks Vincen. Now I understand. However, this could be a good solution for a webcam in a ski resort or for water surfers to check the weather where they can afford to have a 15 min or more delay in updating. However, if I need to see myself in the Pano, it needs to be more real time, right? Would you know how we can do that?

    Thanks for your help,
    Jay

  • HI Jchak,

    Krpano does not have this plugin yet, I made the example you posted with fpp. You can try google for webcam flash component or something like that and see what that brings up, I found one here http://www.flashcomponents.net/component/webc…_flash_v.2.html you could try to insert into your tour as normal plugin. If it does not work it might need some krpano interface connection code in the source, so post back here for help.

    best wishes,

    tom

  • Thanks Vincen. Now I understand. However, this could be a good solution for a webcam in a ski resort or for water surfers to check the weather where they can afford to have a 15 min or more delay in updating. However, if I need to see myself in the Pano, it needs to be more real time, right? Would you know how we can do that?


    Hum if you really need something in real time I don't know how to do that, sorry :(

    Vince


  • Create a cron job (it depends of your hosting system:
    -> if you get a telnet/ssh access to your hosting website, then you can just add it in cron by hand a line like that:

    Code
    */15 * * * * /usr/bin/wget http://www.les7laux.com/~webcam/webcam3.jpg -O /srv/Data/web/visites/7_Laux/2010-2011/indexdata/graphics/spots/object0.jpg


    the */15 means it will be updated every 15min, you'll probably need to adjust the /usr/bin depending of your linux system, then changes url for one of your website where are your webcam and /srv/Data... by way to where you want to save the file in your virtual tour uploaded

    Hellon Vince, I've done what you wrote, but when I pass the instruction you describe with Mac OS X terminal, it doesn't work and I have this message :
    "R?solution de http://www.google.fr... 74.125.230.82, 74.125.230.83, 74.125.230.84, ...
    Connexion vers http://www.google.fr|74.125.230.82|:80...?chec Le r?seau n'est pas accessible ..
    Connexion vers http://www.google.fr|74.125.230.82|:80...?chec Le r?seau n'est pas accessible ..
    Connexion vers http://www.google.fr|74.125.230.82|:80...?chec Le r?seau n'est pas accessible ..
    Connexion vers http://www.google.fr|74.125.230.82|:80...?chec Le r?seau n'est pas accessible ..
    "

    Do you understand where is the problem?
    My website is on OVH servers.

    Thank you

    Floww


  • What command line do you type exactly ? because I don't understand why it's a google error you get !

    Vincèn

  • Code
    */15 * * * * /usr/bin/wget http://www.google.fr/intl/en_com/images/srpr/logo1w.png -O /homez/www/photo.jpg


    I typed this code line ... And I where answered by Terminal that */15 doesn't exist so I just typed

    Code
    /usr/bin/wget http://www.google.fr/intl/en_com/images/srpr/logo1w.png -O /homez/www/photo.jpg

    and then I had the error I told you ... *unsure*
    Do you see what's wrong ?
    Floww

  • Do you see what's wrong ?


    For sure you missed a step in my explanations :D the one that says "Create a cron job" !
    That command line is not to be done in terminal but added in cron so it executes regularly on our webserver :) if you don't know what is cron, check here http://en.wikipedia.org/wiki/Cron

    Vincèn

  • Hi pals.

    So you are needing a webcam plugin/hotspot...interesting.

    That could be done going html5-javascript way. How much do you truly need it?, enough to pay a few dlrs for it? (I ask so work may worth before coding it)

    Best regards,
    Ciul

  • I think you can use red5 (from Open Source Flash), but they're still developing and you have to find out most things yourself I'm afraid. Use this link to download.

    Description: Red5 is an open source Flash server written in Java for live and on-demand audio/video streaming, recording of streams, Shared Objects and Flash Remoting. Red5 provides scripting support for Python, Javascript, Ruby and Groovy.

    Here you can fine someone who used it to display live tv.

    Hopefully this is what I think it is ;). Good luck!

  • HI Maaike,

    The 2 examples are different. Vincens example is embedding images taken from webcams at a ski resort and then dsiplayed within the panorama. My example you are not seeing, allows you to display live from your webcam. You have to have a webcam and turned on to see it. but basically when you visit the panorama flash will ask you if you want to allow the panorama to access your webcam, and once permssion is granted, you can then see yourself within the panorama on the billboard. I hope you get to try it out *smile* but it needs the user to have a webcam.

    best wishes,

    tom

  • Nice idea! It would be nice to try it out, but unfortunately I have no webcam. I have one on the laptop on my work, so maybe I can try there.

    Thanks for your explanation (I looked to your pano several times, but didn't find anything :P).

  • Hi all,

    is this something we can do now in krpano?
    I mean with the webcam on the computer of the user?

    I'm interested in this feature!

    Nice fpp example tom!

    Tuur *thumbsup*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!