我刚刚创立了AVPlayer,它很好地发挥了音乐作用。 我有两个问题:
- How to play another music from another URL (should I stop current player?)
- How to show current time of the song in UISlider (actually is it a method that called when the song is playing?)
我刚刚创立了AVPlayer,它很好地发挥了音乐作用。 我有两个问题:
(1) 如果你使用——(id)initWithURL(NSURL *)URL,那么你就应当停止参与pa、交易和制造新情况。
AVPlayer *player = [AVPlayer alloc] initWithURL:[NSURL URLWithString:@"http:/someurl.com"]];
[player play];
[player pause];
[player release];
player = [AVPlayer alloc] initWithURL:[NSURL URLWithString:@"http:/someurl2.com"]];
[player pause];
[player release];
如果你使用过感人的话 接着,与LURL一样,也只是一线。
页: 1 The easiest is the accreditation period of the present project 之后,更新了具有这一价值的UISlider。 您可使用国家空间局定期检查期限。
self.player.currentItem.asset.duration
Use -[AVPlayer replaceCurrentItemWithPlayerItem]
to replace the current playing item reusing the player instance. You can create an item with an URL or with an asset.
为了知道某一项物品何时能使用通知编号
使用<代码>-[AVPlayer AddPeriodictime Observer forInterval],在参与者玩.期间定期开展某些行动。 See this example:
[self.player addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(0.1, 100)
queue:nil
usingBlock:^(CMTime time) {
<# your code will be called each 1/10th second #>
}];
I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...
HI, In our application i am using corelocationframework when opening application a alert for allow and dont allow.when clicking on the allow for current location we will show current location.When ...
Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...
我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......
我希望我与四舍五入的累进角进行网上讨论。
我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。
We have a restaurant table that has lat-long data for each row. We need to write a query that performs a search to find all restaurants within the provided radius e.g. 1 mile, 5 miles etc. We have ...
I like to write bash shell scripts on my iPhone, put them in an app folder with an icon, plist, etc., so they execute like apps by tapping their icon on SpringBoard. This is not interactive like ...