Fixed example code for livestreaming