Avmedia_Errors

Troubleshooting

Use a network sniffer / firewall - man in the middle attack which snoops all your network requests.
I recommend these apps.

debug hls streams

AV Media | Foundation | Player Errors

AVKit

Impossible to stop AVPlayer

impossible-to-stop-avplayer

Blank Video but audio audible

iOS 16.4 simulator bug for HLS streams. Confirmed on Apple developer website. Spent around 20 mins debugging what is wrong with my code overall.

My own project POC

AVPlayer

Core Media 12746

This error happened to me on Macbook Pro 16, macOS Sequioa, Xcode 16.2.0 beta 6, iOS 18.2 simulator. Playing a apple's test HLS AV asset Advance web stream.

CoreMediaErrorDomain Code=-12746
Printing description of playerError:
â–¿ UnknownPlayerError
  - errorId : "UnknownPlayerError"
  - description : "AVPlayer Item Status Changed"
  - component : "com.nitro.core"
  â–¿ context : 2 elements
    â–¿ 0 : 2 elements
      - key : "NSLocalizedDescription"
      - value : "AVPlayer Item Status Changed"
    â–¿ 1 : 2 elements
      - key : "NSUnderlyingError"
      - value : Error Domain=CoreMediaErrorDomain Code=-12746 "(null)"
  â–¿ cause : Optional<Error>

Solution

  • Kill coreAudio service or task running in background, Activity monitor.
  • Kill simulator
  • run the project again.

SO | avPlayer-failure-hls

CoreMediaErrorDomain error -16845

- HTTP 429: (unhandled)), Error Status Code: -16845

This occurred due to HTTP 429

https://cdn.bitmovin.com/content/assets/sintel/hls/playlist.m3u8
Traffic rate limit of fair-use exceeded.

Reference

good AVKit errors gist