How to add snapshot-path for c#
Posted: 23 Jun 2010 14:04
hi all,
im using vlc<0.8.6c>.. the following code to play the video in c# ..
and the following code to capture snapshot ... But the problem with this code is .. i cannot change the snapshot path.
i used the other code to take snapshot as follows .. but it dosent works..!
i can change the snapshot path manualy .. but i need it to do in code..!
Can any body help me .. capture snapshots in specified path..!
im using vlc<0.8.6c>.. the following code to play the video in c# ..
Code: Select all
AxAXVLC.AxVLCPlugin vlc = new AxAXVLC.AxVLCPlugin();
vlc.addTarget(url, ":sout=#duplicate{dst=display}", AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, -666);
vlc.play();
Code: Select all
object tempo = (vlc.getVariable("key-snapshot"));
vlc.setVariable("key-pressed", tempo);
Code: Select all
string[] Opt = { "--snapshot-path = C:\\Users\\C# Dev PC 4\\Desktop\\snapshots" ,"--snapshot-prefix=vlcsnap-", "--key-snapshot=S", "--snapshot-format=png" };
vlc.addTarget("c:\\nithin.mpg", Opt, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, 0);
if (vlc.Playing != true)
{
vlc.play();
}
Can any body help me .. capture snapshots in specified path..!