RTMPVideoURL With No 'Clip'

There's a bug (?) in this site editor. If I enter the text 'rtmp: //' (without the space after the colon) it will erase the line when posted.
 
I'm trying to get the following RTMP stream to work; 
 
rtmp: ////PREMIUM_HSTV_XX/livestream2 swfUrl='http:///player/player.swf?token=cFivbh2Ez...' live=1 swfVfy=1
 
So I came up with;
 
RTMPVideoURL(
     url='rtmp: ////PREMIUM_HSTV_XX/livestream2',
     swfurl='http:///player/player.swf?token=cFivbh2Ez...', 
     live=True,
     swfvfy=True
)
 
If I set the PlexFrameworkFlags to UseRealRTMP in the Info.plist I get a 'Error while opening file'
And if I don't use UseRealRTMP I get '201, Unable to load stream or clip file, connection failed, clip: [Clip] null'
 
Do I really need the clip set or is there something else I'm missing?

Looks to me like you're dealing with 2 issues:

  1. The url parameter you're using is not a valid rtmp url.
  2. The Plex hosted player, which is used when UseRealRTMP is not set, cannot play streams which require swf-verification.

Hey Mike - thanks for the reply.

1. How can you tell it's not a valid rtmp url?

Just so you know the _XX is a variable number depending on the server you connect to,

and the token is neutered.

2. So I should not be setting UseRealRTMP because it is a swf

and, in theory, if swfvfy is not required to be true, it should work?

And, if so, why would it give me a Clip null error if that's not a param you'd use with a swf?

The " ///" was my first clue as to RTMP URL being invalid. The rest of the URL seems more like a title bar than a real URL. Neither of the RTMP handling methods available via Plex (the old hosted player or the newer libRTMP implementation) are able to take just the URL for a swf and playback the video. They both require, at minimum, the URL for the RTMP stream itself.
Beyond that, the required arguments will vary with the complexity of accessing the stream. Usually the swf object is responsible for converting the RTMP stream data into video on the website.

Just re-read your first post. Sorry for the confusion. Need to rethink things.

Usually when working with RTMP streams, I do my testing with RTMP dump in order to make sure that I've got the necessary arguments worked out properly.

If you can save the live stream using the parameters that you've identified, then I would try testing which (if any) commands you can exclude and still access the stream.

I suspect that the swf verification is necessary and that rules out using the ability to use the hosted player. (I would be happy to be wrong about that).

That would necessitate using the built-in libRTMP implementation with the UseRealRTMP flag. Unfortunately, that is really limited by the fact that PMS doesn't transcode live streams. Only the desktop client is capable of natively handling the RTMP streams, and even at that I've heard mixed results with live RTMP streams.

You've picked a really tough nut to crack and unfortunately, the tools we have available are somewhat limited for this sort of task.

Hey Mike - just wanted to says thanks (again) for your reply. Haven't had time to work on this project in the past few days.

I'll mess with RTMP Dump and see if I can come up with anything and also talk to the guys who run the site and see if we can find a work-around.

Again, thanks for all your input.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.