I am struggling to find information on the FCSubscribe methods used by various CDNs. I need to implement methods in a custom video player.
I would like to get an official specification of these methods, but even a SO search for "FCSubscribe" gives only 2 results. I managed to find bits of code on the Internet, but nothing concrete.
I managed to create a working player after reading all these code fragments, but I am not sure of its reliability due to the lack of any documentation.
Below is a basic outline of my code:
public function connectCDN() :void { netConnection.client = { onFCSubscribe : onFCSubscribe }; netConnection.call('FCSubscribe', null, streamName); netStream.play(streamName); } public function onFCSubscribe(...args) :void {
There are not very many.
My specific problems:
Should I start playing NetStream immediately after calling FCSubscribe , or should I wait for a callback?
I implemented the onFCSubscribe , but I don't know what I should do here. Args contains a structure of type info.code (similar to a NetStatusEvent ).
In other implementations, I saw onFCUnsubscribe , should I also implement this? What for?
source share