Commit 5d593044 authored by JiangWanZhi's avatar JiangWanZhi

添加缩放。和录制视频插件NatCorder

parent 4466ae63
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!84 &8400000
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Create_MP4
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_IsAlphaChannelOptional: 0
serializedVersion: 5
m_Width: 256
m_Height: 256
m_AntiAliasing: 1
m_MipCount: -1
m_DepthStencilFormat: 94
m_ColorFormat: 8
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 0
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1
m_ShadowSamplingMode: 2
fileFormatVersion: 2
guid: c1a3fcfca8dc68c4cb9e30ec59a61a52
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 8400000
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 6336287e7ea0d42428bbf07eab939af8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: aa018c0627b2746e4af74a1a4db8dfdc
timeCreated: 1490321140
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 78d70c19caee6402e8b021408a36d00b
folderAsset: yes
timeCreated: 1518397891
licenseType: Store
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 455c07286cfb64b6c890cb29c6bcfa6e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>AudioInput</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>Recorder input for recording audio frames from an `AudioListener` or `AudioSource`.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/AudioInput_Dispose.html'>Dispose</a></td>
<td class='expand'>Stop recorder input and teardown resources.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/AudioInput_AudioInput.html'>AudioInput</a></td>
<td class='expand'>Create an audio recording input from an AudioListener.</td>
</tr>
<tr>
<td><a href='../Members/AudioInput_AudioInput1.html'>AudioInput</a></td>
<td class='expand'>Create an audio recording input from an AudioSource.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: cbab6d9de56bd4c6fbc1523bb616865b
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>CameraInput</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>Recorder input for recording video frames from one or more game cameras.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/CameraInput_Dispose.html'>Dispose</a></td>
<td class='expand'>Stop recorder input and teardown resources.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/CameraInput_CameraInput.html'>CameraInput</a></td>
<td class='expand'>Create a video recording input from a game camera.</td>
</tr>
</table>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/CameraInput_frameSkip.html'>frameSkip</a></td>
<td class='expand'>Control number of successive camera frames to skip while recording.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 556ee523e5af64db081ea5b44b666b0c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>FixedIntervalClock</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>Clock for generating timestamps with fixed intervals.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/FixedIntervalClock_Tick.html'>Tick</a></td>
<td class='expand'>Advance the clock by its time interval.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/FixedIntervalClock_FixedIntervalClock.html'>FixedIntervalClock</a></td>
<td class='expand'>Create a fixed interval clock for a given framerate.</td>
</tr>
<tr>
<td><a href='../Members/FixedIntervalClock_FixedIntervalClock1.html'>FixedIntervalClock</a></td>
<td class='expand'>Create a fixed interval clock with timestamp interval in seconds.</td>
</tr>
</table>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/FixedIntervalClock_Interval.html'>Interval</a></td>
<td class='expand'>Interval between consecutive timestamps in seconds.</td>
</tr>
<tr>
<td><a href='../Members/FixedIntervalClock_Timestamp.html'>Timestamp</a></td>
<td class='expand'>Current timestamp in nanoseconds.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 833bce73bb05e485ea4d04e9851cb635
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>GIFRecorder</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>Animated GIF image recorder. Recorded GIF will loop forever. This recorder is not supported on WebGL.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/GIFRecorder_CommitFrame.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/GIFRecorder_CommitFrame1.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/GIFRecorder_CommitSamples.html'>CommitSamples</a></td>
<td class='expand'>This recorder does not support committing audio sample buffers.</td>
</tr>
<tr>
<td><a href='../Members/GIFRecorder_FinishWriting.html'>FinishWriting</a></td>
<td class='expand'>Finish writing and return the path to the recorded media file.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/GIFRecorder_GIFRecorder.html'>GIFRecorder</a></td>
<td class='expand'>Create a GIF recorder.</td>
</tr>
</table>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/GIFRecorder_frameSize.html'>frameSize</a></td>
<td class='expand'>Recording frame size.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 0d161652446ff4b0e8c1dcece210d194
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>HEVCRecorder</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>HEVC video recorder. This recorder is currently experimental. This recorder is not supported on WebGL.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/HEVCRecorder_CommitFrame.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/HEVCRecorder_CommitFrame1.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/HEVCRecorder_CommitSamples.html'>CommitSamples</a></td>
<td class='expand'>Commit an audio sample buffer for encoding.</td>
</tr>
<tr>
<td><a href='../Members/HEVCRecorder_FinishWriting.html'>FinishWriting</a></td>
<td class='expand'>Finish writing and return the path to the recorded media file.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/HEVCRecorder_HEVCRecorder.html'>HEVCRecorder</a></td>
<td class='expand'>Create an HEVC recorder.</td>
</tr>
</table>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/HEVCRecorder_frameSize.html'>frameSize</a></td>
<td class='expand'>Recording frame size.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: dd7f9f6bb3aa74ec3a94acef5f9cee38
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>JPGRecorder</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>JPG image sequence recorder.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/JPGRecorder_CommitFrame.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/JPGRecorder_CommitFrame1.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/JPGRecorder_CommitSamples.html'>CommitSamples</a></td>
<td class='expand'>This recorder does not support committing audio sample buffers.</td>
</tr>
<tr>
<td><a href='../Members/JPGRecorder_FinishWriting.html'>FinishWriting</a></td>
<td class='expand'>Finish writing and return the path to the recorded media file.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/JPGRecorder_JPGRecorder.html'>JPGRecorder</a></td>
<td class='expand'>Create a JPG recorder.</td>
</tr>
</table>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/JPGRecorder_frameSize.html'>frameSize</a></td>
<td class='expand'>Recording frame size.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: a2bf9aec1b4234e60aa733dc6f77887a
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>MP4Recorder</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>MP4 video recorder.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/MP4Recorder_CommitFrame.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/MP4Recorder_CommitFrame1.html'>CommitFrame</a></td>
<td class='expand'>Commit a video frame for encoding.</td>
</tr>
<tr>
<td><a href='../Members/MP4Recorder_CommitSamples.html'>CommitSamples</a></td>
<td class='expand'>Commit an audio sample buffer for encoding.</td>
</tr>
<tr>
<td><a href='../Members/MP4Recorder_FinishWriting.html'>FinishWriting</a></td>
<td class='expand'>Finish writing and return the path to the recorded media file.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/MP4Recorder_MP4Recorder.html'>MP4Recorder</a></td>
<td class='expand'>Create an MP4 recorder.</td>
</tr>
</table>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/MP4Recorder_frameSize.html'>frameSize</a></td>
<td class='expand'>Recording frame size.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 6e92204fa7cc041879ecdc38f8bd2b1d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>RealtimeClock</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>Realtime clock for generating timestamps.</p>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/RealtimeClock_Paused.html'>Paused</a></td>
<td class='expand'>Is the clock paused?</td>
</tr>
<tr>
<td><a href='../Members/RealtimeClock_Timestamp.html'>Timestamp</a></td>
<td class='expand'>Current timestamp in nanoseconds.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 17b0e44d12c974d38900815c38d01669
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/groupstyles.css'>
</head>
<body>
<h1 class='blockname'>ScreenInput</h1>
<p1 class='faintname'></p1>
<br>
<br>
<h2>Description</h2>
<p>Recorder input for recording video frames from the screen.</p>
<br>
<br>
<h2>Public Functions</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/ScreenInput_Dispose.html'>Dispose</a></td>
<td class='expand'>Stop recorder input and teardown resources.</td>
</tr>
</table>
<br>
<br>
<h2>Constructors</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/ScreenInput_ScreenInput.html'>ScreenInput</a></td>
<td class='expand'>Create a video recording input from the screen.</td>
</tr>
</table>
<br>
<br>
<h2>Public Variables</h2>
<table id='memberlist'>
<tr>
<td><a href='../Members/ScreenInput_frameSkip.html'>frameSkip</a></td>
<td class='expand'>Control number of successive camera frames to skip while recording.</td>
</tr>
</table>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: c29ae64a1683941faa5befa7c4381078
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 42b989c941b164efd93fab72d524259d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<html>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/navigationstyles.css'>
</head>
<body>
<h2>Classes</h2>
<p><a href='../Groups/AudioInput.html' target='documentationview'>AudioInput</a></p>
<p><a href='../Groups/CameraInput.html' target='documentationview'>CameraInput</a></p>
<p><a href='../Groups/FixedIntervalClock.html' target='documentationview'>FixedIntervalClock</a></p>
<p><a href='../Groups/GIFRecorder.html' target='documentationview'>GIFRecorder</a></p>
<p><a href='../Groups/HEVCRecorder.html' target='documentationview'>HEVCRecorder</a></p>
<p><a href='../Groups/JPGRecorder.html' target='documentationview'>JPGRecorder</a></p>
<p><a href='../Groups/MP4Recorder.html' target='documentationview'>MP4Recorder</a></p>
<p><a href='../Groups/RealtimeClock.html' target='documentationview'>RealtimeClock</a></p>
<p><a href='../Groups/ScreenInput.html' target='documentationview'>ScreenInput</a></p>
<hr>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 89d50958b72634bee934b48d3cf3af9c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/welcomestyles.css'>
</head>
<body>
<h1 class='blockname'>Welcome to the NatCorder Scripting Reference!</h1>
<br>
<br>
<p1>Here you will find a comprehensive scripting reference and documentation for NatCorder. Use the left bar to navigate.</p1>
<br>
<br>
<!--Copyright tag-->
<br>
<hr>
<p1 class='faintname'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 232370422a9a0433daa6b9b2008c8e10
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: cb16290639e4e4bbb9819e914a397aae
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/AudioInput.html'>AudioInput</a>.AudioInput</h1>
<p1 class='faintname'>public AudioInput (IMediaRecorder recorder, IClock clock, AudioListener audioListener)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create an audio recording input from an AudioListener.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: e7469f9fbbd34473ea2919364851f460
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/AudioInput.html'>AudioInput</a>.AudioInput</h1>
<p1 class='faintname'>public AudioInput (IMediaRecorder recorder, IClock clock, AudioSource audioSource, bool mute)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create an audio recording input from an AudioSource.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 9845df407b47e489da75d1b5a40e4c12
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/AudioInput.html'>AudioInput</a>.Dispose</h1>
<p1 class='faintname'>public void Dispose ()<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Stop recorder input and teardown resources.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 90518e3b40d7543f894fff86633464f1
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/CameraInput.html'>CameraInput</a>.CameraInput</h1>
<p1 class='faintname'>public CameraInput (IMediaRecorder recorder, IClock clock, Camera[] cameras)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create a video recording input from a game camera.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 6ef3b691b74e948fba3f0e5ae7124b0b
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/CameraInput.html'>CameraInput</a>.Dispose</h1>
<p1 class='faintname'>public void Dispose ()<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Stop recorder input and teardown resources.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 63fd488e98859482fa7961e996eaec09
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/CameraInput.html'>CameraInput</a>.frameSkip</h1>
<p1 class='faintname'>public int<b> frameSkip;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Control number of successive camera frames to skip while recording.<br><br>
This is very useful for GIF recording, which typically has a lower framerate appearance.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 883d7bccaa5c64979a5133fc1b1761f4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/FixedIntervalClock.html'>FixedIntervalClock</a>.FixedIntervalClock</h1>
<p1 class='faintname'>public FixedIntervalClock (int framerate, bool autoTick)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create a fixed interval clock for a given framerate.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: f963a3e93c03b490fb3b27880ccdda61
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/FixedIntervalClock.html'>FixedIntervalClock</a>.FixedIntervalClock</h1>
<p1 class='faintname'>public FixedIntervalClock (double interval, bool autoTick)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create a fixed interval clock with timestamp interval in seconds.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 5cf3aebe18512446294b5c8fc8130b68
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/FixedIntervalClock.html'>FixedIntervalClock</a>.Interval</h1>
<p1 class='faintname'>public double<b> Interval;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Interval between consecutive timestamps in seconds.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: c07f0903341eb474682667d9feaec911
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/FixedIntervalClock.html'>FixedIntervalClock</a>.Tick</h1>
<p1 class='faintname'>public void Tick ()<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Advance the clock by its time interval.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 1c1fd1c06ce0c49808b81e708a6308d8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/FixedIntervalClock.html'>FixedIntervalClock</a>.Timestamp</h1>
<p1 class='faintname'>public long<b> Timestamp;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Current timestamp in nanoseconds.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: cda01e20a8ecc4e50940d1d10402759b
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/GIFRecorder.html'>GIFRecorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (T[] pixelBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<code>
<pre>public class RecordWebCam : MonoBehaviour {
WebCamTexture cameraTexture;
IMediaRecorder mediaRecorder;
IClock clock;
IEnumerator Start () {
<font color='green'>// Start camera preview</font>
cameraTexture = new WebCamTexture();
cameraTexture.Play();
<font color='green'>// Start recording</font>
clock = new RealtimeClock();
mediaRecorder = new ... <font color='green'>// Create a recorder</font>
<font color='green'>// Wait a while</font>
yield return new WaitForSeconds(10f);
<font color='green'>// Stop recording</font>
mediaRecorder.Dispose();
mediaRecorder = null;
}
void Update () {
if (mediaRecorder != null && cameraTexture.didUpdateThisFrame) {
<font color='green'>// Commit the frame for encoding</font>
mediaRecorder.CommitFrame(cameraTexture.GetPixels32(), clock.Timestamp);
}
}
}</pre>
</code>
<br>
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 2d8383eae7a3f442eacdd0ed8b30994a
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/GIFRecorder.html'>GIFRecorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (IntPtr nativeBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 4996cc896beed41e3a5c196a6a501413
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/GIFRecorder.html'>GIFRecorder</a>.CommitSamples</h1>
<p1 class='faintname'>public void CommitSamples (float[] sampleBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>This recorder does not support committing audio sample buffers.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 6d5fb49d54eb543f8ad0b95789b97385
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/GIFRecorder.html'>GIFRecorder</a>.FinishWriting</h1>
<p1 class='faintname'>public Task`1 FinishWriting ()<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Finish writing and return the path to the recorded media file.<br><br>
If recording is not successful for any reason, the returned task will throw an exception when complete.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 5cde2d9066a564fd3b7bfb567ae2d7f8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/GIFRecorder.html'>GIFRecorder</a>.GIFRecorder</h1>
<p1 class='faintname'>public GIFRecorder (int width, int height, float frameDuration)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create a GIF recorder.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: a345db0887ecd44eeb0cf6e3fbb8c0ea
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/GIFRecorder.html'>GIFRecorder</a>.frameSize</h1>
<p1 class='faintname'>public ValueTuple&lt;int, int&gt;<b> frameSize;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Recording frame size.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 1470aabe5771d473d9f68a6b38b39e1b
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/HEVCRecorder.html'>HEVCRecorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (T[] pixelBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<code>
<pre>public class RecordWebCam : MonoBehaviour {
WebCamTexture cameraTexture;
IMediaRecorder mediaRecorder;
IClock clock;
IEnumerator Start () {
<font color='green'>// Start camera preview</font>
cameraTexture = new WebCamTexture();
cameraTexture.Play();
<font color='green'>// Start recording</font>
clock = new RealtimeClock();
mediaRecorder = new ... <font color='green'>// Create a recorder</font>
<font color='green'>// Wait a while</font>
yield return new WaitForSeconds(10f);
<font color='green'>// Stop recording</font>
mediaRecorder.Dispose();
mediaRecorder = null;
}
void Update () {
if (mediaRecorder != null && cameraTexture.didUpdateThisFrame) {
<font color='green'>// Commit the frame for encoding</font>
mediaRecorder.CommitFrame(cameraTexture.GetPixels32(), clock.Timestamp);
}
}
}</pre>
</code>
<br>
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: c63d5fc77858c419fa579e0445c7ce7c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/HEVCRecorder.html'>HEVCRecorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (IntPtr nativeBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: db52ae5dd7dab4b958e59328d46245c7
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/HEVCRecorder.html'>HEVCRecorder</a>.CommitSamples</h1>
<p1 class='faintname'>public void CommitSamples (float[] sampleBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit an audio sample buffer for encoding. <br><br>
The sample buffer is expected to contain raw 32-bit floating point PCM sample data, interleaved by channel.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<code>
<pre><font color='green'>// Initialize these somewhere</font>
MP4Recorder videoRecorder;
IClock clock;
void OnAudioFilterRead (float[] data, int channels) { <font color='green'>// Invoked by Unity</font>
<font color='green'>// Send to recorder for encoding</font>
videoRecorder?.CommitSamples(data, clock.Timestamp);
}</pre>
</code>
<br>
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 341333eef6215441ebfef46894bac3fc
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/HEVCRecorder.html'>HEVCRecorder</a>.FinishWriting</h1>
<p1 class='faintname'>public Task`1 FinishWriting ()<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Finish writing and return the path to the recorded media file.<br><br>
If recording is not successful for any reason, the returned task will throw an exception when complete.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 90059fd69ae6c456c90d09e8abb9c081
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/HEVCRecorder.html'>HEVCRecorder</a>.HEVCRecorder</h1>
<p1 class='faintname'>public HEVCRecorder (int width, int height, float framerate, int sampleRate, int channelCount, int bitrate, int keyframeInterval)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create an HEVC recorder.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: eeb4e10ef28764f859b488e848ad8992
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/HEVCRecorder.html'>HEVCRecorder</a>.frameSize</h1>
<p1 class='faintname'>public ValueTuple&lt;int, int&gt;<b> frameSize;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Recording frame size.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 55996c199091e4003bc105544ba61d56
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/JPGRecorder.html'>JPGRecorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (T[] pixelBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: d565151b857ce464b928d0ea4b44ded8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/JPGRecorder.html'>JPGRecorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (IntPtr nativeBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 2ebd3f58b89484ff99b488d4b5073010
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/JPGRecorder.html'>JPGRecorder</a>.CommitSamples</h1>
<p1 class='faintname'>public void CommitSamples (float[] sampleBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>This recorder does not support committing audio sample buffers.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: c83d368b037f44031a9b8c4ebf1918db
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/JPGRecorder.html'>JPGRecorder</a>.FinishWriting</h1>
<p1 class='faintname'>public Task`1 FinishWriting ()<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Finish writing and return the path to the recorded media file.<br><br>
If recording is not successful for any reason, the returned task will throw an exception when complete.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 9ee8df365296b4f68b400276525e2b46
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/JPGRecorder.html'>JPGRecorder</a>.JPGRecorder</h1>
<p1 class='faintname'>public JPGRecorder (int imageWidth, int imageHeight)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create a JPG recorder.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: ccf3473ca9194431fb058a678fa33062
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/JPGRecorder.html'>JPGRecorder</a>.frameSize</h1>
<p1 class='faintname'>public ValueTuple&lt;int, int&gt;<b> frameSize;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Recording frame size.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: e3dd79867556e4028b1d7b650f6c1509
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/MP4Recorder.html'>MP4Recorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (T[] pixelBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<code>
<pre>public class RecordWebCam : MonoBehaviour {
WebCamTexture cameraTexture;
IMediaRecorder mediaRecorder;
IClock clock;
IEnumerator Start () {
<font color='green'>// Start camera preview</font>
cameraTexture = new WebCamTexture();
cameraTexture.Play();
<font color='green'>// Start recording</font>
clock = new RealtimeClock();
mediaRecorder = new ... <font color='green'>// Create a recorder</font>
<font color='green'>// Wait a while</font>
yield return new WaitForSeconds(10f);
<font color='green'>// Stop recording</font>
mediaRecorder.Dispose();
mediaRecorder = null;
}
void Update () {
if (mediaRecorder != null && cameraTexture.didUpdateThisFrame) {
<font color='green'>// Commit the frame for encoding</font>
mediaRecorder.CommitFrame(cameraTexture.GetPixels32(), clock.Timestamp);
}
}
}</pre>
</code>
<br>
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 729622ec4d480431cb82ffdf91991463
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/MP4Recorder.html'>MP4Recorder</a>.CommitFrame</h1>
<p1 class='faintname'>public void CommitFrame (IntPtr nativeBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit a video frame for encoding.<br><br>
Note that WebGL is an immediate-encode platform, meaning that frames are encoded immediately
they are committed. As a result, timestamps on video frames and audio sample buffers are wholly ignored.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 56acaaa368b1d4d1c84bd96d0b3b77f9
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/MP4Recorder.html'>MP4Recorder</a>.CommitSamples</h1>
<p1 class='faintname'>public void CommitSamples (float[] sampleBuffer, long timestamp)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Commit an audio sample buffer for encoding. <br><br>
The sample buffer is expected to contain raw 32-bit floating point PCM sample data, interleaved by channel.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<code>
<pre><font color='green'>// Initialize these somewhere</font>
MP4Recorder videoRecorder;
IClock clock;
void OnAudioFilterRead (float[] data, int channels) { <font color='green'>// Invoked by Unity</font>
<font color='green'>// Send to recorder for encoding</font>
videoRecorder?.CommitSamples(data, clock.Timestamp);
}</pre>
</code>
<br>
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 7b3aad52bee2649758aaf767c455b9fb
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/MP4Recorder.html'>MP4Recorder</a>.FinishWriting</h1>
<p1 class='faintname'>public Task`1 FinishWriting ()<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Finish writing and return the path to the recorded media file.<br><br>
If recording is not successful for any reason, the returned task will throw an exception when complete.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: 29703ff8763b245468ca2d7faa02029e
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/MP4Recorder.html'>MP4Recorder</a>.MP4Recorder</h1>
<p1 class='faintname'>public MP4Recorder (int width, int height, float framerate, int sampleRate, int channelCount, int bitrate, int keyframeInterval)<b>;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Create an MP4 recorder.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
fileFormatVersion: 2
guid: fcf3ab73f49b747d184364c52b7d251f
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang='en-US'>
<head>
<!--Document title is project name-->
<title>NatCorder Scripting Reference on Calligraphy</title>
<!--Extra information-->
<meta name='description' content='NatCorder API documentation on Calligraphy'> <!--Populate from Calligraphy-->
<meta name='keywords' content='NatCorder, Calligraphy, Unity'> <!--Populate from Calligraphy-->
<meta name='author' content='Calligraphy by Yusuf Olokoba'>
<meta charset='UTF-8'>
<!--Style sheet-->
<link rel='stylesheet' href='../Styles/memberstyles.css'>
</head>
<body>
<h1 class='blockname'><a href='../Groups/MP4Recorder.html'>MP4Recorder</a>.frameSize</h1>
<p1 class='faintname'>public ValueTuple&lt;int, int&gt;<b> frameSize;</b></p1>
<br>
<br>
<h2>Description</h2>
<p1>Recording frame size.</p1>
<br>
<br>
<!--Code example-->
<!--Must not be indented-->
<!--There must be no space between the text and the pre tags-->
<!--See Also-->
<!--Copyright tag-->
<br>
<hr>
<p1 class='copyright'><small>Copyright (c) Yusuf Olokoba 2016</small></p1>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment