|
@@ -430,20 +430,24 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
}
|
|
}
|
|
|
|
|
|
- (void)playSongWithChannelNO:(NSInteger)channelNO
|
|
- (void)playSongWithChannelNO:(NSInteger)channelNO
|
|
- index:(NSInteger)index
|
|
|
|
- device:(id <MKRUPnPDevice>)device
|
|
|
|
|
|
+ firstPlayingSong:(id<MKRRadioResorce>)firstPlayingSong
|
|
|
|
+ device:(id<MKRUPnPDevice>)device
|
|
timeStamp:(NSTimeInterval)timeStamp{
|
|
timeStamp:(NSTimeInterval)timeStamp{
|
|
wd_playControl_queue(^{
|
|
wd_playControl_queue(^{
|
|
- NSString *playFlag = [NSString stringWithFormat:@"%zd-%zd",channelNO,index];
|
|
|
|
|
|
+ [self setAVTransportURIWithSong:firstPlayingSong device:device];
|
|
|
|
+ NSString *playFlag = [NSString stringWithFormat:@"%zd",channelNO];
|
|
[self _playPlayFlag:playFlag device:device timeStamp:timeStamp];
|
|
[self _playPlayFlag:playFlag device:device timeStamp:timeStamp];
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- (void)playSongWithChannelNO:(NSInteger)channelNO
|
|
- (void)playSongWithChannelNO:(NSInteger)channelNO
|
|
- device:(id <MKRUPnPDevice>)device
|
|
|
|
|
|
+ firstPlayingSong:(id<MKRRadioResorce>)firstPlayingSong
|
|
|
|
+ index:(NSInteger)index
|
|
|
|
+ device:(id<MKRUPnPDevice>)device
|
|
timeStamp:(NSTimeInterval)timeStamp{
|
|
timeStamp:(NSTimeInterval)timeStamp{
|
|
wd_playControl_queue(^{
|
|
wd_playControl_queue(^{
|
|
- NSString *playFlag = [NSString stringWithFormat:@"%zd",channelNO];
|
|
|
|
|
|
+ [self setAVTransportURIWithSong:firstPlayingSong device:device];
|
|
|
|
+ NSString *playFlag = [NSString stringWithFormat:@"%zd-%zd",channelNO,index];
|
|
[self _playPlayFlag:playFlag device:device timeStamp:timeStamp];
|
|
[self _playPlayFlag:playFlag device:device timeStamp:timeStamp];
|
|
});
|
|
});
|
|
}
|
|
}
|