@@ -460,10 +460,6 @@ - (void)audioStreamActionSheet {
460460 }];
461461}
462462
463- - (void )playbackAction : (NSString *)action params : (NSDictionary *)parameters {
464- [self playerAction: action params: parameters];
465- }
466-
467463- (void )simpleAction : (NSString *)action params : (NSDictionary *)params xbmcHttp : (NSString *)command {
468464 [self simpleAction: action params: params completion: ^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *error) {
469465 // Backwards compatibility for Kodi "Eden" which supports xbmchttp but not JSON API for some commands
@@ -497,7 +493,7 @@ - (void)showActionAudiostreams:(NSArray*)sheetActions {
497493 if (![audiostreamsDictionary[@" audiostreams" ][i] isEqual: audiostreamsDictionary[@" currentaudiostream" ]]) {
498494 id audiostreamIndex = audiostreamsDictionary[@" audiostreams" ][i][@" index" ];
499495 if (audiostreamIndex) {
500- [self playbackAction :@" Player.SetAudioStream" params: @{@" stream" : audiostreamIndex}];
496+ [self playerAction :@" Player.SetAudioStream" params: @{@" stream" : audiostreamIndex}];
501497 [self showSubInfo: actiontitle color: SUCCESS_MESSAGE_COLOR];
502498 }
503499 }
@@ -527,7 +523,7 @@ - (void)showActionSubtitles:(NSArray*)sheetActions {
527523
528524 UIAlertAction *action_disable = [UIAlertAction actionWithTitle: LOCALIZED_STR (@" Disable subtitles" ) style: UIAlertActionStyleDestructive handler: ^(UIAlertAction *action) {
529525 [self showSubInfo: LOCALIZED_STR (@" Subtitles disabled" ) color: SUCCESS_MESSAGE_COLOR];
530- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" off" }];
526+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" off" }];
531527 }];
532528 if ([subsDictionary[@" subtitleenabled" ] boolValue ]) {
533529 [alertCtrl addAction: action_disable];
@@ -542,8 +538,8 @@ - (void)showActionSubtitles:(NSArray*)sheetActions {
542538 ![subsDictionary[@" subtitleenabled" ] boolValue ]) {
543539 id subsIndex = subsDictionary[@" subtitles" ][i][@" index" ];
544540 if (subsIndex) {
545- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : subsIndex}];
546- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" on" }];
541+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : subsIndex}];
542+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" on" }];
547543 [self showSubInfo: actiontitle color: SUCCESS_MESSAGE_COLOR];
548544 }
549545 }
@@ -709,62 +705,62 @@ - (void)processButtonPress:(NSInteger)buttonTag {
709705 case TAG_BUTTON_SEEK_BACKWARD:
710706 action = @" Player.Seek" ;
711707 params = [Utilities buildPlayerSeekStepParams: @" smallbackward" ];
712- [self playbackAction : action params: params];
708+ [self playerAction : action params: params];
713709 break ;
714710
715711 case TAG_BUTTON_SEEK_BACKWARD_BIG:
716712 action = @" Player.Seek" ;
717713 params = [Utilities buildPlayerSeekStepParams: @" bigbackward" ];
718- [self playbackAction : action params: params];
714+ [self playerAction : action params: params];
719715 break ;
720716
721717 case TAG_BUTTON_PLAY_PAUSE:
722718 action = @" Player.PlayPause" ;
723719 params = nil ;
724- [self playbackAction : action params: nil ];
720+ [self playerAction : action params: nil ];
725721 break ;
726722
727723 case TAG_BUTTON_SEEK_FORWARD:
728724 action = @" Player.Seek" ;
729725 params = [Utilities buildPlayerSeekStepParams: @" smallforward" ];
730- [self playbackAction : action params: params];
726+ [self playerAction : action params: params];
731727 break ;
732728
733729 case TAG_BUTTON_SEEK_FORWARD_BIG:
734730 action = @" Player.Seek" ;
735731 params = [Utilities buildPlayerSeekStepParams: @" bigforward" ];
736- [self playbackAction : action params: params];
732+ [self playerAction : action params: params];
737733 break ;
738734
739735 case TAG_BUTTON_PREVIOUS:
740736 if (AppDelegate.instance .serverVersion > 11 ) {
741737 action = @" Player.GoTo" ;
742738 params = @{@" to" : @" previous" };
743- [self playbackAction : action params: params];
739+ [self playerAction : action params: params];
744740 }
745741 else {
746742 action = @" Player.GoPrevious" ;
747743 params = nil ;
748- [self playbackAction : action params: nil ];
744+ [self playerAction : action params: nil ];
749745 }
750746 break ;
751747
752748 case TAG_BUTTON_STOP:
753749 action = @" Player.Stop" ;
754750 params = nil ;
755- [self playbackAction : action params: nil ];
751+ [self playerAction : action params: nil ];
756752 break ;
757753
758754 case TAG_BUTTON_NEXT:
759755 if (AppDelegate.instance .serverVersion > 11 ) {
760756 action = @" Player.GoTo" ;
761757 params = @{@" to" : @" next" };
762- [self playbackAction : action params: params];
758+ [self playerAction : action params: params];
763759 }
764760 else {
765761 action = @" Player.GoNext" ;
766762 params = nil ;
767- [self playbackAction : action params: nil ];
763+ [self playerAction : action params: nil ];
768764 }
769765 break ;
770766
@@ -859,11 +855,11 @@ - (void)processButtonLongPress:(NSInteger)buttonTag {
859855 break ;
860856
861857 case TAG_BUTTON_SEEK_BACKWARD: // DECREASE PLAYBACK SPEED
862- [self playbackAction :@" Player.SetSpeed" params: @{@" speed" : @" decrement" }];
858+ [self playerAction :@" Player.SetSpeed" params: @{@" speed" : @" decrement" }];
863859 break ;
864860
865861 case TAG_BUTTON_SEEK_FORWARD: // INCREASE PLAYBACK SPEED
866- [self playbackAction :@" Player.SetSpeed" params: @{@" speed" : @" increment" }];
862+ [self playerAction :@" Player.SetSpeed" params: @{@" speed" : @" increment" }];
867863 break ;
868864
869865 case TAG_BUTTON_INFO: // CODEC INFO
0 commit comments