fixed streaming for both firefox and webkit.