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 | includes/class-wpstream-player.php +13 -10 4.4.6 → 4.4.10 View file →
@@ -50,10 +50,11 @@
50 50 $event_data_for_transient = get_transient( $transient_name );
51 51
52 52
53 53
54 - if ( false === $event_data_for_transient || $event_data_for_transient=='' ) { //ws || $hls_to_return==''
55 - $event_status = $this->main->wpstream_live_connection-> wpstream_check_event_status_api_call($channel_id);
54 + if ( false === $event_data_for_transient || $event_data_for_transient=='' ) { //ws || $hls_to_return==''
55 + $notes = 'wpstream_player_check_status_note_from_js';
56 + $event_status = $this->main->wpstream_live_connection-> wpstream_check_event_status_api_call($channel_id,$notes);
56 57 $event_data_for_transient = $event_status;
57 58
58 59 set_transient($transient_name,$event_data_for_transient,45);
59 60 }
@@ -314,9 +315,10 @@
314 315 $usernamestream = esc_html ( get_option('wpstream_api_username','') );
315 316 $autoplay = 'autoplay';
316 317
317 318 $event_settings = $this->wpestream_return_event_settings($channel_id);
318 - $event_status = $this->main->wpstream_live_connection-> wpstream_check_event_status_api_call($channel_id);
319 + $notes = 'wpstream_live_event_player_note';
320 + $event_status = $this->main->wpstream_live_connection-> wpstream_check_event_status_api_call($channel_id,$notes);
319 321 $hls_playback_url = '';
320 322 $live_conect_views = '';
321 323
322 324 if(isset($event_status['status']) && $event_status['status']=='active'){
@@ -362,10 +364,10 @@
362 364
363 365 $show_wpstream_not_live_mess='';
364 366 }
365 367
366 -
367 - print '<div class="wpstream_not_live_mess" '.$show_wpstream_not_live_mess.'><div class="wpstream_not_live_mess_back"></div><div class="wpstream_not_live_mess_mess">'.esc_html__('We are not live at this moment. Please check back later.','wpstream').'</div></div>';
368 + $message_show= esc_html( get_option('wpstream_you_are_not_live','We are not live at this moment. Please check back later.')) ;
369 + print '<div class="wpstream_not_live_mess" '.$show_wpstream_not_live_mess.'><div class="wpstream_not_live_mess_back"></div><div class="wpstream_not_live_mess_mess">'.esc_html($message_show).'</div></div>';
368 370
369 371 $poster_data='';
370 372 if(isset($thumb[0])){
371 373 $poster_data=' poster="'.$thumb[0].'" ';
@@ -437,9 +439,10 @@
437 439 $thumb_id = get_post_thumbnail_id($channel_id);
438 440 $thumb = wp_get_attachment_image_src($thumb_id,'small');
439 441
440 442 $event_settings = $this->wpestream_return_event_settings($channel_id);
441 - $event_status = $this->main->wpstream_live_connection-> wpstream_check_event_status_api_call($channel_id);
443 + $notes = 'wpstream_live_event_player_low_latency_note';
444 + $event_status = $this->main->wpstream_live_connection-> wpstream_check_event_status_api_call($channel_id,$notes);
442 445 $hls_playback_url = '';
443 446 $live_conect_views = '';
444 447 $now = time().rand(0,10);
445 448
@@ -477,10 +480,10 @@
477 480 if(trim($hls_playback_url) ==''){
478 481 $show_wpstream_not_live_mess='';
479 482 }
480 483
481 -
482 - print '<div class="wpstream_not_live_mess " '.$show_wpstream_not_live_mess.' ><div class="wpstream_not_live_mess_back"></div><div class="wpstream_not_live_mess_mess">'.esc_html__('We are not live at this moment. Please check back later.','wpstream').'</div></div>';
484 + $message_show= esc_html( get_option('wpstream_you_are_not_live','We are not live at this moment. Please check back later.')) ;
485 + print '<div class="wpstream_not_live_mess " '.$show_wpstream_not_live_mess.' ><div class="wpstream_not_live_mess_back"></div><div class="wpstream_not_live_mess_mess">'. $message_show.'</div></div>';
483 486
484 487
485 488 $poster_data=' poster="'.$thumb[0].'" ';
486 489 if($poster_show=='no'){
@@ -645,9 +648,9 @@
645 648 */
646 649
647 650
648 651 $free_video_type = intval( get_post_meta($product_id, 'wpstream_product_type', true));
649 - if( ( is_singular('wpstream_product_vod') && $free_video_type==2 ) || get_post_type($product_id)=='product' ){
652 + if( ( get_post_type($product_id)=='wpstream_product_vod' && $free_video_type==2 ) || get_post_type($product_id)=='product' ){
650 653
651 654 /*
652 655 * IF vide is encrypted- readed from vod,streaner
653 656 *
@@ -661,9 +664,9 @@
661 664 }
662 665 $video_path_final = $this->wpstream_request_video_on_demand_hls_player($video_path,$product_id);
663 666
664 667
665 - }else if( is_singular('wpstream_product_vod') && $free_video_type==3 ){
668 + }else if( get_post_type($product_id)=='wpstream_product_vod' && $free_video_type==3 ){
666 669
667 670 /* Video is unecrypted - read from local or youtube / vimeo
668 671 */
669 672