Plugin support (1 Viewer)

ge2301

MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Admin
    • #1
    I almost completed the BlueVision skin for Online Videos. Attached you can find a preview.
    OV_home.jpg OV_sites.jpg OV_categories.jpg OV_categories_2.jpg OV_videos.jpg

    In case no thumbnail is available the BlueVision Container with content description is appearing.
    Descriptions appear in the footer area. For the moment I didn't apply rounded corners and left thumbs as they are.

    Question to @offbyone
    The structure is SITE --> CATEGORY --> VIDEO
    Could it be possible to get the superior information by your code? Currently, when scrolling in the videos, I can not see in which site or category I am.
    It's not a must, just a nice to have I'd like to add :)
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Admin
    • #2
    In this case I'll skip BV branches and leave them to you.
    I'm doing merges of other pending branches right now.
    I've cleaned up the BV skin for the weather skin in GitHub. Later after my TV program is finished I gonna push also the BV skin for OnlineVideos to BV_v5 branch. Hope thats the correct place, since the original branch of OV is not on GitHub as far as I remember.
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Admin
    • #3
    Testversion of Bluevision skin for onlinevideos.
    Please extract to "MediaPortal-2\Client\Plugins\OnlineVideos\Skin\"

    There is generally one problem existing also in BlueVision main skin. Rounded corners look only well, when applied to stretched images (Fill, UniformToFill). Using Uniform will make the mask filling the gaps with white or black depending on the method the mask is applied.
    Unbenannt.jpg
    For some reasons a mask can not be applied to only the visible part of a picture. This seems to be a weak part of WPF
     

    Attachments

    Last edited:

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,400
    6,971
    Germany Germany
    Country flag
    For some reasons a mask can not be applied to only the visible part of a picture.
    Yes, this is normal:
    the control dimension is the full rectangle, where the mask is applied. How the texture is placed into this control is defined by the "Stretch" property, but it has no affect to the control's size.

    You can only solve this, if the control has no fixed size and occupies only the size of its content. And then you have to use an OpacityMask using another "Rounded Rectangle" as shape, not a bitmap.

    I've done this inside ApolloOne home screen tiles, they are of different sizes, but rounded corners are applied in correct aspect ratio.
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Admin
    • #5
    For some reasons a mask can not be applied to only the visible part of a picture.
    Yes, this is normal:
    the control dimension is the full rectangle, where the mask is applied. How the texture is placed into this control is defined by the "Stretch" property, but it has no affect to the control's size.

    You can only solve this, if the control has no fixed size and occupies only the size of its content. And then you have to use an OpacityMask using another "Rounded Rectangle" as shape, not a bitmap.

    I've done this inside ApolloOne home screen tiles, they are of different sizes, but rounded corners are applied in correct aspect ratio.
    I already switched in BV all masks using borders or rectangles instead of bitmaps. So everything is aspect ratio independent. But your words about the flexible control size made an idea come up in my mind.
    In grid view the grid dimensions are fixed, because valid not for only one item, but many. When I add into each grid another grid 3x3 and set height/width for the centered one to Auto and for the others to "*" the centered grid should be "flexible" if an image with Uniform property is added to it, won't it? When I add additionally a mask to the centered grid, it should theoretically work ...
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Admin
    • #6
    I already switched in BV all masks using borders or rectangles instead of bitmaps. So everything is aspect ratio independent. But your words about the flexible control size made an idea come up in my mind.
    In grid view the grid dimensions are fixed, because valid not for only one item, but many. When I add into each grid another grid 3x3 and set height/width for the centered one to Auto and for the others to "*" the centered grid should be "flexible" if an image with Uniform property is added to it, won't it? When I add additionally a mask to the centered grid, it should theoretically work ...
    I just tried it and it works! :D With above I have mentioned for any type of picture aspect ratio rounded corners can be applied also with stretch method "Uniform".
    This solves lot of problems and I can overwork the skin accordingly. For videos and images section it will be beneficial, since aspect ratios are flexible and currently posters are deformed to fit into the grids.

    Here examples how the original aspect ratio is kept with rounded corners within defined grid dimensions.
    example1.jpg example2.jpg
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Admin
    • #7
    @offbyone
    I would like to add the site logo in all hierachy levels (sites, categories, videos, ..) in the bottom right corner.
    HTML:
            <Image Stretch="Uniform"
           Source="{Binding path=SelectedSite, Converter={ThemeResource ovsSiteUtilIconConverter}}"/>
    This code does not work, because the Converter is not known in Sites.xaml. But even after adding the same resources as from ovsSiteMangement.xaml, where I found similar code, it does not work.
    Do you have a hint? :) Thanks!
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    Hm might be a question for @morpheus_xx - I am not too familiar with the resource lookup.

    Did you copy the namespace definition as well:
    Code:
    xmlns:ovs="clr-namespace:OnlineVideos.MediaPortal2;assembly=OnlineVideos.MediaPortal2"
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,400
    6,971
    Germany Germany
    Country flag
    I think this is the reason why skin files needs to be placed inside the plugin which has the code:
    If you put in an assembly reference this way, the lookup considers all loaded assemblies. Of course BlueVision doesn't have (and must not have) any direct depency to another plugin.
    Could you try to place your modified skin files under OV2 plugin first to see if they are working from this location?
     

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

    OP Similar threads Forum Replies Date
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    C where is the Online Videos plugin General Support 1
    Similar threads

























    Top Bottom