added automatic playback using query parameter