- Newest
- Most votes
- Most comments
I have tested. It's working for me. When I stop EML channel with CMAF output MediaPackage starts to send 404 on playback endpoint where I enable stale manifest check. It was Dub region. Try to create another channel and see if it's working ok. If not I would suggest to open ticket in AWS support.
The behavior you're experiencing with MediaPackage v2's ForceEndpointErrorConfiguration for Stale Manifests is likely due to how MediaLive is stopping the channel and how MediaPackage interprets this action.
When you manually stop a MediaLive channel, if both pipelines are active at the time of stopping, MediaLive includes an EXT-X-ENDLIST tag in the HLS manifest sent to MediaPackage. When MediaPackage receives this tag, it interprets the stream as complete and delivers a static, VOD manifest to downstream devices, rather than returning a 404 error.
This behavior is by design and is intended to provide a smooth viewing experience by allowing viewers to watch the last portion of the stream even after the live event has ended. MediaPackage considers the program complete when it receives the EXT-X-ENDLIST tag, and as a result, it delivers a VOD manifest instead of triggering the stale manifest error condition.
To achieve the desired behavior of returning a 404 error for stale manifests, you might need to adjust how you're stopping the MediaLive channel. If you stop the MediaLive channel in a way that doesn't send the EXT-X-ENDLIST tag (for example, by stopping one pipeline at a time), MediaPackage may be more likely to detect a stale manifest condition and return the 404 error as expected.
It's also worth noting that the stale manifest detection in MediaPackage is designed to handle scenarios where the encoder or network path has failed, rather than intentional stops of the MediaLive channel. The current behavior you're seeing might be considered the correct functioning from MediaPackage's perspective, as it's receiving a proper end-of-stream signal.
If you need different behavior for your specific use case, you might want to consider implementing additional logic at the CDN level or in your player to handle these scenarios. Alternatively, you could explore if there are ways to stop your MediaLive channel that don't result in sending the EXT-X-ENDLIST tag to MediaPackage.
Sources
Live and VOD manifest reference - AWS Elemental MediaPackage
Failure management - Streaming Media Lens
I'm using SinglePipeline MediaLive Channels. We stop the MediaLive Channel using StopChannelCommand from JS AWS SDK or the Stop button in the MediaLive Console. For that test, we are not using cloudfront.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago

Thanks! we were using the CMAF ingestion url for the EML outputs because when we added it, the support for mediapackagev2 wasn't released in EML. I tested with a new channel with MediaPackage CMAF Output and it works!