Difference between revisions of "Truxton media set percent complete"

From truxwiki.com
Jump to navigation Jump to search
 
Line 1: Line 1:
 
Sets the percentage complete the media is in the processing phase.
 
Sets the percentage complete the media is in the processing phase.
This corresponds to the <code>[PercentComplete]</code> column of the <code>[Media]</code> table.
+
This corresponds to the <code>[PercentComplete]</code> column of the <code><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></code> table.
  
 
=Syntax=
 
=Syntax=

Latest revision as of 07:49, 3 February 2024

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 );
}