Copy link to clipboard
Copied
I have the following embed code for my video:
<div style='position:relative;height:0;padding-bottom:56.25%'><iframe class='sproutvideo-player' src='//videos.sproutvideo.com/embed/7c9bd1bf1a1be5c6f4/93513b1bbf6264dc?playerTheme=dark& amp;playerColor=' style='position:absolute;width:100%;height:100%;left:0;top:0' frameborder='0' allowfullscreen></iframe></div>
I have a Bootstrap button on my web page which, by clicking on it, I want to call the aforementioned code/link/whatever-the-right-term-is and watch the video.
How do I do this? Where do I embed this code? How do I point/link to it?
Thanks
Responsive Video example:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Bootstrap 3.3.7 Starter</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--Bootstrap-->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
.center-block {float:none}
</style>
</head>
<
...Copy link to clipboard
Copied
Responsive Video example:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Bootstrap 3.3.7 Starter</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--Bootstrap-->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
.center-block {float:none}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-10 center-block">
<button type="button" class="btn btn-lg btn-danger" data-toggle="collapse" data-target="#myVideo">CLICK FOR VIDEO</button>
<div class="collapse" id="myVideo">
<h2>Responsive 16:9 Aspect Ratio (YouTube video)</h2>
<div class="embed-responsive embed-responsive-16by9">
<!--EMBED YOUR VIDEO HERE-->
<iframe class="embed-responsive-item" src="//www.youtube.com/embed/ePbKGoIGAXY"></iframe>
</div>
</div>
<!--end col--></div>
<!--end row--></div>
<!--end container--></div>
<!--latest jQuery-->
<script src="https://code.jquery.com/jquery-1.12.2.min.js" integrity="sha256-lZFHibXzMHo3GGeehn1hudTAP3Sc0uKXBXAzHX1sjtk=" crossorigin="anonymous"></script>
<!--Bootstrap-->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
Copy link to clipboard
Copied
Thanks very much. This, fundamentally, worked very well. As with anything, a little massage work and voila!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now