amandakirk24 Posted April 20, 2015 Share Posted April 20, 2015 I am attempting to add a video to the products listing. Unfortunately I cannot get my video to load up when I replace the original test video. I'm half sleep deprived so perhaps I am simply missing something in the code. this is the code with the test video: <object type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/watch?v=tAbsmHMAhrQ?fs=1&autoplay=1"><paramname="movie" value="http://www.youtube.com/watch?v=tAbsmHMAhrQ?fs=1&autoplay=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /></object> this is the code with my video: <object type="application/x-shockwave-flash" width="640" height="385" data="https://www.youtube.com/watch?v=YY5RlEVKQWo&autoplay=1"><param name="movie" value="https://www.youtube.com/watch?v=YY5RlEVKQWo&autoplay=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /></object> Link to comment Share on other sites More sharing options...
amandakirk24 Posted April 20, 2015 Author Share Posted April 20, 2015 I realize I made a little mistake with the above post. The exact code I used is as follows: <object type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.c...oplay=1"> <paramname="movie" value="http://www.youtube.com/watch?v=tAbsmHMAhrQ?fs=1&autoplay=1"/> <param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /> <param name="wmode" value="transparent" /></object> It works until I try to use my own video link that is bold. <object type="application/x-shockwave-flash" width="640" height="385" data="https://www.youtube.com/watch?v=YY5RlEVKQWo=1"> <paramname="movie" value="https://www.youtube.com/watch?v=YY5RlEVKQWofs=1&autoplay=1"/> <param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /> <param name="wmode" value="transparent" /></object> Link to comment Share on other sites More sharing options...
♥Tsimi Posted April 20, 2015 Share Posted April 20, 2015 Why not use the embed function that youtube offers? Click on "Share", then choose "Embed". Click on the "Show more" text below the code that it is showing you so that you can edit the size or control stuff. The only thing I couldn't find and added myself is the autoplay function. For example like this <iframe width="640" height="385" src="https://www.youtube.com/embed/YY5RlEVKQWo?autoplay=1&rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.