[英]How to change default image display time different 10 second in vlc media player in c#?
I m using axpluging control for media player in c#.我在 c# 中使用 axpluging 控制媒体播放器。 But I want to different duration time for images in vlc media player.但我想为 vlc 媒体播放器中的图像设置不同的持续时间。 I cannot do it.我做不到。 How can I set duration time in playlist?如何在播放列表中设置持续时间? I m using this event but it is not working properly.我正在使用此事件,但它无法正常工作。 Do you have any suggestion?:你有什么建议吗?:
private void axVLCPlugin21_MediaPlayerTimeChanged(object sender, AxAXVLC.DVLCEvents_MediaPlayerTimeChangedEvent e)
{
try
{
//log.append("playlist:" + axVLCPlugin21.playlist.currentItem + "," + TimeFormat(e.time), logdirectory);
foreach (var item in playeritems)
{
string[] line = item.Split(',');
if (axVLCPlugin21.playlist.currentItem == Convert.ToInt32(line[0]) && counter == Convert.ToInt32(line[1]) )
{
if (line[2] != "1")
{
log.append("playlist:" + axVLCPlugin21.playlist.currentItem + "," + counter.ToString(), logdirectory);
axVLCPlugin21.playlist.next();
}
counter = 0;
}
}
}
catch (Exception ex)
{
string logstr = ex.InnerException == null ? "" : ex.InnerException.Message;
log.append("ERROR:" + ex.Message + "-->" + logstr, logdirectory);
MessageBox.Show(ex.Message);
Environment.Exit(0);
}
}
I solved with this code maybe it can help someone:我用这段代码解决了也许它可以帮助某人:
axVLCPlugin21.playlist.add(convertedURI,"image",":image-duration=5"); axVLCPlugin21.playlist.add(convertedURI,"image",":image-duration=5");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.