https://github.com/sensehack/videoplayer_basic
Simple Video Player app with a framework which can be imported and used to add Video view to the UI
https://github.com/sensehack/videoplayer_basic
Last synced: 2 months ago
JSON representation
Simple Video Player app with a framework which can be imported and used to add Video view to the UI
- Host: GitHub
- URL: https://github.com/sensehack/videoplayer_basic
- Owner: SensehacK
- Created: 2023-04-25T23:37:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-26T02:59:24.000Z (about 2 years ago)
- Last Synced: 2025-01-22T19:38:33.488Z (4 months ago)
- Language: Swift
- Homepage: https://sensehack.github.io/VideoPlayer_Basic/documentation/basicavplayer
- Size: 831 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VideoPlayer_Basic_Framework
Simple Video Player app with a framework which can be imported and used to add Video view to the UI.
The Video will auto play.There are two functions exposed with respective documentation in their own framework files.
[Documentation Link](https://sensehack.github.io/VideoPlayer_Basic/documentation/basicavplayer/)
## Demo

## Quirks
iOS 16.4 simulator doesn't display video output for HLS streams. Should work fine for physical devices and previous iOS simulators.
[Thread Simulator Bug](https://developer.apple.com/forums/thread/727288)## Config
Minimum deployment target shifted to 15.0 due to a bug on iOS 16.4
3 different type of videos for testing.### Swift DocC command line
#### Local Build
```swift
xcodebuild docbuild \
-scheme BasicAVPlayer \
-destination 'name=iPhone 14 Pro' \
-derivedDataPath ./build
```#### Github Pages build
```swift
xcodebuild docbuild -scheme BasicAVPlayer \
-destination generic/platform=iOS \
OTHER_DOCC_FLAGS="--transform-for-static-hosting --output-path docs --hosting-base-path VideoPlayer_Basic"
```## Export
[Releases](https://github.com/SensehacK/VideoPlayer_Basic/releases)
### XcFramework
To Generate archive for iOS framework
#### Generic iOS
```swift
xcodebuild archive \
-scheme BasicAVPlayer \
-destination "generic/platform=iOS" \
-archivePath ../output/BasicAVPlayer-iOS \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
```#### Simulator
```swift
xcodebuild archive \
-scheme BasicAVPlayer \
-destination "generic/platform=iOS Simulator" \
-archivePath ../output/BasicAVPlayer-Sim \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
```### Xc Framework export
```swift
xcodebuild -create-xcframework \
-framework ./BasicAVPlayer-iOS.xcarchive/Products/Library/Frameworks/BasicAVPlayer.framework \
-framework ./BasicAVPlayer-Sim.xcarchive/Products/Library/Frameworks/BasicAVPlayer.framework \
-output ./BasicAVPlayer.xcframework
```