4 "summary": "The FAVPlayer or Frequency AVPlayer is a iOS and tvOS native player which let you easily play Frequency's videos.",
5 "description": "The FAVPlayer or Frequency AVPlayer is a iOS and tvOS native player which let you easily play Frequency's videos.\n\n The FAVPlayer encapsulate all the logic required to play a video with advertisement, reporting and beaconing. This project leverage the Javascript Core framework to allow the existing Javascript code of the Javascript Player SDK to be interfaced with Swift and objc. The native part, written in Swift 4, is only responsible for playback and sending/handling events. The Javascript part handles requests to the Frequency API, request to the ad decisioning server, parse the VAST responses, tracks the activity of the player, and sends beacons to the appropriate ad servers.\n\nTo play a video\n\nFirst you'll have to authenticate, then create the player and pass it the token and deviceId.\n\nvar f = FAVPlayer.init(apiUrl: \"https://prd-freq.frequency.com\", token: \"TOKEN_ID\", deviceId: \"DEVICE_ID\")\n\nCreate an avPlayerViewController and assign the newly created favPlayer as its player.\n\nvar avPlayerViewController = AVPlayerViewController.init()\navPlayerViewController.player = favPlayer\n\nLoad a videoId provided by a Frequency service\n\nfavPlayer.load(videoId: \"VIDEO_ID\")\n\nPresent the AVPlayerViewController.\n\nself.present(avPlayerViewController, animated: true, completion: nil)",
6 "homepage": "https://confluence.frequency.com/display/HOME/iOS+SDK+3.1.0",
8 "type": "Apache License, Version 2.0",
12 "clementperez": "clement@frequency.com"
19 "git": "https://github.com/frequency/frequency-ios-sdk-public.git",
24 "Sources/**/*.{h,m,swift}"
28 "Sources/Ejecta/*.{h,m}",
29 "Sources/Ejecta/**/*.{h,m}"
32 "resources": "Assets/*.js",
33 "documentation_url": "https://confluence.frequency.com/display/HOME/iOS+SDK+3.1.0",
38 "Sources/Ejecta/*.{h,m}",
39 "Sources/Ejecta/**/*.{h,m}"