Save the stream ID when the stream starts.