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

Commit

Permalink
@albertogasparin added FCsubscribe call and proxy type to RTMP video …
Browse files Browse the repository at this point in the history
…provider

Closes #208. Fixes #202. Closes #156.
  • Loading branch information
gkatsev committed Feb 7, 2017
1 parent b903e6a commit 10dbcc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CHANGELOG
=========

## HEAD (Unreleased)
_(none)_
* @albertogasparin added FCsubscribe call and proxy type to RTMP video provider

--------------------

Expand Down
4 changes: 3 additions & 1 deletion src/com/videojs/providers/RTMPVideoProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ package com.videojs.providers{
private function initNetConnection():void{
if(_nc == null){
_nc = new NetConnection();
_nc.proxyType = 'best'; // needed behind firewalls
_nc.client = this;
_nc.addEventListener(NetStatusEvent.NET_STATUS, onNetConnectionStatus);
}
Expand Down Expand Up @@ -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
initNetStream();
break;
case "NetConnection.Connect.Failed":
Expand Down Expand Up @@ -639,7 +641,7 @@ package com.videojs.providers{
* Called from FMS when subscribing to live streams.
*/
public function onFCSubscribe(pInfo:Object):void {
// no op for now but needed by NetConnection
initNetStream();
}

/**
Expand Down

0 comments on commit 10dbcc2

Please # to comment.