Video uploaded to the Lego cloud on its own website to play
I personally understand that the music vision Cloud serves as a resource server to link to a video through the API and to store it in its own library. The following code was found from a friend of a signed out open source China.
1 2 /*3 * Function: Generate signature4 */5 protected function_getsign ($param)6 {7 //signature Step One: Sorting parameters by dictionary order8 Ksort($param);9 Ten $String=$this->_formatbizqueryparamap ($param);//Stitching Arrays One A //Signature Step two: Add key after String - $String=$String.$this-Secret; - the //Signature Step Three: MD5 encryption - $String=MD5($String); - - return $String; + } - + /* A * Stitching Array at */ - protected function_formatbizqueryparamap ($paraMap,$urlencode= ' '){ - $buff= ""; - Ksort($paraMap); - foreach($paraMap as $k=$v){ - if($urlencode){ in $v=UrlEncode($v); - } to $buff.=$k.$v; + } - return $buff; the } * $ /*Panax Notoginseng * Send Curl Request - */ the Public function_curlpost ($url,$data){ + A $ch=curl_init (); the $header[] = "Accept-charset:utf-8"; +curl_setopt ($ch, Curlopt_url,$url); -curl_setopt ($ch, Curlopt_customrequest, "POST"); $curl_setopt ($ch, Curlopt_ssl_verifypeer,FALSE); $curl_setopt ($ch, Curlopt_ssl_verifyhost,FALSE); -curl_setopt ($ch, Curlopt_httpheader,$header); -curl_setopt ($ch, Curlopt_followlocation, 1); thecurl_setopt ($ch, Curlopt_autoreferer, 1); -curl_setopt ($ch, Curlopt_postfields,$data);Wuyicurl_setopt ($ch, Curlopt_returntransfer,true); the $tmpInfo= Curl_exec ($ch); -Curl_close ($ch); Wu - return $tmpInfo; About } $ -}
The key user ID UUID is a MD5 encrypted sign that can be seen through an algorithm and its own secret in the background of the music vision Cloud.
1<?PHP2 3 require_once' Getsign.php '; 4 $LeshiController=NewLeshicontroller ();5 $result=$LeshiController->dianbo (' Video.list ');6 Var_dump($result);7 /** Results8 Array9 0 =Ten Array One ' video_id ' = String ' 36950395 ' (length=8) A ' video_unique ' = String ' 810090111f ' (length=10) - ' video_name ' = String ' yin and yang ' (length=9) - ' img ' = String ' Http://i3.letvimg.com/lc13_yunzhuanma/201610/28/09/38/547428c7a1e48587f36c5d0969d35565_v2 _ndiymjkxnjmw/thumb/1.jpg ' (length=114) the ' init_pic ' = ' = String ' (length=0) - ' is_pay ' = String ' 0 ' (length=1) - ' video_duration ' = String ' 218 ' (length=3) - ' initial_size ' = String ' 57180660 ' (length=8) + ' error_code ' = String ' 0 ' (length=1) - ' error_desc ' = ' = String ' (length=0) + ' complete_time ' = String ' 2016-10-28 09:36:46 ' (length=19) A ' add_time ' = String ' 2016-10-28 09:35:38 ' (length=19) at ' isdrm ' = String ' 0 ' (length=1) - ' isdownload ' = String ' 0 ' (length=1) - ' video_desc ' = ' = String ' (length=0) - ' tag ' = = String ' (length=0) - ' file_md5 ' = String ' 547428c7a1e48587f36c5d0969d35565 ' (length=32) - ' mid ' = String ' 211145315 ' (length=9) in ' usercategory1 ' = String ' 37869 ' (length=5) - ' usercategory2 ' = String ' 37870 ' (length=5) to ' status ' = String ' ten ' (length=2) + */
It's easy to get a list of videos without parameters that need to get additional information based on the method of the corresponding value
The Music Vision Cloud API