Added support for preview while streaming.