@@ -474,10 +474,6 @@ - (void)audioStreamActionSheet {
474474 }];
475475}
476476
477- - (void )playbackAction : (NSString *)action params : (NSDictionary *)parameters {
478- [self playerAction: action params: parameters];
479- }
480-
481477- (void )simpleAction : (NSString *)action params : (NSDictionary *)params xbmcHttp : (NSString *)command {
482478 [self simpleAction: action params: params completion: ^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *error) {
483479 // Backwards compatibility for Kodi "Eden" which supports xbmchttp but not JSON API for some commands
@@ -511,7 +507,7 @@ - (void)showActionAudiostreams:(NSArray*)sheetActions {
511507 if (![audiostreamsDictionary[@" audiostreams" ][i] isEqual: audiostreamsDictionary[@" currentaudiostream" ]]) {
512508 id audiostreamIndex = audiostreamsDictionary[@" audiostreams" ][i][@" index" ];
513509 if (audiostreamIndex) {
514- [self playbackAction :@" Player.SetAudioStream" params: @{@" stream" : audiostreamIndex}];
510+ [self playerAction :@" Player.SetAudioStream" params: @{@" stream" : audiostreamIndex}];
515511 [self showSubInfo: actiontitle color: SUCCESS_MESSAGE_COLOR];
516512 }
517513 }
@@ -541,7 +537,7 @@ - (void)showActionSubtitles:(NSArray*)sheetActions {
541537
542538 UIAlertAction *action_disable = [UIAlertAction actionWithTitle: LOCALIZED_STR (@" Disable subtitles" ) style: UIAlertActionStyleDestructive handler: ^(UIAlertAction *action) {
543539 [self showSubInfo: LOCALIZED_STR (@" Subtitles disabled" ) color: SUCCESS_MESSAGE_COLOR];
544- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" off" }];
540+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" off" }];
545541 }];
546542 if ([subsDictionary[@" subtitleenabled" ] boolValue ]) {
547543 [alertCtrl addAction: action_disable];
@@ -556,8 +552,8 @@ - (void)showActionSubtitles:(NSArray*)sheetActions {
556552 ![subsDictionary[@" subtitleenabled" ] boolValue ]) {
557553 id subsIndex = subsDictionary[@" subtitles" ][i][@" index" ];
558554 if (subsIndex) {
559- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : subsIndex}];
560- [self playbackAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" on" }];
555+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : subsIndex}];
556+ [self playerAction :@" Player.SetSubtitle" params: @{@" subtitle" : @" on" }];
561557 [self showSubInfo: actiontitle color: SUCCESS_MESSAGE_COLOR];
562558 }
563559 }
@@ -723,62 +719,62 @@ - (void)processButtonPress:(NSInteger)buttonTag {
723719 case TAG_BUTTON_SEEK_BACKWARD:
724720 action = @" Player.Seek" ;
725721 params = [Utilities buildPlayerSeekStepParams: @" smallbackward" ];
726- [self playbackAction : action params: params];
722+ [self playerAction : action params: params];
727723 break ;
728724
729725 case TAG_BUTTON_SEEK_BACKWARD_BIG:
730726 action = @" Player.Seek" ;
731727 params = [Utilities buildPlayerSeekStepParams: @" bigbackward" ];
732- [self playbackAction : action params: params];
728+ [self playerAction : action params: params];
733729 break ;
734730
735731 case TAG_BUTTON_PLAY_PAUSE:
736732 action = @" Player.PlayPause" ;
737733 params = nil ;
738- [self playbackAction : action params: nil ];
734+ [self playerAction : action params: nil ];
739735 break ;
740736
741737 case TAG_BUTTON_SEEK_FORWARD:
742738 action = @" Player.Seek" ;
743739 params = [Utilities buildPlayerSeekStepParams: @" smallforward" ];
744- [self playbackAction : action params: params];
740+ [self playerAction : action params: params];
745741 break ;
746742
747743 case TAG_BUTTON_SEEK_FORWARD_BIG:
748744 action = @" Player.Seek" ;
749745 params = [Utilities buildPlayerSeekStepParams: @" bigforward" ];
750- [self playbackAction : action params: params];
746+ [self playerAction : action params: params];
751747 break ;
752748
753749 case TAG_BUTTON_PREVIOUS:
754750 if (AppDelegate.instance .serverVersion > 11 ) {
755751 action = @" Player.GoTo" ;
756752 params = @{@" to" : @" previous" };
757- [self playbackAction : action params: params];
753+ [self playerAction : action params: params];
758754 }
759755 else {
760756 action = @" Player.GoPrevious" ;
761757 params = nil ;
762- [self playbackAction : action params: nil ];
758+ [self playerAction : action params: nil ];
763759 }
764760 break ;
765761
766762 case TAG_BUTTON_STOP:
767763 action = @" Player.Stop" ;
768764 params = nil ;
769- [self playbackAction : action params: nil ];
765+ [self playerAction : action params: nil ];
770766 break ;
771767
772768 case TAG_BUTTON_NEXT:
773769 if (AppDelegate.instance .serverVersion > 11 ) {
774770 action = @" Player.GoTo" ;
775771 params = @{@" to" : @" next" };
776- [self playbackAction : action params: params];
772+ [self playerAction : action params: params];
777773 }
778774 else {
779775 action = @" Player.GoNext" ;
780776 params = nil ;
781- [self playbackAction : action params: nil ];
777+ [self playerAction : action params: nil ];
782778 }
783779 break ;
784780
@@ -873,11 +869,11 @@ - (void)processButtonLongPress:(NSInteger)buttonTag {
873869 break ;
874870
875871 case TAG_BUTTON_SEEK_BACKWARD: // DECREASE PLAYBACK SPEED
876- [self playbackAction :@" Player.SetSpeed" params: @{@" speed" : @" decrement" }];
872+ [self playerAction :@" Player.SetSpeed" params: @{@" speed" : @" decrement" }];
877873 break ;
878874
879875 case TAG_BUTTON_SEEK_FORWARD: // INCREASE PLAYBACK SPEED
880- [self playbackAction :@" Player.SetSpeed" params: @{@" speed" : @" increment" }];
876+ [self playerAction :@" Player.SetSpeed" params: @{@" speed" : @" increment" }];
881877 break ;
882878
883879 case TAG_BUTTON_INFO: // CODEC INFO
0 commit comments