[Info] MPExtended 0.6 Beta Release (1 Viewer)

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
    Country flag
    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
    Country flag
    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
    Country flag
    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
    Country flag
    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

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,222
    Home Country
    New Zealand New Zealand
    Country flag
    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
    Country flag
    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

    Similar threads

    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    We have just released MediaPortal 1.28 Summer Breeze Highlights of this release Bugfixes: [MP1-5053] - TV framerate is not...
    Replies
    12
    Views
    1K
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5081] - WatchDog...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    457
    • Sticky
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch Mediaportal log to Debug level [MP1-5082] - Error when MP restart [MP1-5086] - XMLTV Import error - An item with the same key has already been added. Since Pre-Release : [MP1-5089] - MpurlSourceSplitter...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    Replies
    0
    Views
    253
    I ended up doing a clone disk recovery. I had just done a backup, and I figured I might as well test it -- it's been a while since I've gone through the recovery process. All good. :) I had the logs, but lost them in the recovery. Sorry. :( I believe the issue was that I had removed Windows Media Player from Windows Features. Still...
    I ended up doing a clone disk recovery. I had just done a backup, and I figured I might as well test it -- it's been a while since...
    So I tried upgrading from 1.27 to 1.28. I upgrade frequently without issues. I did a simple upgrade, so I did not delete my user...
    Replies
    2
    Views
    202
    I think MPExtended need rework for support this - andrewjswan/MPExtended Maybe better direct select to TV SQL DB? Or look how MPExtended get this info ...
    I think MPExtended need rework for support this - andrewjswan/MPExtended Maybe better direct select to TV SQL DB? Or look how...
    Hi everyone, I am hoping someone can help with the following. I am based in the UK. I have a family member who has a disability...
    Replies
    7
    Views
    647
    Top Bottom