Plugin Directory

Changeset 3735366


Ignore:
Timestamp:
10/08/2026 06:52:12 PM (2 weeks ago)
Author:
videowhisper
Message:

Fix public HTML5 Videochat visitor sessions

Location:
videowhisper-live-streaming-integration/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • videowhisper-live-streaming-integration/trunk/inc/h5videochat.php

    r3735339 r3735366  
    638638
    639639            static function videowhisper_h5vls_app( $atts ) {
     640            // Each page render contains a newly generated session credential.
     641            // Shared page caches must not replay that configuration to another visitor.
     642            if ( ! defined( 'DONOTCACHEPAGE' ) ) {
     643                define( 'DONOTCACHEPAGE', true );
     644            }
     645            nocache_headers();
     646
    640647            // Shortcode: HTML5 Videochat
    641648            $stream  = '';
    … …  
    859866            }
    860867   
    861             $ajaxurl   = admin_url() . 'admin-ajax.php?action=h5vls_app'; //wp ajax server
     868            $ajaxurl   = self::h5vls_ajax_url(); // public WordPress AJAX endpoint
    862869            $serverURL2 = plugins_url('videowhisper-live-streaming-integration/server/') ; //fast server
    863870           
    … …  
    10701077//app functions
    10711078
     1079                static function h5vls_ajax_url() {
     1080                        // admin_url() can point to a protected backend subdirectory when the
     1081                        // public site and the WordPress admin installation use different URLs.
     1082                        return add_query_arg( 'action', 'h5vls_app', home_url( '/wp-admin/admin-ajax.php' ) );
     1083                }
     1084
    10721085                // ! user sessions vw_vmls_sessions
    10731086                static function sessionKey( $session, $broadcaster = false ) {
    … …  
    17191732                    'actionFullscreen' => true,
    17201733                    'actionFullpage'   => false,
    1721                     'serverURL'        => $ajaxurl = admin_url() . 'admin-ajax.php?action=h5vls_app', //for uploads
     1734                    'serverURL'        => self::h5vls_ajax_url(), //for uploads
    17221735                            'nonce'            => wp_create_nonce( 'h5vls_app_' . $sessionID ),
    17231736                    'serverURL2'           => plugins_url('videowhisper-live-streaming-integration/server/'), //fast server for translations
  • videowhisper-live-streaming-integration/trunk/readme.txt

    r3735339 r3735366  
    199199
    200200== Changelog ==
     201
     202= 7.3.6 =
     203* Security: Prevent page caches from reusing per-session HTML5 Videochat configuration.
     204
     205= 7.3.5 =
     206* Fix: Use the public WordPress AJAX URL for HTML5 Videochat sessions, including anonymous viewers on sites with a separate admin directory.
    201207
    202208= 7.3.4 =
  • videowhisper-live-streaming-integration/trunk/videowhisper_streaming.php

    r3735339 r3735366  
    44Plugin URI: https://broadcastlivevideo.com/
    55Description: <strong>Broadcast Live Video / HTML5 Live Streaming : WebRTC, HLS, RTSP, RTMP</strong> solution powers a turnkey live streaming channels site including web based webcam broadcasting app and player with chat, support for external apps, 24/7 RTSP ip cameras, WebRTC, video playlist scheduler, video archiving VOD, mobile live streaming support including chat, membership and access control, pay per view channels and tips/gifts for broadcasters. <a href='https://consult.videowhisper.com/?topic=Live-Streaming'>Contact Support</a> | <a href='admin.php?page=live-streaming&tab=setup'>Setup</a>
    6 Version: 7.3.4
     6Version: 7.3.6
    77Author: VideoWhisper.com
    88Author URI: https://videowhisper.com/
Note: See TracChangeset for help on using the changeset viewer.