foreground noise

free software, free society

Totem Arte+7 Plugin

with 53 comments

During the Christmas holiday I wrote a Totem plugin to watch video streams from the Arte+7 website. Sadly this service is only available for IPs from Germany, France, Belgium and Switzerland. Guillaume Desmottes released a similar plugin for Moovida some days ago, which I was not aware of when I started my project. Arte is the only TV channel that I watch regularly. I like their documentaries, the European news flash and the music magazine ‘Tracks’ (available in German or French).

You can pull it from here: gitorious.org/totem-plugin-arte. It’s probably the first useful Totem plugin implemented in Vala. Your feedback is very welcome.

Totem Arte Plugin

Written by Simon Wenner

December 30, 2009 at 10:31 pm

Posted in gnome

53 Responses

Subscribe to comments with RSS.

  1. wow! this is pretty cool!
    what is needed to compile this?
    ubuntu packages anyone? 🙂

    z

    December 30, 2009 at 11:04 pm

    • There is no release available yet. But it’s very easy to compile. You can install it to ~/.local/share/totem/plugins/ Details can be found in the README file.

      Simon Wenner

      December 30, 2009 at 11:17 pm

  2. does not build:

    [goetz@n5 mainline (master)]$ make
    valac -C arteplus7.vala –thread –pkg libsoup-2.4 –pkg gee-1.0 –pkg totem –vapidir=./deps
    arteplus7.vala:175.53-175.61: error: Expected initializer of type `GLib.MarkupParserTextFunc’ but got `ArteParser.proc_text’
    MarkupParser parser = {open_tag, close_tag, proc_text, null, null};
    ^^^^^^^^^
    arteplus7.vala:175.22-175.74: error: expression type not allowed as initializer
    MarkupParser parser = {open_tag, close_tag, proc_text, null, null};
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    arteplus7.vala:176.47-176.52: error: The name `parser’ does not exist in the context of `ArteParser.parse’
    var context = new MarkupParseContext (parser, MarkupParseFlags.TREAT_CDATA_AS_TEXT, this, null);
    ^^^^^^
    Compilation failed: 3 error(s), 0 warning(s)
    make: *** [all] Fehler 1

    Götz

    December 30, 2009 at 11:31 pm

    • What’s your Vala version? Vala >= 0.7.8 is needed.

      Simon Wenner

      December 30, 2009 at 11:39 pm

      • I have vala 0.7.9.

        Götz

        December 30, 2009 at 11:43 pm

    • Thanks for testing it! A paramter changed in the bindings. I commited a fix. Now Vala >= 0.7.9 is needed.

      Simon Wenner

      December 31, 2009 at 12:22 am

  3. Geat ! sadly, compilation failed here (ubuntu karmic 64) :

    valac -C arteplus7.vala –thread –pkg libsoup-2.4 –pkg gee-1.0 –pkg totem –vapidir=./deps
    arteplus7.vala:175.53-175.61: error: Expected initializer of type `GLib.MarkupParserTextFunc’ but got `ArteParser.proc_text’
    MarkupParser parser = {open_tag, close_tag, proc_text, null, null};
    ^^^^^^^^^
    arteplus7.vala:175.22-175.74: error: expression type not allowed as initializer
    MarkupParser parser = {open_tag, close_tag, proc_text, null, null};
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    arteplus7.vala:176.47-176.52: error: The name `parser’ does not exist in the context of `ArteParser.parse’
    var context = new MarkupParseContext (parser, MarkupParseFlags.TREAT_CDATA_AS_TEXT, this, null);
    ^^^^^^
    Compilation failed: 3 error(s), 0 warning(s)
    make: *** [all] Erreur 1
    zsh: exit 2 make

    Olivier.

    nemolivier

    December 30, 2009 at 11:38 pm

    • here, my vala version is 0.7.9-1 from awn ppa.

      nemolivier

      December 30, 2009 at 11:43 pm

      • ok, mine is Vala 0.7.8. I have to look into that problem.

        Simon Wenner

        December 30, 2009 at 11:47 pm

    • I commited a patch. Thanks for testing.

      Simon Wenner

      December 31, 2009 at 12:23 am

      • Thanks. Watching Arte+7 now.

        Götz

        December 31, 2009 at 12:29 am

  4. Hi, and thanks! I was able to compile & install without problems on Ubuntu karmic 32-bit. And the plugin is working just fine for me with Arte français.

    The vala compiler package was called valac rather than just vala which is in the README.

    Otherwise though, everything seems to be working fine. Thank you, this is a very nice addition for totem.

    It would be neat to know how many days of the +7 have passed to know how many opportunities there are to see a given program, would that be possible? Of course, it’s easy to look with a web browser, too.

    Happy New Year!

    anon

    December 31, 2009 at 12:11 am

    • Thanks for the feedback.I patched the Readme. Displaying the time that is left is possible. I’m just unsure where to place it. A description would be nice too… maybe as a tooltip.

      Simon Wenner

      December 31, 2009 at 12:31 am

  5. Just a little correction: Arte+7 seems to be available in Austria too.

    Dominik

    December 31, 2009 at 6:30 am

    • Thanks, I will add Austria.

      Simon Wenner

      December 31, 2009 at 3:37 pm

  6. Thank you. Very cool plugin.

    It throws an error on compiling, but I can install and use it nevertheless.

    (Ubuntu Karmic, valac 0.7.9 from ppa)

    valac -C arteplus7.vala –thread –pkg libsoup-2.4 –pkg gee-1.0 –pkg totem –vapidir=./deps
    gcc -shared -fPIC `pkg-config –cflags –libs glib-2.0 libsoup-2.4 gee-1.0 gtk+-2.0 totem-plparser` -o libarteplus7.so arteplus7.c -I./deps -DGETTEXT_PACKAGE=”\”totem-arte\””
    arteplus7.c: In function ‘arte_parser_parse’:
    arteplus7.c:728: warning: assignment from incompatible pointer type
    arteplus7.c: In function ‘_arte_plugin_callback_select_video_in_tree_view_gtk_tree_view_row_activated’:
    arteplus7.c:1212: warning: passing argument 2 of ‘arte_plugin_callback_select_video_in_tree_view’ from incompatible pointer type
    arteplus7.c:300: note: expected ‘struct GtkWidget *’ but argument is of type ‘struct GtkTreeView *’

    Benny

    December 31, 2009 at 12:19 pm

    • These warnings are minor bugs in the Vala compiler. They will be fixed in Vala 1.0. Don’t worry. 🙂

      Simon Wenner

      December 31, 2009 at 3:35 pm

  7. Hi, thank you for this useful plugin !

    I manage to package it for karmic i386.
    See here : http://malaria.perso.sfr.fr/

    It’s hacky (first time I ever package something) but it seems to work.

    Malaria

    December 31, 2009 at 2:05 pm

    • Thanks. You may add the valac dependency to the “depends” section as well.

      Benny

      December 31, 2009 at 2:08 pm

      • It’s a build depend.
        I remove it from my computer and the binary still work.

        Malaria

        December 31, 2009 at 2:13 pm

  8. Forget to mention that I had to hack the make file (for adding the DESTDIR variable) and I also manage to install it into /usr/lib/totem/plugins/arte (this way the plugin is available for all users)

    Malaria

    December 31, 2009 at 2:10 pm

  9. Works fine here (Ubuntu Karmic Koala), however i didn’t find vala 0.7.9 in the awn PPA as stated by nemolivier (thereis a vala here but it is 0.7.7), but in the vala PPA.

    Great job anyway !

    Zanko

    December 31, 2009 at 2:13 pm

  10. This is great!
    I installed the updates from ppa:vala-team/ppa and everything worked fine.
    Very usefull plugin.

    Martin

    January 1, 2010 at 1:33 pm

  11. I have prepared a Mandriva package, I’ll submit it as soon as there is an “official” release from you.

    I have one suggestion for improvement: a search field would be useful for me.

    Götz

    January 1, 2010 at 1:39 pm

    • I think that language and quality settings should go into a plugin setting dialog, because we usually don’t change these often. And this way there will be more space for a potential search field.

      What do you think ?

      Malaria

      January 1, 2010 at 5:03 pm

      • Yes, that’s also the schema that I had in mind. But fist we need to save the plugin state in gconf or better dconf (Gsettings). Patches are welcome 🙂

        Simon Wenner

        January 1, 2010 at 7:29 pm

  12. I set up a ppa for this plugin here :
    https://launchpad.net/~malaria/+archive/ppa

    The good point is that an amd64 package is now available.
    (I will try to keep it updated)

    Malaria

    January 1, 2010 at 9:23 pm

  13. I now get an error message “Location not found.” when trying to watch a video with the plugin, with the following output in the console :
    Could not read packet header: Success
    ** Message: no file info
    ** Message: Error: Resource not found.
    gstrtspsrc.c(3832): gst_rtspsrc_send (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
    Not Found

    Zanko

    January 1, 2010 at 9:27 pm

    • Has it ever worked? mms and wmv is needed. Have you installed gstreamer-plugins-bad and -ugly?

      Simon Wenner

      January 2, 2010 at 1:26 pm

      • It worked fine yesterday, and… it work again. I haven’t done anything, not even restarting my session since. Don’t understand.

        I tried more than once before bothering you, restarting totem many times and it keeped saying me this. And now, I can’t reproduce, while having done nothing since (or I don’t see what)… Sorry…

        Zanko

        January 2, 2010 at 5:02 pm

  14. works great! thanks!
    Is it possible to write a plugin for streaming content of the pro7 website?

    z

    January 2, 2010 at 2:22 pm

  15. […] Arte+7-Plugin für den Gnome-Mediaplayer Totem […]

  16. Thanks for your effort with the plugin! It works great on amd64.

    A nice feature would be to list the tags, runtime and duration of each broadcast.

    jnns

    January 26, 2010 at 5:54 pm

  17. Thanks for the release, totem-plugin-arte is now in Mandriva Cooker and in Mandriva 2010.0 backports.

    Götz

    February 16, 2010 at 11:28 am

    • Great! Is there a link I could add to my page?

      Simon Wenner

      February 16, 2010 at 1:53 pm

  18. No, there is no link, users can simply install it with the distribution’s installer urpmi. They just need to enable the backports repository.

    Götz

    February 16, 2010 at 1:55 pm

  19. […] Thanks to everyone who tested it, sent me feedback and patches. Notable changes since my last post: […]

  20. Hi Simon.
    This is very interesting. I was also thinking about creating a plugin to watch lastest news in spanish media websites 🙂
    Good work!

    Pablo Castellano

    February 16, 2010 at 9:24 pm

  21. Thank you very much!

    Very good work!

    And thanks Arte too!

    Boke

    March 17, 2010 at 8:23 pm

  22. Very Good!

    Thank you very much!

    dge

    April 16, 2010 at 7:35 am

  23. Great job!!! very useful plugin :))

    Milan

    April 18, 2010 at 7:07 am

  24. Thanks a lot! Nice job!

    Yann

    April 20, 2010 at 9:33 pm

  25. Great plugin.

    Would love to have a summary of the video content with each thumbnail. (like they do it on the website.)

    Thank you.

    Juego

    May 26, 2010 at 2:14 pm

    • Thanks.

      Version 0.8.4 provides a ‘teaser’ text in the mouse-over message of the image. That’s all I get from the video feed.

      Simon Wenner

      May 26, 2010 at 8:28 pm

  26. Best video plugin ever, instructions for debian and ubuntu for french speakers here : http://forum.ubuntu-fr.org/viewtopic.php?id=369659

    kyncani

    June 1, 2010 at 4:00 pm

  27. Thanks a lot, it’s great ! Arte was the only channel that I missed since I have no tv.

    jeyenkil

    June 30, 2010 at 11:55 am

  28. hello,

    I would like to share with the developer in the links of videos that are “mms ://… .Wmv” always gives the same message in English (my French, not understand) and it is impossible to see this videos links via vlc or other.

    Thank you, goodbye …

    veve-mao

    July 12, 2010 at 5:17 pm

  29. Ein kleiner Hinweis: Das Plugin ist mittlerweile in den Ubuntu Paketquellen enthalten! Siehe
    http://wiki.ubuntuusers.de/Totem/Plugins

    info

    July 4, 2011 at 9:15 pm

  30. Thank you very much for this plugin! On 11.10 it took me less than a minute to install it and… wow!
    Just wonderful! You are the best!

    Jessica

    April 2, 2012 at 4:34 pm

    • Thanks. I’m glad you like it. 🙂

      Simon Wenner

      April 2, 2012 at 5:09 pm

  31. […] Totem Arte provider Plugin This plugin allows you to browse the freely available video streams from Arte. […]

  32. Hello,

    it seems that arte has changed their URL, is it possible to update it?

    thomas

    August 1, 2013 at 9:06 am

    • We are aware of the problem and we are working on a new release. Please be patient.

      Simon Wenner

      September 6, 2013 at 7:57 pm


Leave a reply to dge Cancel reply