Client side code for streaming and viewing.