I had to make a video available on my gsp page. So I looked at the grails flash-player plugin. After going through the documentation I found that it could not be used with videos on Youtube. This code given below will generate the script for the flash player on your gsp for playing youtube videos.

This is the general code for a youtube video. URL in the browser for video looks like -http://www.youtube.com/watch?v=YG9RGKYauhE&feature=related.The common thing between embed code and URL of video is the key for the video which uniquely identifies it.So copy and paste the code of the in your gsp page and pass the video key to change the video as you want. But to make it simple I made a custom tag like–