small typo in Mediapackage
Make sure state.is_recording is always correct.