plugin development help (1 Viewer)

canucks604

Portal Member
August 12, 2007
10
0
hi folks,

i'd like to develop a video karaoke plugin but before i proceed; is it possible to tell media portal what audio track to use when a video start playing? because there are 2 tracks in the video one of which will contain vocal and one doesn't. this way the user (me mostly :D) doesn't have to manually change audio track via menu/remote.

currently the default key press behavior in MP when a video is playing is to seek time in the video (or so i think) would it be possible to override this from the plugin? what i want to do is, when a video is playing and the user enter 1234, it will que the song with the index of 1234.

thanks in advance for the reply.

cheers
 

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    hi folks,

    i'd like to develop a video karaoke plugin but before i proceed; is it possible to tell media portal what audio track to use when a video start playing? because there are 2 tracks in the video one of which will contain vocal and one doesn't. this way the user (me mostly :D) doesn't have to manually change audio track via menu/remote.

    currently the default key press behavior in MP when a video is playing is to seek time in the video (or so i think) would it be possible to override this from the plugin? what i want to do is, when a video is playing and the user enter 1234, it will que the song with the index of 1234.

    thanks in advance for the reply.

    cheers

    The first answer is "yes" but I don't know how to do it in praxis, when starting playback it IS possible to select audiotrack, but you would have to loop the available tracks and pick the right one...is it always the second track?

    You can catch keypresses (or remote keypresses) both can be caught with an eventhandler. Problem is, you cannot avoid other eventhandlers to do the same = not possible.
     

    canucks604

    Portal Member
    August 12, 2007
    10
    0
    thanks for the reply.

    audio track: no it is not always on track 1 or 2, it's either. i can work around this by using a database (since i have to store the media info anyways) i will just have another column to indicate what track the vocal is on. and switch it based on the value from the column.

    to clarify the 2nd part - the use case scenario would be
    1. video is currently playing
    2. pressing 1234 and pressing OK will add it to the que

    another scenario is
    1. video is currently playing
    2. press "i" or something to display the que info (ie, the next 5 song info)

    if part 2 is not doable then i guess i'd have to drop the idea :(

    cheers,
     

    Users who are viewing this thread

    Top Bottom