How to display image from process plugin (1 Viewer)

Shukuyen

Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    • Thread starter
    • Moderator
    • #1
    Hi,

    I want to display an image (System.Drawing.Image) in MediaPortal triggered by a process plugin. Is there a way to do this, like I can play video files with g_Player? Or what other way can be used?

    Thanks,
    Shukuyen.
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    You can set a property with image filename and use <type>image</type> in the skin with that property in <texture> tag.

    If property is empty, picture is not visible and control.hasthumb(imageID) is false.
    If property contains valid filename, picture is shown and control.hasthumb(imageID) is true.
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    • Thread starter
    • Moderator
    • #3
    Thanks for the answer, SilentException, but as I want to show this image from a process plugin I don't have a skin file?
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    Not sure what you are trying to do but to display an image you will need a window plugin and skin file. You can say set a skin property with the path to an image file but actually displaying the image needs a window plugin
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    • Thread starter
    • Moderator
    • #5
    I am trying to build an Air Play client (apples "streaming" brand) that can receive videos and images from iOS devices. You would push a "display on mediaportal" button on your iPhone and the image will appear on MediaPortal.

    I thought it would be good to do this as a process plugin so that it can listen for Air Play connections in the background and display / play content once it is initiated by the device. I don't need any GUI for this except when displaying the content ...
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,702
    7,087
    Sydney
    Australia Australia
    Country flag
    Just expose some skin properties and the skins can display the images etc.

    So you can have a property like #AirPlay.Active which evaluates to true|false, you can also also publish all your other fields as well and then skins can add overlay imports where they want to show it.
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    • Thread starter
    • Moderator
    • #7
    Thanks Damien, that sounds like what I was looking for. Now I just have to find out how to pass a System.Drawing.Image to the GUIImage control - as far as I have seen this may not be possible, so I will probably have to save the image to disk first.

    To be honest, this skin stuff is really confusing ;-)
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Germany Germany
    Country flag
    Hi Shukuyen

    Great idea having an airplay client built in. I guess you would have to generate 2 plugins, one Process Plugin "Bonjour Listener" that would listen for AirPlay connections and a Window Plugin that would show the Airplay Content. This way you would not only be able to receive pictures, but also Video (and maybe Music).
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    • Thread starter
    • Moderator
    • #9
    Hi Shukuyen

    Great idea having an airplay client built in. I guess you would have to generate 2 plugins, one Process Plugin "Bonjour Listener" that would listen for AirPlay connections and a Window Plugin that would show the Airplay Content. This way you would not only be able to receive pictures, but also Video (and maybe Music).
    Hey mbuzina,

    I think it could work from a process plugin like ltfearme wrote. I can already receive images and videos but not yet display them (hopefully images will work soon, after the help I get here, for videos I will have to reuse the onlinevideos player stuff but it's hard if you don't know what you are doing :D).

    Music isn't included in the receiver class yet, it is streamed encrypted. There seems to be a reverse engineered private key to make music work, so maybe some time in the future ...

    I want to clean up the code a bit and maybe get images to work then I will upload the project to SVN. Maybe someone with more c#/mediaportal experience is willing to help with this :)
     

    hierl_w

    Portal Member
    February 15, 2010
    30
    34
    Germany Germany
    Hello guys,

    I have the same problem with showing pictures from the process plugin "MP Upnp Renderer".
    https://forum.team-mediaportal.com/...erer-process-plugin.104959/page-3#post-858917

    I don't want to make a extra window plugin + skin, If not necessary, because
    I have no skin know how & plugin can be used with every skin.

    Music and video is working fine from process plugin by activating any screen and playing the mediaUrl with gPlayer. But only the pictures I can't show correctly.

    Isn't it possible to show in fullscreenmode of the pictureviewer/slideshow?
    Like aktivate fullscreenwindow and set the picture from process plugin.

    Can anyone give me some code examle how to show the pictureUrl, please.
    Should I cache the picture before showing?

    Can I show the exifDialog in Fullscreen?

    Edit: Now It works by using the SlideshowWindow...

    bye,
    hierl_w
     
    Last edited:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    horned_reaper [solved] ID3 tag album cover is not displayed Fanart Handler 62
    F 1.25.0 Display corruption Bugreports 0
    M Problems with VFD Display after standby- Futaba DM140GINK Mini Display 0
    D Display Day of week in TV Guide? Feature Requests 0
    CyberSimian [Proposal] Tool to display time of next recording MediaPortal 1 0
    X [solved] Display needs to be turned on for TV services to function General 1
    M 2nd (Touch-)Display Support on MediaPortal 2 such MPDisplay++? General 2
    S Mini Display MP 1.24 no Volume OSD no action for keys Mini Display 0
    M [Suche] Display Futaba mdm166a Marktplatz 0
    N [fixed] [MP2-822] Folder View is not displaying individual media share elements Submit: Bug Reports 4
    HTPCSourcer Special (foreign) characters don't display correctly in EPG MediaPortal 2 4
    P Recommendations for Spectrum Analyzer/VU Metre/Graphical EQ for second display General 0
    azzuro [fixed] [MP2-813] Album artist filter wrong display Submit: Bug Reports 75
    Dark Eyes Display subtitles on a separate display or device MediaPortal 1 Plugins 0
    P TV recording not displaying episode titles or going into series General 10
    S Display non english folder name, subtitle, etc. General 23
    S [solved] Movie SRT subtitle didn't display on client 2.2 Archive 18
    A Mediaportal 2.2.1 - Some series posters not displaying General 6
    M [Pending] Fix for Inconsistent date display in TV Guide Submit: code patches (MediaPortal/TV-Server/etc.) 1
    drumrob Inconsistent date display in TV Guide 1.22 Pre Release 15
    H Live TV info OSD not displaying number of audio channels General Support 3
    T Moving Pictures...seem to have 'lost' ability to display Movie info. (eg Resolution/Audio) Moving Pictures 2
    HTPCSourcer [fixed] [MP2-794] Genre filtering always displays English strings MediaPortal 2 9
    S Something is just not right (Display) Newcomers Forum 1
    S Display driver failed to start, using microsoft basic display driver instead General Support 23
    Similar threads

























    Top Bottom