PluginProbe
WpStream – Live Streaming, Video on Demand, Pay Per View / 4.11.1
WpStream – Live Streaming, Video on Demand, Pay Per View v4.11.1
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-live-api-connection.php +16 -14 4.12.2 → 4.11.1 View file →
@@ -304,11 +304,8 @@
304 304
305 305 update_post_meta($channel_id,'obs_uri',$obs_uri);
306 306 update_post_meta($channel_id,'obs_stream',$obs_stream);
307 307 update_post_meta($channel_id,'broadcast_url',$response['broadcast_url']);
308 - if ( isset( $response['embedKey'] ) && $response['embedKey'] != '' ) {
309 - update_post_meta( $channel_id,'embedKey',$response['embedKey'] );
310 - }
311 308
312 309 }
313 310
314 311
@@ -365,9 +362,8 @@
365 362 $curl_post_fields=array(
366 363 'access_token' => $access_token,
367 364 'channel_id' => $channel_id,
368 365 'domain' => $domain['host'],
369 - 'embed' => true,
370 366 'notes' => $notes
371 367 );
372 368
373 369
@@ -1089,24 +1085,30 @@
1089 1085 if ( $username=='' || $password==''){
1090 1086 return;
1091 1087 }
1092 1088
1093 - $url = 'access_token';
1094 - $curl_post_fields = array(
1095 - 'grant_type' => 'password',
1096 - 'username' => $username,
1097 - 'password' => $password
1089 + $url='access_token';
1090 + $curl_post_fields=array(
1091 + 'grant_type' => 'password',
1092 + 'username' => $username,
1093 + 'password' => $password
1098 1094 );
1099 - $curl_response = $this->wpstream_baker_do_curl_base($url, $curl_post_fields, true);
1100 - $response = json_decode($curl_response);
1095 +
1096 +
1097 +
1098 + $curl_response=$this->wpstream_baker_do_curl_base($url,$curl_post_fields, true);
1099 +
1100 + $response= json_decode($curl_response);
1101 1101
1102 - if( isset( $response->access_token ) && $response->access_token != '' ) {
1102 + if( isset($response->access_token) && $response->access_token!='' ){
1103 1103 return $response->access_token;
1104 - } else {
1104 + }else{
1105 1105 return false;
1106 1106 }
1107 1107 }
1108 -
1108 +
1109 +
1110 +
1109 1111 /*
1110 1112 *
1111 1113 * Return token for api version 3.0
1112 1114 *