Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the playback rate/speed #127

Closed
ChiSaw opened this issue Nov 17, 2015 · 0 comments
Closed

Setting the playback rate/speed #127

ChiSaw opened this issue Nov 17, 2015 · 0 comments

Comments

@ChiSaw
Copy link

ChiSaw commented Nov 17, 2015

I discovered that the MediaPlayer didn’t contain the possibility to adjust the playback rate/speed which is covered by the libVLC functions:

libvlc_media_player_set_rate
libvlc_media_player_get_rate

The needed functions in MediaPlayer.cpp would be:

void VlcMediaPlayer::setPlaybackRate(float rate)
{
libvlc_media_player_set_rate(_vlcMediaPlayer, rate);

VlcError::showErrmsg();
}

float VlcMediaPlayer::playbackRate()
{
if (!_vlcMediaPlayer)
return -1;

return libvlc_media_player_get_rate(_vlcMediaPlayer);
}

and accordingly in MediaPlayer.h:

in public: float playbackRate();
in public slots: void setPlaybackRate(float rate);

Is it possible to implement this functionality?

@ntadej ntadej closed this as completed in c71f6a1 Dec 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant