RadioTunes SDK

Class Documentation

All public classes of RadioTunes SDK are documented using appledoc. See the technical documentation for further information.

Requirements

The source code of RadioTunes SDK is developed on Xcode 7.3 with iOS SDK 9.3. RadioTunes SDK will work on a deployment target of iOS 8 or greater on armv7, armv7s, arm64 and can be used in ARC and non-ARC projects.

Integration

RadioTunes SDK can be integrated in two ways into your app.

1. Binary

  • Drag RadioTunes.framework into the "Frameworks" group of your Xcode project.
  • Add the required libraries as shown in the screenshot below. You can add the FFmpeg libraries (libavcodec.a, libavformat.a, libavutil.a and libswresample.a) by dragging them from the "External/ffmpeg/lib" folder into your "Frameworks" group.
  • Open the Build Settings tab and apply the following changes:
    • Other Linker Flags -> -all_load -ObjC -lxml2
  • Add the "Required background modes" key to your project's plist file and set it's value to "App plays audio".
  • Add the following import statement everywhere you want to use RadioTunes SDK: #import <RadioTunes/RadioTunes.h>.

2. Source Code

  • Copy the whole RadioTunes directory into your project's root folder.
  • Drag RadioTunes.xcodeproj into the "Frameworks" group of your Xcode project.
  • Add RadioTunes as a target dependency (see screenshot).
  • Add the required libraries as shown in the screenshot below.
  • Open the Build Settings tab and apply the following changes:
    • Other Linker Flags -> -all_load -ObjC -lxml2
    • Add the following paths to "Header Search Paths":
      • "$(SRCROOT)/RadioTunes/External/ffmpeg/include"
      • "$(SRCROOT)/RadioTunes/RadioTunes"
    • Add the following path to "Library Search Paths":
      • "$(SRCROOT)/RadioTunes/External/ffmpeg/lib"
  • If your project ARC, open the Compile Sources section in the Build Phases tab. Add the -fno-objc-arc compiler flag to all .m source files belonging to RadioTunes SDK!
  • Add the "Required background modes" key to your project's plist file and set it's value to "App plays audio".
  • Add the following import statement everywhere you want to use RadioTunes SDK: #import "RadioTunes.h.

Sample Usage

Starting from $49