When which Codec? (1 Viewer)

Thor2605

MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    There are three sections to predefine the codecs, which are used by MP!

    But for my plugin, I need to know which codec-section is active...

    So I searched the source of MP how to find that out!


    There are the following methods in g_player:
    IsTV
    IsRecording
    IsDVD
    ...


    So can I say, that when
    a) isDVD or isDVDMenu = true, then dvd-codecs are taken
    b) is Timeshifting = true, then mytv-codecs are taken
    c) any other = true, then movieplayer-codecs are taken

    ???

    Thank you for thinking and replying!!!


    Edit:
    I think I was on the wrong way...

    I could use _currentmedia in g_player!

    But which Audio Renderer is used in Radio? The one from Music or the one from TV?
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: When which Codec?

    But then why there is a Mediatype.Radio-definition in BassAudio?
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: When which Codec?

    So how can I use a video as recording of tv?

    How does MP select wich codec to use and where it is stored?

    Isn't the Mediatype for that?

    So
    Mediatype.Radio = TV-codecs
    Mediatype.TV = TV-codecs
    Mediatype.Video = Video-codecs
    Mediatype.DVD = DVD-codecs
    Mediatype.Music = Bass-Audioplayer?
    ?
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: When which Codec?

    So please help me! I don't get further!

    For me the source-code is very crazy in this point!

    How can I find out wich codec-section is now used in the playing file/stream?

    Is this expression true in my first post?
    So can I say, that when
    a) isDVD or isDVDMenu = true, then dvd-codecs are taken
    b) is Timeshifting = true, then mytv-codecs are taken
    c) any other = true, then movieplayer-codecs are taken
     

    Users who are viewing this thread

    Top Bottom