Using the vidstack cdn (cdn.vidstack.io) and adding a srt track leads to import of media-captions srt-parser from https://cdn.vidstack.io/npm/[email protected]/dist/prod/srt-parser.js/+esm which is not a valid link.
It should just work without any error.
import { VidstackPlayer,VidstackPlayerLayout,TextTrack } from 'https://cdn.vidstack.io/player';
const player = await VidstackPlayer.create({
target: '#player',
title: title,
aspectRatio: "16/9",
crossorigin: 'anonymous',
autoplay: true,
playsinline: true,
layout: new VidstackPlayerLayout({})
});
player.src = {"type":"video/mp4","src":"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"};
const track = new TextTrack({
src: 'Some random srt file link !!!!',
kind: 'subtitles',
label: 'English',
language: 'en-US',
type: 'srt',
default: true,
});
player.textTracks.add(track);
Current Behavior:
Using the vidstack cdn (cdn.vidstack.io) and adding a srt track leads to import of
media-captionssrt-parserfromhttps://cdn.vidstack.io/npm/[email protected]/dist/prod/srt-parser.js/+esmwhich is not a valid link.Expected Behavior:
It should just work without any error.
Steps To Reproduce:
import { VidstackPlayer,VidstackPlayerLayout,TextTrack } from 'https://cdn.vidstack.io/player'; const player = await VidstackPlayer.create({ target: '#player', title: title, aspectRatio: "16/9", crossorigin: 'anonymous', autoplay: true, playsinline: true, layout: new VidstackPlayerLayout({}) }); player.src = {"type":"video/mp4","src":"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}; const track = new TextTrack({ src: 'Some random srt file link !!!!', kind: 'subtitles', label: 'English', language: 'en-US', type: 'srt', default: true, }); player.textTracks.add(track);Environment:
Anything Else?
Error link : https://cdn.vidstack.io/npm/[email protected]/dist/prod/srt-parser.js/+esm
File dosent exist,it just points to some unknown location.