GUIListItem.ItemSelectedHandler gets triggered twice using ScrollOffset in Filmstrip (1 Viewer)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,687
    7,062
    Sydney
    Australia Australia
    Country flag
    • Thread starter
    • Moderator
    • #1
    TV-Server Version:
    MediaPortal Version: 1.0.0.0 RC4
    MediaPortal Skin: StreamedMP
    Windows Version: WinXP SP3
    CPU Type: Intel E6600 Core 2 Duo
    HDD: 500GB Western Digital
    Memory: 2GB Corsair 5400C4
    Motherboard: Intel DG965OT
    Video Card: Asus 8600GT Silent
    Video Card Driver:
    Sound Card: Intel HD
    Sound Card AC3: Optical Out
    Sound Card Driver:
    1. TV Card:
    1. TV Card Type:
    1. TV Card Driver:
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: ffdshow
    MPEG2 Audio Codec: ffdshow
    h.264 Video Codec:
    Satelite/CableTV Provider:
    HTPC Case: Antec Fusion
    Cooling:
    Power Supply: Antec 550W
    Remote: Harmony 360
    TV: Sony Bravia 46X2000
    TV - HTPC Connection: HDMI

    In MP-TVSeries plugin, we use a Filmstrip view. I noticed that when subscribing to GUIListItem.ItemSelectedHandler() the event gets triggered twice once you start scrolling past the defined scrolloffset range as defined in the skin e.g.

    StreamedMP uses a scrolloffset of 4: <scrollOffset>4</scrollOffset>

    Once you start scrolling past item 4, item selected event gets triggered twice. Once for the current item before moving and then again for the item that is finally selected.

    Steps to reproduce the problem.

    1. Create a FilmStrip control in active skin with a scrolloffset defined
    2. Set Facade to Filmstrip (GUIFacadeControl.ViewMode.Filmstrip)
    3. Subscribe to GUIListItem.ItemSelectedHandler e.g.

    GUIListItem gli = arg.Argument as GUIListItem;
    gli.OnItemSelected+=new GUIListItem.ItemSelectedHandler(onFacadeItemSelected);


    4. Start selecting item by moving right/left

    Result: If item selected is before the scrolloffset or after (ItemCount - scrolloffset) then onFacadeItemSelected is only triggered once. If its inbetween its triggered twice.

    It should only be triggered once regardless of scrolloffset.
     

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

    OP Similar threads Forum Replies Date
    D Getting Started General Support 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 4
    ratata [solved] Can't get two virtual IPTV cards to work side by side... General Support 6
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    D Please help with getting Schedules Direct to work Newcomers Forum 10
    emphatic How to get the right data for War Of The Worlds? My TVSeries 1
    T I cannot get a basic media import-what is the best configuration? General 10
    M Guide mapping schedules direct, tvguide, epg buddy How to get correct entry to the correct channel? Electronic Program Guide 0
    lisag Can I get MP1 to open in the Recorded TV screen? MediaPortal 1 Talk 2
    Glith Audio out of sync after pause. Rewind 15sec gets it into sync again. MediaPortal 1 Talk 0
    D Cannot get a fully populated UK Freesat EPG (DVB-S) General 14
    R How to I get started with MP2? General 1
    G How best to get cover art for tracks to show up on the Audio Menu (Latest Added, Unplayed)? General 9
    K [solved] Cannot get EPG populating in the UK General 7
    T Get this error message on attempted re-install...LOGS inc. General Support 4
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    N [Finished] [MP2-791] Radio recordings do not get imported into Recordings listing MediaPortal 2 25
    N [solved] How do you get things into the Series or Movies listing General 5
    N How do I get the menu in the WebRadio plugin WMC Skin 1
    W Need help getting my TV guide working again General Support 1
    M [solved] Can't get TV option on installation Installation, configuration support 10
    RossMcivor I'm just not getting any results part from card/device name/ids, no card status's TV-Server 1
    hounddog How to get My Films working in MP 1.20 My Films 5
    peque MP 1.20: Refresh rate changer doesn't get FPS of my video media... General Support 1
    E Getting ortek mce remote to work better MediaPortal 1 Talk 13
    Similar threads

























    Top Bottom