Lines Matching +full:read +full:- +full:cmd

9  * SPDX-License-Identifier: Apache-2.0
29 #include "../media_proxy_internal.h" /* For MPL_NO_TRACK_ID - TODO: Fix */
37 /* Media player instances - the local player, the remote player and
304 static void command_send_cb(struct media_player *plr, int err, const struct mpl_cmd *cmd) in command_send_cb() argument
311 shell_print(ctx_shell, "Player: %p, Command opcode sent: %u", plr, cmd->opcode); in command_send_cb()
322 plr, cmd_ntf->requested_opcode, cmd_ntf->result_code); in command_recv_cb()
344 shell_print(ctx_shell, "Player: %p, Search sent with len %u", plr, search->len); in search_send_cb()
454 return -EOPNOTSUPP; in cmd_media_set_player()
465 return -EOPNOTSUPP; in cmd_media_set_player()
469 return -EINVAL; in cmd_media_set_player()
584 return -ENOEXEC; in cmd_media_set_track_position()
590 return -ENOEXEC; in cmd_media_set_track_position()
622 return -ENOEXEC; in cmd_media_set_playback_speed()
628 return -ENOEXEC; in cmd_media_set_playback_speed()
730 return -ENOEXEC; in cmd_media_set_playing_order()
736 return -ENOEXEC; in cmd_media_set_playing_order()
772 const struct mpl_cmd cmd = { in cmd_media_play() local
779 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_play()
789 const struct mpl_cmd cmd = { in cmd_media_pause() local
796 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_pause()
807 const struct mpl_cmd cmd = { in cmd_media_fast_rewind() local
814 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_fast_rewind()
825 const struct mpl_cmd cmd = { in cmd_media_fast_forward() local
832 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_fast_forward()
843 const struct mpl_cmd cmd = { in cmd_media_stop() local
850 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_stop()
861 struct mpl_cmd cmd = { in cmd_media_move_relative() local
879 return -ENOEXEC; in cmd_media_move_relative()
882 cmd.param = (int32_t)offset; in cmd_media_move_relative()
884 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_move_relative()
896 const struct mpl_cmd cmd = { in cmd_media_prev_segment() local
903 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_prev_segment()
915 const struct mpl_cmd cmd = { in cmd_media_next_segment() local
922 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_next_segment()
934 const struct mpl_cmd cmd = { in cmd_media_first_segment() local
941 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_first_segment()
953 const struct mpl_cmd cmd = { in cmd_media_last_segment() local
960 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_last_segment()
972 struct mpl_cmd cmd = { in cmd_media_goto_segment() local
990 return -ENOEXEC; in cmd_media_goto_segment()
993 cmd.param = (int32_t)segment; in cmd_media_goto_segment()
995 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_goto_segment()
1007 const struct mpl_cmd cmd = { in cmd_media_prev_track() local
1014 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_prev_track()
1026 const struct mpl_cmd cmd = { in cmd_media_next_track() local
1033 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_next_track()
1045 const struct mpl_cmd cmd = { in cmd_media_first_track() local
1052 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_first_track()
1064 const struct mpl_cmd cmd = { in cmd_media_last_track() local
1071 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_last_track()
1082 struct mpl_cmd cmd = { in cmd_media_goto_track() local
1100 return -ENOEXEC; in cmd_media_goto_track()
1103 cmd.param = (int32_t)track; in cmd_media_goto_track()
1105 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_goto_track()
1117 const struct mpl_cmd cmd = { in cmd_media_prev_group() local
1124 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_prev_group()
1136 const struct mpl_cmd cmd = { in cmd_media_next_group() local
1143 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_next_group()
1154 const struct mpl_cmd cmd = { in cmd_media_first_group() local
1161 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_first_group()
1172 const struct mpl_cmd cmd = { in cmd_media_last_group() local
1179 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_last_group()
1190 struct mpl_cmd cmd = { in cmd_media_goto_group() local
1208 return -ENOEXEC; in cmd_media_goto_group()
1211 cmd.param = (int32_t)group; in cmd_media_goto_group()
1213 err = media_proxy_ctrl_send_command(current_player, &cmd); in cmd_media_goto_group()
1227 shell_error(ctx_shell, "Commands supported read failed (%d)", err); in cmd_media_read_commands_supported()
1236 /* TODO: Currently takes the raw search as input - add parameters in cmd_media_set_search()
1247 return -EINVAL; in cmd_media_set_search()
1291 return -ENOEXEC; in cmd_media()
1306 SHELL_CMD_ARG(read_player_name, NULL, "Read Media Player Name",
1309 SHELL_CMD_ARG(read_icon_obj_id, NULL, "Read Icon Object ID",
1312 SHELL_CMD_ARG(read_icon_url, NULL, "Read Icon URL",
1314 SHELL_CMD_ARG(read_track_title, NULL, "Read Track Title",
1316 SHELL_CMD_ARG(read_track_duration, NULL, "Read Track Duration",
1318 SHELL_CMD_ARG(read_track_position, NULL, "Read Track Position",
1322 SHELL_CMD_ARG(read_playback_speed, NULL, "Read Playback Speed",
1326 SHELL_CMD_ARG(read_seeking_speed, NULL, "Read Seeking Speed",
1330 "Read Track Segments Object ID",
1333 "Read Current Track Object ID",
1336 "Read Next Track Object ID",
1339 "Read Current Group Object ID",
1342 "Read Parent Group Object ID",
1345 SHELL_CMD_ARG(read_playing_order, NULL, "Read Playing Order",
1350 "Read Playing Orders Supported",
1352 SHELL_CMD_ARG(read_media_state, NULL, "Read Media State",
1400 SHELL_CMD_ARG(read_commands_supported, NULL, "Read Commands Supported",
1406 "Read Search Results Object ID",
1409 SHELL_CMD_ARG(read_content_control_id, NULL, "Read Content Control ID",