nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
bt_content_ctrl_media_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef _BT_CONTENT_CTRL_MEDIA_INTERNAL_H_
8
#define _BT_CONTENT_CTRL_MEDIA_INTERNAL_H_
9
10
#include <zephyr/bluetooth/conn.h>
11
17
typedef
void (*
bt_content_ctrl_media_play_pause_cb
)(
bool
play);
18
28
void
bt_content_ctrl_media_state_override
(
bool
playing);
29
39
int
bt_content_ctrl_media_discover
(
struct
bt_conn *conn);
40
50
int
bt_content_ctrl_media_state_update
(
struct
bt_conn *conn);
51
62
int
bt_content_ctrl_media_play
(
struct
bt_conn *conn);
63
74
int
bt_content_ctrl_media_pause
(
struct
bt_conn *conn);
75
85
int
bt_content_ctrl_media_conn_disconnected
(
struct
bt_conn *conn);
86
92
int
bt_content_ctrl_media_client_init
(
void
);
93
101
int
bt_content_ctrl_media_server_init
(
bt_content_ctrl_media_play_pause_cb
play_pause_cb);
102
103
#endif
/* _BT_CONTENT_CTRL_MEDIA_INTERNAL_H_ */
bt_content_ctrl_media_play
int bt_content_ctrl_media_play(struct bt_conn *conn)
Send a play command to the media player, depending on the current state.
bt_content_ctrl_media_pause
int bt_content_ctrl_media_pause(struct bt_conn *conn)
Send a pause command to the media player, depending on the current state.
bt_content_ctrl_media_client_init
int bt_content_ctrl_media_client_init(void)
Initialize the Media Control Client.
bt_content_ctrl_media_conn_disconnected
int bt_content_ctrl_media_conn_disconnected(struct bt_conn *conn)
Reset the media control peer's discovered state.
bt_content_ctrl_media_state_override
void bt_content_ctrl_media_state_override(bool playing)
Override the current state of the media player.
bt_content_ctrl_media_state_update
int bt_content_ctrl_media_state_update(struct bt_conn *conn)
Get the current state of the media player.
bt_content_ctrl_media_play_pause_cb
void(* bt_content_ctrl_media_play_pause_cb)(bool play)
Callback for changing the stream state.
Definition
bt_content_ctrl_media_internal.h:17
bt_content_ctrl_media_discover
int bt_content_ctrl_media_discover(struct bt_conn *conn)
Discover Media Control Service and the included services.
bt_content_ctrl_media_server_init
int bt_content_ctrl_media_server_init(bt_content_ctrl_media_play_pause_cb play_pause_cb)
Initialize the Media Control Server.
applications
nrf_audio
src
bluetooth
bt_content_control
media
bt_content_ctrl_media_internal.h
Generated on
for nRF Connect SDK API by
1.17.0