Browse Source

版本升级维护

yyqxiaoyin 5 years ago
parent
commit
1dd4d59d59

+ 2 - 0
MKRRadioManager/Classes/MKRRadioManager/MKRWIFIDeviceManager/MKRWIFIDeviceManager.h

@@ -37,6 +37,8 @@
 /// @param deviceUUID 掉线设备的设备UUID
 - (void)didReceiveDeviceOffline:(NSString *)deviceUUID;
 
+- (void)didGetPlayInfo:(id<MKRRadioResorce>)resource;
+
 @end
 
 @interface MKRWIFIDeviceManager : NSObject

+ 3 - 0
MKRRadioManager/Classes/MKRRadioManager/MKRWIFIDeviceManager/MKRWIFIDeviceManager.m

@@ -640,6 +640,9 @@ static inline void wd_playControl_queue(void (^block)(void)){
             NSString *songChannelUid = [NSString stringWithFormat:@"%@-%@-%zd",self.userID,device.deviceUUID,songChannel];
             self.currentResource.songChannelUid = songChannelUid;
             self.currentResource.songFlag = [NSString stringWithFormat:@"%@_%zd",songChannelUid,self.currentResource.songID];
+            wd_main_queue(^{
+                [self.listeners makeObjectsPerformSelectorWithObjects:@selector(didGetPlayInfo:),self.currentResource];
+            });
         }
     });
     return self.currentResource;