Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear error code needed for bad MIME type in addTextTrack #3110

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented Jan 20, 2021

Closes: #1782

lib/player.js Outdated
@@ -3990,6 +3990,15 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
closedCaptions: null,
};

const supported = shaka.media.MediaSourceEngine.isStreamSupported(stream);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest using TextEngine.isTypeSupported instead so someone doesn't pass a video/audio type.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@shaka-bot
Copy link
Collaborator

All tests passed!

@TheModMaker TheModMaker merged commit 53a29a3 into shaka-project:master Jan 20, 2021
@avelad avelad deleted the error-code-addTextTrack branch January 20, 2021 20:08
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear error code needed for bad MIME type in addTextTrack
3 participants