Truxton media set percent complete
Jump to navigation
Jump to search
Sets the percentage complete the media is in the processing phase.
This corresponds to the PercentComplete column of the Media table.
Syntax
void truxton_media_set_percent_complete( uint64_t media_handle, uint64_t percent_complete );
Parameters
media_handle
The handle created by the truxton_media_create or truxton_media_open_id call.
percent_complete
How far along the processing is. This value will be capped at 100. If you send in a value larger than 100, it will go into the database as 100.
Sample
void set_done(uint64_t media_handle)
{
truxton_media_set_percent_complete( media_handle, 100 );
}