The FreeWheel bucket demonstrates ads managed by FreeWheel (linear and companion). The single sample, BasicFreeWheelPlayer, bridges Brightcove to FreeWheel and builds a per-session ad request with a pre-roll, two mid-rolls, and a post-roll.
- Platform: iOS.
- Minimum OS: iOS 14.0.
- Toolchain: Xcode 15.0+.
- Extra SDKs: the FreeWheel AdManager SDK ("AdManager Dynamic Build"), added manually — the Brightcove FreeWheel plugin comes via Swift Package Manager.
- Open
BasicFreeWheelPlayer.xcodeprojin Xcode; Swift Package Manager resolves the Brightcove SDK on the first build. - Download the FreeWheel "AdManager Dynamic Build" from the FreeWheel website and drag
AdManager.xcframeworkonto the project, adding it to the BasicFreeWheelPlayer target. - Set
AdManager.xcframeworkto Embed & Sign under the target's Frameworks, Libraries and Embedded Content.
The FreeWheel demo endpoint constants are at the top of ViewController.swift.
| File | Responsibility |
|---|---|
BasicFreeWheelPlayer/ViewController.swift |
Builds the FreeWheel session provider, ad-context policy, and temporal ad slots |
BasicFreeWheelPlayer/AppDelegate.swift |
Configures AVAudioSession for playback |