Skip to content
Loading
storing json response in variable  
  •   
  • Now in the code i have taken the url as default and the output you will get something like
    But please try to get the code , url is not the direct url you will get it after you do an ajax call. And it looks like the response is something like { "url": "https://moviestarstorage.blob.core.windows.net/water/gol.mp4" } . So your code should look like following :
    1. $("#btnVideo").click(function () {  
    2. var linkurl = "http://104.211.243.204/?container=comedy-movies&blob=" + encodeURIComponent($("#itemList").val());  
    3. $.ajax({  
    4. url: linkurl, success: function (result) {  
    5. jsonResponse = result;  
    6. playVideo(jsonResponse.url);  
    7. }  
    8. });  
    9. });  
    Try and let me know if above code works.
     
    Regards,
    Mukesh Nayak