GetFrameRateByIndex Method
Description
Returns the framerate of current source by the specified index in the buffer.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V8.0 | Since V8.0 | Not Supported |
Syntax
Long ObjectName.GetFrameRateByIndex(Long Index)
Parameters
Long Index: Specifies the index of framerate in buffer. The index is 0-based.
Return value
Long.
The result framerate of the device.
Remarks
This method is proveded for getting the framerate of your devices. Before setting the framerate index , check the FrameRateListCount property to get the total framerate count in the list and make sure your index is meaningful and correct.
See Also
SelectFrameRateByIndex() method, FrameRateListCount property, FrameRate property
Sample
A JavaScript sample is provided.
<script language="javascript">
function btnGetFrameRateByIndex_onclick() {
listcount = Webcam.FrameRateListCount;
alert(listcount);
//Webcam.SelectFrameRateByIndex(listcount-1);
framerate = Webcam.GetFrameRateByIndex(listcount-2);
alert(Webcam.FrameRate);
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
