Giter Site home page Giter Site logo

mfpvideoplayer's Introduction

MFP Accessible Video Player

The MFP Video Player is a project leading by the Multimedia France Production Ltd (a subsidiary of the French group France Télévisions) that conceived the player, in collaboration with Access42 Ltd that leaded the developments. The accessibility has been checked by the French Association BrailleNet that delivered the AccessiWeb Label testifying the MFP Video Player code is compliant with the Web Content Accessibility Guidelines (WCAG 2) at level double A (AA), and thus usable by any user regerdless one's abilities.

The MFP Video Player project is a fork of videojs <http://www.videojs.com/> to make it accessible and add some options useful for captionning and audiodescription.

The initial project (videojs) was under an Apache2 license, and the new project embed the JS Mootools library under the MIT license. Both licenses are compatible with the GPL 3 license, which is the license of the MFP video Player. See the FSF page about licenses compatibilities with the GPL <https://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses> for more info.

Intégration du lecteur


Le code HTML du lecteur est limité à l'élément div avec un id "player" ; ci-dessous un code "type" :

Placez ce code à l'endroit souhaité dans la page où le lecteur doit être intégré.

Enfin, dans l'élément head (entre les balises et ) de la page, un appel à des ressources externes est requis :

<script src="client/scripts/settings.js" type="text/javascript"></script> <script src="client/scripts/mootools-core-1.4.5-full-nocompat-yc.js" type="text/javascript"></script> <script src="client/scripts/mootools-more-1.4.0.1.js" type="text/javascript"></script> <script src="client/scripts/video-js/video.dev.js" type="text/javascript"></script> <script src="client/scripts/subtitles.js" type="text/javascript"></script> <script type="text/javascript"> window.addEventListener('DOMContentLoaded', function(event) { videojs(video.getAttribute('id'), { preload: 'auto' }, function () { this.addClass('video-js'); this.addClass('vjs-default-skin'); }); }, false); </script> Note : selon l'emplacement de ces ressources externes, les chemins (src des éléments script et href des éléments link) peuvent être changés.

Mise en place des sous-titres


Dans l'élément video (entre les balises ), ajoutez pour chaque fichier de sous-titres la ligne de code suivante :

Et complétez le code en suivant les règles suivantes : - label permet de donner un intitulé au fichier de sous-titres : cette intitulé sera repris dans la liste déroulante du panneau des sous-titres ; - src permet d'indiquer où se trouve le fichier de sous-titres ; - srclang permet d'indiquer la langue des sous-titres ; - data-transcription permet d'indiquer où se trouve un éventuel fichier de transcript (à télécharger).

Exemple pour un fichier de sous-titres en français intitulé "Français" accompagné d'un transcript :

Notes :

  • en l'absence de sous-titres, aucune ligne <track ... /> ne doit être ajoutée : le bouton ST sera alors absent.
  • en l'absence de transcript (à télécharger), data-transcription ne doit pas être renseigné : le lien "Télécharger le transcript" ne sera alors pas proposé.

Mise en place de l'audiodescription


Directement après l'élément video (balise ), ajoutez la ligne de code suivante : Et complétez le code en suivant la règle suivante :

  • src permet d'indiquer où se trouve le fichier de l'audiodescription.

Note :

  • en l'absence d'audiodescription, n'ajoutez pas cette ligne de code : le bouton AD sera alors absent.

mfpvideoplayer's People

Contributors

jpv66 avatar

Watchers

James Cloos avatar Florian D. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.