yes, perhaps closing the NetConnection is a BFI approach (brute force
and ignorance) although the mediaFactory would create a new connection
if you went to load another video would it not, and the overhead is
not that large. However Ken kindof indicated he was closing things
down altogether by nulling out the player...perhaps that was an ever
more drastic attempt and shutting down the flow ;-)
It looks like the OSMF NetLoader has an unload method
(executeUnload(LoadTrait)) which is used to unload and close the
NetStream at leas according the inline comments.
I would argue that this is plumbing that should remain "under the
covers". Those extending should not need to know the type of stream
or download, just perhaps a single method exposed that can stop the
loading, or handled automagically when the user stops or closes the
player. "closing the player" is application specific though. In my
case, I will have the player in a canvas but stopping the play or
completion of the video should stop all loading as would removing the
player from the canvas.
There should certainly be a cleanup method for the player that handles
removal of all listeners, stops loading, releases network resources
etc., no?
> > Thanks.- Hide quoted text -
>
> - Show quoted text -