psp (or any other device. kinda) video player tutorial




this is an explanation of how i made the psp video player on my home page, but also a tutorial on hpw you can apply it to multiple devices
if you just want the code here it is but i recommend looking at the tutorial if you want to know how to make your own

html+javascript

css

in simple terms ..... its a video placed over an image of a psp (with a lot of extra styling). you can have 1 video/image or multiple with the slideshow system. for this tutorial I'll be explaining the most bare bones approach

  1. first get an image of the device you want it to be. for this tutorial I'll be using a psp but you can make one with a phone, tv, camera, etc just any device with a screen.

  2. next cut out the left and right buttons of your device. the psp has them but it might be different depending on what you want to do. then crop the buttons and save them as seperate images


  3. once you have the main device image and the buttons, we can start the html and css. make some kind of container fro everything to go in. in my code its called "#psp". next add the base image. after that add the buttons


    the id and class are for styling but you need to add the "onclick" to make the slideshow work. if youre not making a slideshow then you can ignore it

  4. next is where the videos go. i've been saying video but you can really put whatever you want in there. make a div, in my code its called "pspstuff", then inside that a div with the class "modal-content". in that div make whoever many divs you want with the class "mySlides". these will be where you put your videos/images

    if you dont know how to get the embed code for a youtube video, under the video click share, then click embed, then copy that code and paste it into the "mySlides" div
  5. now for the actual script.... in a script tag, just copy and past the code i got it from w3schools lol. this is how theslide show will cycle through the slides

faq