Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gdevelop:tutorials:playingvideos [2015/09/26 08:40]
zyanmayfield Finishing Tutorial
gdevelop:tutorials:playingvideos [2015/09/26 09:26]
zyanmayfield Added how to add videos to preview file
Line 22: Line 22:
 {{ :​gdevelop:​tutorials:​addjavascript.jpg?​nolink&​300 |}} {{ :​gdevelop:​tutorials:​addjavascript.jpg?​nolink&​300 |}}
  
-A JavaScript box will appear now you can create a condition, you can see I chose on click. Create a SubEvent on that even and drag the JavaScript Code box underneath it. When I click the mouse the video will play.+A JavaScript box will appear now you can create a condition, you can see I chose on click. Create a SubEvent on that event and drag the JavaScript Code box underneath it. 
  
-<note important>​This will not work in the preview because ​I have not figure out how to get the video files into the correct place to be played. I export the Web Platform and then just put the videos I'm using inside the main folder.</​note>​+UNTESTED: Before you can preview it and test it out you will need to add the video file to the preview folder, you can do this by clicking the image icon and then selecting add image *the add image button will not work unless you have the image tab open*. When adding the image be sure to select to display all files as seen in the picture. 
 + 
 +{{ :​gdevelop:​tutorials:​addimages.jpg?​nolink&​300 |}}  
 + 
 + 
 +<note important>​This will not work in the preview because the video file is not placed in the preview folder. I export the Web Platform ​game and then just put the videos I'm using inside the main folder.</​note>​
  
 <note tip>If you want you can export to a folder that has local server running out of it to test it quickly. I use [[http://​www.freeutils.net/​source/​jlhttp/​]] it works great for video playback, and even video scanning. </​note> ​ <note tip>If you want you can export to a folder that has local server running out of it to test it quickly. I use [[http://​www.freeutils.net/​source/​jlhttp/​]] it works great for video playback, and even video scanning. </​note> ​