nRF Connect SDK API 3.3.99
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
17typedef void (*bt_content_ctrl_media_play_pause_cb)(bool play);
18
28int bt_content_ctrl_media_discover(struct bt_conn *conn);
29
39int bt_content_ctrl_media_state_update(struct bt_conn *conn);
40
51int bt_content_ctrl_media_play(struct bt_conn *conn);
52
63int bt_content_ctrl_media_pause(struct bt_conn *conn);
64
75
82
91
92#endif /* _BT_CONTENT_CTRL_MEDIA_INTERNAL_H_ */
int bt_content_ctrl_media_play(struct bt_conn *conn)
Send a play command to the media player, depending on the current state.
int bt_content_ctrl_media_pause(struct bt_conn *conn)
Send a pause command to the media player, depending on the current state.
int bt_content_ctrl_media_client_init(void)
Initialize the Media Control Client.
int bt_content_ctrl_media_conn_disconnected(struct bt_conn *conn)
Reset the media control peer's discovered state.
int bt_content_ctrl_media_state_update(struct bt_conn *conn)
Get the current state of the media player.
void(* bt_content_ctrl_media_play_pause_cb)(bool play)
Callback for changing the stream state.
Definition bt_content_ctrl_media_internal.h:17
int bt_content_ctrl_media_discover(struct bt_conn *conn)
Discover Media Control Service and the included services.
int bt_content_ctrl_media_server_init(bt_content_ctrl_media_play_pause_cb play_pause_cb)
Initialize the Media Control Server.