DirectShowPlayerService::doRender: Unresolved error code 0x80040266 ()

15.7k Views Asked by At

Helllo I was trying to play music on qt where I'm going to click on a button "jouer" to play the music and that was my code :

#include "jouer.h"
#include "ui_jouer.h"
Jouer::Jouer(QWidget *parent) :
QDialog(parent),
ui(new Ui::Jouer)
{
ui->setupUi(this);
ui->tabmusic->setModel(tmpmusique.afficher()); //show data base
player = new QMediaPlayer(this);
connect(player, &QMediaPlayer::positionChanged, this, &Jouer::on_positionChanged);
connect(player, &QMediaPlayer::durationChanged, this, &Jouer::on_durationChanged);
}
Jouer::~Jouer()
{
delete ui;
}

void Jouer::on_pushButton_3_clicked()
{
close();
}

void Jouer::on_pushButton_2_clicked()
{
jouertemps = new Musiqueavectemps(this); //go to another window
jouertemps->show();
}
void Jouer::on_pushButton_clicked() //that's the playing button where there is the error
{
player->setMedia(QUrl::fromLocalFile("C:\\Users\\Louay\\Desktop\\Music\\1.mp3"));
player->setVolume(50);
player->play();
}

it compiles correctly but when I click on the button "jouer"(jouer means play in French) it shows an error which is DirectShowPlayerService::doRender: Unresolved error code 0x80040266 () well I made some search in the internet on that type of errors of Unresolved error code 0x... ()

well it says that my error 0x80040266() is because : Pins cannot connect because they don't support the same transport. For example, the upstream filter might require the IAsyncReader interface, while the downstream filter requires IMemInputPin.

there is a lot of errors of DirectShowPlayerService and I just explained the cause of my type its not the same as the other answered questions ..and I don't know how to solve this .. please do not close this post

can anyone help me please

thanks

0

There are 0 best solutions below