Embed et validation w3c

Fermé
arez92 - 20 janv. 2009 à 18:48
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 - 27 janv. 2009 à 03:06
Bonjour,

comment integrer la balise object apres plusieur tentative cela ne fonctionne toujour

pouvez m'aider

merci,


voici mon code:

<embed style="width:435px; visibility:visible; height:270px;" allowScriptAccess="never" src="http://www.musicplaylist.us/mc/mp3player-othersite.swf?config=http://www.musicplaylist.us/mc/config/config_black.xml&mywidth=435&myheight=270&playlist_url=http://www.musicplaylist.us/loadplaylist.php?playlist=57041785" menu="false" quality="high" width="435" height="270" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" pluginspage="https://get.adobe.com/flashplayer/" border="0"/>

37 réponses

voila
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
26 janv. 2009 à 03:08
OK

de quel taille doivent etre les videos !?
0
sa n'a pa d'importance sinon comme c'etai sa me convener la taille
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
26 janv. 2009 à 03:24
voila tu remplace TOUT LES fichiers par ceux la !! meme le player swf c est un nouveaux !!!

j ai mis une taille standard de 400 X 300 pour la video !!

Tes fichiers
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
cela fonctionne ta juste changer la taille du lecteur ? sinon explique moi stp
sinon sa n'affiche pas le sous titre est ce normal?

je veux dire le titre puis en dessous le nom du clip ne s'affiche pas il faut jouer avec les taille?


merci
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
26 janv. 2009 à 03:56
NON ajoute une ligne dans le xml !!

la je l ai fais que pour le 1 <annotation>1000 meere</annotation> tu rajoute des anotations
<playlist version="1" xmlns="http://xspf.org/ns/0/">
	<trackList>
    <track>
      <title>Tokio Hotel</title>
      <creator>1000 meere</creator>
      <location>tokiohotel1000meere.flv</location>
      <info></info>
      <annotation>1000 meere</annotation>
    </track>
    <track>
      <title>Tokio Hotel</title>
      <creator>Der Letzte Tag</creator>
      <location>Der_Letzte_Tag.flv</location>
      <info></info>
    </track>
    <track>
      <title>Tokio Hotel</title>
      <creator>rette mich</creator>
      <location>rette_mich.flv</location>
      <info></info>
    </track>
    <track>
      <title>Tokio Hotel</title>
      <creator>shrei</creator>
      <location>shrei.flv</location>
      <info></info>
    </track>
    <track>
      <title>Tokio Hotel</title>
      <creator>an deiner seite</creator>
      <location>an_deiner_seite.flv</location>
      <info></info>
    </track>
    <track>
      <title>Tokio Hotel</title>
      <creator>through the monsoon</creator>
      <location>through_the_monsoon.flv</location>
      <info></info>
    </track>
  </trackList>
</playlist>


PS SI tu veux diminuer la taille de la playlist , (par default elle fait 200px de haut) tu ajoute pour 100px par exemple

s2.addVariable("file","playlist.xml&playlistsize=100&playlist=bottom");

et tu diminue la hauteur total de 500 a 400 dans ce cas

OU TU AJOUTE DES FLASHVARS ! je trouve ca plus clair !
<script type="text/javascript">
var s2 = new SWFObject("mediaplayer.swf","playlist","400","400","9");
s2.addParam("allowfullscreen","true");
s2.addVariable("file","playlist.xml");/*JUSTE LAISSER LA PLAYLIST*/
s2.addVariable("playlistsize","100");/*RAJOUTER POUR LA HAUTEUR DE 100*/
s2.addVariable("playlist","bottom");/*DEPLACE ICI EN FLASHVARS*/
s2.addVariable("backcolor","0x000000");
s2.addVariable("frontcolor","0xCCCCCC");
s2.addVariable("lightcolor","0x557722");
s2.write("player2");
</script>
0
oui c'est mieux sinon comment faire dans la playlist pour qu'il n'y est pas d'espace entre chaque titre la ,on saute une case ? la ou il y a le titre c'est en noir et en dessous c 'est vide et c gris je voudrais enlever cette espace

merci d'avance
0
ou sinon la rétrécir j'ai l'impression que c'est une seul case avec deux couleur merci
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
26 janv. 2009 à 05:18
C est tout simplement qu il y as 2 couleurs dans la div !!! et c est assez complex a changer !
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
26 janv. 2009 à 06:37
si tu me passe des petites photo de 200 X 150 pour chaque titre je t en fais un sympa ! avec les petite photo dans la playlist et une skin un peu + design
0
ses sympa mes tu pourrais pas m'expliquer plutôt? et aussi y'a t'il une variable pour les bordure de tous le lecteur? j'ai essayer border color mes sans +

merci
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
27 janv. 2009 à 01:50
non il faut faire une skin swf !!!

voila tout les flashvars possible sur ce player ! ( en englais , mais bon ! )

File properties

    * author (undefined): 
author of the video, shown in the display or playlist.

    * date (undefined):
 publish date of the media file.

    * description (undefined):
 text description of the file.

    * duration (0):
 duration of the file in seconds.

    * file (undefined):
 location of the mediafile or playlist to play.

    * image (undefined): 
location of a preview image; shown in display and playlist.

    * link (undefined): 
url to an external page the display, controlbar and playlist can link to.

    * start (0): 
position in seconds where playback has to start.

    * tags (undefined):
 keywords associated with the media file.

    * title (undefined):
 title of the video, shown in the display or playlist.

    * type (undefined):
 this is determines what type of mediafile this item is, and thus which model the player should use to determine playback. Supported values are sound, image, video, youtube, camera, http, lighttpd or rtmp. More info here. 

All these file properties can be loaded as flashvars into the player, but they can also be assigned to every entry in playlists.
Colors

    * backcolor (undefined): 
background color of the controlbar and playlist. This is white with the default skin.

    * frontcolor (undefined): 
color of all icons and texts in the controlbar and playlist.

    * lightcolor (undefined): 
color of an icon or text when you rollover it with the mouse.

    * screencolor (undefined): 
background color of the display. 

All these colors are in so-called hexadecimal values as is common for web colors. 

    * controlbar (bottom): 
position of the controlbar. Can be set to bottom, over and none.

    * height (400): 
height of the display in pixels. When resizing is set to false, this is the overall player height.

    * playlist (none): 
position of the playlist. Can be set to bottom, over, right or none.

    * playlistsize (180): 
when below this refers to the height, when right this refers to the width of the playlist.

    * skin (undefined): 
location of a SWF file with the player graphics. Here's a skinning tutorial, an overview of supported elements and a couple of example skins.

    * width (280): width of the display in pixels. When resizing is set to false, this is the overall player width. 

Behaviour

    * autostart (false): 
automatically start the player on load.

    * bufferlength (1): 
number of seconds of the file that has to be loaded before starting. Set this to a low value to enable instant-start and to a high value to get less mid-stream buffering.

    * displayclick (play):
what to do when one clicks the display. Can be play, link, fullscreen, none, mute, next. When set to none, the handcursor is also not shown.

    * fullscreen (false): 
fullscreen state of the player. This is a read-only flashvar, useful for plugins.

    * icons (true): 
set this to false to hide the play button and buffering icon in the middle of the video.

    * item (0): 
playlistitem that should start to play. Use this to set a specific start-item.

    * linktarget (_blank):
 browserframe where the links from display are opened in. Some possibilities are '_self' (same frame) , '_blank' (new browserwindow) or 'none' (links are ignored in the player, so javascript can handle it).

    * logo (undefined): 
location of an external jpg, png or gif image to show in a corner of the display. With the default skin, this is top-right, but every skin can freely place the logo.

    * mute (false): 
mute all sounds on startup. Is saved in a cookie.

    * quality (true): enables smoothed playback. This sets the smoothing and deblocking of videos on/off. Is saved in a cookie.

    * repeat (none):
 set to list to play the entire playlist once, to always to continously play the song/video/playlist and to single to continue repeating the selected file in a playlist.

    * resizing (true): 
by default, the player will resize itself to fill the entire canvas. Set this to false if you don't want the player to resize (e.g. when you load the player in a Flex application).

    * shuffle (false): shuffle playback of playlist items.

    * state (IDLE): 
current playback state of the player. Can be IDLE (no file loaded), BUFFERING (loading a file), PLAYING (playing a file), PAUSED (pausing playback; loading continues), COMPLETED (same as IDLE, but the file is player and loaded completely).

    * stretching (uniform): 
defines how to resize images in the display. Can be none (no stretching), exactfit (disproportionate), uniform (stretch with black borders) or fill (uniform, but completely fill the display).
    * volume (90): 
startup volume of the player. Can be 0 to 100. Is saved in a cookie. 
0
oki merci donc exemple d'utilisation avec image (undefined): sa donne s2.addVariable("image","undefined")

sinon je t demander de m'expliquer car j'ai le logiciel adobe flash cs3 professionnal vu que je n'est jamais manipuler c'est pour sa que je voulais quelque petite explication


merci
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
27 janv. 2009 à 02:35
non ca n a rien a voir avec de l as !!

les flashvars peuvent etre donner par js dans le code de la page comme tu l a mis !
s2.addVariable("image","undefined") 
mais dans ce cas il faut donner une valeur ( donc l url d une image ) pour avoir la image en preview , mais les flashvars peuvent equalement etrent passer par un XML c est a dire la playlist !!

pour simplifier on ne vas passer dans le xml que les valeurs propre a celle ci et laisser les variable de config general dans le code !!

mais un exemple interessant de "customisation d une variable " par la playlist est l ajout d une petite photo
differente a un ou plusieurs ou tout les titres dans la playlist !!

pour cela tu rajoute la variable de config dans le code de ta page
s2.addVariable("thumbsinplaylist","true");


et dans la playlist .xml tu ajoute cette ligne dans ta track ou tu veux voir le thumb !
<track>
      <title>TOKIO HOTEL</title>
      <creator>1000 meere</creator>
      <location>tokiohotel1000meere.flv</location>
      <image>URL DE TON IMAGE.jpg</image>
      <annotation>TU PEUX MEME RAJOUTER DES COMMENTAIRES</annotation>
    </track>


tu fais la meme chose dans une autre track avec l url d une autre image ect ect

tu as compris ??
0
oui monsieur j'ai compris lol oki j'ai fais se que tu ma dit et sans ajouter s2.addVariable("thumbsinplaylist","true"); cela fonctionne. je pense que rajouter la variable c'est + une norme non?
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
27 janv. 2009 à 02:49
la valeur par default pour cette variable est true dans le swf c est pour cela ! donc tu n est pas oblige de la mettre dans la page ,mais comme ca tu as compris le systeme ! ;-))
0
oki franchement c'est sympa de ta par pour toute ces astuce je te remercie et sinon pourais tu me passer le lien ou il y a les propriété des different lecteur?

a oui aussi comment faire pour enlever la phrase the about jw player 4.1.60.... lorsque que l'on clic droit sur le lecteur
merci
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
27 janv. 2009 à 03:06
a oui aussi comment faire pour enlever la phrase the about jw player 4.1.60.... lorsque que l'on clic droit sur le lecteur

c est un copyright !!! tu ne dois pas l enlever !

le lien ou il y a les propriété des different lecteur
pour ce player
https://www.jwplayer.com/
0