Rialto 0.1
Rialto media pipeline API
Loading...
Searching...
No Matches
IMediaKeysClient.h
Go to the documentation of this file.
1/*
2 * If not stated otherwise in this file or this component's LICENSE file the
3 * following copyright and licenses apply:
4 *
5 * Copyright 2022 Sky UK
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20#ifndef FIREBOLT_RIALTO_I_MEDIA_KEYS_CLIENT_H_
21#define FIREBOLT_RIALTO_I_MEDIA_KEYS_CLIENT_H_
22
34#include "MediaCommon.h"
35#include <string>
36#include <vector>
37
38namespace firebolt::rialto
39{
47{
48public:
52 virtual ~IMediaKeysClient() {}
53
61 virtual void onLicenseRequest(int32_t keySessionId, const std::vector<unsigned char> &licenseRequestMessage,
62 const std::string &url) = 0;
63
70 virtual void onLicenseRenewal(int32_t keySessionId, const std::vector<unsigned char> &licenseRenewalMessage) = 0;
71
78 virtual void onKeyStatusesChanged(int32_t keySessionId, const KeyStatusVector &keyStatuses) = 0;
79};
80
81}; // namespace firebolt::rialto
82
83#endif // FIREBOLT_RIALTO_I_MEDIA_KEYS_CLIENT_H_
std::vector< std::pair< std::vector< unsigned char >, KeyStatus > > KeyStatusVector
A vector of key ID/key status pairs.
Definition MediaCommon.h:360
The definition of the IMediaKeysClient interface.
Definition IMediaKeysClient.h:47
virtual void onKeyStatusesChanged(int32_t keySessionId, const KeyStatusVector &keyStatuses)=0
Notification that the status of one or more keys in the key session has changed.
virtual ~IMediaKeysClient()
The virtual destructor.
Definition IMediaKeysClient.h:52
virtual void onLicenseRenewal(int32_t keySessionId, const std::vector< unsigned char > &licenseRenewalMessage)=0
Notification that a license renewal is required.
virtual void onLicenseRequest(int32_t keySessionId, const std::vector< unsigned char > &licenseRequestMessage, const std::string &url)=0
Notification that a license is required.