PluginProbe
WpStream – Live Streaming, Video on Demand, Pay Per View / 4.4.10
WpStream – Live Streaming, Video on Demand, Pay Per View v4.4.10
4.14.1 4.14.0 4.13.2 4.13.1 4.13 4.12.5 4.12.4 4.12.3 4.12.2 4.12.1 4.12 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5 4.5.1 4.5.11 4.5.11.1 4.5.11.2 4.5.11.4 4.5.11.5 4.5.11.6 All 181 releases
← All changes | admin/class-wpstream-admin.php +5 -26 4.54.4.10 View file →
@@ -98,18 +98,9 @@
98 98 'details' => esc_html__('If enabled, live video will start muted. This may increase the rate of autoplay in some browsers. ','wpstream'),
99 99 'defaults' => 'no',
100 100
101 101 ),
102 - 'low_latency' =>array(
103 - 'name' => esc_html__('Low Latency (beta)','wpstream'),
104 - 'details' => esc_html__('Shortens the live delay between streamer and viewers. Useful for interactive applications like gaming, auctions, trading etc. Low latency may worsen the viewer experience on some devices.','wpstream'),
105 - 'defaults' => 'no',
106 - ),
107 - 'adaptive_bitrate' =>array(
108 - 'name' => esc_html__('Adaptive Bitrate (beta)','wpstream'),
109 - 'details' => esc_html__('Ensures a smooth and uninterrupted viewing experience by adjusting video quality for viewers with reduced network speed or device capabilities.','wpstream'),
110 - 'defaults' => 'no',
111 - ),
102 +
112 103 'encrypt' =>array(
113 104 'name' => esc_html__('Encrypt Live Stream','wpstream'),
114 105 'details' => esc_html__('If enabled, video data will be encrypted. Enabling encryption may lead to reduced website performance under certain configurations. Encrypted video may not display in all browsers.','wpstream'),
115 106 'defaults' => 'no',
@@ -1007,25 +998,16 @@
1007 998 *
1008 999 */
1009 1000
1010 1001 public function wpstream_settings(){
1011 -
1012 - if( !current_user_can('administrator') ){
1013 - die('Only for administrators');
1014 - }
1015 -
1016 1002
1017 1003 if($_SERVER['REQUEST_METHOD'] === 'POST'){
1018 - if( !wp_verify_nonce($_POST['wpstream-settings-nonce'],'wpstream-settings-nonce') ){
1019 - die('Security check');
1020 - }
1021 -
1022 1004 $allowed_html = array();
1023 1005 $exclude_array = array();
1024 1006 $allowed_html = array();
1025 1007
1026 -
1027 -
1008 +
1009 +
1028 1010 if( isset($_POST['user_streaming_channel_type_hidden']) && intval($_POST['user_streaming_channel_type_hidden'])==1 && !isset($_POST['stream_role']) ){
1029 1011 update_option( sanitize_key('wpstream_stream_role'), '' );
1030 1012 }
1031 1013
@@ -1169,11 +1151,8 @@
1169 1151 'type' => 'text',
1170 1152 'details' => esc_html__('This message will be displayed in player.','wpstream'),
1171 1153 'default' => esc_html__('We are not live at this moment. Please check back later.','wpstream'),
1172 1154 ),
1173 -
1174 -
1175 -
1176 1155
1177 1156 99 => array(
1178 1157 'tab' => 'default_options',
1179 1158 'label' => esc_html__('Events Options ','wpstream'),
@@ -1291,9 +1270,9 @@
1291 1270
1292 1271
1293 1272 print '<input type="submit" name="submit" class="wpstream_button wpstream_button_action" value="'.__('Save Changes','wpstream').'" />';
1294 1273
1295 - print '<input name="wpstream-settings-nonce" type="hidden" value="'.wp_create_nonce('wpstream-settings-nonce').'" /> ';
1274 +
1296 1275 print '</form>';
1297 1276 print '</div>';
1298 1277
1299 1278 }
@@ -1310,9 +1289,9 @@
1310 1289
1311 1290 foreach($this->global_event_options as $key=>$option){
1312 1291
1313 1292 if( is_array($local_array) && !in_array($key,$local_array)){
1314 - print '<div class="wpstream_setting_event_unit_wrapper wpstream-setting-'.esc_attr($key).' ">';
1293 + print '<div class="wpstream_setting_event_unit_wrapper">';
1315 1294
1316 1295 print '<label for="'.$option['name'].'">'.$option['name'].'</label>';
1317 1296
1318 1297 print '