Access to API to build player
-
Hi there,
I would like to use the WordPress AJAX to return the JW mediaID for a particular video. I can then use this to create our custom player.The current call uses:
/wp-admin/admin-ajax.php
action vlog_format_content
format video
id 15476which returns:
<script type=’text/javascript’ src=’https://content.jwplatform.com/libraries/xxxx.js’></script>
<div id=’jwplayer_xxxx_xxxx_div’></div>
<script type=’text/javascript’>
if(typeof(jQuery)==”function”){(function($){$.fn.fitVids=function(){}})(jQuery)};
jwplayer(‘jwplayer_xxxx_xxxx_div’).setup(
{“playlist”:”https:\/\/content.jwplatform.com\/feeds\/xxxx.json”,”ph”:2}
);
</script>Can you tell me how I can achieve this?
- The topic ‘Access to API to build player’ is closed to new replies.