This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for filename in *.mp4; do | |
mp3="${filename%.mp4}.mp3" | |
echo "$filename ===> $mp3" | |
ffmpeg -i $filename -vn $mp3 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExtraModuleNames.Add(“AgoraUnrealSample”); | |
ExtraModuleNames.Add(“AgoraPlugin”); | |
if (Target.Platform == UnrealTargetPlatform.IOS || Target.Platform == UnrealTargetPlatform.Mac) | |
{ | |
bOverrideBuildEnvironment = true; | |
AdditionalCompilerArguments = “-Wno-unused-but-set-variable -Wno-gcc-compat -Wno-reorder-ctor”; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// input: [1,2] | |
public static int[] ParseOneDimArray(string str) | |
{ | |
string text = str.Substring(1, str.Length-2); | |
int [] arrayint = text.Split(',').Select(x=> int.Parse(x)).ToArray(); | |
return arrayint; | |
} | |
// input: [[1,2],[3,4]] | |
public static int[][] ParseTwoDimArray(string str) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.Networking; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class CloudRecordController : MonoBehaviour | |
{ | |
[SerializeField] | |
string ServerURL = default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
// Returns json {"resourceId":"xxxx", "sid":"yyy", "serverResponse":{"status":5,"fileList":"zzzz.m3u8","fileListMode":"string","sliceStartTime":1606357122528} } | |
[Serializable] | |
public class CloudRecordResponseModel | |
{ | |
public string resourceId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("config.php"); | |
$curl = curl_init(); | |
// Receive ResourceID and sid from client | |
$ResourceID = $_POST["resourceId"]; | |
$Channel = $_POST["channel"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("config.php"); | |
$curl = curl_init(); | |
// Receive ResourceID and sid from client | |
$ResourceID = $_POST["resourceId"]; | |
$Channel = $_POST["sid"]; | |
curl_setopt_array($curl, array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("config.php"); | |
$curl = curl_init(); | |
// Receive ResourceID from client | |
$ResourceID = $_POST["resourceId"]; | |
$Channel = $_POST["channel"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("config.php"); | |
$Channel = $_POST["channel"]; | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_URL => "https://api.agora.io/v1/apps/$AppID/cloud_recording/acquire", | |
CURLOPT_RETURNTRANSFER => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Agora | |
$AppID = ""; | |
$CustomerID=""; | |
$CustomerSecret=""; | |
$AuthSecret = base64_encode("$CustomerID:$CustomerSecret"); | |
// You define | |
$RecUID = "889988"; |
NewerOlder