- <!DOCTYPE html>
- <html>
- <head>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $(function () {
- $("#btn").bind("click", function () {
- var url = "http://104.211.243.204/?container=comedy-movies&blob=" + encodeURIComponent($("#itemList").val());
- //window.location.href = url;
- playVideo(url);
- });
- });
- });
- function playVideo(url){
- $("#divVideo video source").attr('src',url);
- $("#divVideo video")[0].load();
- }
- </script>
- </head>
- <body>
-
- <div id="divVideo">
- <video width="320" height="240" controls>
- <source type="video/mp4">
- </video>
- </div>
- </body>
- <script>
- </script>
- </html>
i have tried this but didnot give me any output please help me regarding thsi.