mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Implement OSC callback to set video URI
This commit is contained in:
@@ -90,3 +90,13 @@ bool Media::hasVideoSupport()
|
||||
return MediaImpl::hasVideoSupport();
|
||||
}
|
||||
|
||||
bool Media::setUri(const QString &uri)
|
||||
{
|
||||
bool success = false;
|
||||
this->uri = uri;
|
||||
success = this->impl_->loadMovie(uri);
|
||||
if (! success)
|
||||
qDebug() << "Cannot load movie " << uri << "." << endl;
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user