void onStopped() { started = false; // 停止录制后启动分享视频 (show sharing page after the recorder is stopped) ShareREC.SetText("Angry Rebot"); ShareREC.AddCustomAttr("score", "5000"); ShareREC.AddCustomAttr("name", "ShareREC Developer"); ShareREC.AddCustomAttr("brand", "hehe!"); ShareREC.AddCustomAttr("level", "10"); // 添加返回操作(add callback to handle returning operations) ShareREC.OnReturnFromShareHandler = OnReturned; ShareREC.OnPlatformSelectedHandler = OnPlatformSelected; ShareREC.AddCustomPlatform("CustomPlatform"); if (share) { ShareREC.ShowShare(); } else { ShareREC.ShowLastVideo(); } }
void onStopped() { // 停止录制后启动分享视频 (show sharing page after the recorder is stopped) ShareREC.SetText("Angry Rebot"); ShareREC.AddCustomAttr("score", "5000"); ShareREC.AddCustomAttr("name", "ShareREC Developer"); ShareREC.AddCustomAttr("brand", "hehe!"); ShareREC.AddCustomAttr("level", "10"); // 添加返回操作(add callback to handle returning operations) ShareREC.OnReturnFromShareHandler = OnReturned; ShareREC.ShowShare(); }