This was originally an answer to the post "Arte.tv Plugin"
[http://forums.plexapp.com/index.php?showtopic=4843](http://forums.plexapp.com/index.php?showtopic=4843)
But I decided to start a new post.
Rongnan ask for a plugin for Canal Plus Player
Canal plus : [http://player.canalplus.fr/#/selection-can...incontournables](http://player.canalplus.fr/#/selection-canal/les-incontournables)
So, I'm having a look at the Canalplus player...
It's barely possible to do something. I just need a bit of help with XML parsing and Coding.
I'm a newbie, but I think I can help.
First,
We got the url of the XML that list all the different theme (this could the first menu of the plugin) :
[http://webservice.canal-plus.com/rest/bigplayer/initPlayer](http://webservice.canal-plus.com/rest/bigplayer/initPlayer)
Inside this one you can find :
<?xml version="1.0" encoding="UTF-8"?><br />
<INIT_PLAYER><br />
<RECHERCHE><br />
<PUB><br />
<PAVE>recherchep</PAVE><br />
</PUB><br />
</RECHERCHE><br />
<MES_VIDEOS/><br />
<THEMATIQUES><br />
<THEMATIQUE SELECTION_CANAL="OUI"><br />
<ID>3</ID><br />
<NOM>SELECTION CANAL</NOM><br />
<URL_RACINE>/pid1744-c-accueil.html?</URL_RACINE><br />
<COULEUR>#FFFFFF</COULEUR><br />
<RUBRIQUAGE><br />
<UNIVERS/><br />
</RUBRIQUAGE><br />
<PUB><br />
<INTERSTITIEL/><br />
</PUB><br />
<SELECTIONS><br />
<SELECTION><br />
<ID>1</ID><br />
<NOM>LES INCONTOURNABLES</NOM><br />
<PUB><br />
<PAVE>selectionp</PAVE><br />
</PUB><br />
</SELECTION><br />
</SELECTIONS><br />
</THEMATIQUE><br />
<THEMATIQUE><br />
<ID>4</ID><br />
<NOM>SPORT</NOM><br />
<URL_RACINE>/pid1747-c-sport.html?</URL_RACINE><br />
<COULEUR>#33FF33</COULEUR><br />
<RUBRIQUAGE><br />
<UNIVERS>SPORT</UNIVERS><br />
</RUBRIQUAGE><br />
<PUB><br />
<INTERSTITIEL/><br />
</PUB><br />
<SELECTIONS><br />
<SELECTION><br />
<ID>2</ID><br />
<NOM>LES INCONTOURNABLES</NOM><br />
<PUB><br />
<PAVE>sportp</PAVE><br />
</PUB><br />
</SELECTION><br />
<SELECTION><br />
<ID>73</ID><br />
<NOM>LES PLUS RECENTES</NOM><br />
<PUB><br />
<PAVE>sportp</PAVE><br />
</PUB><br />
</SELECTION><br />
<SELECTION><br />
<ID>72</ID><br />
<NOM>LES PLUS VUES</NOM><br />
<PUB><br />
<PAVE>sportp</PAVE><br />
</PUB><br />
</SELECTION><br />
<SELECTION><br />
<ID>3</ID><br />
<NOM>TOUT LE FOOTBALL</NOM><br />
<PUB><br />
<PAVE>sportp</PAVE><br />
</PUB>....etc...
With that we have to parse the and of the different .
For example : The "Theme" number 1 (1) will be entitled "LES INCONTOURNABLES" (LES INCONTOURNABLES)
or : The "Theme" number 73 (73) will be entitled "LES PLUS RECENTES" (LES PLUS RECENTES) (aka in English : the most recent.)
This will point to the second menu of the plugin which is the list of videos from a specific theme
The url then used for that is :
[http://webservice.canal-plus.com/rest/bigplayer/getMEAs/1](http://webservice.canal-plus.com/rest/bigplayer/getMEAs/1) (the 1 at the end is the ID of the Theme we want... it could have been of course 73 ;) )
inside this new xml you can find the different shows (called MEA here) :
<?xml version="1.0" encoding="UTF-8"?><br />
<MEAS><br />
<MEA><br />
<ID>243452</ID><br />
<TYPE>VOD STREAM</TYPE><br />
<INFOS><br />
<DESCRIPTION><br />
<![CDATA[Du lundi au vendredi retrouvez le meilleur de tous les sports partout dans le monde.]]><br />
</DESCRIPTION><br />
<NB_VUES>1399</NB_VUES><br />
<NOTE><br />
<AUTORISER>OUI</AUTORISER><br />
<MOYENNE>4</MOYENNE><br />
<NB_VOTES>5</NB_VOTES><br />
</NOTE><br />
<TITRAGE><br />
<TITRE><br />
<![CDATA[Zapsport]]><br />
</TITRE><br />
<SOUS_TITRE><br />
<![CDATA[19/05]]><br />
</SOUS_TITRE><br />
</TITRAGE><br />
</INFOS><br />
<MEDIA><br />
<IMAGES><br />
<GRAND>http://media.canal-plus.com/wwwplus/image/1/12/1/ZAPSPORT_EMISSION_GENERIQUE_1_image_H.jpg</GRAND><br />
<PETIT>http://media.canal-plus.com/wwwplus/image/1/12/1/ZAPSPORT_EMISSION_GENERIQUE_1_image_L.jpg</PETIT><br />
</IMAGES><br />
</MEDIA><br />
<RUBRIQUAGE><br />
<UNIVERS>SPORT</UNIVERS><br />
<RUBRIQUE>ZAPSPORT</RUBRIQUE><br />
<CATEGORIE>EMISSION</CATEGORIE><br />
</RUBRIQUAGE><br />
</MEA><br />
<MEA><br />
<ID>243393</ID><br />
<TYPE>VOD STREAM</TYPE><br />
<INFOS><br />
<DESCRIPTION><br />
<![CDATA[Le meilleur de toutes les chaînes, tous les jours.<br />
Emission du 19 mai 2009]]><br />
</DESCRIPTION><br />
<NB_VUES>24344</NB_VUES><br />
<NOTE><br />
<AUTORISER>OUI</AUTORISER><br />
<MOYENNE>4.06</MOYENNE><br />
<NB_VOTES>54</NB_VOTES><br />
</NOTE><br />
<TITRAGE><br />
<TITRE><br />
<![CDATA[Zapping]]><br />
</TITRE><br />
<SOUS_TITRE><br />
<![CDATA[19/05/09]]><br />
</SOUS_TITRE><br />
</TITRAGE><br />
</INFOS><br />
<MEDIA><br />
<IMAGES><br />
<GRAND>http://media.canal-plus.com/wwwplus/image/6/20/1/ZAPPING_EMISSION_090519_CAN_89460_image_H.jpg</GRAND><br />
<PETIT>http://media.canal-plus.com/wwwplus/image/6/20/1/ZAPPING_EMISSION_090519_CAN_89460_image_L.jpg</PETIT><br />
</IMAGES><br />
</MEDIA><br />
<RUBRIQUAGE><br />
<UNIVERS>DOCUS ET INFOS</UNIVERS><br />
<RUBRIQUE>ZAPPING</RUBRIQUE><br />
<CATEGORIE>EMISSION</CATEGORIE><br />
</RUBRIQUAGE><br />
</MEA><br />
<MEA><br />
<ID>243121</ID><br />
<TYPE>VOD PROG</TYPE><br />
<INFOS><br />
<DESCRIPTION>
So, here we can parse the infos of the many shows.
Example :
The show which ID is "243452" (243452) is entitled "Zapsport" ().
There is a description (),
and some thumbnails (Big (GRAND) and Small (PETIT)) (http://media.canal-plus.com/wwwplus/image/6/20/1/ZAPPING_EMISSION_090519_CAN_89460_image_H.jpghttp://media.canal-plus.com/wwwplus/image/6/20/1/ZAPPING_EMISSION_090519_CAN_89460_image_L.jpg).
There's no url for the video, and we need to parse another xml to find it.
this url is :
[http://webservice.canal-plus.com/rest/bigp...eosLiees/243452](http://webservice.canal-plus.com/rest/bigplayer/getVideosLiees/243452) (243452 at the end is the ID of the show :) )
Inside the xml we will find the url if the video :
<?xml version="1.0" encoding="UTF-8"?><br />
<VIDEOS><br />
<VIDEO><br />
<ID>243452</ID><br />
<TYPE>VOD STREAM</TYPE><br />
<INFOS><br />
<DESCRIPTION><br />
<![CDATA[Du lundi au vendredi retrouvez le meilleur de tous les sports partout dans le monde.]]><br />
</DESCRIPTION><br />
<NB_VUES>1420</NB_VUES><br />
<AUTEUR><br />
<![CDATA[CANAL+]]><br />
</AUTEUR><br />
<PARTIE>1</PARTIE><br />
<CONTENU_LIE><br />
<LIBELLE/><br />
<URL/><br />
</CONTENU_LIE><br />
<NOTE><br />
<AUTORISER>OUI</AUTORISER><br />
<MOYENNE>4</MOYENNE><br />
<NB_VOTES>5</NB_VOTES><br />
</NOTE><br />
<PUBLICATION><br />
<DATE>19/05/2009</DATE><br />
<HEURE>19:30:00</HEURE><br />
</PUBLICATION><br />
<TITRAGE><br />
<TITRE><br />
<![CDATA[Zapsport]]><br />
</TITRE><br />
<SOUS_TITRE><br />
<![CDATA[19/05]]><br />
</SOUS_TITRE><br />
</TITRAGE><br />
</INFOS><br />
<RUBRIQUAGE><br />
<UNIVERS>SPORT</UNIVERS><br />
<RUBRIQUE>ZAPSPORT</RUBRIQUE><br />
<CATEGORIE>EMISSION</CATEGORIE><br />
</RUBRIQUAGE><br />
<MEDIA><br />
<IMAGES><br />
<GRAND>http://media.canal-plus.com/wwwplus/image/1/12/1/ZAPSPORT_EMISSION_GENERIQUE_1_image_H.jpg</GRAND><br />
<PETIT>http://media.canal-plus.com/wwwplus/image/1/12/1/ZAPSPORT_EMISSION_GENERIQUE_1_image_L.jpg</PETIT><br />
</IMAGES><br />
<VIDEOS><br />
<BAS_DEBIT>rtmp://vod-fms.canalplus.fr/ondemand/videos/0905/ZAPSPORT_EMISSION_090519_AUTO_3152_43_video_L.flv</BAS_DEBIT><br />
<HAUT_DEBIT>rtmp://vod-fms.canalplus.fr/ondemand/videos/0905/ZAPSPORT_EMISSION_090519_AUTO_3152_43_video_H.flv</HAUT_DEBIT><br />
<HD>rtmp://vod-fms.canalplus.fr/ondemand/videos/0905/ZAPSPORT_EMISSION_090519_AUTO_3152_43_video_HD.mp4</HD><br />
</VIDEOS><br />
</MEDIA><br />
<PUB><br />
<PAVE>sportp</PAVE><br />
<BILLBOARD>sportb</BILLBOARD><br />
<HABILLAGE><br />
<VISUEL/><br />
<DESTINATION/><br />
</HABILLAGE><br />
</PUB><br />
</VIDEO><br />
</VIDEOS>
There you can find the various URL of the video.
a Low bandwidth version (rtmp://vod-fms.canalplus.fr/ondemand/videos/0905/ZAPSPORT_EMISSION_090519_AUTO_3152_43_video_L.flv)
a High bandwith version (rtmp://vod-fms.canalplus.fr/ondemand/videos/0905/ZAPSPORT_EMISSION_090519_AUTO_3152_43_video_H.flv)
and even a HD one ;) (rtmp://vod-fms.canalplus.fr/ondemand/videos/0905/ZAPSPORT_EMISSION_090519_AUTO_3152_43_video_HD.mp4)
And voila !
You just have to be aware of the accent and everything... french is a weird language !
I'm waiting for your help ! Thanks.

.
.