- tweak widget templates
- minor improvements & fixes
This commit is contained in:
@@ -1057,6 +1057,30 @@ static NSString* VLTerminationHintForErrorCode(int errorCode) {
|
||||
}
|
||||
|
||||
- (void)enterPip{
|
||||
if (@available(iOS 15.0, tvOS 15.0, *)) {
|
||||
if(!_settings.enablePIP){
|
||||
AlertControllerUtil.autoCompletion = true;
|
||||
[AlertControllerUtil showAlertIn:self
|
||||
title:@""
|
||||
message:[LocalizationHelper localizedStringForKey:@"pipDisabled"]
|
||||
withCancel:NO
|
||||
buttonTitle:@""
|
||||
countdown:1
|
||||
action:^{}
|
||||
completion:^{}];
|
||||
}
|
||||
}
|
||||
else {
|
||||
AlertControllerUtil.autoCompletion = true;
|
||||
[AlertControllerUtil showAlertIn:self
|
||||
title:@""
|
||||
message:[LocalizationHelper localizedStringForKey:@"pipNotSupported"]
|
||||
withCancel:NO
|
||||
buttonTitle:@""
|
||||
countdown:1
|
||||
action:^{}
|
||||
completion:^{}];
|
||||
}
|
||||
[self.pipController startPictureInPicture];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user