mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Merge branch 'develop' of https://github.com/MediaBrowser/plugin.video.emby into develop
This commit is contained in:
commit
7e5de4d06e
2 changed files with 6 additions and 2 deletions
|
@ -108,7 +108,7 @@ class DownloadUtils(object):
|
||||||
"GoToSettings,PageDown,PreviousLetter,TakeScreenshot,"
|
"GoToSettings,PageDown,PreviousLetter,TakeScreenshot,"
|
||||||
"VolumeUp,VolumeDown,ToggleMute,SendString,DisplayMessage,"
|
"VolumeUp,VolumeDown,ToggleMute,SendString,DisplayMessage,"
|
||||||
"SetAudioStreamIndex,SetSubtitleStreamIndex,"
|
"SetAudioStreamIndex,SetSubtitleStreamIndex,"
|
||||||
|
"SetRepeatMode,"
|
||||||
"Mute,Unmute,SetVolume,"
|
"Mute,Unmute,SetVolume,"
|
||||||
"Play,Playstate,PlayNext"
|
"Play,Playstate,PlayNext"
|
||||||
)
|
)
|
||||||
|
|
|
@ -188,7 +188,7 @@ class WebSocketClient(threading.Thread):
|
||||||
arguments = data['Arguments']
|
arguments = data['Arguments']
|
||||||
|
|
||||||
if command in ('Mute', 'Unmute', 'SetVolume',
|
if command in ('Mute', 'Unmute', 'SetVolume',
|
||||||
'SetSubtitleStreamIndex', 'SetAudioStreamIndex'):
|
'SetSubtitleStreamIndex', 'SetAudioStreamIndex', 'SetRepeatMode'):
|
||||||
|
|
||||||
player = xbmc.Player()
|
player = xbmc.Player()
|
||||||
# These commands need to be reported back
|
# These commands need to be reported back
|
||||||
|
@ -206,6 +206,10 @@ class WebSocketClient(threading.Thread):
|
||||||
index = int(arguments['Index'])
|
index = int(arguments['Index'])
|
||||||
player.setAudioStream(index - 1)
|
player.setAudioStream(index - 1)
|
||||||
|
|
||||||
|
elif command == 'SetRepeatMode':
|
||||||
|
mode = arguments['RepeatMode']
|
||||||
|
xbmc.executebuiltin('xbmc.PlayerControl(%s)' % mode)
|
||||||
|
|
||||||
elif command == 'SetSubtitleStreamIndex':
|
elif command == 'SetSubtitleStreamIndex':
|
||||||
emby_index = int(arguments['Index'])
|
emby_index = int(arguments['Index'])
|
||||||
current_file = player.getPlayingFile()
|
current_file = player.getPlayingFile()
|
||||||
|
|
Loading…
Reference in a new issue