7 Replies
      Latest reply on Apr 30, 2019 12:22 PM by sbtsdev
      AppleDevMN Level 1 Level 1 (0 points)

        The following code is used to play streaming audio:


        AVPlayer* avPlayer = [[AVPlayer alloc] initWithURL:[NSURL URLWithString:urlString]];

        avPlayer.actionAtItemEnd = AVPlayerActionAtItemEndNone;

        avPlayer.volume = 1.0f;

        [avPlayer play];

        When the avPlayer instance is queried I see:

        avPlayer.status is "AVPlayerStatusReadyToPlay"

        avPlayer.rate is 1

        avPlayer.currentItem.playbackLikelyToKeepUp is FALSE

        avPlayer.currentItem.playbackBufferEmpty is true

        avPlayer.error is nil

        avPlayer.muted is false


        This code worked when compiled in XCode 6 and run on an iOS9 device.  However, it has completely stopped working when the project was built with XCode 7. The audio never starts playing and I don't see any errors in the Xcode console.


        Any ideas?  Perhaps some security related to the user of HTML?