Code Monkey home page Code Monkey logo

airplaydetector's Introduction

AirPlayDetector - NO LONGER IN DEVELOPMENT

HEY EVERYONE - I haven't touched this code in a long time because I'm out of the iOS development world. I got bit by the hardware bug and spend my days in linux now. I don't even own a mac so I couldn't work on this if I wanted. Anyone who wants to take over, please email me at [email protected]

Does the job of detecting whether this device can connect to an Apple TV or whatever using AirPlay. It uses a hack with MPVolumeButton to overcome the fact that the framework has no properties or events for this information, which seems pretty silly to me.

This is for iOS only. OSX version would be welcomed!

To use it, simply put the following code in your app, typically in appdelegate during applicationDidFinishLaunchingWithOptions: [[AirPlayDetector defaultDetector] startMonitoring:window];

A notification will be posted when availability changes: AirPlayAvailabilityChanged

Or you can query availability by: [AirPlayDetector defaultDetector].isAirPlayAvailable

airplaydetector's People

Contributors

stevepotter avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airplaydetector's Issues

Only for iOS?

Hi,

This seems to only work in iOS and not on the mac. It would be nice if you could add this bit of information into the description.

Jeena

Cocoa pods

Hi!

I created this podspec, but I'm having some issues.

Pod::Spec.new do |s|
  s.name = 'AirPlayDetector' 
  s.version = "1.0"
  s.summary = 'AirPlayDetector which posts notifications about airplay.' 
  s.homepage = 'https://github.com/StevePotter/AirPlayDetector' 
  s.author = { 'Stephen Potter' => '[email protected]' }  
  s.source = { :git => 'https://github.com/StevePotter/AirPlayDetector.git'} 
  s.source_files = FileList['*.[hm]'].exclude(/.*Test\.[hm]$/)
  s.frameworks   = 'UIKit'
  s.platform = :ios 
  s.requires_arc = false
end 

-> AirPlayDetector (1.0)
- WARN | Missing license type
- WARN | Git sources should specify either a tag or a commit
- WARN | Git sources without tag should be marked as 0.0.1 (not always applicable)

Can you help me help you out? :)

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.