• darylmeter

    (@darylmeter)


    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 15476

    which returns:
    <script type=’text/javascript’ src=’https://content.jwplatform.com/libraries/xxxx.js’></script&gt;
    <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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ilGhera

    (@ghera74)

    Hi @darylmeter.
    What do you mean with mediaID? Are you talking about the id of a specific video published in a post or page?
    If yes, just have a look into the db for better understanding how the plugin works, ilt will be easier for you.
    If not, please let me have more details.
    Thanks.

    Thread Starter darylmeter

    (@darylmeter)

    Hi ilGhera,
    thanks – for mediaID, I need the JW video id,
    eg
    yp34SRmf
    Where it can be used like this:
    https://content.jwplatform.com/feeds/yp34SRmf.json

    So im looking for a way to show this on the page to build our (custom) player.

    thanks for your help.
    Daryl

    Plugin Author ilGhera

    (@ghera74)

    I’m sorry but the plugin works in a complete different way.
    If you wanna use contents and tools from the jwp dashboard, it’s probably better if you try to use the official jwp plugin.
    https://it.wordpress.org/plugins/jw-player/

    Thread Starter darylmeter

    (@darylmeter)

    Hi ilGhera,
    OK – thanks for looking into it.

    Cheers,
    Daryl

    Plugin Author ilGhera

    (@ghera74)

    You’re welcome 😉

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Access to API to build player’ is closed to new replies.