|
@@ -178,7 +178,7 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
|
-(void)ReceivedPlayCallBack:(NSString *)nUDN{
|
|
|
NSLog(@"收到播放回调%@",nUDN);
|
|
|
wd_main_queue(^{
|
|
|
- if ([nUDN isEqualToString:self.device.deviceUUID]) {
|
|
|
+ if ([nUDN containsString:self.device.deviceUUID]) {
|
|
|
self.currentResource.resourceStatus.playState = MKRResourcePlayStatePlaying;
|
|
|
[self.listeners makeObjectsPerformSelectorWithObjects:@selector(didReceivePlayStateChange:),MKRResourcePlayStatePlaying];
|
|
|
}
|
|
@@ -188,7 +188,7 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
|
-(void)ReceivedPauseCallBack:(NSString *)nUDN{
|
|
|
NSLog(@"收到暂停回调%@",nUDN);
|
|
|
wd_main_queue(^{
|
|
|
- if ([nUDN isEqualToString:self.device.deviceUUID]) {
|
|
|
+ if ([nUDN containsString:self.device.deviceUUID]) {
|
|
|
self.currentResource.resourceStatus.playState = MKRResourcePlayStatePause;
|
|
|
[self.listeners makeObjectsPerformSelectorWithObjects:@selector(didReceivePlayStateChange:),MKRResourcePlayStatePause];
|
|
|
}
|
|
@@ -198,7 +198,7 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
|
-(void)ReceivedStopCallBack:(NSString *)nUDN{
|
|
|
NSLog(@"收到停止回调%@",nUDN);
|
|
|
wd_main_queue(^{
|
|
|
- if ([nUDN isEqualToString:self.device.deviceUUID]) {
|
|
|
+ if ([nUDN containsString:self.device.deviceUUID]) {
|
|
|
self.currentResource.resourceStatus.playState = MKRResourcePlayStateStopped;
|
|
|
[self.listeners makeObjectsPerformSelectorWithObjects:@selector(didReceivePlayStateChange:),MKRResourcePlayStateStopped];
|
|
|
}
|
|
@@ -207,7 +207,7 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
|
|
|
|
-(void)ReceivedSetVolumeCallBack:(NSString *)nUDN Volume:(NSInteger)Volume{
|
|
|
wd_main_queue(^{
|
|
|
- if ([nUDN isEqualToString:self.device.deviceUUID]) {
|
|
|
+ if ([nUDN containsString:self.device.deviceUUID]) {
|
|
|
NSLog(@"收到设备音量回调SetZoneVolumeCallBack:%zd",Volume);
|
|
|
[self.listeners makeObjectsPerformSelectorWithObjects:@selector(didReceiveVolumeChange:),(float)Volume];
|
|
|
}
|