Mdat functies toegvoegd
This commit is contained in:
parent
8bfc5d87c0
commit
5ca7a72b86
3 changed files with 17 additions and 1 deletions
|
@ -484,3 +484,13 @@ std::string Interface::GenerateLiveBootstrap( uint32_t CurMediaTime ) {
|
|||
Result.append( (char*)abst->GetBox( )->GetBoxedData( ), (int)abst->GetBox( )->GetBoxedDataSize( ) );
|
||||
return Result;
|
||||
}
|
||||
|
||||
void Interface::Setmdat( std::string data ) {
|
||||
mdat->SetContent( data.c_str(), data.size( ) );
|
||||
}
|
||||
|
||||
std::string Interface::Getmdat( ) {
|
||||
std::string Result;
|
||||
Result.append( (char*)mdat->GetBox( )->GetBoxedData( ), (int)mdat->GetBox( )->GetBoxedDataSize( ) );
|
||||
return Result;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include "box_includes.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class Interface {
|
||||
public:
|
||||
Interface();
|
||||
|
@ -17,7 +19,7 @@ class Interface {
|
|||
void AddSTSCEntry( uint32_t FirstChunk, uint32_t SamplesPerChunk, uint32_t Track );
|
||||
void EmptySTSC( uint32_t Track );
|
||||
void SetOffsets( std::vector<uint32_t> NewOffsets, uint32_t Track );
|
||||
void SetData( uint8_t * Data, uint32_t DataSize );
|
||||
void SetData( std::string data );
|
||||
|
||||
std::string GenerateLiveBootstrap( uint32_t CurMediaTime );
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue