Problems with some rtmp connections (1 Viewer)

xfx

Portal Pro
February 1, 2011
85
9
Santiago, Dominican Republic
Home Country
Spain Spain
The web site "play.tuteve.tv" hosts their videos at BrightCove and are served through rtmp.
Some of them work but most of them generate the following error:

Parsing...
Parsed protocol: 0
Parsed host : brightcove.fcod.llnwd.net
Parsed app : a500/d18
socket timeout: 6666 (ms)
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer : 03
HandShake: Server Uptime : 1345840215
HandShake: FMS Version : 4.0.3.1
HandShake: client signature does not match!
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
...

Which then further produces this:
Property: <Name: no-name., STRING: _error>
Property: <Name: no-name., NUMBER: 1.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: error>
Property: <Name: code, STRING: NetConnection.Connect.Rejected>
Property: <Name: description, STRING: Connection failed.>
Property: <Name: application, OBJECT>
(object begin)
Property: <Name: message, STRING: invalid_TTL>
...

Now, for those links that actually work, here's the log output:

Parsing...
Parsed protocol: 2
Parsed host : bcsecure.fcod.llnwd.net
Parsed app : a3734/d2
socket timeout: 6666 (ms)
RTMP_Connect1, ... connected, handshaking
HandShake: Client type: 06
HandShake: DH pubkey position: 166
HandShake: Client digest offset: 879
HandShake: Initial client digest:
ee f5 31 6c f0 b5 ee 82 b4 a4 f6 f7 a1 28 77 46
2f 31 b7 26 95 60 31 25 d2 4c e7 c0 e1 e9 5a f1
HandShake: Type Answer : 09
HandShake: Type mismatch: client sent 6, server answered 9
HandShake: Server Uptime : 143223565
HandShake: FMS Version : 4.0.3.1
HandShake: Server DH public key offset: 466
...

Any ideas why this happens?
Is this, perhaps, a bug with MP/OnlineVideos rtmp support?

Note that the links that actually work connect to a different server... if that matters.

The source code for the plugin is now available at CodePlex: OnlineVideos.Sites.xfx
And the class experiencing this issue is "ATV".
 

Attachments

  • MPUrlSource.zip
    44.7 KB

georgius

Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    It seems that your project is not updated. For RTMP urls you need to use RtmpUrl class, for HTTP protocol you should use HttpUrl class. Both classes have properties (especially RtmpUrl) which are needed and supported for connection.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    5,226
    4,177
    Nuenen
    Home Country
    Netherlands Netherlands
    The best (and easiest way) to check this is trying to download the stream with rtmpdump. With that tool, and some googling around, you should be able to determine what parameters are needed.

    Once you have those, you can start implementing those in your util.

    Btw, don't know if it's possible (with vb/c# mixing) but what works pretty easy, is to get as far as you can with the siteparser, and then only override those methods which need special handling. (saves a lot of copy-paste (and in your case port to vb))
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    5,226
    4,177
    Nuenen
    Home Country
    Netherlands Netherlands
    I think it's going wrong a few steps earlier: "client signature does not match!"

    Edit: can you give me an url of a page with one of those videos, so I can try if I'm getting anywhere?

    Edit2: and of those 4 results, one of it is yours :)

    Edit3: Are these live-streams? 'Cause I have hade some troubles with those also
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I thought you were looking at some xbmc scripts to get the sites into OnlineVideos? Those should have all connection parameters.

    Edit: xfx ;)
     

    xfx

    Portal Pro
    February 1, 2011
    85
    9
    Santiago, Dominican Republic
    Home Country
    Spain Spain
    I think it's going wrong a few steps earlier: "client signature does not match!"
    I think I know why it's generating that error -- it appears to be missing the "auth" string and I think I know where to get it from. I'll let you know when I have tested it.

    Edit: can you give me an url of a page with one of those videos, so I can try if I'm getting anywhere?
    After many redirects and iframes, this is the final landing page: http://play.tuteve.tv/brightcovevideo/1289260696001/default/618/354/play*programa*ana-cristina/true

    Edit2: and of those 4 results, one of it is yours :)
    Go figure!

    Edit3: Are these live-streams? 'Cause I have hade some troubles with those also
    No... I haven't worked with those yet but I'll need to, as many of those sites provide Live videos feeds.

    I thought you were looking at some xbmc scripts to get the sites into OnlineVideos? Those should have all connection parameters.
    I was going to... but I prefer to start from scratch -- hopefully I'll learn something ;)

    EDIT: I just took a peak at the "TV A La Carta" XBMC plugin and the channel I'm having problems with (ATV) is NOT implemented.
     

    Users who are viewing this thread

    Top Bottom