summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h')
-rw-r--r--xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h b/xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h
new file mode 100644
index 0000000..ff4dbea
--- /dev/null
+++ b/xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h
@@ -0,0 +1,50 @@
1/*
2 * Copyright (C) 2017-2019 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#pragma once
10
11/*!
12 * @brief the name of the inputstream add-on that should be used by Kodi to
13 * play the stream denoted by STREAM_PROPERTY_STREAMURL. Leave blank to use
14 * Kodi's built-in playing capabilities or to allow ffmpeg to handle directly
15 * set to STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG.
16 */
17#define STREAM_PROPERTY_INPUTSTREAM "inputstream"
18
19/*!
20 * @brief Identification string for an input stream.
21 *
22 * This value can be used in addition to @ref STREAM_PROPERTY_INPUTSTREAM. It is
23 * used to provide the respective inpustream addon with additional
24 * identification.
25 *
26 * The difference between this and other stream properties is that it is also
27 * passed in the associated @ref kodi::addon::CAddonBase::CreateInstance call.
28 *
29 * This makes it possible to select different processing classes within the
30 * associated add-on.
31 */
32#define STREAM_PROPERTY_INPUTSTREAM_INSTANCE_ID "inputstream-instance-id"
33
34/*!
35 * @brief "true" to denote that the stream that should be played is a
36 * realtime stream. Any other value indicates that this is not a realtime
37 * stream.
38 */
39#define STREAM_PROPERTY_ISREALTIMESTREAM "isrealtimestream"
40
41/*!
42 * @brief special value for STREAM_PROPERTY_INPUTSTREAM to use
43 * ffmpeg to directly play a stream URL.
44 */
45#define STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG "inputstream.ffmpeg"
46
47/*!
48 * @brief Max number of properties that can be sent to an Inputstream addon
49 */
50#define STREAM_MAX_PROPERTY_COUNT 30