[solved] Plugin: ImageSourceExtensions (1 Viewer)

Brownard

Development Group
  • Team MediaPortal
  • March 21, 2007
    2,005
    1,355
    Home Country
    United Kingdom United Kingdom
    Country flag
    This plugin adds a new type of ImageSource to MediaPortal 2 which allows skinners to implement smooth transitions and delayed loading of images.
    The ImageSourceWrapper inherits from MultiImageSource so has all of its properties plus:
    • Delay: The amount of time in seconds to delay the loading of images, useful for avoiding loading lots of images when scrolling quickly
    • DelayInOut: Whether the delay should apply when transitioning to or from null
    • Source: The primary image source, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource)
    • FallbackSource: The image source to use if the primary source cannot be loaded, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource)
    Source: https://github.com/MediaPortal/MediaPortal-2/tree/PLUGIN_ImageSourceExtensions

    Installation: Extract the attached zip to the MP2 client plugin directory

    Example usage:
    XML:
    <Screen
        xmlns:ie="clr-namespace:ImageSourceExtensions;assembly=ImageSourceExtensions"
        >
    ...
    <Image x:Name="FanArtImageBackground" VerticalAlignment="Stretch" Stretch="UniformToFill" Grid.Row="0" Grid.Column="0">
        <Image.Source>
            <ie:ImageSourceWrapper Delay="0.5" DelayInOut="true" Transition="transitions\dissolve" TransitionDuration="0.5"
                            Source="{Binding Source={StaticResource FanArtBackgroundModel}, Path=ImageSource, Converter={StaticResource FanArtImageSourceConverter}, ConverterParameter=FanArt;1920;1080;False}"
                            FallbackSource="FallbackFanart.png" />
        </Image.Source>
    </Image>
     

    Attachments

    • ImageSourceExtensions.zip
      4.5 KB · Views: 72
    Last edited:

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    7,494
    2,669
    Stuttgart
    Home Country
    Germany Germany
    Country flag
    Wow Brownard, you are a genius! (y):p:D It feels like beeing in a different world.
    All transitions are happening smoothly now. I think we have to bind the plugin, so it's installed ondefault!
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    7,494
    2,669
    Stuttgart
    Home Country
    Germany Germany
    Country flag
    A quick and dirty recording. Unfortunately I've no better software at the moment. And also I don't want to load tons of MB to here.
    You can see, that also the delay is working perfectly. Means, scrolling quickly makes the FanArts not being loaded and preventing performance issues.
     

    Attachments

    • test.avi
      41.4 MB · Views: 97

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,359
    3,802
    Lehmden
    Home Country
    Germany Germany
    Country flag
    Hi.
    This definitely is a big improvement in user experience, great(y)
    Can't wait to see this "live" on my setup.
    BTW... Do I need to adjust my Theme too or is this done in the main BV skin?
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    7,494
    2,669
    Stuttgart
    Home Country
    Germany Germany
    Country flag
    Hi.
    This definitely is a big improvement in user experience, great(y)
    Can't wait to see this "live" on my setup.
    BTW... Do I need to adjust my Theme too or is this done in the main BV skin?
    You need to adjust your theme in default-background.xaml according to Brownards guide above.
     
    Last edited:

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,359
    3,802
    Lehmden
    Home Country
    Germany Germany
    Country flag
    Thanks. I've tried it in Image-background.xaml but this did not work. Now I know why...;)
     

    Users who are viewing this thread

    Similar threads

    Big thanks for sure [emoji106][emoji106][emoji106] Tapatalk
    Big thanks for sure [emoji106][emoji106][emoji106] Tapatalk
    Downloads: Auto-3D-1-16-0 Short Description: If you start a 3D movie this plugin will recognize it and switch the MediaPortal...
    Replies
    1K
    Views
    180K
    Probably. I've a Panasonic plasma too, an ST60 and I set the 24P refresh rate. but for a monitor PC that have for sure a 60 HZ refresh rate could be a good option to choose as the Mad VR's smooth feature . But I don't know if it works. I'll try soon. P.S. : Fluid Motion Video, it doesn't work using simply using Dxva (no frame rate...
    Probably. I've a Panasonic plasma too, an ST60 and I set the 24P refresh rate. but for a monitor PC that have for sure a 60 HZ...
    Dynamic Refresh Rate Q: What is this? A: Dynamic Refresh Rate is a little program (created by Gibman) which looks at the media...
    Replies
    1K
    Views
    253K
    Top Bottom