Ce tutorial à pour but de vous aider à intégrer de la vidéo dans le composant SlideShowPro. l’intégration est relativement facile, il faut procéder de façon habituelle comme si vous vouliez intégrer des images, cependant quelques petits aménagements sont nécessaires pour pouvoir afficher de la vidéo.
1 - Création du player vidéo
a) créez un nouveau fichier Flash, nommez-le “vidplayer.fla” et donnez lui la même taille que l’affichage de slideshowpro
b) Ajoutez sur la scène le composant vidéo de flash “FLV Playback - Player 8″ nommez-le “player_mc”
c) Redimensionez-le à la taille de la scène
d) changez la valeur du paramètre du composant “autoPlay” sur “false”, vous pouvez néanmoins la laisser sur “true”, vous pouvez également modifier la valeur du paramètre “skin” de façon à choisir un autre design pour la barre de transport, modifiez la valeur du paramètre “autosize” sur “true”, c’est toujours utile pour pouvoir réutiliser le player avec des vidéos de dimensions différentes.
e) Ajoutez un nouveau layer à la timeline nommez-le “actionscript” et sur la première frame ajoutez le code suivant :
[as]player_mc.load(movie);[/as]f) compilez, et voilà vous avez un player de FLV prêt à être utilisé dans SlideShowPro
2 - préparation du fichier XML
a) dans la propriété “src” du tag “album” ajoutez le lien vers la vidéo de la manière suivante.
[html]src=”vidplayer.swf?movie=videos/charanova/opel_charanova.flv” mce_src=”vidplayer.swf?movie=videos/charanova/opel_charanova.flv”[/html]b) la propriété “caption” doit être vide sinon la barre de transport du player vidéo ne sera pas accessible
c) Ajoutez le chemin vers le player de FLV dans la propriété “lgPath”
[xml]
[/xml]
3 - préparation de Slideshowpro
Il n’y a pas de configuration particulière pour le composant SlideShowPro
Hi, I’ve been trying to put videos in slideshow pro, but a problem occurs, when I try to open slideshow pro (as a .swf) it gives me an empty gallery. I have rearranged the path to get my flv video but it doesn’t appear. I am using Flash Mx 2004 professional so “FLV Playback - Player 8″ is not inside my components it has been replaced by “Media Playback” which is alike. I have tried having many galleries and also only one but still doesn’t work.
This is my xml :
And these are my folders used :
Main folder: -Slideshow .fla & .swf (SSP)
-images.xml
-Folder “videos”
videos: -Folder “player”
-1.flv (test video)
player: -vidplayer .fla & .swf
Thank you for taking the time to respond to this message.
P.S.: Ask me if you want this message in french (I am bilingual)
Sorry the site will not display my xml
anychance of having this tutorial in english? would be an a massive help!
Super le tutorial mais très difficile à le faire marcher, peut-on avoir un fla pour essayer de voir comment ça marche
Merci par avance
Bonjour
J’ai réussi tant bien que mal à faire marcher slideshowpro avec de la vidéo. par contre j’ai un soucis avec le son. En effet le son des vidéos rejoue plusieurs fois lorsque qu’on click sur la videos. Pareil lorque la video 1 d’1 album est lancé et quon souhaite voir la suivante, le son de la vidéo 1 ne s’arrête pas tout de suite.
Y a t’il une solution. J’ai vu que dans votre exemple il n’y a qu’une vidéo par album.
merci d’avance
To intergrate video in SlideShowpro using Flash 8
This tutorial has the goal of helping you integrate FLV Video into the SlideShowPro component. Integration is relatively easy (so he says*). It is best to to proceed in a usual way as if you wanted to integrate images, however some small alterations are necessary to be able to post video.
1 - Create the video player
a) Create a new Flash file, name it “vidplayer.fla” and resize so that it can easily fit within your published slideshowpro project.
b) Open up the Components Window (Ctrl+F7), and from the list, drag an instance of ‘FLV Playback - Player 8′ to the stage and from the Property Inspector, give it the instance name ‘player_mc’
c) Give it the same height and width as your movie scene and set it’s position on the x and y axis to ‘0′.
d) From the Parameters tab on the Properties Inspector (with the FLV Playback component selected on the stage), set ‘autoPlay’ to ‘true’ or ‘false’. Select a suitable Skin in order to alter the design of the trasnport, play buttons etc, change the parameter for ‘autoSize’ to ‘true’ (it is always useful to be able to re-use this player with other videos of differing sizes).
e) Add a new to layer on the timeline and name it ‘actionscript’. On the first frame add the following code.
Actionscript:
player_mc.load (movie);f) Publish your flash file (Shift+F12), and you now have a FLV player ready to be used in SlideShowPro.
2 - Preparation of the XML file
a) In the ’src’ attribute of the ‘album’ tag, add the path to the video in the following way.
HTML:
src= " vidplayer.swf? movie=videos/charanova/opel_charanova.flv " mce_src= " vidplayer.swf? movie=videos/charanova/opel_charanova.flv "b) NOTE: The ‘caption’ attribute must be empty. If not, then the bar for the video player transport controls will not be accessible.
c) Add the path for the FLV player in the property “lgPath”
XML:
3 - Preparation of Slideshowpro
There is no particular configuration for the SlideShowPro component.
…atleast I think thats what he ment.
Though I still haven’t had any joy after 10hrs straight.
The bit about the HTML album tag ’src=’ attribute (2a) is abit of a mystery to me. What HTML? Though it was written in XML.
The full source code posted here would be great. A zipped download of some sample files would be godlike.
Heu je crois que je vais changer de cerveau car actuellement je n’arrive tjrs pas a faire fonctionner une video dans SSPro. J’ai la premiere image qui s’affiche, puis plus rien et surtout pas la barre de nav (sound, play etc..).
J’ai meme essayer de mettre un liens direct sur la video….rien de rien ( player_mc.load(”mavideo.slv”);)
Sauf depuis Flash (ctrl + Return), la perfect, tout vas bien.
J’ai essayer la soluce Sin City mais meme si cela fonctionne j’ai besoins de cette barre de nav.
Y’a un truc que je choppe pas, any thought wise man?
Merci
Got it to work! Thanks for this!
I get the first frame of the video in SSP, but it doesn’t play, and none of the player controls are visible.
Any suggestions?
J’ai essayé ce tutorial pour incorporer des videos sous SSP. Mais rien à faire ca ne fonctionne pas. (Je suis novice dans ce type de programmation mais quand même) J’ai l’impression qu’il y a des erreurs selon les versions.?
Vos avis et votre aide me serait très preciseuse.
Merci d’av.