I decided, for ease and fun to use Surge to publish the page. Of course all of the code can be viewed in the source of Sounds Bad!. From that I would need to extract the v parameter, google took me to: javascript – how to get youtube video id from url – Stack Overflow that worked a treat.įinally after a tweet from Alan suggesting a movie I added the ability to pass the webpage a youtube ID in the url: Next I want to allow folk to use their own choice of movie, so I added a field to paste in a YouTube URL. So I could hard code a few buttons to load some different movies. Using the movie ID, the movie ID is easy to find from a youtube page URL: Sometimes it is better to look through the docs than type questions into the address bar. One of the problems with using google for this, is that there is often more information and answers that point to older and unsupported APIs. Starting it and hiding the controls is done in script that loads up the iframe, autoplay: 1, & controls: 0. I now had a page that played the movie and the audio at the same time in an appalling fashion.ĭigging round the api pages, I found out how to mute the video, start it playing as soon as it loads and hide the controls. Next I copied the example player code from the API page. so I just created an audio tag: No controls so that the player would not show autoplay and looping on. I was not intending to do anything fancy like turn the audio on and off when the movie played or paused (I don’t think that would be too hard). I created a empty html page and put the intermission mp3 in the same folder. The plan was to get one movie playing with intermission in the background then change it so that different movies could be used instead. YouTube Player API Reference for iframe Embeds | YouTube IFrame Player API | Google Developers I did, but found out pretty quickly (these were broken) that the YouTube API had changed. Moving to my computer I had a look through old projects to see if I had youtube player code handy. Searching for ‘movie endings’ found collections of 10 best movie endings and the like, but changing the search to particular movies title and ending indicated there were enough to play with. There is a workflow to convert YouTube videos to mp3s and save them to your phone. As I was reading twitter on my phone at the time, I copied the url to the intermission clip on youtube and passed it to Workflow.app. He proposed, intermission, from the end of the Monty Python movie.Ī this point I though that is might be easy and fun to make a webpage that could show a variety of videos with that music behind it.įirst I needed the music. The creator has carefully edited a spectrum of movie endings to prove his point.Ī nice wee twitter chat bubbled up, until Mariana asked David what he though would be a better tune. This is a amusing site playing with the idea the The Walk of life works with any movie ending as background music. Over on twitter I was pointed to The Walk of Life. Too bad, because I think you are missing out if you are not narrating your work.įrom: The Good, The Bad, and The Puppy (and some pondering on Making / Making of)Īlan reminds us of the importance of narrating our work and learning, so here is a short story about mine at the weekend. Fwooooooooooom it goes, down the stream, with no context. We see a deluge of media dumped into twitter, Facebook, tumblr with no context.
0 Comments
Leave a Reply. |