Skip to content

Commit

Permalink
update audio track document
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Oct 13, 2013
1 parent afefdbb commit d2c9ebe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 25,14 @@ QtAV can meet your most demands
- Variant streams: locale file, http, rtsp, etc.
- Playing music
- Choose audio channel
- Choose media stream, e.g. play a desired audio track
- Volume control
- Fullscreen, stay on top
- Compatiblity: QtAV can be built with both Qt4 and Qt5. QtAV supports
both FFmpeg(>=0.9) and [Libav](http://libav.org).
- Multiple render engine support. Currently supports QPainter, GDI , Direct2D, XV and OpenGL(and ES2).
- Dynamically change render engine when playing.
- Multiple video outputs for 1 player
- QML support as a plugin

### Extensible Framework (work in progress)
Expand Down
12 changes: 5 additions & 7 deletions src/QtAV/AVPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 69,12 @@ class Q_EXPORT AVPlayer : public QObject
* return: false if stream not changed, not valid
*/
/*
* steps to change stream without close and continue playing:
* steps to change stream:
* player.setAudioStream(N, true)
* or player.setAudioStream(N, false) && player.play
*
* steps to change stream and replay:
* player.setAudioStream(N)
* player.setFile("")
* player.play(file)
* or player.setAudioStream(N) && player.play()
* player then will play from previous position. call
* player.seek(player.startPosition())
* to play at beginning
*/
bool setAudioStream(int n, bool now = false);
bool setVideoStream(int n, bool now = false);
Expand Down

0 comments on commit d2c9ebe

Please sign in to comment.