blob: c4e0d4bedfbd75bf5fb89ea425aa0a65868459b0 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_CDM_SUPPORTED_AUDIO_CODECS_H_
#define MEDIA_CDM_SUPPORTED_AUDIO_CODECS_H_
#include <vector>
#include "media/base/audio_codecs.h"
#include "media/base/media_export.h"
namespace media {
// Returns a set of audio codecs that are supported for decoding by the
// browser after a CDM has decrypted the stream. This will be used by
// CDMs that only support decryption of audio content.
// Note that this should only be used on desktop CDMs. On other platforms
// (e.g. Android) we should query the system for (encrypted) audio codec
// support.
MEDIA_EXPORT const std::vector<AudioCodec> GetCdmSupportedAudioCodecs();
} // namespace media
#endif // MEDIA_CDM_SUPPORTED_AUDIO_CODECS_H_