D. Joe 397f3b2e88 | 4 years ago | |
---|---|---|
.. | ||
activity | 4 years ago | |
css | 4 years ago | |
icons | 4 years ago | |
images | 4 years ago | |
js | 4 years ago | |
lib | 4 years ago | |
.gitattributes | 4 years ago | |
.gitignore | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
activity.py | 4 years ago | |
app.js | 4 years ago | |
constant.js | 4 years ago | |
dialog.js | 4 years ago | |
enyo.py | 4 years ago | |
index.html | 4 years ago | |
init.js | 4 years ago | |
item.js | 4 years ago | |
package.json | 4 years ago | |
searchfield.js | 4 years ago | |
setup.py | 4 years ago | |
sugar.js | 4 years ago | |
util.js | 4 years ago |
Video Viewer is a viewer for a set of videos hosted on a server. Two set of videos are linked natively with the activity: Khan Academy and Canopé. But you're able to adapt easily the activity to point to your own set of videos.
Video Viewer is a Sugar-Web activity, it could work both into Sugar Learning platform and in Sugarizer.
A standard set of libraries is load by the activities on the URL http://sugarizer.org/content/videos.json. You could replace this URL by updating the variable constant.librariesUrl
in the file constant.js. Note that this URL is called with a lang
parameter set with the current language.
This file is an array of libraries:
[
{
"name": "khanacademy",
"title": "Khan Academy",
"image": "images/khanacademy.png",
"database": "http://sugarizer.org/content/khan.php?lang=%language%",
"videos": "http://s3.amazonaws.com/KA-youtube-converted/%id%.mp4/%id%",
"images": "http://s3.amazonaws.com/KA-youtube-converted/%id%.mp4/%id%.png"
},
{
"name": "canope",
"title": "Canopé",
"image": "images/canope.png",
"database": "http://sugarizer.org/content/canope.php",
"videos": "https://videos.reseau-canope.fr/download.php?file=lesfondamentaux/%id%_sd",
"images": "https://www.reseau-canope.fr/lesfondamentaux/uploads/tx_cndpfondamentaux/%image%.png"
}
]
You could dynamically add your own library using the library dialog (click on the library icon on the toolbar). You should provide to the dialog the URL of a JSON file that include an object with all these properties.
Here what means each field:
%language%
string into the URL that will be replaced by the language ISO 639-1 code of the current user.%id%
, %image%
, %category%
, %title%
in the URL (see below). They will be replaced by values of these fields for the clicked video.%id%
, %image%
, %category%
, %title%
in the URL (see below). They will be replaced by values of these fields for the video.To be able to display a library, the VideoViewer activity, you need to provide the content of the library. You could do that with the %database%
field. This field must point to an URL that return a JSON file describing all items in the library. Here is a description of this JSON file:
[
{"id":"...", "title":"...", "image":"...", "category": "..."},
{"id":"...", "title":"...", "image":"...", "category": "..."},
{"id":"...", "title":"...", "image":"...", "category": "..."},
...
]
Each line represent one video, fields are:
To compute the exact URL of the video and of the preview image, the activity will use the videos
and images
URL provided in the library settings and will replace %id%
, %category%
, %image%
and %title%
by value of these properties for the current video. So it's up to you to decide which field you need. For example, if you have a look on Khan Academy library settings you could see that: no %category%
is present and that %image%
is not used because image preview URL is computed using only video the %id%
field.
Note that items will be displayed by the VideoViewer activity in the order of your JSON file. So it's up to you to choose the optimal order for your user.
Finally, it's important to say that the JSON file for the database is not necessarily static, it could be generated dynamically.
All Khan Academy videos are under Khan Academy Terms of Service.
All Canopé videos are under Canopé CNDP licence. Detailed credits follow:
M. Jean-Marc Merriaux, directeur général de Canopé-CNDP Téléport 1, 1 Avenue du Futuroscope, CS 80158, 86961 FUTUROSCOPE CEDEX, Chasseneuil-du-Poitou.
Canopé
Directrice de l'édition transmédia et de la pédagogie : Michèle Briziou Directeur délégué à l'édition transmédia : Thomas Schmitt, Jérôme Lecanu Directrice déléguée à la pédagogie : Véronique Billard
Joël Benitez, Louisette Caux, Audrey David, Cécile Diaz, Isabelle Renault, Michelle Ros Dupont, Patricia Roux.
Bernard Clouteau, Catherine Goupil, Bernard Kenkle, Guillaume Menesplier, Julien Philipponneau, Laura Zornitta.
Vanessa Grunberg, Nathalie Mars, Pascal Mirleau, Tony Scott.
Xavier Achard, Emmanuel Bourdeau, Marie-Odile Dupont, Simon Gattegno, Virginie Héricourt, Romuald Herrero, Franck Hueso, Nicolas Jeanneau, Hervé Turri, Anna Souchaud.
Julie Betton, Nathalie Bidart, Aurélien Brault, Céline Cholet, Cécile Laugier, Julie Lavalard, Laetitia Pourel, Sophie Roue, Marguerite de la Taille.
Jean-Jacques Lonni
Thomas Cussonneau
Bruno Caillaud
Aurélien Jean
Marie-Dominique Bauden, Marc Bégaries, Patricia Bégaries, Céline Berger, Claire Bézagu, Patrick Binisti, Lisbeth Brivois, Sophie Caux, Claudine Demiot, Renée Germe, Véronique Granville, Josiane Grenet, Jean-Louis Etienne, Marie-José Lantam, Bertrand Lebot, Marie-José Paquet, Jérôme Penot, Catherine Richet, Michelle Ros-Dupont, Geneviève Roy, Karine Savigny, Fabienne Schramm, Pascale Vergnaud, Marie-Laure Villedary, Marie-Pierre Visentin.
Yvan Amar, Dominique Amouyal, Sérine Barbin, Hervé Benedetti, Agnès Bidaud, Olivier Blond, Virginie Boda, Héloïse Capoccia, Fabien Champion, Nicolas Chrétien, Sabine Cipolla, Philippe Clerc, Camille Couasse, Catherine Cuenca, Vincent Détré, Jean-Marc Dobel, Marie Eynard, Marine Gacem, Vanessa Grunberg, Catherine Guillot-Bonte, Claire Kanny, Emmanuel Leduc, Jean-Jacques Lonni, Max Mamoud, Marie Manand, Mathilde Maraninchi, Nathalie Mars, Thomas Martinez, Pascal Mirleau, Diane Morel, Antonin Poiré, Christophe Poujol, Alexandre Reverend, Nathalie Reznikoff, Jean-Christophe Ribot, Benjamin Richard, Sylvie Rivière, David Robert, Armand Robin, Nicolas Robin, Françoise Ruscak, Tony Scott, Georges Tzanos, Patricia Valeix, Sébastien Vignaud, Séverine Vuillaume.
Marie-Odile Dupont
Quentin Baillot, Nathalie Blanc, Olivier Blond, Joëlle Bobbio, Ségolène Bouët, Marc Brunet, Pauline Brunner, Arthur Dumas, Nathalie Kanoui, Magali Lange, Sandrine Le Berre, Frederic Le Bret, Antoine Lelandais, Bernadette Le Sachet, Sylvain Levitte, Johanna Nizard, Sébastien Perez, Bénédicte Rivière, Céline Ronté.
Paul-Etienne Bourde, Lionel Brousse, Anne Calandre, Davy Drouineau, Fabrice Fouquet, Joanna Lurie, Christophe Nardi, Vannaseng Phimmasone, Christelle Soutif, Alexandrine Wagner.
Amopix, Atomic soom, Cross river, Emakina, La Netscouade, La générale de production, Les Films du Poisson Rouge.
Au jour le jour, Vega Prod.
MFP