Skip to content

Commit

Permalink
use shorter vidstack file urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Mar 26, 2024
1 parent 71a1130 commit ccefbfc
Show file tree
Hide file tree
Showing 44 changed files with 145 additions and 145 deletions.
6 changes: 3 additions & 3 deletions player/react/css/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function Player() {
<MediaPlayer
className={`${styles.player} player`}
title="Sprite Fight"
src="https://media-files.vidstack.io/sprite-fight/720p.mp4"
src="https://files.vidstack.io/sprite-fight/720p.mp4"
crossOrigin
playsInline
onProviderChange={onProviderChange}
Expand All @@ -60,15 +60,15 @@ export function Player() {
<MediaProvider>
<Poster
class={styles.poster}
src="https://media-files.vidstack.io/sprite-fight/poster.webp"
src="https://files.vidstack.io/sprite-fight/poster.webp"
alt="Girl walks into campfire with gnomes surrounding her friend ready for their next meal!"
/>
{textTracks.map((track) => (
<Track {...track} key={track.src} />
))}
</MediaProvider>

<VideoLayout thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt" />
<VideoLayout thumbnails="https://files.vidstack.io/sprite-fight/thumbnails.vtt" />
</MediaPlayer>
);
}
6 changes: 3 additions & 3 deletions player/react/css/src/tracks.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export const textTracks = [
// Subtitles
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/english.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/english.vtt',
label: 'English',
language: 'en-US',
kind: 'subtitles',
default: true,
},
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/spanish.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/spanish.vtt',
label: 'Spanish',
language: 'es-ES',
kind: 'subtitles',
},
// Chapters
{
src: 'https://media-files.vidstack.io/sprite-fight/chapters.vtt',
src: 'https://files.vidstack.io/sprite-fight/chapters.vtt',
kind: 'chapters',
language: 'en-US',
default: true,
Expand Down
10 changes: 5 additions & 5 deletions player/react/default-layout/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ export function Player() {
function changeSource(type: string) {
switch (type) {
case 'audio':
setSrc('https://media-files.vidstack.io/sprite-fight/audio.mp3');
setSrc('https://files.vidstack.io/sprite-fight/audio.mp3');
break;
case 'video':
setSrc('https://media-files.vidstack.io/sprite-fight/720p.mp4');
setSrc('https://files.vidstack.io/sprite-fight/720p.mp4');
break;
case 'hls':
setSrc('https://media-files.vidstack.io/sprite-fight/hls/stream.m3u8');
setSrc('https://files.vidstack.io/sprite-fight/hls/stream.m3u8');
break;
case 'youtube':
setSrc('youtube/_cMxraX_5RE');
Expand All @@ -87,7 +87,7 @@ export function Player() {
<MediaProvider>
<Poster
className="vds-poster"
src="https://media-files.vidstack.io/sprite-fight/poster.webp"
src="https://files.vidstack.io/sprite-fight/poster.webp"
alt="Girl walks into campfire with gnomes surrounding her friend ready for their next meal!"
/>
{textTracks.map((track) => (
Expand All @@ -99,7 +99,7 @@ export function Player() {
<DefaultAudioLayout icons={defaultLayoutIcons} />
<DefaultVideoLayout
icons={defaultLayoutIcons}
thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt"
thumbnails="https://files.vidstack.io/sprite-fight/thumbnails.vtt"
/>
</MediaPlayer>

Expand Down
6 changes: 3 additions & 3 deletions player/react/default-layout/src/tracks.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export const textTracks = [
// Subtitles
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/english.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/english.vtt',
label: 'English',
language: 'en-US',
kind: 'subtitles',
default: true,
},
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/spanish.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/spanish.vtt',
label: 'Spanish',
language: 'es-ES',
kind: 'subtitles',
},
// Chapters
{
src: 'https://media-files.vidstack.io/sprite-fight/chapters.vtt',
src: 'https://files.vidstack.io/sprite-fight/chapters.vtt',
kind: 'chapters',
language: 'en-US',
default: true,
Expand Down
10 changes: 5 additions & 5 deletions player/react/default-theme/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ export function Player() {
function changeSource(type: string) {
switch (type) {
case 'audio':
setSrc('https://media-files.vidstack.io/sprite-fight/audio.mp3');
setSrc('https://files.vidstack.io/sprite-fight/audio.mp3');
break;
case 'video':
setSrc('https://media-files.vidstack.io/sprite-fight/720p.mp4');
setSrc('https://files.vidstack.io/sprite-fight/720p.mp4');
break;
case 'hls':
setSrc('https://media-files.vidstack.io/sprite-fight/hls/stream.m3u8');
setSrc('https://files.vidstack.io/sprite-fight/hls/stream.m3u8');
break;
case 'youtube':
setSrc('youtube/_cMxraX_5RE');
Expand All @@ -89,7 +89,7 @@ export function Player() {
{viewType === 'video' && (
<Poster
className={`${styles.poster} vds-poster`}
src="https://media-files.vidstack.io/sprite-fight/poster.webp"
src="https://files.vidstack.io/sprite-fight/poster.webp"
alt="Girl walks into campfire with gnomes surrounding her friend ready for their next meal!"
/>
)}
Expand All @@ -102,7 +102,7 @@ export function Player() {
{viewType === 'audio' ? (
<AudioLayout />
) : viewType === 'video' ? (
<VideoLayout thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt" />
<VideoLayout thumbnails="https://files.vidstack.io/sprite-fight/thumbnails.vtt" />
) : null}
</MediaPlayer>

Expand Down
6 changes: 3 additions & 3 deletions player/react/default-theme/src/tracks.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export const textTracks = [
// Subtitles
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/english.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/english.vtt',
label: 'English',
language: 'en-US',
kind: 'subtitles',
default: true,
},
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/spanish.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/spanish.vtt',
label: 'Spanish',
language: 'es-ES',
kind: 'subtitles',
},
// Chapters
{
src: 'https://media-files.vidstack.io/sprite-fight/chapters.vtt',
src: 'https://files.vidstack.io/sprite-fight/chapters.vtt',
kind: 'chapters',
language: 'en-US',
default: true,
Expand Down
6 changes: 3 additions & 3 deletions player/react/radix+tailwind/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function Player() {
<MediaPlayer
className="w-full aspect-video bg-slate-900 text-white font-sans overflow-hidden rounded-md ring-media-focus data-[focus]:ring-4"
title="Sprite Fight"
src="https://media-files.vidstack.io/sprite-fight/720p.mp4"
src="https://files.vidstack.io/sprite-fight/720p.mp4"
crossOrigin
playsInline
onProviderChange={onProviderChange}
Expand All @@ -58,15 +58,15 @@ export function Player() {
<MediaProvider>
<Poster
className="absolute inset-0 block h-full w-full rounded-md opacity-0 transition-opacity data-[visible]:opacity-100 object-cover"
src="https://media-files.vidstack.io/sprite-fight/poster.webp"
src="https://files.vidstack.io/sprite-fight/poster.webp"
alt="Girl walks into campfire with gnomes surrounding her friend ready for their next meal!"
/>
{textTracks.map((track) => (
<Track {...track} key={track.src} />
))}
</MediaProvider>

<VideoLayout thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt" />
<VideoLayout thumbnails="https://files.vidstack.io/sprite-fight/thumbnails.vtt" />
</MediaPlayer>
);
}
6 changes: 3 additions & 3 deletions player/react/radix+tailwind/src/tracks.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export const textTracks = [
// Subtitles
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/english.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/english.vtt',
label: 'English',
language: 'en-US',
kind: 'subtitles',
default: true,
},
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/spanish.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/spanish.vtt',
label: 'Spanish',
language: 'es-ES',
kind: 'subtitles',
},
// Chapters
{
src: 'https://media-files.vidstack.io/sprite-fight/chapters.vtt',
src: 'https://files.vidstack.io/sprite-fight/chapters.vtt',
kind: 'chapters',
language: 'en-US',
default: true,
Expand Down
6 changes: 3 additions & 3 deletions player/react/tailwind-css/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function Player() {
<MediaPlayer
className="w-full aspect-video bg-slate-900 text-white font-sans overflow-hidden rounded-md ring-media-focus data-[focus]:ring-4"
title="Sprite Fight"
src="https://media-files.vidstack.io/sprite-fight/720p.mp4"
src="https://files.vidstack.io/sprite-fight/720p.mp4"
crossOrigin
playsInline
onProviderChange={onProviderChange}
Expand All @@ -58,15 +58,15 @@ export function Player() {
<MediaProvider>
<Poster
className="absolute inset-0 block h-full w-full rounded-md opacity-0 transition-opacity data-[visible]:opacity-100 object-cover"
src="https://media-files.vidstack.io/sprite-fight/poster.webp"
src="https://files.vidstack.io/sprite-fight/poster.webp"
alt="Girl walks into campfire with gnomes surrounding her friend ready for their next meal!"
/>
{textTracks.map((track) => (
<Track {...track} key={track.src} />
))}
</MediaProvider>

<VideoLayout thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt" />
<VideoLayout thumbnails="https://files.vidstack.io/sprite-fight/thumbnails.vtt" />
</MediaPlayer>
);
}
6 changes: 3 additions & 3 deletions player/react/tailwind-css/src/tracks.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export const textTracks = [
// Subtitles
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/english.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/english.vtt',
label: 'English',
language: 'en-US',
kind: 'subtitles',
default: true,
},
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/spanish.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/spanish.vtt',
label: 'Spanish',
language: 'es-ES',
kind: 'subtitles',
},
// Chapters
{
src: 'https://media-files.vidstack.io/sprite-fight/chapters.vtt',
src: 'https://files.vidstack.io/sprite-fight/chapters.vtt',
kind: 'chapters',
language: 'en-US',
default: true,
Expand Down
6 changes: 3 additions & 3 deletions player/solid/css/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function Player() {
<media-player
class={styles.player}
title="Sprite Fight"
src="https://media-files.vidstack.io/sprite-fight/720p.mp4"
src="https://files.vidstack.io/sprite-fight/720p.mp4"
crossOrigin
playsInline
on:provider-change={onProviderChange}
Expand All @@ -67,12 +67,12 @@ export function Player() {
<media-provider>
<media-poster
class={styles.poster}
src="https://media-files.vidstack.io/sprite-fight/poster.webp"
src="https://files.vidstack.io/sprite-fight/poster.webp"
alt="Girl walks into campfire with gnomes surrounding her friend ready for their next meal!"
/>
</media-provider>

<VideoLayout thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt" />
<VideoLayout thumbnails="https://files.vidstack.io/sprite-fight/thumbnails.vtt" />
</media-player>
);
}
6 changes: 3 additions & 3 deletions player/solid/css/src/tracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import type { TextTrackInit } from 'vidstack';
export const textTracks: TextTrackInit[] = [
// Subtitles
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/english.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/english.vtt',
label: 'English',
language: 'en-US',
kind: 'subtitles',
default: true,
},
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/spanish.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/spanish.vtt',
label: 'Spanish',
language: 'es-ES',
kind: 'subtitles',
},
// Chapters
{
src: 'https://media-files.vidstack.io/sprite-fight/chapters.vtt',
src: 'https://files.vidstack.io/sprite-fight/chapters.vtt',
kind: 'chapters',
language: 'en-US',
default: true,
Expand Down
10 changes: 5 additions & 5 deletions player/solid/default-layout/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ export function Player() {
function changeSource(type: string) {
switch (type) {
case 'audio':
setSrc('https://media-files.vidstack.io/sprite-fight/audio.mp3');
setSrc('https://files.vidstack.io/sprite-fight/audio.mp3');
break;
case 'video':
setSrc('https://media-files.vidstack.io/sprite-fight/720p.mp4');
setSrc('https://files.vidstack.io/sprite-fight/720p.mp4');
break;
case 'hls':
setSrc('https://media-files.vidstack.io/sprite-fight/hls/stream.m3u8');
setSrc('https://files.vidstack.io/sprite-fight/hls/stream.m3u8');
break;
case 'youtube':
setSrc('youtube/_cMxraX_5RE');
Expand All @@ -92,13 +92,13 @@ export function Player() {
<media-provider>
<media-poster
class="vds-poster"
src="https://media-files.vidstack.io/sprite-fight/poster.webp"
src="https://files.vidstack.io/sprite-fight/poster.webp"
alt="Girl walks into campfire with gnomes surrounding her friend ready for their next meal!"
/>
</media-provider>
{/* Layouts */}
<media-audio-layout />
<media-video-layout thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt" />
<media-video-layout thumbnails="https://files.vidstack.io/sprite-fight/thumbnails.vtt" />
</media-player>

<div class="src-buttons">
Expand Down
6 changes: 3 additions & 3 deletions player/solid/default-layout/src/tracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import type { TextTrackInit } from 'vidstack';
export const textTracks: TextTrackInit[] = [
// Subtitles
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/english.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/english.vtt',
label: 'English',
language: 'en-US',
kind: 'subtitles',
default: true,
},
{
src: 'https://media-files.vidstack.io/sprite-fight/subs/spanish.vtt',
src: 'https://files.vidstack.io/sprite-fight/subs/spanish.vtt',
label: 'Spanish',
language: 'es-ES',
kind: 'subtitles',
},
// Chapters
{
src: 'https://media-files.vidstack.io/sprite-fight/chapters.vtt',
src: 'https://files.vidstack.io/sprite-fight/chapters.vtt',
kind: 'chapters',
language: 'en-US',
default: true,
Expand Down
Loading

0 comments on commit ccefbfc

Please sign in to comment.