Truxton media set percent complete

From truxwiki.com
Revision as of 07:21, 26 July 2020 by Sam (talk | contribs) (Created page with "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. =Syntax= <synt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 );
}