yyqxiaoyin 5 лет назад
Родитель
Сommit
07c5ebc5be

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

@@ -457,7 +457,9 @@ static inline void wd_playControl_queue(void (^block)(void)){
     m3uModel.playModeString = @"REPEAT_ALL";
     wd_playControl_queue(^{
         [[MKRWIFIDeviceManager shareManager] setM3UList:m3uModel];
-        [self setAVTransportURIWithSong:songs[index] device:device];
+        id <MKRRadioResorce> song = songs[index];
+        song.songChannel = 13;
+        [self setAVTransportURIWithSong:song device:device];
         NSString *playFlag = [NSString stringWithFormat:@"13-%zd",index];
         [self _playPlayFlag:playFlag device:device timeStamp:timeStamp];
     });
@@ -471,7 +473,9 @@ static inline void wd_playControl_queue(void (^block)(void)){
     m3uModel.playModeString = @"REPEAT_ALL";
     wd_playControl_queue(^{
         [[MKRWIFIDeviceManager shareManager] setM3UList:m3uModel];
-        [self setAVTransportURIWithSong:songs[0] device:device];
+        id <MKRRadioResorce> song = songs[0];
+        song.songChannel = 13;
+        [self setAVTransportURIWithSong:song device:device];
         [self _playPlayFlag:@"13" device:device timeStamp:timeStamp];
     });
 }