Refactored rtmp streaming plugin.