forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qml: VideoOutput/VideoOutput2.source can be an AVPlayer object wang-b…
…in#935 use c player and qml renderer
- Loading branch information
Showing
4 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 1,6 @@ | ||
/****************************************************************************** | ||
QtAV: Multimedia framework based on Qt and FFmpeg | ||
Copyright (C) 2012-2016 Wang Bin <[email protected]> | ||
Copyright (C) 2012-2017 Wang Bin <[email protected]> | ||
theoribeiro <[email protected]> | ||
* This file is part of QtAV (from 2013) | ||
|
@@ -60,6 60,10 @@ class QQuickItemRenderer : public QQuickItem, public VideoRenderer | |
bool isSupported(VideoFormat::PixelFormat pixfmt) const Q_DECL_OVERRIDE; | ||
|
||
QObject *source() const; | ||
/*! | ||
* \brief setSource | ||
* \param source nullptr, an object of type AVPlayer or QmlAVPlayer | ||
*/ | ||
void setSource(QObject *source); | ||
|
||
FillMode fillMode() const; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 1,6 @@ | ||
/****************************************************************************** | ||
QtAV: Multimedia framework based on Qt and FFmpeg | ||
Copyright (C) 2012-2016 Wang Bin <[email protected]> | ||
Copyright (C) 2012-2017 Wang Bin <[email protected]> | ||
* This file is part of QtAV (from 2015) | ||
|
@@ -66,6 66,10 @@ class QuickFBORenderer : public QQuickFramebufferObject, public VideoRenderer | |
OpenGLVideo* opengl() const Q_DECL_OVERRIDE; | ||
|
||
QObject *source() const; | ||
/*! | ||
* \brief setSource | ||
* \param source nullptr, an object of type AVPlayer or QmlAVPlayer | ||
*/ | ||
void setSource(QObject *source); | ||
|
||
FillMode fillMode() const; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters