开发者

IOS - Accessing Audio Stream from Ipod, Pausing and Changing Volume

开发者 https://www.devze.com 2023-03-25 05:14 出处:网络
I am working on an app that needs to pause and unpause the audio stream coming from the ipod app. Is there any way to do that? I want to make a button that once you press it, it pauses the currently p

I am working on an app that needs to pause and unpause the audio stream coming from the ipod app. Is there any way to do that? I want to make a button that once you press it, it pauses the currently playing song on the ipod app. Pressing it again unpauses where the music left off. I am also working on a way to change the volume of the ipod app, is there anyway to do this that does开发者_运维问答 not rely on the user manually moving a slider?

Any help at all would be great. Thanks!


you could use this framework if you want: Media Player Framework
Specially the MPMusicPlayerController Class

You have this:

Controlling Playback
– play
– pause
– stop
Managing Playback Mode and State
  volume ( property )
0

精彩评论

暂无评论...
验证码 换一张
取 消