       try {
                localStorage.setItem('mpegts_demo.' + key, value);
            } catch (e) {}
        }

        function saveSettings() {
            if (document.getElementById('radio_private_stream_1').checked) {
                arib_caption_transmit_mode = 'private_stream_1';
                ls_set('aribCaptionTransmitMode', 'private_stream_1');
            } else if (document.getElementById('radio_timed_id3').checked) {
                arib_caption_transmit_mode = 'timed_id3';
            