All Projects → fethica → Fradioplayer

fethica / Fradioplayer

Licence: mit
A simple radio player framework for iOS, macOS, tvOS.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Fradioplayer

Swift Radio Pro
Professional Radio Station App for iOS!
Stars: ✭ 2,644 (+1344.81%)
Mutual labels:  audio, music, player, radio, audio-player, avplayer
Swiftaudio
Audio player for iOS
Stars: ✭ 160 (-12.57%)
Mutual labels:  audio, audio-player, avplayer, audio-library, cocoapods
Pandoraplayer
🅿️ PandoraPlayer is a lightweight music player for iOS, based on AudioKit and completely written in Swift.
Stars: ✭ 1,037 (+466.67%)
Mutual labels:  audio, music, player, radio, cocoapods
React Music Player
🎵 Maybe the best beautiful HTML5 responsive player component for react :)
Stars: ✭ 321 (+75.41%)
Mutual labels:  audio, music, player, audio-player
React Cassette Player
Simple ReactJS HTML5 audio player component built with SVG icons from The Noun Project.
Stars: ✭ 93 (-49.18%)
Mutual labels:  audio, music, player, audio-player
Jcplayer
🎵 A simple audio player for Android applications.
Stars: ✭ 209 (+14.21%)
Mutual labels:  audio, player, radio, audio-player
Sbplayerclient
支持全格式的mac版视频播放器
Stars: ✭ 110 (-39.89%)
Mutual labels:  audio, music, player, audio-player
Fwplayer
A video player SDK for iOS, it is based on AVPlayer. https://se.linkedin.com/in/foks-huiwang, https://fokswang.wixsite.com/home
Stars: ✭ 321 (+75.41%)
Mutual labels:  audio, player, avplayer, cocoapods
Skplayer
🎵 A simple & beautiful HTML5 music player
Stars: ✭ 437 (+138.8%)
Mutual labels:  audio, music, player, audio-player
Audioplayers
A Flutter plugin to play multiple audio files simultaneously (Android/iOS)
Stars: ✭ 1,042 (+469.4%)
Mutual labels:  audio, player, audio-player
Audio player flutter
🎧 Apple Music / Tidal Audio Player for Flutter
Stars: ✭ 52 (-71.58%)
Mutual labels:  audio, music, audio-player
Arduino Music Player
MOD/S3M/XM/IT Music Player for Arduino
Stars: ✭ 85 (-53.55%)
Mutual labels:  audio, music, player
Vyplayindicator
PlayIndicator inspired by Apple's Music Player.
Stars: ✭ 47 (-74.32%)
Mutual labels:  audio, music, audio-player
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (-56.83%)
Mutual labels:  audio, audio-player, avplayer
Ktvhttpcache
A powerful media cache framework.
Stars: ✭ 2,113 (+1054.64%)
Mutual labels:  audio, player, cocoapods
Swiftysound
SwiftySound is a simple library that lets you play sounds with a single line of code.
Stars: ✭ 995 (+443.72%)
Mutual labels:  audio, player, cocoapods
Mpd
Music Player Daemon
Stars: ✭ 1,289 (+604.37%)
Mutual labels:  audio, music, audio-player
Winyl
Winyl's main repository.
Stars: ✭ 97 (-46.99%)
Mutual labels:  audio, music, player
Amplipi
Whole House Audio System 🔊
Stars: ✭ 125 (-31.69%)
Mutual labels:  audio, music, audio-player
Musicplayer
A minimal music player built on electron.
Stars: ✭ 145 (-20.77%)
Mutual labels:  audio, music, player

FRadioPlayer

FRadioPlayer

CI Status CI Status Version License Platform

FRadioPlayer is a wrapper around AVPlayer to handle internet radio playback.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

FRadioPlayer

Features

  • [x] Support internet radio URL playback
  • [x] Update and parse track metadata
  • [x] Update and show album artwork (via iTunes API)
  • [x] Automatic handling of interruptions
  • [x] Automatic handling of route changes
  • [x] Support bluetooth playback
  • [x] Swift 5
  • [x] Full documentation
  • [x] Network interruptions handling
  • [x] Support for Carthage
  • [x] Support for macOS
  • [x] Support for tvOS
  • [x] Support for Swift Package Manager SPM
  • [ ] Support for Audio Taps
  • [ ] Support for Audio Recording

Requirements

  • macOS 10.12+
  • iOS 10.0+
  • tvOS 10.0+
  • Xcode 10.2+
  • Swift 5

Installation

CocoaPods

FRadioPlayer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FRadioPlayer'

Carthage

FRadioPlayer is available through Carthage. To install it, simply add the following line to your Cartfile:

github "fethica/FRadioPlayer" ~> 0.1.10

Swift Package Manager

FRadioPlayer is available through SPM. To install it, simply add the following dependency to your Package.swift file:

.package(url: "https://github.com/fethica/FRadioPlayer.git", from: "0.1.18")

Manual

Drag the Source folder into your project.

Usage

Basics

  1. Import FRadioPlayer (if you are using Cocoapods)
import FRadioPlayer
  1. Get the singleton FRadioPlayer instance
let player = FRadioPlayer.shared
  1. Set the delegate for the player
player.delegate = self
  1. Set the radio URL
player.radioURL = URL(string: "http://example.com/station.mp3")

Properties

  • isAutoPlay: Bool The player starts playing when the radioURL property gets set. (default == true)

  • enableArtwork: Bool Enable fetching albums artwork from the iTunes API. (default == true)

  • artworkSize: Int Artwork image size. (default == 100 | 100x100).

  • rate: Float? Read only property to get the current AVPlayer rate.

  • isPlaying: Bool Read only property to check if the player is playing.

  • state: FRadioPlayerState Player current state of type FRadioPlayerState.

  • playbackState: FRadioPlaybackState Playing state of type FRadioPlaybackState.

Playback controls

  • Play
player.play()
  • Pause
player.pause()
  • Stop
player.stop()
  • Toggle playing state
player.togglePlaying()

Delegate methods

Called when player changes state

func radioPlayer(_ player: FRadioPlayer, playerStateDidChange state: FRadioPlayerState)

Called when the playback changes state

func radioPlayer(_ player: FRadioPlayer, playbackStateDidChange state: FRadioPlaybackState)

Called when player changes the current player item

func radioPlayer(_ player: FRadioPlayer, itemDidChange url: URL?)

Called when player item changes the timed metadata value

func radioPlayer(_ player: FRadioPlayer, metadataDidChange artistName: String?, trackName: String?)

Called when player item changes the timed metadata value

func radioPlayer(_ player: FRadioPlayer, metadataDidChange rawValue: String?)

Called when the player gets the artwork for the playing song

func radioPlayer(_ player: FRadioPlayer, artworkDidChange artworkURL: URL?)

Swift Radio App

For more complete app features, check out Swift Radio App based on FRadioPlayer

Swift Radio

Hacking

The Xcode project is generated automatically from project.yml using XcodeGen. It's only checked in because Carthage needs it, do not edit it manually.

$ mint run yonaskolb/xcodegen
💾  Saved project to FRadioPlayer.xcodeproj

Author

Fethi El Hassasna

License

FRadioPlayer is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].