-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Getting MEDIA_SOURCE_OPERATION_THREW Error #7977
Comments
|
This is the URL that we put in the player |
Hey @avelad, Can you please look into the above-mentioned Issue at the earliest. |
Sorry I don't have WebOS to test :( |
It can be verified on normal browsers as well |
Have you read the FAQ and checked for duplicate open issues?
✔ Yes
If the problem is related to FairPlay, have you read the tutorial?
N/A
What version of Shaka Player are you using?
📌 "shaka-player": "4.11.0"
Can you reproduce the issue with our latest release version?
✔ Yes
Can you reproduce the issue with the latest code from main?
✔ Yes
Are you using the demo app or your own custom app?
🛠️ Custom App
If custom app, can you reproduce the issue using our demo app?
Yes
What browser and OS are you using?
🖥 Browser: Chrome 132.0.0.0
🖥 OS: WebOS
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
📺 Device: LG WebOS TV
📜 Firmware Version: Varies
What are the manifest and license server URIs?
🎥 Manifest URI:
https://stream-us-east-1.getpublica.com/playlist.m3u8?network_id=4608&live=0&avod=1
(Let me know if you prefer to share this privately.)
📜 License Server URI: (If applicable)
What configuration are you using? What is the output of player.getNonDefaultConfiguration()?
📌 Configuration:
{
"streaming": {
"bufferBehind": 30,
"retryParameters": {
"maxAttempts": 5,
"baseDelay": 1000
}
}
}
(Provide the actual configuration output from your console if different.)
What did you do?
Loaded an HLS stream with Shaka Player 4.11.0
Tried playing on LG WebOS / Vizio Smart TV
Encountered the following error:
Shaka Error MEDIA.MEDIA_SOURCE_OPERATION_THREW
(NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource':
The type provided ('binary/octet-stream; codecs="avc1.64001f"') is unsupported.,
The mediaSource_ status was open expected 'open')
What did you expect to happen?
✅ The video should play without issues.
What actually happened?
❌ Playback fails with the error:
MEDIA.MEDIA_SOURCE_OPERATION_THREW (NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource')
Are you planning to send a PR to fix it?
🤔 Not at the moment.
Possible Causes & Fixes
🔹 Codec Issue:
avc1.64001f may not be supported on your device.
Try changing the codec to a more compatible one (avc1.4d001e or avc1.42E01E).
Run MediaSource.isTypeSupported('video/mp4; codecs="avc1.64001f"') in the browser console to check compatibility.
🔹 Incorrect mediaSource_ State:
The MediaSource might not be in the correct open state when adding a buffer.
Ensure MediaSource.readyState === "open" before calling addSourceBuffer().
🔹 HLS Playlist Issue:
Check if the .m3u8 file provides alternate codec options.
Test the stream in Shaka Player Demo App to confirm if it's a player-specific issue.
🔹 Workarounds to Try:
Use the hls.js library instead of Shaka for testing.
Transcode the content using FFmpeg to a more widely supported codec.
Upgrade to the latest Shaka Player version if available.
The text was updated successfully, but these errors were encountered: