prophet0
4th November 2011, 08:49
QString vidpath = QApplication::applicationDirPath();
vidpath = "/home/development/videos/";
QString filepath = QApplication::applicationFilePath();
filepath = "*.avi";
ui->videoPlayer->load(Phonon::MediaSource(vidpath + filepath));
I get this error
PHONON-GST [00;31mBEGIN:[00;39m Phonon::Gstreamer::StreamReader::StreamReader(cons t Phonon::MediaSource&, Phonon::Gstreamer::MediaObject*)
PHONON-GST [00;31mEND__:[00;39m Phonon::Gstreamer::StreamReader::StreamReader(cons t Phonon::MediaSource&, Phonon::Gstreamer::MediaObject*) [00;31m[Took: 0s][00;39m
PHONON-GST [00;32mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::start()
PHONON-GST [00;32mEND__:[00;39m void Phonon::Gstreamer::StreamReader::start() [00;32m[Took: 0s][00;39m
PHONON-GST [00;34mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::stop()
PHONON-GST [00;34mEND__:[00;39m void Phonon::Gstreamer::StreamReader::stop() [00;34m[Took: 0s][00;39m
PHONON-GST [00;35mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::start()
PHONON-GST [00;35mEND__:[00;39m void Phonon::Gstreamer::StreamReader::start() [00;35m[Took: 0s][00;39m
PHONON-GST [00;36mBEGIN:[00;39m GstFlowReturn Phonon::Gstreamer::StreamReader::read(quint64, int, char*)
Touch Taxi(9938): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"
PHONON-GST [00;31mBEGIN:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData()
PHONON-GST [00;31mEND__:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData() [00;31m[Took: 0s][00;39m
PHONON-GST [00;36mEND__:[00;39m GstFlowReturn Phonon::Gstreamer::StreamReader::read(quint64, int, char*) [00;36m[Took: 0.012s][00;39m
PHONON-GST [00;32mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::unlock()
PHONON-GST [00;32mEND__:[00;39m void Phonon::Gstreamer::StreamReader::unlock() [00;32m[Took: 0s][00;39m
PHONON-GST [00;34mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::stop()
PHONON-GST [00;34mEND__:[00;39m void Phonon::Gstreamer::StreamReader::stop() [00;34m[Took: 0s][00;39m
Touch Taxi(9938): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"
PHONON-GST [00;35mBEGIN:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData()
PHONON-GST [00;35mEND__:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData() [00;35m[Took: 0s][00;39m
PHONON-GST [00;36mBEGIN:[00;39m virtual Phonon::Gstreamer::StreamReader::~StreamReader()
PHONON-GST [00;36mEND__:[00;39m virtual Phonon::Gstreamer::StreamReader::~StreamReader() [00;36m[Took: 0s][00;39m
but if i change the above code to this it works
QString vidpath = QApplication::applicationDirPath();
vidpath = "/home/development/videos/";
QString filepath = QApplication::applicationFilePath();
filepath = "myvid.avi"; //changed to just 1 file from that folder
ui->videoPlayer->load(Phonon::MediaSource(vidpath + filepath));
yes i have searched google for about 3 days with different scenarios and still have had no success
i am new to qt and been working with it everyday all day for about 3 months trying to learn and troubleshoot problems this is one problem a cant seem to fix on my own
what im trying to accomplish here is playing all files in the folder vidpath with any file that ends with .avi if there is a better solution please point me in that direction hope this is not a total newbie question i been beating my head off the wall for days now trying to get this to work
thanks
vidpath = "/home/development/videos/";
QString filepath = QApplication::applicationFilePath();
filepath = "*.avi";
ui->videoPlayer->load(Phonon::MediaSource(vidpath + filepath));
I get this error
PHONON-GST [00;31mBEGIN:[00;39m Phonon::Gstreamer::StreamReader::StreamReader(cons t Phonon::MediaSource&, Phonon::Gstreamer::MediaObject*)
PHONON-GST [00;31mEND__:[00;39m Phonon::Gstreamer::StreamReader::StreamReader(cons t Phonon::MediaSource&, Phonon::Gstreamer::MediaObject*) [00;31m[Took: 0s][00;39m
PHONON-GST [00;32mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::start()
PHONON-GST [00;32mEND__:[00;39m void Phonon::Gstreamer::StreamReader::start() [00;32m[Took: 0s][00;39m
PHONON-GST [00;34mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::stop()
PHONON-GST [00;34mEND__:[00;39m void Phonon::Gstreamer::StreamReader::stop() [00;34m[Took: 0s][00;39m
PHONON-GST [00;35mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::start()
PHONON-GST [00;35mEND__:[00;39m void Phonon::Gstreamer::StreamReader::start() [00;35m[Took: 0s][00;39m
PHONON-GST [00;36mBEGIN:[00;39m GstFlowReturn Phonon::Gstreamer::StreamReader::read(quint64, int, char*)
Touch Taxi(9938): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"
PHONON-GST [00;31mBEGIN:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData()
PHONON-GST [00;31mEND__:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData() [00;31m[Took: 0s][00;39m
PHONON-GST [00;36mEND__:[00;39m GstFlowReturn Phonon::Gstreamer::StreamReader::read(quint64, int, char*) [00;36m[Took: 0.012s][00;39m
PHONON-GST [00;32mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::unlock()
PHONON-GST [00;32mEND__:[00;39m void Phonon::Gstreamer::StreamReader::unlock() [00;32m[Took: 0s][00;39m
PHONON-GST [00;34mBEGIN:[00;39m void Phonon::Gstreamer::StreamReader::stop()
PHONON-GST [00;34mEND__:[00;39m void Phonon::Gstreamer::StreamReader::stop() [00;34m[Took: 0s][00;39m
Touch Taxi(9938): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"
PHONON-GST [00;35mBEGIN:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData()
PHONON-GST [00;35mEND__:[00;39m virtual void Phonon::Gstreamer::StreamReader::endOfData() [00;35m[Took: 0s][00;39m
PHONON-GST [00;36mBEGIN:[00;39m virtual Phonon::Gstreamer::StreamReader::~StreamReader()
PHONON-GST [00;36mEND__:[00;39m virtual Phonon::Gstreamer::StreamReader::~StreamReader() [00;36m[Took: 0s][00;39m
but if i change the above code to this it works
QString vidpath = QApplication::applicationDirPath();
vidpath = "/home/development/videos/";
QString filepath = QApplication::applicationFilePath();
filepath = "myvid.avi"; //changed to just 1 file from that folder
ui->videoPlayer->load(Phonon::MediaSource(vidpath + filepath));
yes i have searched google for about 3 days with different scenarios and still have had no success
i am new to qt and been working with it everyday all day for about 3 months trying to learn and troubleshoot problems this is one problem a cant seem to fix on my own
what im trying to accomplish here is playing all files in the folder vidpath with any file that ends with .avi if there is a better solution please point me in that direction hope this is not a total newbie question i been beating my head off the wall for days now trying to get this to work
thanks