| author | cavaliet |
| Wed, 18 Apr 2012 13:37:00 +0200 | |
| changeset 869 | faae5df935de |
| parent 684 | 9c5f6d165a0f |
| permissions | -rw-r--r-- |
|
669
28665cc1fb10
added modest docs about implementing a compatible player.
hamidouk
parents:
diff
changeset
|
1 |
API qu'un player doit implémenter pour espérer être supporté facilement par le |
|
28665cc1fb10
added modest docs about implementing a compatible player.
hamidouk
parents:
diff
changeset
|
2 |
metadataplayer : |
|
28665cc1fb10
added modest docs about implementing a compatible player.
hamidouk
parents:
diff
changeset
|
3 |
|
|
28665cc1fb10
added modest docs about implementing a compatible player.
hamidouk
parents:
diff
changeset
|
4 |
En gros, il faut une api similaire à celle du jwplayer |
|
28665cc1fb10
added modest docs about implementing a compatible player.
hamidouk
parents:
diff
changeset
|
5 |
(cf : http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference). |
|
28665cc1fb10
added modest docs about implementing a compatible player.
hamidouk
parents:
diff
changeset
|
6 |
|
|
684
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
7 |
Cependant on n'a besoin que des fonctions suivantes : |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
8 |
- play() - sans argument. Met le player en lecture, s'il était en pause, et ne fait rien autrement |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
9 |
- pause - sans arguments. Pause le player s'il était en train de lire |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
10 |
- seek(duree_secondes) - Met la vidéo à duree_secondes depuis le début |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
11 |
- getMute - sans arguments. Retourne true si le player est muté, false sinon |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
12 |
- setMute - prend un booléen comme argument, coupe le son s'il est à true, et l'active s'il est à false |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
13 |
- getPosition - sans arguments. Retourne le nombre de seconds ecoulées depuis le début del |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
14 |
la vidéo |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
15 |
|
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
16 |
On a également besoin que le player ait des callbacks pour les évenements suivants : |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
17 |
- quand le lecteur a fini d'être initialisé (onReady pour jwplayer) |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
18 |
- declenché à chaque fois que le player change d'image (onTime) |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
19 |
- declenché quand la lecture de la vidéo commence (onPlay) |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
20 |
- declenché quand la vidéo est mise sur pause (onPause) |
|
9c5f6d165a0f
added some docs for people who would like to integrate the mdp with
hamidouk
parents:
669
diff
changeset
|
21 |
- declenché quand l'utilisateur seek (onSeek) |