sp.text());
			src = URL.createObjectURL(vtt);
		} catch (error) {
			console.error(error);
		}
		} else {
		src = subUrl;
		}

		return src;
}

function srtToVttBlob(srtData) {
	const VTT_HEAD = `WEBVTT

STYLE
::cue {font-size: 3vw; color:#ffffff; border:3px solid black; text-align:center;text-shadow: -1px -1px 1px rgba(255,255,255,.1), 1px 1px 1px rgba(0,0,0,.5), 2px 2px 3px rgba(206,89,55,0)}
::cue(b) {color: rgb(51, 216, 18); border: 2px solid black;}
::cue(i) {color: #00bafd;}
::cue(u) {color: #ff00ee;