TOU.TV doesn't works (1 Viewer)

georgius

Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    Replace and try attached filter version. There is bug in filter in parsing manifest URL.
    Same. Buffering stuck at 0.0%. I stopped it after 10 seconds. Attached logs.
    URL seems to be correct (except extra parameters). But user agent was not send to server. Replace and try attached filter version.
     

    Attachments

    • MPUrlSourceSplitter.zip
      4.6 MB

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    It's bad :( I simulate requests and found that user agent is mandatory, cookies and referer not, but must be supplied extra parameters in URL. It needs bigger changes (OV + filter).
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia

    corporate_gadfly

    Portal Pro
    May 17, 2011
    396
    136
    Home Country
    Canada Canada
    I did necessary changes. You have to update your OV solution to SVN 2583. You need to use AfhsManifestUrl instead of HttpUrl class and set ExtraParameters property to string starting with '?' in manifest URL.
    I updated to latest svn, copied binaries from MPUrlSourceSplitter\bin_Win32 to C:\Program Files (x86)\Team MediaPortal\MediaPortal\MPUrlSourceSplitter. Now my code looks like
    Code:
    int questionMarkPosition = manifestUrl.IndexOf('?');
    string extraParemeters = manifestUrl.Substring(questionMarkPosition + 1, manifestUrl.Length - questionMarkPosition - 1);
    result = new MPUrlSourceFilter.AfhsManifestUrl(manifestUrl) {
    	UserAgent = @"Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0",
    	ExtraParameters = extraParemeters
    }.ToString();
    Still unable to stream. Logs attached. The URL that ends with Seg1-Frag1 now has extra parameters appended to the end (making it invalid perhaps?)
     
    Last edited:

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    I did necessary changes. You have to update your OV solution to SVN 2583. You need to use AfhsManifestUrl instead of HttpUrl class and set ExtraParameters property to string starting with '?' in manifest URL.
    I updated to latest svn, copied binaries from MPUrlSourceSplitter\bin_Win32 to C:\Program Files (x86)\Team MediaPortal\MediaPortal\MPUrlSourceSplitter. Now my code looks like
    Code:
    int questionMarkPosition = manifestUrl.IndexOf('?');
    string extraParemeters = manifestUrl.Substring(questionMarkPosition + 1, manifestUrl.Length - questionMarkPosition - 1);
    result = new MPUrlSourceFilter.AfhsManifestUrl(manifestUrl) {
    	UserAgent = @"Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0",
    	ExtraParameters = extraParemeters
    }.ToString();
    Still unable to stream. Logs attached. The URL that ends with Seg1-Frag1 now has extra parameters appended to the end (making it invalid perhaps?)
    You need to add '?' to extra parameters:
    Code:
    int questionMarkPosition = manifestUrl.IndexOf('?');
    string extraParemeters = manifestUrl.Substring(questionMarkPosition, manifestUrl.Length - questionMarkPosition);
    result = new MPUrlSourceFilter.AfhsManifestUrl(manifestUrl) {
    	UserAgent = @"Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0",
    	ExtraParameters = extraParemeters
    }.ToString();
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    Can you replace in extra parameters all characters '/' with '%2f'?
     

    Users who are viewing this thread

    Similar threads

    Are the media/video folders on the Mint host?
    Are the media/video folders on the Mint host?
    I've used Mediaportal for years on a Windows Host with restricted online-access. Lately I reinstalled...
    Replies
    1
    Views
    1K
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    660
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem. Disabling the option "Single seat setup: force RTSP usage" under "TV/Radio", "Advanced Options" resolved the issue. After I disabled this option, I was able to delete the recordings the first time...
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem...
    Deleting recordings sometimes doesn't work. Neither the 0 button nor the Info/Delete button works. Nothing happens at all with...
    Replies
    6
    Views
    529
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve this would be to use an auto-resume feature in your external player itself. (MPC-HC can do that, I don't know about VLC)
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve...
    Hello Folks, Is it possible to enable MP to resume in an External Player, where it left off ? I guess the question also is, can...
    Replies
    2
    Views
    1K
    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV Server development looks dead so I'm afraid you're going to have to figure that out by yourself if it's even possible.
    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV...
    Hi everyone, I've set up Mediaportal TV Server on a Windows 11 box, tuner deteced okay, scanned channels, can preview, all seems...
    Replies
    8
    Views
    1K
    Top Bottom