admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('wpstream_broadcaster_nonce'), 'plugin_url' => plugin_dir_url(__FILE__), 'obs_uri' => $obs_uri, 'obs_stream' => $obs_stream, 'channel_id' => $channel_id, 'is_channel_live' => get_post_meta($channel_id, 'status', true), 'whip_url' => get_post_meta($channel_id, 'whipUrl', true), 'no_video_audio_access' => esc_html__('We couldn’t access your camera or microphone. Please allow permissions and reload the page.', 'wpstream'), 'no_audio_access' => esc_html__('We couldn’t access your microphone. Please allow permissions and reload the page.', 'wpstream'), 'no_video_access' => esc_html__('We couldn’t access your camera. Please allow permissions and reload the page.', 'wpstream'), 'channel_off' => esc_html__('Invalid event. Your live event may have expired or its credentials are incorrect.', 'wpstream'), 'not_enough_traffic' => sprintf( esc_html__('Not enough streaming traffic to broadcast. Please %supgrade your subscription%s for extra resources.', 'wpstream'), '', '' ), 'is_onboarding' => $is_onboarding ) ); if ( $is_onboarding ) { wp_enqueue_script('wpstream-on-boarding-page-js', plugin_dir_url( __DIR__ ) .'admin/js/wpstream-onboarding-page.js',array(), WPSTREAM_PLUGIN_VERSION, true); wp_localize_script( 'wpstream-on-boarding-page-js', 'wpstream_onboarding_page_vars', array( 'admin_url' => get_admin_url(), 'request_url' => WPSTREAM_CLICK, 'wps_user' => get_option('wpstream_api_username_from_token'), 'current_page' => 'broadcaster', 'plugin_version' => WPSTREAM_PLUGIN_VERSION, ) ); } ?> > <?php esc_html_e('WpStream Broadcaster', 'wpstream'); ?>
'; ?>