Project Links mvpmc.org   wiki

Patch - Display slideshow at start-up

View: New views
7 Messages — Rating Filter:   Alert me  

Patch - Display slideshow at start-up

by Graham Jones (Physics) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I wanted to use my MVP as a simple picture slideshow display, but it has to do it automatically without needing the user to do anything with the remote control.
I attach a patch that adds a command line option so that you can say

           --startup slideshow:file=<path to directory containing image files>.

All it does is set the file browser's working directory to the specified path, initialises the file browser and displays the first image in the directory.  It then simulates pressing the '1' key to start a slideshow.  Other features still seem to work, but I have not tested everything.

It works ok for me, but I did struggle to un-pick the source code, so there may be some 'housekeeping' bits that I have missed.

What is the process to get this feature added to the official source code?

Graham.

diff -Nar mvpmc/src/gui.c mvpmc_gj/src/gui.c
1018c1018
< mvp_widget_t *iw;
---
> mvp_widget_t *iw;           /* Image View widget */
3656a3657
>
8815a8817,8840

> case MM_SLIDESHOW:
>  printf("startup_this_feature = MM_SLIDESHOW\n");
>  mvpw_hide(setup_image);
>  mvpw_hide(mythtv_image);
>  mvpw_hide(replaytv_image);
>  mvpw_hide(about_image);
>  mvpw_hide(emulate_image);
>  mvpw_hide(exit_image);
>  
>  /* Update the file browser to contain the correct list of files - the
>   * filebrowser working directory was set in main by the slideshow:file=
>   * option.
>   */
>  fb_update(file_browser);
>  /* Show the image viewew widget */
>  mvpw_show(iw);
>  /* Display the first image - not sure why you have to display 0 then 1... */
>  fb_next_image(0);
>  fb_next_image(1);
>  /* Simulate pressing the '1' key on the remote to set 1 second interval
>   * for slideshow */
>  iw_key_callback(iw,MVPW_KEY_ONE);
>
>  break;
diff -Nar mvpmc/src/main.c mvpmc_gj/src/main.c
779a780,793

> else if (strcmp (optarg_tmp, "slideshow") == 0) {
>  printf("startup slideshow selected\n");
>  startup_this_feature = MM_SLIDESHOW;
>  /*
>   * Decode the "filesystem" option parameter.
>   */
>  if(optparm != NULL) {
>    if (strncmp (optparm, "file=", strlen("file=")) == 0) {
>      optparm += strlen("file=");
>      snprintf(cwd,1024,"%s",optparm);
>      printf("slideshow file=%s\n",cwd);
>    }
>  }
> }
1259c1273
< }
---
> }  /* mvpmc_main(int argc, char **argv) */
diff -Nar mvpmc/src/mvpmc.h mvpmc_gj/src/mvpmc.h
586a587
> MM_SLIDESHOW,
591c592
< extern int fb_next_image(int offset);
---
> extern int fb_next_image(int offset); /* Defined in fb.c */

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Mvpmc-devel mailing list
Mvpmc-devel@...
https://lists.sourceforge.net/lists/listinfo/mvpmc-devel

Re: Patch - Display slideshow at start-up

by stuart-20 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Grahamjones wrote:

>
> I wanted to use my MVP as a simple picture slideshow display, but it has
> to do it automatically without needing the user to do anything with the
> remote control.
> I attach a patch that adds a command line option so that you can say
>
>            --startup slideshow:file=<path to directory containing image
> files>.
>
> All it does is set the file browser's working directory to the specified
> path, initialises the file browser and displays the first image in the
> directory.  It then simulates pressing the '1' key to start a
> slideshow.  Other features still seem to work, but I have not tested
> everything.
>
> It works ok for me, but I did struggle to un-pick the source code, so
> there may be some 'housekeeping' bits that I have missed.
>
> What is the process to get this feature added to the official source code?
>
> Graham.

This is a good start.

You might want to talk about it in the users list to see if anyone has
any additional suggestions.  Also, you might find someone has already
implemented a similar feature (Martin's always good for that).

Yeah, I'm wondering why you need to fiddle w/loading image 0 then 1 as well.

It would be nice to be able to both 1) start the feature from the
command line and 2) enter/exit it from the menus.

(I can already see relaters flocking to buy MediaMVPs, setting them up
in their windows and showing off houses all night long.  At half the
price of a desk top!)



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Mvpmc-devel mailing list
Mvpmc-devel@...
https://lists.sourceforge.net/lists/listinfo/mvpmc-devel

Parent Message unknown Re: Patch - Display slideshow at start-up

by Graham Jones (Physics) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Stuart,
I didn't add a menu item for it because it is really just the file browser with a couple of simulated button presses, but if people think it would be better I can add it.  
I think a second parameter for the display interval would be good - 1 sec is a bit quick sometimes.

Cheers


Graham.


-----Original message-----
From: stuart stuart@...
Date: Wed, 17 Dec 2008 15:21:59 +0000
To: Grahamjones grahamjones@...
Subject: Re: [Mvpmc-devel] Patch - Display slideshow at start-up

>
>
> Grahamjones wrote:
> >
> > I wanted to use my MVP as a simple picture slideshow display, but it has
> > to do it automatically without needing the user to do anything with the
> > remote control.
> > I attach a patch that adds a command line option so that you can say
> >
> >            --startup slideshow:file=<path to directory containing image
> > files>.
> >
> > All it does is set the file browser's working directory to the specified
> > path, initialises the file browser and displays the first image in the
> > directory.  It then simulates pressing the '1' key to start a
> > slideshow.  Other features still seem to work, but I have not tested
> > everything.
> >
> > It works ok for me, but I did struggle to un-pick the source code, so
> > there may be some 'housekeeping' bits that I have missed.
> >
> > What is the process to get this feature added to the official source code?
> >
> > Graham.
>
> This is a good start.
>
> You might want to talk about it in the users list to see if anyone has
> any additional suggestions.  Also, you might find someone has already
> implemented a similar feature (Martin's always good for that).
>
> Yeah, I'm wondering why you need to fiddle w/loading image 0 then 1 as well.
>
> It would be nice to be able to both 1) start the feature from the
> command line and 2) enter/exit it from the menus.
>
> (I can already see relaters flocking to buy MediaMVPs, setting them up
> in their windows and showing off houses all night long.  At half the
> price of a desk top!)
>
>

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Mvpmc-devel mailing list
Mvpmc-devel@...
https://lists.sourceforge.net/lists/listinfo/mvpmc-devel

Re: Patch - Display slideshow at start-up

by MVallevand :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Dec 17, 2008 at 10:21 AM, stuart <stuart@...> wrote:

> It would be nice to be able to both 1) start the feature from the
> command line and 2) enter/exit it from the menus.
>
> (I can already see relaters flocking to buy MediaMVPs, setting them up
> in their windows and showing off houses all night long.  At half the
> price of a desk top!)


There is a new "signage" model of the pch that has software to do this
without a server.  Signage functionality might be something for the
plugin version in the future mxing video photos and audio.

Martin

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Mvpmc-devel mailing list
Mvpmc-devel@...
https://lists.sourceforge.net/lists/listinfo/mvpmc-devel

Re: Patch - Display slideshow at start-up

by Tom Metro-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

stuart wrote:
> (I can already see relaters flocking to buy MediaMVPs, setting them up
> in their windows and showing off houses all night long.  At half the
> price of a desk top!)

A used MVP plus a used LCD computer monitor could make a nice
inexpensive "big screen" (19"+) photo frame, except the MVP has no VGA
output, and most computer monitors don't have a composite input. Though
a few do, like the 24" Gateway FPD2485W, it's 22" cousin, and a few others.

Now if you could just figure out how to hack in a touch screen and
connect that up to the MVP, then you'd really have something.

  -Tom

------------------------------------------------------------------------------
_______________________________________________
Mvpmc-devel mailing list
Mvpmc-devel@...
https://lists.sourceforge.net/lists/listinfo/mvpmc-devel

Re: Patch - Display slideshow at start-up

by stuart-20 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Tom Metro wrote:
> stuart wrote:
>> (I can already see relaters flocking to buy MediaMVPs, setting them up
>> in their windows and showing off houses all night long.  At half the
>> price of a desk top!)
>
> A used MVP plus a used LCD computer monitor could make a nice
> inexpensive "big screen" (19"+) photo frame, except the MVP has no VGA
> output, and most computer monitors don't have a composite input. Though
> a few do, like the 24" Gateway FPD2485W, it's 22" cousin, and a few others.

Looks like you can get boxes (comp -> vga) to do that for about $65:
> http://accessories.us.dell.com/sna/productdetail.aspx?sku=A0950951

> Now if you could just figure out how to hack in a touch screen and
> connect that up to the MVP, then you'd really have something.
>
>   -Tom

I wish I had time to do this stuff.  I'm sure that an mvpmc box w/a
hacked serial port added could do this.  However, touch screens are just
as expensive as monitors:
> http://www.enablemart.com/Catalog/Touch-Screens/Magic-Touch-Add-On-Touch-Screens

...I have no idea if this is a valid discount for the above supplier,
but I found this on the mp3touchscreens.com site:
# *Bonus: Purchase over the phone by calling EnableMart at 888-640-1999
and mention 'www.mp3touchscreens.com' to get 15% off their listed price,
free shipping, no sales tax, and 30-day money back guarantee!! (Not
applicable to internet orders; Some benefits may not be applicable to
orders shipped outside the US)









------------------------------------------------------------------------------
_______________________________________________
Mvpmc-devel mailing list
Mvpmc-devel@...
https://lists.sourceforge.net/lists/listinfo/mvpmc-devel

Parent Message unknown Re: Patch - Display slideshow at start-up

by Graham Jones (Physics) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The reason I made this patch was to use it as a photo frame, but I am using an LCD TV rather than a monitor.  You are right, I could have bought another gadget to do something similar, but I had a MVP kicking around that I got a while ago and intended to turn into something 'useful'!

A touch screen is an interesting thought - I have made this for my disabled son to be able to use, but I am using a simple big push button  and a timer to power on the whole system for a set period (if I can persuade him to press it!).  A touch screen could be really neat - I'll have to have a look into it.....

Graham.

-----Original message-----
From: stuart stuart@...
Date: Sun, 21 Dec 2008 19:27:45 +0000
To: Tom Metro tmetro+mvpmc-devel@...
Subject: Re: [Mvpmc-devel] Patch - Display slideshow at start-up

>
>
> Tom Metro wrote:
> > stuart wrote:
> >> (I can already see relaters flocking to buy MediaMVPs, setting them up
> >> in their windows and showing off houses all night long. At half the
> >> price of a desk top!)
> >
> > A used MVP plus a used LCD computer monitor could make a nice
> > inexpensive "big screen" (19"+) photo frame, except the MVP has no VGA
> > output, and most computer monitors don't have a composite input. Though
> > a few do, like the 24" Gateway FPD2485W, it's 22" cousin, and a few others.
>
> Looks like you can get boxes (comp -> vga) to do that for about $65:
> > http://accessories.us.dell.com/sna/productdetail.aspx?sku=A0950951
>
> > Now if you could just figure out how to hack in a touch screen and
> > connect that up to the MVP, then you'd really have something.
> >
> > -Tom
>
> I wish I had time to do this stuff. I'm sure that an mvpmc box w/a
> hacked serial port added could do this. However, touch screens are just
> as expensive as monitors:
> > http://www.enablemart.com/Catalog/Touch-Screens/Magic-Touch-Add-On-Touch-Screens
>
> ..I have no idea if this is a valid discount for the above supplier,
> but I found this on the mp3touchscreens.com site:
> # *Bonus: Purchase over the phone by calling EnableMart at 888-640-1999
> and mention 'www.mp3touchscreens.com' to get 15% off their listed price,
> free shipping, no sales tax, and 30-day money back guarantee!! (Not
> applicable to internet orders; Some benefits may not be applicable to
> orders shipped outside the US)
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Mvpmc-devel mailing list
> Mvpmc-devel@...
> https://lists.sourceforge.net/lists/listinfo/mvpmc-devel
------------------------------------------------------------------------------

_______________________________________________
Mvpmc-devel mailing list
Mvpmc-devel@...
https://lists.sourceforge.net/lists/listinfo/mvpmc-devel