
Playlist not loading with Ajax
Hi I have a playlist in jwplatform,
i am including playlists in my website with dynamic video keys with ajax but in the popup the player is not displaying.
code :
<div class="modal-body" >
<script type="text/javascript" src="http://hls.prendismo.com/players/<?php echo $key; ?>-L7Ric8zj.js"></script>
</div>
in above code $key will come dynamically with playlist key.
example : like this <script type="text/javascript" src="http://hls.prendismo.com/players/AkR034qz-L7Ric8zj.js"></script>
but when i append this to my jquery bootstrap model popup with ajax the player is not loading
code :
$.ajax({
type: 'get',
async:false,
url: '<?php echo get_template_directory_uri();?>/templates/PlayAllVideosinPlaylist.php',
data: 'key='+key,
success: function(data){
$("#post_PlayAllVideosinCase").html(data);
}
})
am appending resutl to the post_PlayAllVideosinCase div,
popup is coming but player is not coming
pls suggest me