using live NetConnection & live NetStream


complete newbie, please pardon confusion

 

in subj case understand right thing subclass netloader & netconnectionfactory. correct?

should done plugin or not?

 

does reasonable?  other logic exists in netconnectionfactory won't break?

    public class mynetconnectionfactory extends netconnectionfactory
    {
        /**
         * constructor.
         */
        public function mynetconnectionfactory(nc:netconnection)
        {
            super();

             _nc=nc;
        }

 

        override protected function createnetconnection():netconnection
        {
             return _nc;
        }
    }
}

if want inject own netstream, need subclass netloader , override createnetstream().

 

if want inject own netconnection, need subclass netconnectionfactorybase, override create(), , have dispatch "creationcomplete" event netconnection.

 

be aware of distinction between netconnectionfactorybase , netconnectionfactory.  former skeleton, , must subclassed.  latter provides support connection sharing , port-protocol negotiation (which not need if have live netconnection).



More discussions in Open Source Media Framework


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO