My website currently embeds Youtube videos using the normal embed code.
Youtube sometimes generates errors when trying to load the embedded video.
I wish to create some PHP code that uses the Youtube player API to load the video and play it. If it tries to load the video but gets an error instead, then return that error like this...
// try to load Youtube video
if load is successful {
display video player here
} else {
error
}
I am clear you on your requirements and am able to provide you with an excellent solution to catching errors from Youtube. I have worked a lot with the Youtube API and can provide you with a solution that is quick and robust. Thanks and hope to be working with you soon!