|
@@ -545,6 +545,11 @@ static inline void wd_playControl_queue(void (^block)(void)){
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+- (void)setChannelUpdate:(NSString *)channelFlag device:(id<MKRUPnPDevice>)device timeStamp:(NSTimeInterval)timeStamp{
|
|
|
+ NSString *timestamp = [NSString stringWithFormat:@"%.0f", [[NSDate date] timeIntervalSince1970]];
|
|
|
+ libupnp_SetChannelUpdate(device.groupManagementUrl, self.userID, timestamp, channelFlag, @"null");
|
|
|
+}
|
|
|
+
|
|
|
- (id <MKRRadioResorce>)getPlayingStatusWithDevice:(id <MKRUPnPDevice>)device {
|
|
|
wd_playControl_queue(^{
|
|
|
NSDictionary *resultDic = [[ASControlTools sharedInstanceUPNP] libupnp_getPlayInfo:device.avTransportUrl];
|