Skip to content

Getting MEDIA_SOURCE_OPERATION_THREW ErrorΒ #7977

Closed
@bhargavnaidu22

Description

@bhargavnaidu22

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.

Metadata

Metadata

Assignees

Labels

component: HLSThe issue involves Apple's HLS manifest formatplatform: WebOSIssues affecting WebOSpriority: P2Smaller impact or easy workaroundtype: bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions