NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) International Cinema Listings, RSS Reader, WebCams, Calendar, Files and Screen Saver v
1 2 3 4 Next »
Web Cams 2 - Support Thread

 
  • 0 Vote(s) - 0 Average
Web Cams 2 - Support Thread
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#41
2007-03-09, 12:21 AM
Could you try the attached version of the WebCams2 plug-in for a bit and see if you get the same problems.

I've moved the download code to a separate thread, this way the GB-PVR UI gets updated even if the download stalls. To test I set all the default WebCams to 10second refresh and flicked through them like a madman - the GUI runs fine, you met get occasional blank images when the images are being saved the moment you are trying to view them.

Let me know how it goes.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
capone
Offline

Posting Freak

Posts: 1,756
Threads: 190
Joined: Jan 2005
#42
2007-03-09, 12:49 AM
McBainUK Wrote:Can you post your \gbpvr\Plugins\WebCams2.xml file so I can run tests with the same setup? What internet connection type/speed have you got?


The only way to check is to run tests and add some extra logging.

I be glad to try that fix later. Here's my page for now.

My connection is over cable...usually 4Mb/sec from the pvr.
capone
Offline

Posting Freak

Posts: 1,756
Threads: 190
Joined: Jan 2005
#43
2007-03-09, 02:41 PM
McBainUK Wrote:Could you try the attached version of the WebCams2 plug-in for a bit and see if you get the same problems.

Let me know how it goes.

I played w/ it last night, and it was so much faster. I only flipped it 2-3 times last night, but it seemed to perform both very well and better than before. I did change the times around on my d/l intervals (so they all weren't at 10min), but again, it just seemed so unlikely I was always using it at that 10min mark.

I turned on debug logging, so if anything comes up, I can give you a more detailed log file.

Thanks for the hard work.
ccsnet
Offline

Member

Posts: 115
Threads: 16
Joined: Sep 2004
#44
2007-04-18, 10:21 AM
McBainUK - Do you know the browser name that this plugin gives to web sites ? It seems to grab images from one site that IE can't so I'm going to use a spoofing script (non GBPVR related )....

Thanks

Terran
http://www.letscommunicate.co.uk/carpc/

http://www.digital-car.co.uk/

Now also on Skynet ( SkyTV UK ) at wtv.letscommunicate.co.uk
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#45
2007-04-18, 10:26 AM
I'm afraid I don't know. To download the web cam images I use the .NET system.IO name space and the WebClient class. I imagine being MS it uses an IE like browser name.

Code attached:
Code:
// Downloads a picture from the Internet
        protected bool DownloadPicture(string id, string filename)
        {
            Logger.Verbose("WebCams2 Plugin: Attempting to download \"" + id + "\"");

            bool bStatus = false;
                try
                {
                    System.Uri uri = new System.Uri(id);
                    WebRequest request = WebRequest.Create(uri);
                    //WebResponse response = new WebResponse();
                    StreamReader streamReader;

                    if (username != "" && password != "")// Set up a web client and supply it the username and password
                    {
                        WebClient client = new WebClient();
                        client.Credentials = new System.Net.NetworkCredential(username, password);
                        streamReader = new StreamReader(client.OpenRead(uri));
                    }
                    else
                    {
                        WebResponse response = request.GetResponse();
                        streamReader = new StreamReader(response.GetResponseStream());
                    }

                    // save to file
                    Stream output = new FileStream(filename, FileMode.Create);
                    int BUFFER_SIZE = 128000;
                    byte[] buff = new byte[BUFFER_SIZE];
                    int bytes = 0;
                    //Stream str = response.GetResponseStream();
                    Stream str = streamReader.BaseStream;
                    while ((bytes = str.Read(buff, 0, BUFFER_SIZE)) > 0)
                    {
                        output.Write(buff, 0, bytes);
                    }
                    output.Close();

                    bStatus = true;

                    streamReader.Close();
                    str.Close();
                }
                catch (Exception e)
                {
                    Logger.Error("WebCams2 Plugin: Could not download WebCam image");
                    Logger.Error("WebCams2 Plugin: " + e.Message );
                }
            return (bStatus);
        }
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Cape-City
Offline

Member

Posts: 237
Threads: 44
Joined: Aug 2005
#46
2007-06-09, 03:27 PM
Hi,

is it possible to show the image from a local usb webcam like the securitycam plugin does ?

i think the securitycam plugin will not be developed anymore and the look and
feel isnt that kind of handy Smile

Greetz
Cape-City
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#47
2007-06-12, 09:56 AM
Cape-City Wrote:is it possible to show the image from a local usb webcam like the securitycam plugin does ?
If the webcam saves the image to a local file then the plug-in will be able to view it (set local to true in the config app).
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Cape-City
Offline

Member

Posts: 237
Threads: 44
Joined: Aug 2005
#48
2007-06-12, 11:21 AM
no, its only conneted to the usb port - only the driver is installed no
software which is running in the background. hmmmm - poor me Sad

thnx for quick answer.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#49
2007-06-14, 12:22 AM
I am investigating using a USB webcam attached to my gbpvr server as a security camera...

Can anyone confirm that I would have to:
  • Configure the server to capture an image to a .jpg at whatever refresh rate.
  • Use gbpvr config to add the URL of the .jpg with an appropriate refresh rate.
  • Start gbpvr and see who is at the door from whichever PC or gbpvr supported appliance I happen to be sitting in front of at the time...
Or have I missed something... :o

If I haven't, does anyone know of any software which would persuade a Labtec webcam to capture the images as required?

BTW: what an interesting piece of kit gbpvr is...
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#50
2007-06-14, 07:27 AM
That all seems OK.

Regarding your software question, I don't know but a Google search or a look on labtec's website might bring some results.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (13): « Previous 1 … 3 4 5 6 7 … 13 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  RSS Reader X2 - Support Thread McBainUK 56 36,758 2010-09-29, 09:40 PM
Last Post: hasso
  Screen Saver Plugin - Support Thread McBainUK 34 31,329 2010-01-10, 10:10 PM
Last Post: McBainUK
  Files Plugin support thread McBainUK 28 22,877 2010-01-04, 02:46 PM
Last Post: msrtlt
  Could the Web Cams be grouped? mkenyon2 1 3,006 2008-11-07, 02:23 PM
Last Post: McBainUK
  Calendar - Support Thread McBainUK 18 9,249 2007-09-08, 12:57 PM
Last Post: McBainUK
  International Cinema Listings plugin - Support Thread McBainUK 120 32,814 2007-03-09, 09:42 AM
Last Post: McBainUK
  Support questions McBainUK 0 7,417 2007-02-27, 02:45 PM
Last Post: McBainUK
  Games plugin - Support Thread McBainUK 13 7,077 2007-02-07, 12:49 AM
Last Post: pastro
  UK Cinema Listings - Support Thread McBainUK 12 6,669 2006-12-04, 12:51 AM
Last Post: McBainUK
  Volume OSD plugin - Support Thread McBainUK 11 7,219 2006-11-29, 01:52 PM
Last Post: kayak4ever

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode