Issues using webkit and flash with www.grooveshark.com



  • Hello, I am trying to use webkit to display a grooveshark page (grooveshark is a music streaming website like deezer.com), but when I compile my code, and try the app, the grooveshark page only displays "loading...", and the music doesn't play.
    BUT flash works on other websites, such as youtube.com, or deezer.com. I don't understand where this error come from, and I hope that maybe you will be able to help me. Thanks
    Here is my code:
    @ int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    a.setApplicationName("MusicPlayer");

    QWebView *view = new QWebView();
    view->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    view->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
    
         view->load(QUrl("http://grooveshark.com/#!/s/Tighten+Up/3GEACi?src=5"));
         view->show();
    
    return a.exec();
    

    }
    @

    Here is the error console output:
    ERROR: Invalid browser function table. Some functionality may be restricted.
    ** (process:5877): DEBUG: NP_Initialize
    ** (process:5877): DEBUG: NP_Initialize succeeded
    java version "1.6.0_23"
    OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2)
    OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
    ** (ScorbutTest2:5877): DEBUG: NP_Initialize
    ** (ScorbutTest2:5877): DEBUG: NP_Initialize succeeded
    ** (ScorbutTest2:5877): DEBUG: NP_Initialize
    ** (ScorbutTest2:5877): DEBUG: NP_Initialize succeeded
    ** (ScorbutTest2:5877): DEBUG: NP_Initialize
    ** (ScorbutTest2:5877): DEBUG: NP_Initialize succeeded

    (ScorbutTest2:5877): Gdk-CRITICAL **: IA__gdk_window_set_back_pixmap: assertion `GDK_IS_WINDOW (window)' failed

    (ScorbutTest2:5877): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed

    (ScorbutTest2:5877): Gdk-CRITICAL **: IA__gdk_window_set_back_pixmap: assertion `GDK_IS_WINDOW (window)' failed

    (ScorbutTest2:5877): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed

    (ScorbutTest2:5877): Gdk-WARNING **: GdkWindow 0x5e0007a unexpectedly destroyed

    (ScorbutTest2:5877): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
    QSslSocket: cannot call unresolved function SSLv23_client_method
    QSslSocket: cannot call unresolved function SSL_CTX_new
    QSslSocket: cannot call unresolved function SSL_library_init
    QSslSocket: cannot call unresolved function ERR_get_error

    By the way, I do get errors on youtube too, but they don't bother me, because the youtube player works.

    Is there any known issues using flash player and webkit together? I mean, is there any compatibility problem?



  • Then an easier question: is there any known issues using flash player and webkit together? What other tools or libraries can I use to access this page?



  • It doesn't look like a flash app, but a java applet. At least the error message does suggest this.

    Regarding the QSslSocket: seems like the OpenSSL libs are missing or not loadable.

    Which OS are you on?



  • thanks for the reply, I am using ubuntu. Openssl was already installed, but I did install some other "minor librarys" from synaptic that where related to openssl, and now it get passed the loading screen, but the music isn't played, and when I click on the play button I get an error message from grooveshark telling me that: "an error occured during the play of the track". Sometimes the window also just close itself a few second after grooveshark was launched. I still get the almost the same errors as before. I will try reinstalling openssl and some other things in the next few days, and will post how it did progress. Another question: what is does gdk mean in the error messages?
    In fact I don't really understand the error output, so if someone could explain it to me, I think it would help.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.