restored old code for playing rtmp videos