Core:
* Support wayland surface type
+ * Allow to start the video paused on the first frame
Access:
* Support HDS (Http Dynamic Streaming) from Adobe (f4m, f4v, etc.)
static void ControlRelease( int i_type, vlc_value_t val );
static bool ControlIsSeekRequest( int i_type );
static bool Control( input_thread_t *, int, vlc_value_t );
+static void ControlPause( input_thread_t *, mtime_t );
static int UpdateTitleSeekpointFromDemux( input_thread_t * );
static void UpdateGenericFromDemux( input_thread_t * );
if( !Init( p_input ) )
{
+ if( var_InheritBool( p_input, "start-paused" ) )
+ {
+ const mtime_t i_control_date = mdate();
+ ControlPause( p_input, i_control_date );
+ }
+
MainLoop( p_input, true ); /* FIXME it can be wrong (like with VLM) */
/* Clean up */
#define PAP_LONGTEXT N_( \
"Pause each item in the playlist on the last frame." )
+#define SP_TEXT N_("Start paused")
+#define SP_LONGTEXT N_( \
+ "Pause each item in the playlist on the first frame." )
+
#define AUTOSTART_TEXT N_( "Auto start" )
#define AUTOSTART_LONGTEXT N_( "Automatically start playing the playlist " \
"content once it's loaded." )
change_safe()
add_bool( "play-and-pause", 0, PAP_TEXT, PAP_LONGTEXT, true )
change_safe()
+ add_bool( "start-paused", 0, SP_TEXT, SP_LONGTEXT, false )
add_bool( "playlist-autostart", true,
AUTOSTART_TEXT, AUTOSTART_LONGTEXT, false )
add_bool( "playlist-cork", true, CORK_TEXT, CORK_LONGTEXT, false )