More functions that return time strings will be added later.
return mlt_properties_get_position( MLT_PRODUCER_PROPERTIES( self ), "length" );
}
+/** Get the total, unedited length of the producer as a time string.
+ *
+ * The value returned by a live streaming producer is unknown.
+ *
+ * \public \memberof mlt_producer_s
+ * \param self a producer
+ * \param format the time value format
+ * \return the duration of the producer regardless of in and out points
+ */
+
+char* mlt_producer_get_length_time( mlt_producer self, mlt_time_format format )
+{
+ return mlt_properties_get_time( MLT_PRODUCER_PROPERTIES( self ), "length", format );
+}
+
/** Prepare for next frame.
*
* Advance the play out position. If the speed is less than zero, it will
extern mlt_position mlt_producer_get_out( mlt_producer self );
extern mlt_position mlt_producer_get_playtime( mlt_producer self );
extern mlt_position mlt_producer_get_length( mlt_producer self );
+extern char* mlt_producer_get_length_time( mlt_producer self, mlt_time_format );
extern void mlt_producer_prepare_next( mlt_producer self );
extern int mlt_producer_attach( mlt_producer self, mlt_filter filter );
extern int mlt_producer_detach( mlt_producer self, mlt_filter filter );
return mlt_producer_get_length( get_producer( ) );
}
+char* Producer::get_length_time( mlt_time_format format )
+{
+ return mlt_producer_get_length_time( get_producer( ), format );
+}
+
int Producer::get_playtime( )
{
return mlt_producer_get_playtime( get_producer( ) );
int get_in( );
int get_out( );
int get_length( );
+ char* get_length_time( mlt_time_format = mlt_time_smpte );
int get_playtime( );
Producer *cut( int in = 0, int out = -1 );
bool is_cut( );