Info, pic, video or data onfocus?

authorjanetime17 Mar 2010categoryportal.gzgq.com
  • sorry if this sounds weird, what i want to do is to show a image or a video in the background when you select a certain movie. (a movie poster, a preview, etc)

    (yeah i know the video is a tough nut) i was looking at the code and i saw that the guiwindowhome does something like this to change the background image, but i was wondering two things, is this possible in any screen (like videos, music, etc) or just in myhome? is there a way to play a video in the background, based on what you selected, in any screen too? (that would be cool for animated backgrounds, previews, etc)

    thanks, and happy holidays!


  • yes, i did meant by changing the code. which part would have to be modifed?

    btw: thanks for answering jmarshall happy holidays!


  • ok, how i would do it:

    1. add a couple of info labels to the guiinfomanager. something like medialist.currentthumb perhaps.

    2. add a base class for all media windows (programs, scripts, pictures, music, video) and have a function getselecteditem() which returns a cfileitem pointer to the current item, and a ismediawindow() function to the guiwindow base class.

    3. in the guiinfomanager, check whether you have a media window, then cast the window to a media window, and call getselecteditem(). then just extract the thumb info which is what you return.

    that way you can have it on all windows no problem at all.

    as i said, i'm planning on adding this at some stage in the near future, but if you would like to do it, then go for it.

    cheers,
    jonathan


  • not without changing the code, no. i'm planning to add something similar for the list/thumb controls at some point however.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Info, pic, video or data onfocus? , Please add it free.