Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

This is George, I am one of the Support Engineers here at JW Player. How are you? I don’t have experience in AJAX, however if you send me the test page, I may be able to figure it out. Could you please send me the test page that is having the issue?

Also, try and reproduce your logic using non dynamic values, just to see if something is broken in your setup regardless of AJAX. If it all works without AJAX then we know there is something wrong with the execution sequence.

This question has received the maximum number of answers.