Skip to content

Commit a3d6eb1

Browse files
committed
fix(player): include react example in source selection warning
1 parent 5623c98 commit a3d6eb1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/vidstack/src/components/provider/source-select.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ export class SourceSelection {
112112
console.warn(
113113
'[vidstack] could not find a loader for any of the given media sources,' +
114114
' consider providing `type`:' +
115-
`\n\n<media-provider>\n <source src="${source.src}" type="video/mp4" />\n</media-provider>"` +
116-
'\n\nFalling back to fetching source headers...',
115+
`\n\n--- HTML ---\n\n<media-provider>\n <source src="${source.src}" type="video/mp4" />\n</media-provider>"` +
116+
`\n\n--- React ---\n\n<MediaPlayer src={{ src: "${source.src}", type: "video/mp4" }}>` +
117+
'\n\n---\n\nFalling back to fetching source headers...',
117118
);
118119
warned!.add(newSource.src);
119120
}

0 commit comments

Comments
 (0)