Plugin Directory

Changeset 2446681


Ignore:
Timestamp:
12/28/2020 10:05:34 AM (5 years ago)
Author:
kostalski
Message:

Adding postroll_vast_url short code support and minor fixes for DRM params. Tagging version 1.1.16 .

Location:
bradmax-player
Files:
19 added
2 edited

Legend:

Unmodified
Added
Removed
  • bradmax-player/trunk/bradmax-player.php

    r2444452 r2446681  
    22/*
    33Plugin Name: Bradmax Player
    4 Version: 1.1.15
     4Version: 1.1.16
    55Plugin URI: https://bradmax.com/site/en/#contact
    66Author: kostalski
     
    1717    class Bradmax_Player_Plugin {
    1818
    19         const PLUGIN_VERSION = '1.1.15';
     19        const PLUGIN_VERSION = '1.1.16';
    2020        const BRADMAX_PLAYER_VERSION = '2.10.6';
    2121
     
    206206                    $drm_config['widevine'] = array();
    207207                }
    208                 $drm_config['widevine']['laUrl'] = $params['drm_widevine_url'];
     208                $drm_config['widevine']['laUrl'] = html_entity_decode($params['drm_widevine_url']);
    209209            }
    210210            if(!empty($params['drm_widevine_cust_data'])) {
     
    218218                    $drm_config['playready'] = array();
    219219                }
    220                 $drm_config['playready']['laUrl'] = $params['drm_playready_url'];
     220                $drm_config['playready']['laUrl'] = html_entity_decode($params['drm_playready_url']);
    221221            }
    222222            if(!empty($params['drm_playready_cust_data'])) {
     
    230230                    $drm_config['fairplay'] = array();
    231231                }
    232                 $drm_config['fairplay']['laUrl'] = $params['drm_fairplay_url'];
     232                $drm_config['fairplay']['laUrl'] = html_entity_decode($params['drm_fairplay_url']);
    233233            }
    234234            if(!empty($params['drm_fairplay_cust_data'])) {
     
    242242                    $drm_config['fairplay'] = array();
    243243                }
    244                 $drm_config['fairplay']['certUrl'] = $params['drm_fairplay_cert_url'];
     244                $drm_config['fairplay']['certUrl'] = html_entity_decode($params['drm_fairplay_cert_url']);
    245245            }
    246246            return $drm_config;
     
    262262                'ga_tracker_id' => '',
    263263                'preroll_vast_url' => '',
     264                'postroll_vast_url' => '',
    264265                'media_id' => '',
    265266                'drm_prov' => '',
     
    287288            foreach(['url_2', 'url_3', 'url_3'] as $url_param) {
    288289                if(!empty($params[$url_param])) {
    289                     $player_config['dataProvider']['source'][] 
     290                    $player_config['dataProvider']['source'][]
    290291                        = array('url' => html_entity_decode($params[$url_param]));
    291292                }
     
    340341                );
    341342            }
     343            if(!empty($params['postroll_vast_url'])) {
     344                if(!isset($player_config['advertisement']['breaks'])) {
     345                    $player_config['advertisement'] = array(
     346                        'breaks' => array()
     347                    );
     348                }
     349                $player_config['advertisement']['breaks'][]
     350                    = array('timeOffset' => 'end', 'vast' => html_entity_decode($params['postroll_vast_url']));
     351            }
    342352            if(!empty($params['drm_prov'])) {
    343                 $player_config['dataProvider']['source'][0]['drm'] = self::bradmax_build_drm_config($params);
     353                foreach(array_keys($player_config['dataProvider']['source']) as $source_key) {
     354                    $player_config['dataProvider']['source'][$source_key]['drm'] = self::bradmax_build_drm_config($params);
     355                }
    344356            }
    345357
  • bradmax-player/trunk/readme.txt

    r2444452 r2446681  
    44Requires at least: 4.2
    55Tested up to: 5.6
    6 Stable tag: 1.1.15
     6Stable tag: 1.1.16
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
    99Author URI: https://bradmax.com/site/en/#contact
    1010Author: Bradmax
    11 Version: 1.1.15
     11Version: 1.1.16
    1212
    1313Embed video stream easily in WordPress using Bradmax Player. Use responsive HTML5 video player for playing HLS, MPEG-DASH, MS Smooth Streaming streams.
     
    205205== Changelog ==
    206206
     207= 1.1.16 =
     208
     209* Adding support for postroll_vast_url short code.
     210* Minor corrections for setting DRM params with short codes.
     211
    207212= 1.1.15 =
    208213
Note: See TracChangeset for help on using the changeset viewer.