View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#76
Originally Posted by handaxe View Post
One weirdness - whilst the widget works for my cam, the application does not. "Loading webcam" shows but the image never displays.
Hmm. That really is weird; the widget and the app are for the most part running the exact same code; only the top-level UI elements are different...

Further, even when connected by wifi, the application shows "fettucine failed to access internet".
Well, that might explain why the app shows "Loading webcam" (which is, in fact, the default label shown when there is no data; I need to fix that!). But then, I don't know why it failed to access the net in the first place. (Is this just for the one webcam, or for any webcam? If you hit the play icon, does the same error message come up?)

As for the widget display size, why not store that in the xml? Is there a point to having multiple widgets, each showing a different webcam from the same xml BUT with different display sizes?
Ah, well, I can't even get that far -- say I have two widgets. Widget #1 is constructed, and says "Hey, I'm a widget! What sizes and webcam should I use? I don't know which widget I am, so I'll take the data for widget #1." Then, widget #2 is constructed, and also says "Hey, I'm a widget! What sizes and webcam should I use? I don't know which widget I am, so I'll take the data for widget #1."

Oh well. For now, I've decided to just bypass this mess and not allow multiple widgets. I've got a version of Fettuccine which properly maintains widget state information now; I'll try to get it pushed up soon.
 

The Following User Says Thank You to Copernicus For This Useful Post: