@@ -456,10 +456,6 @@ - (void)audioStreamActionSheet {
456456 }];
457457}
458458
459- - (void )playbackAction : (NSString *)action params : (NSDictionary *)parameters {
460- [self playerAction: action params: parameters];
461- }
462-
463459- (void )simpleAction : (NSString *)action params : (NSDictionary *)params xbmcHttp : (NSString *)command {
464460 [self simpleAction: action params: params completion: ^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *error) {
465461 // Backwards compatibility for Kodi "Eden" which supports xbmchttp but not JSON API for some commands
@@ -493,7 +489,7 @@ - (void)showActionAudiostreams:(NSArray*)sheetActions {
493489 if (![audiostreamsDictionary[@" audiostreams" ][i] isEqual: audiostreamsDictionary[@" currentaudiostream" ]]) {
494490 id audiostreamIndex = audiostreamsDictionary[@" audiostreams" ][i][@" index" ];
495491 if (audiostreamIndex) {
496- [self playbackAction :@" Player.SetAudioStream" params: @{@" stream" : audiostreamIndex}];
492+ [self playerAction :@" Player.SetAudioStream" params: @{@" stream" : audiostreamIndex}];
497493 [self showSubInfo: actiontitle color: SUCCESS_MESSAGE_COLOR];
498494 }
499495 }
@@ -523,7 +519,7 @@ - (void)showActionSubtitles:(NSArray*)sheetActions {
523519
524520 UIAlertAction *action_disable = [UIAlertAction actionWithTitle: LOCALIZED_STR (@" Disable subtitles" ) style: UIAlertActionStyleDestructive handler: ^(UIAlertAction *action) {
525521 [self showSubInfo: LOCALIZED_STR (@" Subtitles disabled" ) color: SUCCESS_MESSAGE_COLOR];
526- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" off" }];
522+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" off" }];
527523 }];
528524 if ([subsDictionary[@" subtitleenabled" ] boolValue ]) {
529525 [alertCtrl addAction: action_disable];
@@ -538,8 +534,8 @@ - (void)showActionSubtitles:(NSArray*)sheetActions {
538534 ![subsDictionary[@" subtitleenabled" ] boolValue ]) {
539535 id subsIndex = subsDictionary[@" subtitles" ][i][@" index" ];
540536 if (subsIndex) {
541- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : subsIndex}];
542- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" on" }];
537+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : subsIndex}];
538+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" on" }];
543539 [self showSubInfo: actiontitle color: SUCCESS_MESSAGE_COLOR];
544540 }
545541 }
@@ -705,62 +701,62 @@ - (void)processButtonPress:(NSInteger)buttonTag {
705701 case TAG_BUTTON_SEEK_BACKWARD:
706702 action = @" Player.Seek" ;
707703 params = [Utilities buildPlayerSeekStepParams: @" smallbackward" ];
708- [self playbackAction : action params: params];
704+ [self playerAction : action params: params];
709705 break ;
710706
711707 case TAG_BUTTON_SEEK_BACKWARD_BIG:
712708 action = @" Player.Seek" ;
713709 params = [Utilities buildPlayerSeekStepParams: @" bigbackward" ];
714- [self playbackAction : action params: params];
710+ [self playerAction : action params: params];
715711 break ;
716712
717713 case TAG_BUTTON_PLAY_PAUSE:
718714 action = @" Player.PlayPause" ;
719715 params = nil ;
720- [self playbackAction : action params: nil ];
716+ [self playerAction : action params: nil ];
721717 break ;
722718
723719 case TAG_BUTTON_SEEK_FORWARD:
724720 action = @" Player.Seek" ;
725721 params = [Utilities buildPlayerSeekStepParams: @" smallforward" ];
726- [self playbackAction : action params: params];
722+ [self playerAction : action params: params];
727723 break ;
728724
729725 case TAG_BUTTON_SEEK_FORWARD_BIG:
730726 action = @" Player.Seek" ;
731727 params = [Utilities buildPlayerSeekStepParams: @" bigforward" ];
732- [self playbackAction : action params: params];
728+ [self playerAction : action params: params];
733729 break ;
734730
735731 case TAG_BUTTON_PREVIOUS:
736732 if (AppDelegate.instance .serverVersion > 11 ) {
737733 action = @" Player.GoTo" ;
738734 params = @{@" to" : @" previous" };
739- [self playbackAction : action params: params];
735+ [self playerAction : action params: params];
740736 }
741737 else {
742738 action = @" Player.GoPrevious" ;
743739 params = nil ;
744- [self playbackAction : action params: nil ];
740+ [self playerAction : action params: nil ];
745741 }
746742 break ;
747743
748744 case TAG_BUTTON_STOP:
749745 action = @" Player.Stop" ;
750746 params = nil ;
751- [self playbackAction : action params: nil ];
747+ [self playerAction : action params: nil ];
752748 break ;
753749
754750 case TAG_BUTTON_NEXT:
755751 if (AppDelegate.instance .serverVersion > 11 ) {
756752 action = @" Player.GoTo" ;
757753 params = @{@" to" : @" next" };
758- [self playbackAction : action params: params];
754+ [self playerAction : action params: params];
759755 }
760756 else {
761757 action = @" Player.GoNext" ;
762758 params = nil ;
763- [self playbackAction : action params: nil ];
759+ [self playerAction : action params: nil ];
764760 }
765761 break ;
766762
@@ -855,11 +851,11 @@ - (void)processButtonLongPress:(NSInteger)buttonTag {
855851 break ;
856852
857853 case TAG_BUTTON_SEEK_BACKWARD: // DECREASE PLAYBACK SPEED
858- [self playbackAction :@" Player.SetSpeed" params: @{@" speed" : @" decrement" }];
854+ [self playerAction :@" Player.SetSpeed" params: @{@" speed" : @" decrement" }];
859855 break ;
860856
861857 case TAG_BUTTON_SEEK_FORWARD: // INCREASE PLAYBACK SPEED
862- [self playbackAction :@" Player.SetSpeed" params: @{@" speed" : @" increment" }];
858+ [self playerAction :@" Player.SetSpeed" params: @{@" speed" : @" increment" }];
863859 break ;
864860
865861 case TAG_BUTTON_INFO: // CODEC INFO
0 commit comments