Skip to content

Commit

Permalink
feat: modify ReactPlayer config to allow crossorigin for subtitle tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
will0684 committed Jun 6, 2023
1 parent 9a9560d commit ff9411e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Media/VideoPlayer/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function Video(props) {
onEnded={handleEnd}
config={{
file: {
attributes: { poster: poster },
attributes: { poster: poster, crossOrigin: "anonymous" },
tracks: [
{
kind: trackProps.kind,
Expand Down

0 comments on commit ff9411e

Please sign in to comment.