Skip to content

QMedialPlayer inside the Service #1

@ichristophorus

Description

@ichristophorus

Hi, Thank you for the fantastic into into service, it works fine. But I tried to use QMedialPlayer inside the service processing and I'm not able to start the stream. I'm wondering is something is related to permissions or other problem. I tried to use this in the thread object created in main.cpp:
QMediaResource msrc(QUrl(QString("%1?serial=%2").arg(url,serial )));

QMediaContent mc2(msrc);
QMediaPlayer *theplayer = new QMediaPlayer();
theplayer -> setMedia(QMediaContent(mc2) );
theplayer ->setVolume(90);
theplayer -> play();

Maybe you have any idea concerning the issue.

Thank you again for the intro.

Regards,

Krzys

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions