Video-clip applet

By Simon

Don’t you think it’s quite annoying to have to fire up your web browser and query Youtube just to find out the corresponding video-clip of your top favorite super song which is just currently playing in Amarok ?

Well I do, so here comes the video-clip applet  :)

A data-engine will fetch some video-clip info for the currently playing song from youtube, dailymotion and vimeo, order them and show them in the applet. The cool thing is that we can play it directly inside Amarok context view, a click on the image will append the video to the playlist, and then you can watch them directly in the context view

Here is a small video which shows the applet in action (no sound, sorry …)

And 2 screenshots :

Video-clip in action Video-clip in action

Any comment/question/proposition will be greatly appreciated as this stuff is still in the playground repository but is expected to reach trunk soon !

Tags:

25 Responses to “Video-clip applet”

  1. sxe Says:

    Hi, looks nice, i often wished to have a plugin like this. But why did you add the videos to playlist? Wouldn’t it be better to play it directly? Maybe you had a reason to do it like you did?

  2. heinz Says:

    To me it makes sense. You don’t want to play the video while you play your local track. An interesting feature would be “swap track” that replaces the current playlist item with the YouTube video.

    All in all it looks promising.

  3. Simon Says:

    This was discussed with some others developers, we didn’t know which was the best solution. If we start to play directly the video, we have to stop the currently playing songs etc… And with this solution, the global control works for the video (volume, stop pause etc)
    Anyway, I will probably add a right click menu on the image, which shows :
    1 – Add to playlist
    2 – Queue
    3 – Add to playlist and play

    And also automatically add and play on double click so that it will be easier to navigate :)

    Thx for you comment !

  4. Edney Matias Says:

    Awesome!

  5. sxe Says:

    sound realy good, can’t wait to see it.. nice work ..

  6. TheBlackCat Says:

    Great! This will be extremely useful.

    I think it would be cool to unify this with the visualization system (once it is working, after this year’s GSOC hopefully). You have a visualization playing but you want to watch a video instead. So you click a button in the visualization applet and it pulls up the list videos, you select one, and it plays where the visualization once was.

  7. ¡El poder de Amarok #2! « Fedoreando Says:

    [...] Enlace | Video-clip applet « Takahani’s Blog. [...]

  8. Video-clip applet for AmaroK2..a dir poco interessante!! « Crismon's Blog Says:

    [...] VIA | takahani.wordpress.com [...]

  9. Nikolaj Hald Nielsen Says:

    This is a very cool applet. Another cool thing is that it brings back the ability to play video podcasts directly within amarok. If playing a stream that is actually a video, it will be shown in this applet.

  10. Cyril Says:

    Yeah!

    Eat this, all of you “uuh, Amarok1 was way better!/”the new GUI is ugly”/”I don’t like the plasma stuff” whiners!

    Please bring this in 2.1.2!

  11. Dread Knight Says:

    Awesome! I used to envy totem a bit for that feature, since dragonplayer is rather lame atm. Great job dude.

  12. wilder Says:

    That’s really great, I just checked it out and it is truly amazing;

    The video seems to be a little sloppy if on powersave, it flickers a lot, and seems to jump back and forth; audio is fine, though

    • Simon Says:

      For this, I won’t be able to change this behavior, b/c it’s linked to Phonon::VideoWidget which is not optimized, sorry

  13. Jonny Says:

    Looks really promising, but would this not be a bit of a resource hog for those that don’t use it? Like memory and bandwidth?

    • Simon Says:

      You can enable or disable the applet, which will enable or disable the query thing. It’s just a plugin :)

  14. a thing Says:

    I just compiled Amarok from SVN but the video applet does not appear in the Add Applet menu. Do I have to change some cmake option to compile it or something?

    • Simon Says:

      Yop, for now it’s in the playground, so you need to build it from there, will be something like :
      cd amarok/src/playground
      mkdir build
      cd build
      ccmake .. (configure the install dir the same as amarok install dir)
      make
      sudo make install

      Any feed back will be appreciated :D

  15. d-fens_ Says:

    I would like to tets it, but i cant get playground to work – it doesn’t find -lamarok :( my current makeamarok.sh script:

    #!/bin/bash
    cd $HOME/kde/src/amarok
    svn up
    cd $HOME/kde/build/amarok
    cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde -DCMAKE_BUILD_TYPE=debugfull $HOME/kde/src/amarok/
    make install

    how can i add playground to it?

    • Simon Says:

      Not sure, but i think you need to do something like this
      cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde -DCMAKE_BUILD_TYPE=debugfull $HOME/kde/src/amarok/playground
      make install

      But not sure it will work because it’s expected to be built in
      $HOME/kde/src/amarok/playground/build

      Anyway, it will be merged in trunk as soon as 2.1.1 is tagged, IE in a few days/week …

      Otherwise, you can still copy the folder playground/src/context/applets/videoclip and playground/src/context/engines/videoclip in amarok/src/context/ …
      And modidy just a bit the cmakelist.txt (remove or add some ../..) and it will build.
      Or ask for help on irc, I’m usually there
      Good luck :)

  16. Антон Says:

    thanks this post. I made some adjustments

  17. ang3l Says:

    I’m sorry. I’ve been trying to find the video applet on google but it doesn’t show. I saw that you said to check in playground, but I don’t have that folder. I looked for it in usr/share/kde as well as in my home folder for kde.
    Can you help me out please?

  18. ang3l Says:

    Thank you soo much!

  19. Floh1111 Says:

    Hi,

    verry cool stuff!
    Have you ever thought about adding a small searchbar to the bottom/top of the applet?

Leave a Reply