yyqxiaoyin пре 5 година
родитељ
комит
18e741fc1d

+ 2 - 2
MKRRadioManager/Classes/MKRRadioManager/MKRWIFIDeviceManager/MKRWIFIDeviceManager.m

@@ -574,9 +574,9 @@ static inline void wd_playControl_queue(void (^block)(void)){
         }
             break;
     }
-    NSString *string = [NSString stringWithFormat:@"CHANNEL_UPDATE_%zd",channelNO];
+    NSString *channelFlag = [NSString stringWithFormat:@"CHANNEL_UPDATE_%zd",channelNO];
     wd_playControl_queue(^{
-        libupnp_SetPlayModeV2(device.groupManagementUrl, playModeString, string, self.userID);
+        libupnp_SetChannelPlayModeV2(device.groupManagementUrl, channelFlag, playModeString, self.userID);
     });
 }
 

+ 5 - 1
libs/libAS-Control.framework/Headers/ASControlTools.h

@@ -351,6 +351,10 @@ int libupnp_SetAVTransportURIV2(NSString *controlurl,
                               NSString *songFrom,//来源类别
                               NSString *songAlbumID);//专辑ID
 
-int libupnp_SetPlayModeV2(NSString *ControlURL, NSString *CurrentPlayMode,NSString *channelFlag,NSString *userID);  //设置CurrentPlayMode: NORMAL/REPEAT_ALL/REPEAT_ONE/SHUFFLE
+
+int libupnp_SetChannelPlayModeV2(NSString  *ControlURL,
+                                 NSString *ChannelFlag,
+                                 NSString *CurrentPlayMode,
+                                 NSString *userID);
 
 @end

BIN
libs/libAS-Control.framework/libAS-Control