TechQA.

Linked Questions

  • Get EC Private Key PEM string from SecKey Object
  • MotionLayout for iOS
  • Bring previous app back to the front when user is done with my iOS app
  • How to convert data to image in iOS
  • Image Filter in Swift
  • Define and calculate Apples definition of the unit point
  • Why keyboard doesn’t show all the languages?
  • How to play video from epub file?
  • Recommended iPhone Development Resources
  • iOS: call method from a separate viewController
  • Why is my NSMutableSet empty?
  • how to go back root view controller from recursive view controller(fourth)
  • Closing app on iOS power button switch off
  • How to detect data being per app basis on iOS
  • iOS: Is it possible to push an update for a side-loaded development app?

Popular Questions

  • Partially applied generic function "cannot be cast to Nothing"
  • Peek and Pop not an option
  • Run JIRA in port 80 as root
  • Agar.io style ripple effect for canvas arcs
  • What is the difference between [ValidateModel] and a check of valid state in ASP.NET?
  • Passing shared_ptr to std::function (member function)
  • UWP location tracking even when the app was suspended
  • Docker – fix service IP addresses
  • Dynamic partition in hive
  • How to enable Indications on Client Configuration descriptor from iOS8

avplayer pause or stop notification based on the rate

Asked by user5423862 At 02 June at 04:58

I need to send notifications when the AVPlayer is Play/Paused and Stopped. For play and pause below is the code

if (self.player.rate > 0.0f) { NSLog(@" Playing ..") }

if (self.player.rate == 0.0f) { NSLog(@" Paused ..") }

But for stopped also the rate = 0.0 then is there any other property or way to identify the difference between paused and stopped. For both, paused and stopped the rate = 0.0 and hence need another way for it.

Thanks

ios swift iphone avplayer
Original Q&A

0 Answers

Related Questions

  • iOS Developer program recurring payment?
  • How to decompose storyboard views into XIBs
  • ASIHTTPRequest POST to TomCat
  • check mark repeating after some data added....when i make check
  • How to find indexPath of UITableview cell which contains UICollectionView
  • Always got nil value from the function in iOS
  • Are FSEvents available in IOS?
  • Application Code must execute Once
  • How to change the name of an iOS app?
  • Iphone development resources
  • What is the "App Id" that the Apple developer connection site is asking me for?
  • Change Label of UISwitch
  • Separating Loading data and UI via threading in Objective C/Cocoa
  • How to identify a device (iPod touch/iPhone) is 2G or 3G?
  • How to make an UIAlertView pop up when a bouncing image touches a draggable image?
  • Privacy
  • Terms
  • Cookies