VideoLan.Net:向后播放媒体/更改播放速度? [英] VideoLan.Net: Play media backwards / Change playback speed?
问题描述
我被赋予了新的要求,即我可以使该选项可用于反向播放媒体文件,并且可以增加/降低播放速度.
I have been given a new requirement that I make the option available to play media files in reverse, and the option to be able to increase/decrease playback speed.
我正在使用的程序依赖VideoLan.Net来满足我们所有的媒体播放需求,所以我的问题是:
The program with which I am working relies on VideoLan.Net to handle all our media playback needs, so the question I have is this:
使用VideoLan.Net,是否可以向后播放媒体,并且可以提高/降低播放速度?
Using VideoLan.Net, is it possible to play media backwards, and is it possible to increase/decrease the playback speed?
推荐答案
vlc无法反向播放媒体.
vlc can not play media in reverse.
使用LibVLC,肯定可以提高/降低播放速度:请参见libvlc_media_player_set_rate(float rate)
.
With LibVLC it certainly is possible to increase/decrease the playback speed: see libvlc_media_player_set_rate(float rate)
.
例如将0.5f
用于半速,将1.0f
返回至正常速度,将2.0f
用于双倍速度,依此类推.
Use e.g 0.5f
for half speed, 1.0f
to return to normal speed, 2.0f
for double speed and so on.
这篇关于VideoLan.Net:向后播放媒体/更改播放速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!