Changeset 3283102
- Timestamp:
- 04/28/2025 06:46:37 AM (11 months ago)
- Location:
- wpstream
- Files:
-
- 12 edited
- 1 copied
-
tags/4.6.7 (copied) (copied from wpstream/trunk)
-
tags/4.6.7/admin/class-wpstream-admin.php (modified) (1 diff)
-
tags/4.6.7/includes/class-wpstream-live-api-connection.php (modified) (1 diff)
-
tags/4.6.7/includes/class-wpstream-player.php (modified) (1 diff)
-
tags/4.6.7/public/js/wpstream-player.js (modified) (5 diffs)
-
tags/4.6.7/readme.txt (modified) (2 diffs)
-
tags/4.6.7/wpstream.php (modified) (2 diffs)
-
trunk/admin/class-wpstream-admin.php (modified) (1 diff)
-
trunk/includes/class-wpstream-live-api-connection.php (modified) (1 diff)
-
trunk/includes/class-wpstream-player.php (modified) (1 diff)
-
trunk/public/js/wpstream-player.js (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpstream.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpstream/tags/4.6.7/admin/class-wpstream-admin.php
r3280871 r3283102 255 255 'Your account is now in BASIC STREAMING mode.' . PHP_EOL . PHP_EOL . 256 256 'Instead of offloading to the WpStream Cloud, this mode relies on WordPress and hosting resources to process and deliver video. In some WP environments, streaming may be unreliable.' . PHP_EOL . 257 'Certain features, such as recording, browser broadcasting, and content protection are unavailable.' . PHP_EOL . PHP_EOL .257 'Certain features, such as recording, viewer count, browser broadcasting, and content protection are unavailable.' . PHP_EOL . PHP_EOL . 258 258 '- To take advantage of all features, please choose Cancel and upgrade your plan.' . PHP_EOL . 259 259 '- Otherwise, choose OK to start your channel with these limitations.' . PHP_EOL . PHP_EOL . -
wpstream/tags/4.6.7/includes/class-wpstream-live-api-connection.php
r3278949 r3283102 778 778 $metadata_array['on_boarding']='yes'; 779 779 } 780 780 $permalink = get_permalink($schannel_id); 781 if ($permalink !== false) { 782 $metadata_array['permalink'] = $permalink; 783 } 781 784 782 785 $curl_post_fields=array( -
wpstream/tags/4.6.7/includes/class-wpstream-player.php
r3278949 r3283102 406 406 echo '<div class="wpstream_live_player_wrapper function_wpstream_live_event_player" data-now="'.$now.'" data-me="'.esc_attr($usernamestream).'" data-product-id="'.$channel_id.'" id="wpstream_live_player_wrapper'.$now.'" > '; 407 407 408 if( ( isset($event_settings['view_count'] ) && intval($event_settings['view_count'])==1 ) || !isset($event_settings['view_count']) ){ 409 echo '<div id="wpestream_live_counting" class="wpestream_live_counting"></div>'; 410 } 411 408 $show_viewer_count = ( 409 ( isset($event_settings['view_count']) && intval($event_settings['view_count']) == 1 ) 410 || !isset($event_settings['view_count']) 411 ); 412 $pack_details = $this->main->wpstream_live_connection->wpstream_request_pack_data_per_user(); 413 if( isset($pack_details['available_data_mb'])){ 414 if ($pack_details['available_data_mb'] <= 0){ 415 $show_viewer_count = false; 416 } 417 } 418 419 echo '<div id="wpestream_live_counting" class="wpestream_live_counting" data-showviewercount="' . ($show_viewer_count ? '1' : '0') . '"></div>'; 420 412 421 $show_wpstream_not_live_mess=' style="display:none;" '; 413 422 if(trim($hls_playback_url) ==''){ -
wpstream/tags/4.6.7/public/js/wpstream-player.js
r3225419 r3283102 239 239 updateViewerCount(count) { 240 240 console.log("updateViewerCount: ", count); 241 this.counter.show();242 241 this.counter.setCount(count); 242 } 243 244 updatePending(place){ 245 console.log("updatePending: ", place); 246 this.counter.showPending(place); 243 247 } 244 248 … … 502 506 // llhls: isLlHls(src) 503 507 // }); 504 owner.playContent(force);508 // owner.playContent(force); 505 509 }, 506 510 force ? 1 : 2000 … … 936 940 this.element = wrapper.find(".wpestream_live_counting"); 937 941 this.element.css("background-color", "rgb(174 69 69 / 90%)"); 942 943 console.log("showviewercount: ", this.element.data().showviewercount); 944 this.showCounter = this.element.data().showviewercount.toString() === "1"; 945 console.log("showCounter: ", this.showCounter); 946 938 947 //var playerElement = wrapper.find('.wpstream-video' + id); 939 948 var playerElement = jQuery("#wpstream-video" + id); … … 950 959 this.element.hide(); 951 960 } 961 952 962 setCount(count) { 953 this.element.html(count + " Viewers"); 963 if (this.showCounter){ 964 this.element.html(count + " Viewers"); 965 this.show(); 966 } 967 else { 968 this.hide(); 969 } 970 } 971 showPending(place){ 972 this.element.html(`Max viewers reached. Please wait for ${place} to leave.`); 973 this.show(); 954 974 } 955 975 } … … 1037 1057 this.master.updateViewerCount(json.data); 1038 1058 break; 1059 case "pending": 1060 this.master.updatePending(json.data); 1061 break; 1039 1062 case "onair": 1040 1063 if (json.info) { -
wpstream/tags/4.6.7/readme.txt
r3280871 r3283102 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.1 7 Stable tag: 4.6. 6.97 Stable tag: 4.6.7 8 8 License: GPL 9 9 License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 140 = 4.6.7 = 141 * Feature - Max viewers 142 140 143 = 4.6.6.9 = 141 144 * Fix - WpStream shortcodes not working -
wpstream/tags/4.6.7/wpstream.php
r3280871 r3283102 4 4 * Plugin URI: http://wpstream.net 5 5 * Description: WpStream is a platform that allows you to live stream, create Video-on-Demand, and offer Pay-Per-View videos. We provide an affordable and user-friendly way for businesses, non-profits, and public institutions to broadcast their content and monetize their work. 6 * Version: 4.6. 6.96 * Version: 4.6.7 7 7 * Author: wpstream 8 8 * Author URI: http://wpstream.net … … 15 15 die; 16 16 } 17 define('WPSTREAM_PLUGIN_VERSION', '4.6. 6.9');17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7'); 18 18 define('WPSTREAM_CLUBLINK', 'wpstream.net'); 19 19 define('WPSTREAM_CLUBLINKSSL', 'https'); -
wpstream/trunk/admin/class-wpstream-admin.php
r3280871 r3283102 255 255 'Your account is now in BASIC STREAMING mode.' . PHP_EOL . PHP_EOL . 256 256 'Instead of offloading to the WpStream Cloud, this mode relies on WordPress and hosting resources to process and deliver video. In some WP environments, streaming may be unreliable.' . PHP_EOL . 257 'Certain features, such as recording, browser broadcasting, and content protection are unavailable.' . PHP_EOL . PHP_EOL .257 'Certain features, such as recording, viewer count, browser broadcasting, and content protection are unavailable.' . PHP_EOL . PHP_EOL . 258 258 '- To take advantage of all features, please choose Cancel and upgrade your plan.' . PHP_EOL . 259 259 '- Otherwise, choose OK to start your channel with these limitations.' . PHP_EOL . PHP_EOL . -
wpstream/trunk/includes/class-wpstream-live-api-connection.php
r3278949 r3283102 778 778 $metadata_array['on_boarding']='yes'; 779 779 } 780 780 $permalink = get_permalink($schannel_id); 781 if ($permalink !== false) { 782 $metadata_array['permalink'] = $permalink; 783 } 781 784 782 785 $curl_post_fields=array( -
wpstream/trunk/includes/class-wpstream-player.php
r3278949 r3283102 406 406 echo '<div class="wpstream_live_player_wrapper function_wpstream_live_event_player" data-now="'.$now.'" data-me="'.esc_attr($usernamestream).'" data-product-id="'.$channel_id.'" id="wpstream_live_player_wrapper'.$now.'" > '; 407 407 408 if( ( isset($event_settings['view_count'] ) && intval($event_settings['view_count'])==1 ) || !isset($event_settings['view_count']) ){ 409 echo '<div id="wpestream_live_counting" class="wpestream_live_counting"></div>'; 410 } 411 408 $show_viewer_count = ( 409 ( isset($event_settings['view_count']) && intval($event_settings['view_count']) == 1 ) 410 || !isset($event_settings['view_count']) 411 ); 412 $pack_details = $this->main->wpstream_live_connection->wpstream_request_pack_data_per_user(); 413 if( isset($pack_details['available_data_mb'])){ 414 if ($pack_details['available_data_mb'] <= 0){ 415 $show_viewer_count = false; 416 } 417 } 418 419 echo '<div id="wpestream_live_counting" class="wpestream_live_counting" data-showviewercount="' . ($show_viewer_count ? '1' : '0') . '"></div>'; 420 412 421 $show_wpstream_not_live_mess=' style="display:none;" '; 413 422 if(trim($hls_playback_url) ==''){ -
wpstream/trunk/public/js/wpstream-player.js
r3225419 r3283102 239 239 updateViewerCount(count) { 240 240 console.log("updateViewerCount: ", count); 241 this.counter.show();242 241 this.counter.setCount(count); 242 } 243 244 updatePending(place){ 245 console.log("updatePending: ", place); 246 this.counter.showPending(place); 243 247 } 244 248 … … 502 506 // llhls: isLlHls(src) 503 507 // }); 504 owner.playContent(force);508 // owner.playContent(force); 505 509 }, 506 510 force ? 1 : 2000 … … 936 940 this.element = wrapper.find(".wpestream_live_counting"); 937 941 this.element.css("background-color", "rgb(174 69 69 / 90%)"); 942 943 console.log("showviewercount: ", this.element.data().showviewercount); 944 this.showCounter = this.element.data().showviewercount.toString() === "1"; 945 console.log("showCounter: ", this.showCounter); 946 938 947 //var playerElement = wrapper.find('.wpstream-video' + id); 939 948 var playerElement = jQuery("#wpstream-video" + id); … … 950 959 this.element.hide(); 951 960 } 961 952 962 setCount(count) { 953 this.element.html(count + " Viewers"); 963 if (this.showCounter){ 964 this.element.html(count + " Viewers"); 965 this.show(); 966 } 967 else { 968 this.hide(); 969 } 970 } 971 showPending(place){ 972 this.element.html(`Max viewers reached. Please wait for ${place} to leave.`); 973 this.show(); 954 974 } 955 975 } … … 1037 1057 this.master.updateViewerCount(json.data); 1038 1058 break; 1059 case "pending": 1060 this.master.updatePending(json.data); 1061 break; 1039 1062 case "onair": 1040 1063 if (json.info) { -
wpstream/trunk/readme.txt
r3280871 r3283102 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.1 7 Stable tag: 4.6. 6.97 Stable tag: 4.6.7 8 8 License: GPL 9 9 License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 140 = 4.6.7 = 141 * Feature - Max viewers 142 140 143 = 4.6.6.9 = 141 144 * Fix - WpStream shortcodes not working -
wpstream/trunk/wpstream.php
r3280871 r3283102 4 4 * Plugin URI: http://wpstream.net 5 5 * Description: WpStream is a platform that allows you to live stream, create Video-on-Demand, and offer Pay-Per-View videos. We provide an affordable and user-friendly way for businesses, non-profits, and public institutions to broadcast their content and monetize their work. 6 * Version: 4.6. 6.96 * Version: 4.6.7 7 7 * Author: wpstream 8 8 * Author URI: http://wpstream.net … … 15 15 die; 16 16 } 17 define('WPSTREAM_PLUGIN_VERSION', '4.6. 6.9');17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7'); 18 18 define('WPSTREAM_CLUBLINK', 'wpstream.net'); 19 19 define('WPSTREAM_CLUBLINKSSL', 'https');
Note: See TracChangeset
for help on using the changeset viewer.