free memory on RemoteMedia (stream ended)
Refactoring LocalMedia events in order to be compliant with remoteMedia events