Main activity with streaming and uploading functions