From 5f8335c1e49ce108ef3481863833c98efa00411b Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 2 Jul 2020 23:09:26 +0200 Subject: sync with upstream --- .../Interface/Addon/InputStreamConstants.h | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/InputStreamConstants.h') 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 @@ +/* + * Copyright (C) 2017-2019 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +/*! + * @brief the name of the inputstream add-on that should be used by Kodi to + * play the stream denoted by STREAM_PROPERTY_STREAMURL. Leave blank to use + * Kodi's built-in playing capabilities or to allow ffmpeg to handle directly + * set to STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG. + */ +#define STREAM_PROPERTY_INPUTSTREAM "inputstream" + +/*! + * @brief Identification string for an input stream. + * + * This value can be used in addition to @ref STREAM_PROPERTY_INPUTSTREAM. It is + * used to provide the respective inpustream addon with additional + * identification. + * + * The difference between this and other stream properties is that it is also + * passed in the associated @ref kodi::addon::CAddonBase::CreateInstance call. + * + * This makes it possible to select different processing classes within the + * associated add-on. + */ +#define STREAM_PROPERTY_INPUTSTREAM_INSTANCE_ID "inputstream-instance-id" + +/*! + * @brief "true" to denote that the stream that should be played is a + * realtime stream. Any other value indicates that this is not a realtime + * stream. + */ +#define STREAM_PROPERTY_ISREALTIMESTREAM "isrealtimestream" + +/*! + * @brief special value for STREAM_PROPERTY_INPUTSTREAM to use + * ffmpeg to directly play a stream URL. + */ +#define STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG "inputstream.ffmpeg" + +/*! + * @brief Max number of properties that can be sent to an Inputstream addon + */ +#define STREAM_MAX_PROPERTY_COUNT 30 -- cgit v1.2.3