[Info] MPExtended 0.6 Beta Release (3 Viewers)

regeszter

Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Thanks. Is this the standalone version? I use the IIS edition to merge it into my existing IIS web services.
    This is the standalone version but I can bulid the IIS one too.
     

    DragonQ

    Portal Pro
    August 30, 2011
    644
    79
    Home Country
    United Kingdom United Kingdom
    The IIS version would be great, thanks a lot. I had do some trickery to get it all working so I'm hoping I either noted the steps down or it just works when upgrading...
     

    DragonQ

    Portal Pro
    August 30, 2011
    644
    79
    Home Country
    United Kingdom United Kingdom
    WebMediaPortalIIS v6.0 Beta
    Seems to work, thanks for that. For anyone else wanting to get it working, I had to put my customised streaming profiles back because the new version of MPExtended overwrites them by default, and then I had to edit the default profiles in WebMediaPortal.xml to ones that actually existed.
     

    DragonQ

    Portal Pro
    August 30, 2011
    644
    79
    Home Country
    United Kingdom United Kingdom
    Code:
    StartStreamWithStreamSelection
    
    URL /json/StartStreamWithStreamSelection
    
    Parameters
    
    •identifier (string)
    •profileName (string)
    •startPosition (long)
    •audioId (int)
    •subtitleId (int)
    I understand this is part of the API, but it wasn't implemented in aMPdroid. I can't find anything in MPTvScheduler that suggests it supports it either. :(
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Yes because there is no information regards audio channels in live tv. So there is api to select audio channel but you don't know how many audio channels are there.
     

    DragonQ

    Portal Pro
    August 30, 2011
    644
    79
    Home Country
    United Kingdom United Kingdom
    I assume it chooses stream 0 by default; I know for UK TV you usually want to pick the second audio stream (i.e. stream 1) since the first is audio description. There are some cases where there is only one stream though. I wonder how the MediaPortal main client application does it? It has settings for choosing AC3 over MP2 for example, so I assume it must have more knowledge about the available streams than MPExtended provides.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I wonder how the MediaPortal main client application does it?
    In general each player (TV/TsReader, DVD, video etc.) implements the IPlayer interface:
    https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/Player/IPlayer.cs#L87

    ...which exposes a bunch of properties:
    • AudioStreams = get the number of audio streams available
    • CurrentAudioStream = get/set the index of the current audio stream
    • AudioLanguage = get the language for the audio stream with a given index
    • AudioType = get the type for the audio stream with a given index

    For TV and radio that player interface is implemented here:
    https://github.com/MediaPortal/Medi...mediaportal/Core/Player/BaseTSReaderPlayer.cs
    https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/Player/TSReaderPlayer.cs

    ...using the IAMStreamSelect interface provided by TsReader:
    https://msdn.microsoft.com/en-us/library/windows/desktop/dd319793(v=vs.85).aspx

    So the number of audio streams is definitely available from the lowest levels for TV (and radio). Whether higher layers such as MPExtended expose those details/properties is a different question.
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    MPExtended:

    1. call InitStream (result true or false). This will start timeshifting.
    2. call StartStreamWithStreamSelection (result the url of the stream). This will start ffmpeg/vlc transcoding. It means you have to set audio id without you know anything from the stream.


    InitStream

    Parameters
    • type (WebMediaType)
    • provider (nullable int)
    • itemId (string)
    • clientDescription (string)
    • identifier (string)
    • idleTimeout (nullable int)
    Returns
    WebStringResult
    • Result (string)
    StartStreamWithStreamSelection
    Parameters
    • identifier (string)
    • profileName (string)
    • startPosition (long)
    • audioId (int)
    • subtitleId (int)
    Returns
    WebStringResult
    • Result (string)
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    You could try to call "GetMediaInfo" between "InitStream" and "StartStreamWithStreamSelection". Probably you have to check for timeshift file existence before calling "GetMediaInfo".
     

    Users who are viewing this thread

    Top Bottom