![]() |
Re: [Annnounce] Sociality | Facebook client in Qt
Thats in the next version, or one coming soon.... This app is very early in development (although still very feature rich).
|
Re: [Annnounce] Sociality | Facebook client in Qt
marxian, I tried switching to Phonon, and I'm getting the same result.
When I get the URL, I'm just doing a: Code:
// m_player is m_player(new Phonon::VideoPlayer(Phonon::VideoCategory, this)) I looked at cutetube again and saw it's doing the same, though last I checked (a month or two ago), cutetube had a working built in video player. Edit: oh and images (at least most of them for avatars and such) are now cached. Any ideas? |
Re: [Annnounce] Sociality | Facebook client in Qt
The Python version of cuteTube uses Python's urllib to get the URL, but that's the only difference, and it shouldn't affect the playback.
I took a quick look at the source code, and the method used to load the video is the same as yours, so I can't see any reason why it shouldn't play. It might be worth connecting a slot to the mediaobject's tick(qint64) signal, and see if the current position of the video is changing. Code:
|
Re: [Annnounce] Sociality | Facebook client in Qt
Quote:
logging out and in again did get the app working again ... |
Re: [Annnounce] Sociality | Facebook client in Qt
Something weird is happening now, youtube-dl and the C++ code both fail to parse the video page (or find it for that matter)
youtube-dl: ERROR: unable to download video webpage: HTTP Error 404: Not Found and the alert(QString) signal from your code. yet qmltube still works fine... |
Re: [Annnounce] Sociality | Facebook client in Qt
Quote:
Do you know when/whether the option to add new places will be available? |
Re: [Annnounce] Sociality | Facebook client in Qt
Not anytime soon (not until someone reverse engineers it)
http://bugs.developers.facebook.net/...g.cgi?id=13388 |
Re: [Annnounce] Sociality | Facebook client in Qt
Quote:
Also, the gotVideoUrl() signal emits a QString, but I'm sure that MediaSource requires a QUrl, so I'm wondering if that is the reason that the Phonon player didn't work. |
Re: [Annnounce] Sociality | Facebook client in Qt
Quote:
Have a look at http://mediadownloader.cz.cc/ It can play videos in Phonon well, and I passed the URL to QMediaPlayer manually and it worked, no cookies or forbidden stuff. The source code did get me lost though, too many functions are tied to other classes |
Re: [Annnounce] Sociality | Facebook client in Qt
Quote:
All that is needed is a small amendment to the URL in the parseVideoPage() method: Code:
QByteArray url = keyAndValue.first().replace("%2C", ","); I would have expected the percent encoded characters to have been replaced anyway, as I use QByteArray::fromPercentEncoding(). :confused: Since I will now be implementing the QML video player, I have a question: How am I to enable the exporting of the plugin path for end users? I have found that Code:
viewer.engine()->addPluginPath(QString("/opt/qtm12/plugins")); Code:
export QT_PLUGIN_PATH=/opt/qtm12/plugins |
All times are GMT. The time now is 07:24. |
vBulletin® Version 3.8.8