Lines Matching refs:local_player

60 	struct media_player  local_player;  member
93 return mprx.local_player.calls->get_player_name(); in media_proxy_sctrl_get_player_name()
99 return mprx.local_player.calls->get_icon_id(); in media_proxy_sctrl_get_icon_id()
105 return mprx.local_player.calls->get_icon_url(); in media_proxy_sctrl_get_icon_url()
110 return mprx.local_player.calls->get_track_title(); in media_proxy_sctrl_get_track_title()
115 return mprx.local_player.calls->get_track_duration(); in media_proxy_sctrl_get_track_duration()
120 return mprx.local_player.calls->get_track_position(); in media_proxy_sctrl_get_track_position()
125 mprx.local_player.calls->set_track_position(position); in media_proxy_sctrl_set_track_position()
130 return mprx.local_player.calls->get_playback_speed(); in media_proxy_sctrl_get_playback_speed()
135 mprx.local_player.calls->set_playback_speed(speed); in media_proxy_sctrl_set_playback_speed()
140 return mprx.local_player.calls->get_seeking_speed(); in media_proxy_sctrl_get_seeking_speed()
146 return mprx.local_player.calls->get_track_segments_id(); in media_proxy_sctrl_get_track_segments_id()
151 return mprx.local_player.calls->get_current_track_id(); in media_proxy_sctrl_get_current_track_id()
156 mprx.local_player.calls->set_current_track_id(id); in media_proxy_sctrl_set_current_track_id()
161 return mprx.local_player.calls->get_next_track_id(); in media_proxy_sctrl_get_next_track_id()
166 mprx.local_player.calls->set_next_track_id(id); in media_proxy_sctrl_set_next_track_id()
171 return mprx.local_player.calls->get_parent_group_id(); in media_proxy_sctrl_get_parent_group_id()
176 return mprx.local_player.calls->get_current_group_id(); in media_proxy_sctrl_get_current_group_id()
181 mprx.local_player.calls->set_current_group_id(id); in media_proxy_sctrl_set_current_group_id()
187 return mprx.local_player.calls->get_playing_order(); in media_proxy_sctrl_get_playing_order()
192 mprx.local_player.calls->set_playing_order(order); in media_proxy_sctrl_set_playing_order()
197 return mprx.local_player.calls->get_playing_orders_supported(); in media_proxy_sctrl_get_playing_orders_supported()
202 return mprx.local_player.calls->get_media_state(); in media_proxy_sctrl_get_media_state()
207 mprx.local_player.calls->send_command(cmd); in media_proxy_sctrl_send_command()
212 return mprx.local_player.calls->get_commands_supported(); in media_proxy_sctrl_get_commands_supported()
218 mprx.local_player.calls->send_search(search); in media_proxy_sctrl_send_search()
223 return mprx.local_player.calls->get_search_results_id(); in media_proxy_sctrl_get_search_results_id()
230 return mprx.local_player.calls->get_content_ctrl_id(); in media_proxy_sctrl_get_content_ctrl_id()
671 if (mprx.local_player.registered) { in media_proxy_ctrl_register()
673 mprx.ctrlr.cbs->local_player_instance(&mprx.local_player, 0); in media_proxy_ctrl_register()
803 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_player_name()
805 if (mprx.local_player.calls->get_player_name) { in media_proxy_ctrl_get_player_name()
807 const char *name = mprx.local_player.calls->get_player_name(); in media_proxy_ctrl_get_player_name()
809 mprx.ctrlr.cbs->player_name_recv(&mprx.local_player, 0, name); in media_proxy_ctrl_get_player_name()
840 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_icon_id()
841 if (mprx.local_player.calls->get_icon_id) { in media_proxy_ctrl_get_icon_id()
843 const uint64_t id = mprx.local_player.calls->get_icon_id(); in media_proxy_ctrl_get_icon_id()
845 mprx.ctrlr.cbs->icon_id_recv(&mprx.local_player, 0, id); in media_proxy_ctrl_get_icon_id()
875 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_icon_url()
876 if (mprx.local_player.calls->get_icon_url) { in media_proxy_ctrl_get_icon_url()
878 const char *url = mprx.local_player.calls->get_icon_url(); in media_proxy_ctrl_get_icon_url()
910 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_track_title()
911 if (mprx.local_player.calls->get_track_title) { in media_proxy_ctrl_get_track_title()
914 const char *title = mprx.local_player.calls->get_track_title(); in media_proxy_ctrl_get_track_title()
945 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_track_duration()
946 if (mprx.local_player.calls->get_track_duration) { in media_proxy_ctrl_get_track_duration()
949 mprx.local_player.calls->get_track_duration(); in media_proxy_ctrl_get_track_duration()
981 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_track_position()
982 if (mprx.local_player.calls->get_track_position) { in media_proxy_ctrl_get_track_position()
985 mprx.local_player.calls->get_track_position(); in media_proxy_ctrl_get_track_position()
1017 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_set_track_position()
1018 if (mprx.local_player.calls->set_track_position) { in media_proxy_ctrl_set_track_position()
1019 mprx.local_player.calls->set_track_position(position); in media_proxy_ctrl_set_track_position()
1052 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_playback_speed()
1053 if (mprx.local_player.calls->get_playback_speed) { in media_proxy_ctrl_get_playback_speed()
1055 const int8_t speed = mprx.local_player.calls->get_playback_speed(); in media_proxy_ctrl_get_playback_speed()
1087 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_set_playback_speed()
1088 if (mprx.local_player.calls->set_playback_speed) { in media_proxy_ctrl_set_playback_speed()
1089 mprx.local_player.calls->set_playback_speed(speed); in media_proxy_ctrl_set_playback_speed()
1122 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_seeking_speed()
1123 if (mprx.local_player.calls->get_seeking_speed) { in media_proxy_ctrl_get_seeking_speed()
1125 const int8_t speed = mprx.local_player.calls->get_seeking_speed(); in media_proxy_ctrl_get_seeking_speed()
1157 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_track_segments_id()
1158 if (mprx.local_player.calls->get_track_segments_id) { in media_proxy_ctrl_get_track_segments_id()
1161 mprx.local_player.calls->get_track_segments_id(); in media_proxy_ctrl_get_track_segments_id()
1193 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_current_track_id()
1194 if (mprx.local_player.calls->get_current_track_id) { in media_proxy_ctrl_get_current_track_id()
1196 const uint64_t id = mprx.local_player.calls->get_current_track_id(); in media_proxy_ctrl_get_current_track_id()
1234 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_set_current_track_id()
1235 if (mprx.local_player.calls->set_current_track_id) { in media_proxy_ctrl_set_current_track_id()
1236 mprx.local_player.calls->set_current_track_id(id); in media_proxy_ctrl_set_current_track_id()
1270 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_next_track_id()
1271 if (mprx.local_player.calls->get_next_track_id) { in media_proxy_ctrl_get_next_track_id()
1273 const uint64_t id = mprx.local_player.calls->get_next_track_id(); in media_proxy_ctrl_get_next_track_id()
1311 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_set_next_track_id()
1312 if (mprx.local_player.calls->set_next_track_id) { in media_proxy_ctrl_set_next_track_id()
1313 mprx.local_player.calls->set_next_track_id(id); in media_proxy_ctrl_set_next_track_id()
1347 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_parent_group_id()
1348 if (mprx.local_player.calls->get_parent_group_id) { in media_proxy_ctrl_get_parent_group_id()
1350 const uint64_t id = mprx.local_player.calls->get_parent_group_id(); in media_proxy_ctrl_get_parent_group_id()
1382 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_current_group_id()
1383 if (mprx.local_player.calls->get_current_group_id) { in media_proxy_ctrl_get_current_group_id()
1385 const uint64_t id = mprx.local_player.calls->get_current_group_id(); in media_proxy_ctrl_get_current_group_id()
1423 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_set_current_group_id()
1424 if (mprx.local_player.calls->set_current_group_id) { in media_proxy_ctrl_set_current_group_id()
1425 mprx.local_player.calls->set_current_group_id(id); in media_proxy_ctrl_set_current_group_id()
1459 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_playing_order()
1460 if (mprx.local_player.calls->get_playing_order) { in media_proxy_ctrl_get_playing_order()
1462 const uint8_t order = mprx.local_player.calls->get_playing_order(); in media_proxy_ctrl_get_playing_order()
1495 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_set_playing_order()
1496 if (mprx.local_player.calls->set_playing_order) { in media_proxy_ctrl_set_playing_order()
1497 mprx.local_player.calls->set_playing_order(order); in media_proxy_ctrl_set_playing_order()
1530 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_playing_orders_supported()
1531 if (mprx.local_player.calls->get_playing_orders_supported) { in media_proxy_ctrl_get_playing_orders_supported()
1534 mprx.local_player.calls->get_playing_orders_supported(); in media_proxy_ctrl_get_playing_orders_supported()
1567 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_media_state()
1568 if (mprx.local_player.calls->get_media_state) { in media_proxy_ctrl_get_media_state()
1570 const uint8_t state = mprx.local_player.calls->get_media_state(); in media_proxy_ctrl_get_media_state()
1602 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_send_command()
1603 if (mprx.local_player.calls->send_command) { in media_proxy_ctrl_send_command()
1604 mprx.local_player.calls->send_command(cmd); in media_proxy_ctrl_send_command()
1637 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_commands_supported()
1638 if (mprx.local_player.calls->get_commands_supported) { in media_proxy_ctrl_get_commands_supported()
1641 mprx.local_player.calls->get_commands_supported(); in media_proxy_ctrl_get_commands_supported()
1676 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_send_search()
1677 if (mprx.local_player.calls->send_search) { in media_proxy_ctrl_send_search()
1678 mprx.local_player.calls->send_search(search); in media_proxy_ctrl_send_search()
1711 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_search_results_id()
1712 if (mprx.local_player.calls->get_search_results_id) { in media_proxy_ctrl_get_search_results_id()
1715 mprx.local_player.calls->get_search_results_id(); in media_proxy_ctrl_get_search_results_id()
1747 if (mprx.local_player.registered && player == &mprx.local_player) { in media_proxy_ctrl_get_content_ctrl_id()
1748 if (mprx.local_player.calls->get_content_ctrl_id) { in media_proxy_ctrl_get_content_ctrl_id()
1750 const uint8_t ccid = mprx.local_player.calls->get_content_ctrl_id(); in media_proxy_ctrl_get_content_ctrl_id()
1937 if (mprx.local_player.registered) { in media_proxy_pl_register()
1942 mprx.local_player.calls = pl_calls; in media_proxy_pl_register()
1943 mprx.local_player.registered = true; in media_proxy_pl_register()
1946 mprx.ctrlr.cbs->local_player_instance(&mprx.local_player, 0); in media_proxy_pl_register()
1961 mprx.ctrlr.cbs->player_name_recv(&mprx.local_player, 0, name); in media_proxy_pl_name_cb()
1972 mprx.ctrlr.cbs->icon_url_recv(&mprx.local_player, 0, url); in media_proxy_pl_icon_url_cb()
1983 mprx.ctrlr.cbs->track_changed_recv(&mprx.local_player, 0); in media_proxy_pl_track_changed_cb()
1994 mprx.ctrlr.cbs->track_title_recv(&mprx.local_player, 0, title); in media_proxy_pl_track_title_cb()
2005 mprx.ctrlr.cbs->track_duration_recv(&mprx.local_player, 0, duration); in media_proxy_pl_track_duration_cb()
2016 mprx.ctrlr.cbs->track_position_recv(&mprx.local_player, 0, position); in media_proxy_pl_track_position_cb()
2027 mprx.ctrlr.cbs->playback_speed_recv(&mprx.local_player, 0, speed); in media_proxy_pl_playback_speed_cb()
2038 mprx.ctrlr.cbs->seeking_speed_recv(&mprx.local_player, 0, speed); in media_proxy_pl_seeking_speed_cb()
2050 mprx.ctrlr.cbs->current_track_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_current_track_id_cb()
2061 mprx.ctrlr.cbs->next_track_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_next_track_id_cb()
2072 mprx.ctrlr.cbs->parent_group_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_parent_group_id_cb()
2083 mprx.ctrlr.cbs->current_group_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_current_group_id_cb()
2095 mprx.ctrlr.cbs->playing_order_recv(&mprx.local_player, 0, order); in media_proxy_pl_playing_order_cb()
2106 mprx.ctrlr.cbs->media_state_recv(&mprx.local_player, 0, state); in media_proxy_pl_media_state_cb()
2122 mprx.ctrlr.cbs->command_recv(&mprx.local_player, 0, cmd_ntf); in media_proxy_pl_command_cb()
2133 mprx.ctrlr.cbs->commands_supported_recv(&mprx.local_player, 0, opcodes); in media_proxy_pl_commands_supported_cb()
2145 mprx.ctrlr.cbs->search_recv(&mprx.local_player, 0, result_code); in media_proxy_pl_search_cb()
2156 mprx.ctrlr.cbs->search_results_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_search_results_id_cb()