ProtocolREC
Class
Extends PluginProtocol
Module: anysdk
REC protocol
Index
Methods
share
share videostartRecording
Start to record videostopRecording
Start to record videosetListener
set listenergetListener
get listenerpauseRecording
pause to record video Before to invoke, you need to verdict whether this properties existedresumeRecording
resume to record video Before to invoke, you need to verdict whether this properties existedisAvailable
get whether the device is isAvailable Before to invoke, you need to verdict whether this properties existedisRecording
get status of recording Before to invoke, you need to verdict whether this properties existedshowToolBar
show toolbar Before to invoke, you need to verdict whether this properties existedhideToolBar
hide toolbar Before to invoke, you need to verdict whether this properties existedshowVideoCenter
show video center Before to invoke, you need to verdict whether this properties existedenterPlatform
enter platform Before to invoke, you need to verdict whether this properties existedsetMetaData
Set the video data, it is recommended to check whether are recorded firstly Before to invoke, you need to verdict whether this properties existedisFunctionSupported
Check whether the function is supportedgetPluginName
get plugin namegetPluginVersion
get plugin versiongetSDKVersion
get SDK versioncallFuncWithParam
void methods for reflections with parametercallStringFuncWithParam
String methods for reflections with parametercallIntFuncWithParam
int methods for reflections with parametercallBoolFuncWithParam
boolean methods for reflections with parametercallFloatFuncWithParam
float methods for reflections with parameter
Details
Methods
share
share video
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1486 |
Parameters
info
Object Type: map
startRecording
Start to record video
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1497 |
stopRecording
Start to record video
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1507 |
setListener
set listener
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1517 |
Parameters
getListener
get listener
meta | description |
---|---|
Returns | Function |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1529 |
pauseRecording
pause to record video Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1541 |
resumeRecording
resume to record video Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1552 |
isAvailable
get whether the device is isAvailable Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1563 |
isRecording
get status of recording Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1576 |
showToolBar
show toolbar Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1589 |
hideToolBar
hide toolbar Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1600 |
showVideoCenter
show video center Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1611 |
enterPlatform
enter platform Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1622 |
setMetaData
Set the video data, it is recommended to check whether are recorded firstly Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:1633 |
Parameters
info
Object Type: map
isFunctionSupported
Check whether the function is supported
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:327 |
Parameters
functionName
String
getPluginName
get plugin name
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:341 |
getPluginVersion
get plugin version
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:353 |
getSDKVersion
get SDK version
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:365 |
callFuncWithParam
void methods for reflections with parameter
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:377 |
Parameters
callStringFuncWithParam
String methods for reflections with parameter
meta | description |
---|---|
Returns | String |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:390 |
Parameters
callIntFuncWithParam
int methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:405 |
Parameters
callBoolFuncWithParam
boolean methods for reflections with parameter
meta | description |
---|---|
Returns | boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:420 |
Parameters
callFloatFuncWithParam
float methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/extensions/anysdk/jsb_anysdk.js:435 |