diff --git a/CHANGELOG.md b/CHANGELOG.md index d788910..4004bb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 _Changes in the next release_ +### Added +- Media-player RepeatMode enum and new features: context_menu, settings + --- ## v0.1.5 - 2024-02-28 diff --git a/ucapi/media_player.py b/ucapi/media_player.py index fa1928f..98c5588 100644 --- a/ucapi/media_player.py +++ b/ucapi/media_player.py @@ -55,6 +55,7 @@ class Features(str, Enum): NUMPAD = "numpad" HOME = "home" MENU = "menu" + CONTEXT_MENU = "context_menu" GUIDE = "guide" INFO = "info" COLOR_BUTTONS = "color_buttons" @@ -66,6 +67,7 @@ class Features(str, Enum): AUDIO_TRACK = "audio_track" SUBTITLE = "subtitle" RECORD = "record" + SETTINGS = "settings" class Attributes(str, Enum): @@ -133,6 +135,7 @@ class Commands(str, Enum): FUNCTION_BLUE = "function_blue" HOME = "home" MENU = "menu" + CONTEXT_MENU = "context_menu" GUIDE = "guide" INFO = "info" BACK = "back" @@ -145,6 +148,7 @@ class Commands(str, Enum): OPEN_CLOSE = "open_close" AUDIO_TRACK = "audio_track" SUBTITLE = "subtitle" + SETTINGS = "settings" SEARCH = "search" @@ -175,6 +179,14 @@ class MediaType(str, Enum): VIDEO = "VIDEO" +class RepeatMode(str, Enum): + """Repeat modes.""" + + OFF = "OFF" + ALL = "ALL" + ONE = "ONE" + + class MediaPlayer(Entity): """ Media-player entity class.