Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omaralbeik/vlc
Install VLC using Swift Package Manager
https://github.com/omaralbeik/vlc
ios macos spm swift tvos vlc vlckit
Last synced: about 1 month ago
JSON representation
Install VLC using Swift Package Manager
- Host: GitHub
- URL: https://github.com/omaralbeik/vlc
- Owner: omaralbeik
- License: lgpl-2.1
- Created: 2024-05-23T19:29:07.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-26T15:15:28.000Z (about 2 months ago)
- Last Synced: 2024-11-26T16:24:35.374Z (about 2 months ago)
- Topics: ios, macos, spm, swift, tvos, vlc, vlckit
- Language: Swift
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VLC
[VLC](https://github.com/omaralbeik/VLC) is a repository that provides VLC binaries for use in iOS, tvOS, and macOS projects. This repository allows you to easily include VLC's powerful media playback capabilities in your projects via Swift Package Manager.
## Installation
### Swift Package Manager
To add VLC to your project using Swift Package Manager, follow these steps:
1. In Xcode, select `File > Swift Packages > Add Package Dependency...`.
2. Enter the repository URL: `https://github.com/omaralbeik/VLC`.
3. Choose the version or branch you want to use.### Package.swift
To manually add VLC as a dependency in your `Package.swift` file, include the following:
```swift
import PackageDescriptionlet package = Package(
name: "YourProjectName",
platforms: [/* */],
dependencies: [
.package(url: "https://github.com/omaralbeik/VLC")
],
targets: [
.target(
name: "YourTargetName",
dependencies: [
"VLC"
]
),
]
)
```## Usage
Once you’ve added the VLC package to your project, you can import and use it in your code:
```swift
import VLCclass MediaPlayer {
func playMedia(from url: URL) {
let player = VLCMediaPlayer()
player.media = VLCMedia(url: url)
player.play()
}
}
```## License
This repository is licensed under the MIT license. See the [LICENSE](LICENSE) file for more information.
## Acknowledgments
This repository provides binaries and headers for VLC, a free and open-source media player and streaming media server developed by the VideoLAN project.