2 Replies
      Latest reply on Jul 22, 2019 8:16 AM by KMT
      sundus_12 Level 1 Level 1 (0 points)

        Hi,

        I have few questions regarding iOS native player i-e AVPlayer https://developer.apple.com/documentation/avfoundation/avplayer.

        1. AVPlayer is open source or closed source? I cannot find its source code like ExoPlayer(Android) https://github.com/google/ExoPlayer

        2. Are all available features of AVPlayer free of cost?

        3. I have seen AVPlayer supports prerolls. Are midrolls, postrolls and banner ads also supported? AVPlayer only supports iAds or it can play ads from any Adserver?

         

        Regards,

        Sundus

        • Re: Is AVPlayer open source?
          fumoboy007 Level 1 Level 1 (0 points)

          1. Unfortunately, `AVFoundation` is a typical closed-source Apple framework. 2. Yes, `AVPlayer` is free to use for developers. Apple pays for the necessary patent licenses and extends those licenses to include developers’ apps.

          • Re: Is AVPlayer open source?
            KMT Level 9 Level 9 (14,825 points)

            Hi, Sundus & welcome to devForums,

             

            1. ~ 2. - Apple has Private (to them) and Public APIs. Devs are permitted to code against Public API only, according to the usage guidelines outlined in their Developer Program account agreement. One difference is whether or not an API is documented - Private are not, Public are.

             

            AVPlayer is a multi-platform documented Public API, and as fumoboy007 notes, iOS devs are free to use it, in their App Store apps, the only cost being the USD$99 annual program fee.

             

            Not sure there is an 'open source' context in this example, but I think I know why you included that reference.

             

            3.

                 >Are midrolls, postrolls and banner ads also supported?

             

            There don't seem to be any ad break restrictions, if that's what you're asking, but specific implementation is on the dev, not by the API outright (tacit support from the API, I'd guess you'd call it) - example here:

            h ttps://developers.google.com/interactive-media-ads/docs/sdks/ios/ad-rules

             

                 >AVPlayer only supports iAds or it can play ads from any Adserver?

             

            iAd is history. Ad content/payload on iOS, for some time now, is on the dev, meaning the API is otherwise agnostic. Can't confirm 'any' tho...

             

            Good luck.

             

            Ken