Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: Amarok(minirok) next track  (Прочитано 1385 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн DedMorozzz

  • Автор темы
  • Активист
  • *
  • Сообщений: 299
  • Эникейщик
    • Просмотр профиля
Amarok(minirok) next track
« : 12 Декабря 2012, 15:25:21 »
Как выглядит команда для переключения следующего трека в амароке?
Именно через консоль интересует.

Так же, стоп/пауза, трек назад.

ЗЫ: пример из Баньши: "banshee --next"

Оффлайн VitalD

  • Активист
  • *
  • Сообщений: 509
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #1 : 12 Декабря 2012, 21:25:09 »
DedMorozzz,
а что man amarok говорит на этот счет?

Оффлайн Ancle

  • Почётный модератор
  • Старожил
  • *
  • Сообщений: 1505
  • Valar morghulis
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #2 : 12 Декабря 2012, 22:11:45 »
Вот просто попробовать ввести в консоль
amarok --nextавтору лень, а создать новую тему и ждать ответа - норм.
Странно это как то.

Оффлайн DedMorozzz

  • Автор темы
  • Активист
  • *
  • Сообщений: 299
  • Эникейщик
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #3 : 13 Декабря 2012, 11:43:17 »
minirok --next не работает(юзаю именно минирок) Первое что испробовал

Цитировать
minirok --next
minirok: Unknown option 'next'.
minirok: Use --help to get a list of available command line options

Цитировать
man amarok
Цитировать
вывод на команду "man minirok"
Цитировать
DBUS INTERFACE
       Minirok offers a DBus interface to control the player and various other bits. At the moment a single object /Player is provided, under the org.kde.minirok service.  To  invoke  a  DBus  method,  run  from  a  terminal  qdbus
       org.kde.minirok /Player methodName.  dbus-send(1) should also work, but then you'll need to fully qualify the method name.

       Here's a list of available methods:

           Play
           Pause
           PlayPause
           Stop
           Next
           Previous
           NowPlaying
           AppendToPlaylist
           StopAfterCurrent

       See the README.Usage file for details. Note that this interface will only be available if the required dependencies are installed. See the README file a list of these.

LAST.FM
       Minirok  can  submit  played tracks to Last.fm, or any other Last.fm-compatible service (such as Libre.fm). You will just need to configure your username and password in the preferences dialog.  Starting with Minirok 2.1, no
       external software is needed any more.
 Manual page minirok(1) line 20 (press h for help or q to quit)

Но не работает, вот не с некстом:
Цитировать
minirok --PlayPause
minirok: Unknown option 'PlayPause'.
minirok: Use --help to get a list of available command line options.

Цитировать
автору лень, а создать новую тему и ждать ответа - норм.
Вероятно автор сперва гуглил и пробовал разные варианты? И привёл примеры как это делается в другом плеере, для простоты нахождения ответа

Оффлайн Ancle

  • Почётный модератор
  • Старожил
  • *
  • Сообщений: 1505
  • Valar morghulis
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #4 : 13 Декабря 2012, 11:46:49 »
Цитировать
Как выглядит команда для переключения следующего трека в амароке?
amarok --nextВы уж определились бы с тем, какой плеер вам нужен

Оффлайн DedMorozzz

  • Автор темы
  • Активист
  • *
  • Сообщений: 299
  • Эникейщик
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #5 : 13 Декабря 2012, 12:26:08 »
minirok это облегчёная версия амарока. По этому в теме и указал в скобках его.
Юзаю именно минирок

Оффлайн VitalD

  • Активист
  • *
  • Сообщений: 509
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #6 : 13 Декабря 2012, 13:06:06 »
       See the README.Usage file for details. Note that this interface will only be available if the required dependencies are installed. See the README file a list of these.
а еще гляньте:
man dbus-sendибо
DBUS INTERFACE
       Minirok offers a DBus interface to control the player and various other bits. At the moment a single object /Player is provided, under the org.kde.minirok service.  To  invoke  a  DBus  method,  run  from  a  terminal  qdbus
       org.kde.minirok /Player methodName.  dbus-send(1) should also work, but then you'll need to fully qualify the method name.

       Here's a list of available methods:

           Play
           Pause
           PlayPause
           Stop
           Next
           Previous
           NowPlaying
           AppendToPlaylist
           StopAfterCurrent

Оффлайн DedMorozzz

  • Автор темы
  • Активист
  • *
  • Сообщений: 299
  • Эникейщик
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #7 : 13 Декабря 2012, 14:06:47 »
Цитировать
man dbus-send
Цитировать
NAME
       dbus-send - Send a message to a message bus

SYNOPSIS
       dbus-send [--system | --session] [--dest=NAME] [--print-reply[=literal]] [--reply-timeout=MSEC] [--type=TYPE] OBJECT_PATH INTERFACE.MEMBER [CONTENTS ...]

DESCRIPTION
       The dbus-send command is used to send a message to a D-Bus message bus. See http://www.freedesktop.org/software/dbus/ for more information about the big picture.

       There  are  two  well-known  message  buses: the systemwide message bus (installed on many systems as the "messagebus" service) and the per-user-login-session message bus (started each time a user logs in).  The --system and
       --session options direct dbus-send to send messages to the system or session buses respectively.  If neither is specified, dbus-send sends to the session bus.

       Nearly all uses of dbus-send must provide the --dest argument which is the name of a connection on the bus to send the message to. If --dest is omitted, no destination is set.

       The object path and the name of the message to send must always be specified. Following arguments, if any, are the message contents (message arguments).  These are given as type-specified values and  may  include  containers
       (arrays, dicts, and variants) as described below.

       <contents>   ::= <item> | <container> [ <item> | <container>...]
       <item>       ::= <type>:<value>
       <container>  ::= <array> | <dict> | <variant>
       <array>      ::= array:<type>:<value>[,<value>...]
       <dict>       ::= dict:<type>:<type>:<key>,<value>[,<key>,<value>...]
       <variant>    ::= variant:<type>:<value>
       <type>       ::= string | int16 | uint 16 | int32 | uint32 | int64 | uint64 | double | byte | boolean | objpath

       D-Bus supports more types than these, but dbus-send currently does not.  Also, dbus-send does not permit empty containers or nested containers (e.g. arrays of variants).

Попробовал:
minirok::next
minirok:next
minirok::=next

Всё по прежднему
Как это использовать?


Пользователь решил продолжить мысль 13 Декабря 2012, 14:30:05:
Цитировать
README.Usage
(Нажмите, чтобы показать/скрыть)
« Последнее редактирование: 13 Декабря 2012, 14:30:05 от DedMorozzz »

Оффлайн VitalD

  • Активист
  • *
  • Сообщений: 509
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #8 : 13 Декабря 2012, 22:14:21 »
DedMorozzz,
1.Попробуйте так:
qdbus org.kde.minirok \ /Player PlayPause2.Экспериментируйте

Оффлайн DedMorozzz

  • Автор темы
  • Активист
  • *
  • Сообщений: 299
  • Эникейщик
    • Просмотр профиля
Re: Amarok(minirok) next track
« Ответ #9 : 14 Декабря 2012, 11:23:08 »
VitalD, спасибо, но не вышло. Лано, чёрт с ним, поставлю другой плеер. Спасибо за ответы

 

Страница сгенерирована за 0.03 секунд. Запросов: 22.