Pars Player
January 12, 2025 Β· View on GitHub
Pars Player is an IPTV player developed for macOS. You can load IPTV lists in M3U format and watch live streams.
π Features
- M3U file loading support
- M3U list loading from URL
- Channel search
- Fullscreen support
- Live stream playback
- Playback controls (play, pause, stop)
- Dark theme
π Technologies
- Swift 5
- SwiftUI
- VLCKit
- Carthage
- CocoaPods
π Requirements
- macOS 11.0 or later
- Xcode 14.0 or later
- CocoaPods
- Carthage
π» Installation
-
Clone the repository:
git clone https://github.com/htutuncu/Pars-Player.git cd Pars-Player -
Install CocoaPods (if not installed):
sudo gem install cocoapods -
Install Carthage (if not installed):
brew install carthage -
Install dependencies:
pod install carthage update --platform macOS -
Open
Pars Player.xcworkspacewith Xcode -
Build and run the project (
βR)
π Project Structure
Pars Player/
βββ Models/
β βββ Channel.swift # Channel model
βββ ViewModels/
β βββ ChannelsViewModel.swift # Channel list management
βββ Views/
β βββ ContentView.swift # Main view
β βββ PlayerView.swift # Video player
βββ Utils/
β βββ M3UParser.swift # M3U file parser
π Libraries Used
VLCKit
VLCKit is a wrapper for VideoLAN's VLC media player for macOS applications. It is used for video playback features.
Integration:
-
Added to Podfile:
pod 'VLCKit' -
Used VLCMediaPlayer in PlayerView.swift:
import VLCKit
βοΈ Feature Details
M3U File Support
- Load local M3U files
- Download M3U list from URL
- Parse EXTINF tags
- Read channel name, group, and logo information
Video Player
- VLCKit integration
- Fullscreen support
- Playback controls
- Time bar
- Volume control
User Interface
- Modern interface with SwiftUI
- Dark theme support
- Responsive design
- Channel search functionality
- Sidebar navigation
π€ Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE.md file for details.
π« Contact
Hikmet TΓΌtΓΌncΓΌ - @htutuncu
Project Link: https://github.com/htutuncu/Pars-Player