Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Added FCSubscribe and proxy support #208

Conversation

albertogasparin
Copy link

@albertogasparin albertogasparin commented Aug 11, 2016

This is a modified version of this pull request.
Additionally, I've added the proxy parameter in order to properly support people behind firewalls.
I assume this might solve lots of complains about "rtmp stream not playing".

Should close issue #202

Tested with:

rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov
rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st/honda_accord
and FB live streams (rtmps) behind a firewall

@albertogasparin albertogasparin force-pushed the feature/subscribe-proxy branch from 459a4ba to 924dabd Compare August 11, 2016 12:55
@@ -463,6 +464,7 @@ package com.videojs.providers{
switch(e.info.code){
case "NetConnection.Connect.Success":
_model.broadcastEventExternally(ExternalEventName.ON_RTMP_CONNECT_SUCCESS);
_nc.call("FCSubscribe", null, _src.streamURL); // try to subscribe
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this cause any issues for normal playback like for mp4s?

Copy link
Author

@albertogasparin albertogasparin Aug 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested it with node-rtsp-rtmp-server, as it does not support FCSubscribe. VOD videos play fine: as the streaming server reports "unknown command" the swf code ignores it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can second this. On-demand videos play fine when using the updated SWF.

@cat2608
Copy link

cat2608 commented Sep 12, 2016

This change is working for me too. Could you please review and merge? Thanks!!

@albertogasparin
Copy link
Author

Bump. Can we get this sorted?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants