How do I change the jwplayer 7 to jwplayer 8 please?

Started by traxpeliss, 03-20-2019

741
5
How do I change the jwplayer 7 to jwplayer 8 please?
  03-20-2019, 05:31 AM
#1
<? php
if (! definido ("JUICYCODES")) {
    salida;
}
utilizar IT \ Data;
utilizar IT \ JuicyCodes;

función template_header ($ preview = falso)
{
    $ components = array (
        "html" => '<script> jwplayer.key = "'. Data :: Get (" jwp_key "). '"; </script>',
        "stylesheets" => array ("juicycodes.css"),
        "javascripts" => array ("jwplayer.js", "juicycodes.js"),
    );
    devuelve $ componentes;
}

función template_body ($ source = array (), $ subtitle = false, $ preview = false, $ slug, $ dl = false)
{
    if (Data :: Get ("trust") == "incrustar" && is_string ($ source ["0"])) {
        return '<div class = "embed-container"> <iframe src = "'. $ source [" 0 "]. '" frameborder = "0" allowfullscreen = "allowfullscreen"> </iframe> </div>';
    }
    $ html = '<div id = "video_player"> </div>';
    $ script = '
    var player = jwplayer ("video_player");
    var config = {
        width: "'. Data :: Get (" width ").'",
        height: "'. Data :: Get (" height ").'",
        aspectratio: "'. Data :: Get (" aspect_ratio ").'",
        autostart: ' . Data::Get("autostart") . ',
        controls: ' . Data::Get("player_controls") . ',
        primary: "' . Data::Get("primary") . '",
        abouttext: "' . Data::Get("about_text") . '",
        aboutlink: "' . Data::Get("about_link") . '",
        image: "' . $preview . '",
        sources: ' . json_encode($source, JSON_UNESCAPED_SLASHES) . ',
        tracks: ' . json_encode($subtitle, JSON_UNESCAPED_SLASHES) . ',
        logo: {
            file: "' . Data::Get("logo") . '",
            link: "' . Data::Get("about_link") . '",
            position: "top-left",
        },
        captions: {
            color: "' . Data::Get("font_color") . '",
            fontSize: "' . Data::Get("font_size") . '",
            fontFamily: "' . Data::Get("font_family") . '",
            backgroundColor: "' . Data::Get("bg_color") . '",
        }
    };
    ';
    if (Data::Get("share_btn") == "on") {
        $script .= 'config.sharing = {sites: ["facebook","twitter","email","googleplus","reddit"]};';
    }
    $script .= "player.setup(config);";
    if ($dl) {
        $script .= '
        player.addButton(
            "' . Data::Get("url") . '/templates/jwplayer/assets/download.svg",
            "Download Video",
            function() {
                window.open("' . Data::Get("url") . '/' . Data::Get("download_slug") . '/' . $slug . '/","_blank");
            },
            "download"
        );
        ';
    }
    $html .= '<script type="text/javascript">' . JuicyCodes::Encrypt($script) . '</script>';
    return $html;
}

function template_footer($pop_ad = false, $pop_ad_code = false, $banner_ad = false, $banner_ad_code = false)
{
    $html = null;
    if ($banner_ad) {
        $html .= '
            <div class="banner" id="banner">
                <span class="close" onclick="return JuicyCodes.Close(); ">X</span>
                ' . $banner_ad_code . '
            </div>
        ';
    }
    if ($ pop_ad) {
        $ html. = $ pop_ad_code;
    }
    if (JuicyCodes :: GetError ()) {
        $ html. = '<script> JuicyCodes.Log ("'. JuicyCodes :: GetError (). '"); </script> ';
    }
    devuelve $ html;
}

  03-21-2019, 08:02 PM
#2
You using jwplayer 7+ self-hosted. if you want jwplayer 8? replace the .js path with jwplayer 8 library.

  03-23-2019, 07:10 AM (Updated: 03-23-2019, 07:11 AM by traxpeliss.)
#3
thanks for your answer I thank you very much bro for helping me

thank you for your answer I thank you very much bro for helping me I serve soisimo

  04-02-2019, 04:24 AM
#4
Get 6 month free trial here https://www.jwplayer.com/pricing/ just post a real email not a fake one

  04-15-2019, 12:41 AM
#5
Thank you for your answers

  07-23-2019, 07:57 AM
#6
You using jwplayer 7+ self-hosted. if you want jwplayer 8? replace the .js path with jwplayer 8 library.

« Next Oldest | Next Newest »


Possibly Related Threads…
Thread Author Replies Views Last Post
Please Provide Wpematico Wordpress Plugin eejeet 1 509 10-07-2020, 01:51 PM
Last Post: angelusce79
I want to develop shaadi copy please help karakonline 0 259 06-19-2020, 09:45 PM
Last Post: karakonline
I need Shaadi Matrimonial nulled script please karakonline 0 279 06-19-2020, 06:57 PM
Last Post: karakonline



1 Guest(s)