Phonon
mediasource.cpp
328void MediaSourcePrivate::setCaptureDevice(Capture::DeviceType deviceType, CaptureCategory category)
338 AudioCaptureDevice::fromIndex(GlobalConfig().audioCaptureDeviceFor(category)), VideoCaptureDevice());
351void MediaSourcePrivate::setCaptureDevices(const AudioCaptureDevice &audioDevice, const VideoCaptureDevice &videoDevice)
Base class for custom media data streams.
Definition abstractmediastream.h:102
Note that all constructors of this class are implicit, so that you can simply write.
Definition Phonon-Graph.cpp:17
MediaSource & operator=(const MediaSource &rhs)
Assigns rhs to this MediaSource and returns a reference to this MediaSource.
Definition mediasource.cpp:220
const DeviceAccessList & audioDeviceAccessList() const
Returns the access list for the audio device used for capture.
Definition mediasource.cpp:286
Mrl mrl() const
Returns the MRL of the MediaSource if type() == URL or type() == LocalFile; otherwise returns Mrl().
Definition mediasource.cpp:256
DiscType discType() const
Returns the disc type of the MediaSource if type() == Disc; otherwise returns NoDisc.
Definition mediasource.cpp:266
bool operator==(const MediaSource &rhs) const
Returns true if this MediaSource is equal to rhs; otherwise returns false.
Definition mediasource.cpp:226
QString deviceName() const
Returns the device name of the MediaSource if type() == Disc; otherwise returns QString().
Definition mediasource.cpp:296
AudioCaptureDevice audioCaptureDevice() const
Returns the audio capture device for the media source if applicable.
Definition mediasource.cpp:314
const DeviceAccessList & videoDeviceAccessList() const
Returns the access list for the video device used for capture.
Definition mediasource.cpp:291
AbstractMediaStream * stream() const
Returns the media stream of the MediaSource if type() == Stream; otherwise returns 0.
Definition mediasource.cpp:302
Type type() const
Returns the type of the MediaSource (depends on the constructor that was used).
Definition mediasource.cpp:241
QUrl url() const
Returns the url of the MediaSource if type() == URL or type() == LocalFile; otherwise returns QUrl().
Definition mediasource.cpp:261
QString fileName() const
Returns the file name of the MediaSource if type() == LocalFile; otherwise returns QString().
Definition mediasource.cpp:251
const DeviceAccessList & deviceAccessList() const
Returns the access list for the device of this media source.
Definition mediasource.cpp:271
void setAutoDelete(bool enable)
Tell the MediaSource to take ownership of the AbstractMediaStream or QIODevice that was passed in the...
Definition mediasource.cpp:231
@ Url
The MediaSource object describes a URL, which can be both a local file and a file on the network.
Definition mediasource.h:85
@ CaptureDevice
The MediaSource object describes a single capture device.
Definition mediasource.h:102
@ AudioVideoCapture
The MediaSource object describes one device for video capture and one for audio capture.
Definition mediasource.h:118
VideoCaptureDevice videoCaptureDevice() const
Returns the video capture device for the media source if applicable.
Definition mediasource.cpp:321
Provides a tuple of enduser visible name and description.
Definition objectdescription.h:183
static ObjectDescription< T > fromIndex(int index)
Returns a new description object that describes the device/effect/codec/... with the given index.
Definition objectdescription.h:189
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QDebug & maybeSpace()
QDebug & nospace()
bool exists() const const
QString absoluteFilePath() const const
bool exists(const QString &path)
const char * className() const const
virtual const QMetaObject * metaObject() const const
QString mid(qsizetype position, qsizetype n) const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QUrl fromLocalFile(const QString &localFile)
bool isValid() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.