Unity Recording Video Solution-Sharerec for Unity3d

Source: Internet
Author: User

Note buildsetting inside, autographic change to OpenGL es2, otherwise the charm Blue mobile phone on the easy appearance of 1/4 screen

First, import the project

1. To download Sharerec for Unity3d SDK package to mob official website, I use Sharerec for Android unity3d v1.5.2 this version.

2. Unzip after download, then find

if (sharerec.isavailable ()) {Uilable.text = "support";} Else{uilable.text = "not Supported";}} Start recording video public void Onswitch () {sharerec.startrecorder (); Ison.setactive (true);} End recording video public void Offswitch () {sharerec.stoprecorder (); ison.setactive (false);} Video sharing public void Videodata () {Sharerec.showshare ();} Profile public void Personaldata () {sharerec.showprofile ();} Video list public void Videolist () {sharerec.showvideocenter ();}//Get a video of your current video with the following code:

Get an array of IDs of videos you've recorded


Long[] aaa = Sharerec.listlocalvideos ();//Get the video ID of the last video
b = aaa[aaa. LENGTH-1];
Get the video storage path by ID

Sharerec.getlocalvideopath (b)



-----------------------------------------------------------

Unity Recording Video Solution-Sharerec for Unity3d

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.