A wrapper for stream types.
More...
|
Q_INVOKABLE void | setProperty (const QString &strName, const QJSValue &oValue) |
| Set a property to a given value. More...
|
|
Q_INVOKABLE QList< QString > | getSubStreams () |
| Returns a list of all substreams. More...
|
|
Q_INVOKABLE QObject * | getSubStreamType (const QString &strSubStream) |
| Return an StreamType from the stream type if found, otherwise return null. More...
|
|
|
QVariantMap | properties |
|
QString | stream_meta_type |
|
◆ getSubStreams()
Q_INVOKABLE QList<QString> getSubStreams |
( |
| ) |
|
Returns a list of all substreams.
Example Usage
var reader = filter.createInputPin("input")
reader.streamTypeChanged.connect(function(type)
{
var substreams = type.getSubStreams()
if(substreams.length > 0)
{
var name = substreams[0]
var type = type.getSubStreamType(name)
console.log(name)
console.log(type.stream_meta_type)
}
})
- Returns
- List of substreams. Empty list if no substream is present
◆ getSubStreamType()
Q_INVOKABLE QObject* getSubStreamType |
( |
const QString & |
strSubStream | ) |
|
Return an StreamType from the stream type if found, otherwise return null.
Example Usage
var reader = filter.createInputPin("input")
reader.streamTypeChanged.connect(function(type)
{
var substreams = type.getSubStreams()
if(substreams.length > 0)
{
var name = substreams[0]
var type = type.getSubStreamType(name)
console.log(name)
console.log(type.stream_meta_type)
}
})
- Parameters
-
strSubStream | Substream to get StreamType for |
- Returns
- Substream StreamType (see adtf::javascript::scripting::cStreamTypeWrapper)
◆ setProperty()
Q_INVOKABLE void setProperty |
( |
const QString & |
strName, |
|
|
const QJSValue & |
oValue |
|
) |
| |
Set a property to a given value.
- Parameters
-
[in] | strName | The Property name. |
[in] | oValue | The value to set. |