Server configured incorrectly (-12939)

Trying to play MP3s from the server without first downloading the file locally. The callback for MPMoviePlayerPlaybackDidFinishNotification comes with this:

NSConcreteNotification 0x7e1c980 {name = MPMoviePlayerPlaybackDidFinishNotification; object = <ItemMediaPlayer: 0x7856740>; userInfo = {
    MPMoviePlayerPlaybackDidFinishReasonUserInfoKey = 1;
    error = "Error Domain=MediaPlayerErrorDomain Code=-12939 \"The server is not correctly configured.\" UserInfo=0x7e243d0 {NSLocalizedDescription=The server is not correctly configured.}";

Now, trying to figure out what the error code -12939 actually means ... Can MPMoviePlayerController expect the server to support range byte requests ? Since this server is not using (using nginx)!

To complicate matters, this code does not work on iOS 4.0, but works on iOS 4.1 . Now consider abandoning iOS 4.0 support if someone cannot offer a fix?

+2
source share
1 answer

Take a look at AudioStream , which allows you to play MP3s from a URL streaming.

The error may be due to the fact that your server does not support "Range Requests".

-1
source

Source: https://habr.com/ru/post/1616702/