Skip to content

This is an application that uses the Youtube API and Giphy API to generate your own video. The idea is to enhance your listening experience by creating a video with a related gif.

Notifications You must be signed in to change notification settings

dltorrise/Youtube-Gif-Creations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube GIF Creations

This is an app where you can easily make videos with your favorite songs and a relevant gif to create a better listening experience

User Story

  • As a music listener
  • I want to listen to a song with a cool/related gif executing
  • So that I can have a better listening experience

Acceptance Criteria

  • Given I am looking to make a video
  • When I search for a song
  • Then I am presented with results for that song
  • When I search for a gif
  • Then I am presented with relevant gifs
  • When I choose a song and gif
  • Then I create a video with that song and gif
  • When I reload the webpage
  • Then I am presented with my last 5 creations

Wireframe

Our vision before development Wireframe

Final Product

See the final product here

Screenshots of Finished Product

Webpage Appearance Screenshot of finished application where you see a search bar for video

Using the video search engine Screenshot of finished application where you search for can can videos

Using the gif search engine Screenshot of finished application where you see the gif search bar and the results for can can

APIs

Youtube Data API, Youtube Iframe API, and Giphy API

Code Snippets of Iframe API

One of the most challenging aspects of this project was getting the external play and pause buttons to work using the Iframe API. Watching this video by Youtube Developers and reading the documentation on Iframe Players helped us finally wrap our heads around how to create a player object.

Here are some code snippets of the player object and some functions attached to the built-in event listeners:

A screenshot of code that creates the iframe player objects and built in event registration

This code is specifically built-in functions to the Youtube Iframe Player API, including playVideo(), pauseVideo(), and muteVideo() so that we can control the video outside of the Iframe:

A screenshot of code that calls certain functions associated with the onReady event listener

Development

The cool thing about developing this project is that we learned in the branch testing-branch a good way to develop websites. It's best to lay everything out so that you can simulataneously check if different parts of the code are working. It's better that the page has a development phase where everything is layed out for the purposes of development as opposed to emphasizing aesthetics or what the product is supposed to look like. Aesthetics can come last after all the functionality is minimumally viable.

A screenshot of the website still in development

Additional Functionalities

Along with the basic functionalities, there are also several error messages to indicate if you selected something wrong. This is meant to add to the user experience, so they won't experience as much confusion or frustration if something is not working properly. Thankfully, the Iframe API has a built-in event listener (onError) solely for this purpose.

Future Development

In the future, we have several ideas on how to make this product better.

One idea is to add more external controls to the video. This screenshot exhibits other toggle controls of the volume and time. It's from the video mentioned above created by Youtube developers.

shows more potential external controls

We also thought it would be a cool idea to add custom backgrounds to the video just to make the watching/listening experience more fun. It could be galaxy, for example.

Finally we desire to make some more practical changes, such as improving the resolution of the gifs.

Acknowledgements

Red Panther helped me with the play, pause, and stop buttons in the Youtube Iframe API with this video on his YouTube Channel.

I also got help from ThirteeNov Coding Tutorials in his video about dynamically playing videos in iframe.

About

This is an application that uses the Youtube API and Giphy API to generate your own video. The idea is to enhance your listening experience by creating a video with a related gif.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages