Skip to content

CDN redirects to null page for srt parser, resulting in 421 error. #1640

@rabbitmaster-sys

Description

@rabbitmaster-sys

Current Behavior:

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.

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:

  • Framework: React
  • Meta Framework: Next.js
  • Node: 16.0.0
  • Device: iPhone@13
  • OS: iOS@14
  • Browser: Chrome@22

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions