|
@@ -415,7 +415,9 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
}
|
|
}
|
|
|
|
|
|
- (void)playWithDevice:(id <MKRUPnPDevice>)device {
|
|
- (void)playWithDevice:(id <MKRUPnPDevice>)device {
|
|
- libupnp_Play(device.avTransportUrl);
|
|
|
|
|
|
+ wd_playControl_queue(^{
|
|
|
|
+ libupnp_Play(device.avTransportUrl);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
- (void)_playPlayFlag:(NSString *)playFlag
|
|
- (void)_playPlayFlag:(NSString *)playFlag
|
|
@@ -424,7 +426,7 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
NSString *playListUrl = [NSString stringWithFormat:@"%@/web/playlist",[ASControlTools sharedInstanceUPNP].myIp];
|
|
NSString *playListUrl = [NSString stringWithFormat:@"%@/web/playlist",[ASControlTools sharedInstanceUPNP].myIp];
|
|
NSString *timestamp = [NSString stringWithFormat:@"%.0f", timeStamp];
|
|
NSString *timestamp = [NSString stringWithFormat:@"%.0f", timeStamp];
|
|
NSString *userID = self.userID;
|
|
NSString *userID = self.userID;
|
|
- libupnp_PlayNumFlag(
|
|
|
|
|
|
+ libupnp_PlayNumFlagV2(
|
|
device.avTransportUrl,
|
|
device.avTransportUrl,
|
|
playFlag,
|
|
playFlag,
|
|
timestamp,
|
|
timestamp,
|