ソースを参照

版本升级维护

yyqxiaoyin 5 年 前
コミット
2ee115a653

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

@@ -51,6 +51,8 @@
 
 - (void)removeDeviceManagerListener:(id<MKRWIFIDeviceManagerDelegate>)listener;
 
+@property (nonatomic, strong) id <MKRRadioResorce> currentResource;
+
 /**
  * 初始化UPNP
  * @return UPNP初始化错误码 0为无错误 即初始化成功

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

@@ -37,8 +37,6 @@ static inline void wd_playControl_queue(void (^block)(void)){
 
 @property (nonatomic, strong) NSHashTable *listeners;
 
-@property (nonatomic, strong) id <MKRRadioResorce> currentResource;
-
 @end
 
 @implementation MKRWIFIDeviceManager
@@ -442,9 +440,6 @@ static inline void wd_playControl_queue(void (^block)(void)){
                        device:(id<MKRUPnPDevice>)device
                     timeStamp:(NSTimeInterval)timeStamp{
     wd_playControl_queue(^{
-        if (firstPlayingSong && firstPlayingSong.songID) {
-            [self setAVTransportURIWithSong:firstPlayingSong device:device];
-        }
         NSString *playFlag = [NSString stringWithFormat:@"%zd",channelNO];
         [self _playPlayFlag:playFlag device:device timeStamp:timeStamp];
     });