- Notifications
You must be signed in to change notification settings - Fork2
Very simple example iOS app integrating player-sdk-swift to interact with Ybrid®.
License
ybrid/app-example-ios
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is an example app of using the audio player fromplayer-sdk-swift for iOS. The xcode project in this repository is written in Swift 4 and runs the app on iPhones and iPads from iOS 9 to 14.
This example app should run with older versions of XCode according to the nature of envolved XCFrameworks. We use version 12.
Open app-example-ios.xcworkspace with XCode. Select scheme 'app-example-ios' and choose one of the iOS Simulators and press the 'play' button.
Of course you can choose your own connected device as well.
The scheme 'app-example-iosUITests' contains some test classes. Select the scheme, change to the 'Test navigator' tab and run one of the tests.
- 'UseYbridPlayerTests' is a tutorial. It explains how to use YbridPlayerSDK.
- 'YbridPlayerTests' covers the very basic use cases.
- 'PlayerToggleStressTests' takes about 7 Minutes. It toggles play and stop in decreasing time intervalls. It's purpose is to demonstrate robustness and watch memory usage.
You can run tests on connected devices as well.
Sorry, there is an issue with simulators using ios < 14 on macOS Big Sur (seeKnown issues below).
If you want to update to the latest version ofYbridPlayerSDK
you need CocoaPod installed. Execute
pod update
on a terminal in the project's directory.
Since the update on macOS BigSur (and still in Version 11.3.1) there is a problem running the player with simulators on versions smaller than iOS 14. The problem is already reported onhttps://developer.apple.com/forums/thread/667921?login=true&page=1#650224022. I hope the issue will be fixed by apple...
Because this is an example app for using player-sdk-swift, contributing should happen in that repositoryplayer-sdk-swift
This project andplayer-sdk-swift are under under MIT license. The player project depends onogg-swift andopus-swift. Ogg and Opus carry BSD licenses, see 3rd party section inLICENSE file.
About
Very simple example iOS app integrating player-sdk-swift to interact with Ybrid®.