GithubHelp home page GithubHelp logo

shebinkoshy / shaudioplayer Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 5.0 2.25 MB

SHAudioPlayer

License: MIT License

Objective-C 84.84% Swift 15.16%
audio-player mp3player hls-live-streaming audio-streaming radioplayer swift objective-c ios iphone radio-player

shaudioplayer's Introduction

SHAudioPlayer

#audioplayer #mp3player #HLS #livestream #audiostream #radio #radioplayer #musicplayer #musicstream #objective-c #swift #swift5 #iOS

Contact the development team: Join the chat at https://gitter.im/iOS-objectiveC-swift/iOSsupport

AudioPlayer supports

  • Live audio streaming
  • HLS/m3u8/m3u audio streaming
  • Play from local audio file
  • Supports many audio codecs incluing mp3 & m4a
  • Swift 5
  • Objective-C
  • iOS 9 and above
  • Manages playlist

Provided code for

  • Audio interruptions handling
  • Background play
  • Actions from Control Center/EarPods
  • Update UI in Control Center

How to use?

Drag and drop SDK in your project.

Create song object

let song = MySongObj()//MySongObj is your class which implements SHAudioPlayerItemProtocol
song.songUrl = your song URL
song.albumArtImage = UIImage(named: "MusicImg")//Optional album art image. Also support url, provided code in MySongObj class.

Setup playlist

let arSongs = [song]//Playlist
SHAudioPlayer.shared.initialize(songsAr: arSongs)

Play

SHAudioPlayer.shared.play(atIndex: 0)

For more details, please look ViewController.swift in sample project.

Note: At present we are providing two SDK, one is specifically for real device and another one is specifically for simulator. You can find both inside SDK folder.

On request features will be added.

shaudioplayer's People

Contributors

shebinkoshy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shaudioplayer's Issues

Enhancement

Hi, Can you please add speed feature with your player, Like user should be able to set speed of the player. For example 1x by default. 1.5x , 2x or 3x.
Thanks for the quick response of my previous reply.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.