![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <Id3TagsRemover.h>
Public Types | |
using | ByteVector = std::vector< unsigned char > |
Alias for bytes. More... | |
Public Member Functions | |
Id3TagsRemover () | |
bool | removeTagsAndWrite (const std::shared_ptr< avsCommon::avs::attachment::InProcessAttachment > &attachment, const std::shared_ptr< avsCommon::avs::attachment::AttachmentWriter > &streamWriter) |
void | stripID3Tags (ByteVector &buffer) |
RequiresShutdown methods. | |
void | doShutdown () override |
![]() | |
RequiresShutdown (const std::string &name) | |
virtual | ~RequiresShutdown () |
Destructor. More... | |
const std::string & | name () const |
void | shutdown () |
bool | isShutdown () const |
Additional Inherited Members |
Helper class to remove ID3v2 tags in media content.
using alexaClientSDK::playlistParser::Id3TagsRemover::ByteVector = std::vector<unsigned char> |
Alias for bytes.
alexaClientSDK::playlistParser::Id3TagsRemover::Id3TagsRemover | ( | ) |
Constructor
|
overridevirtual |
Prepares/enables this object to be deleted. This should be the last function called on this object prior to deleting (or resetting) its shared_ptr.
Implements alexaClientSDK::avsCommon::utils::RequiresShutdown.
bool alexaClientSDK::playlistParser::Id3TagsRemover::removeTagsAndWrite | ( | const std::shared_ptr< avsCommon::avs::attachment::InProcessAttachment > & | attachment, |
const std::shared_ptr< avsCommon::avs::attachment::AttachmentWriter > & | streamWriter | ||
) |
A function that read from an attachment and remove ID3 tags from the stream and write the stream back to the streamWriter
.
attachment | The attachment that contains the stream content. |
streamWriter | The writer to write to the attachment after ID3 tags are removed. |
true
if succeeds and false
otherwise. void alexaClientSDK::playlistParser::Id3TagsRemover::stripID3Tags | ( | ByteVector & | buffer | ) |
A function that removes any ID3 tags from the buffer. After the call of this function, all ID3 tags in buffer
is removed. If there is no ID3 tag found, then the content in the buffer
remains the same.
[in,out] | buffer | The buffer in which the ID3 tags will be removed. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0