c# - libVLCNet player positioning (without showing the movie begining) when opening new video -


i'm looking @ libvlcnet 0.4.0.0 "simpleplayer" example http://sourceforge.net/p/libvlcnet/wiki/home/ , want ask if possible to open new file , play predefined position without needing play start of movie? use this:

        libvlcinterop.libvlc_media_player_play(descriptor);         libvlcinterop.libvlc_media_player_pause(descriptor);         libvlcinterop.libvlc_media_player_set_position(descriptor, (float)0.8);         int res = libvlcinterop.libvlc_media_player_play(descriptor); 

when trying play new file user can notice small fraction of beginning of movie.

how can position player particular area after load new file without showing small portion of beginning of movie?

i don't know particular library, can passing "media options" before play media. use libvlc api function libvlc_media_add_option.

if can in library, can specify start time and/or end time - has specified seconds rather percentage position.

the options pass api function be:

:start-time=30 :stop-time=60.5 

you can pass fractional seconds shown in stop-time example.

when this, not notice flash of content showing beginning of movie suppose still might happen on platforms or types of media.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -