IC.Video.Record client js - imonology/ImonCloud-Doc GitHub Wiki

Record

start(i_vid, i_callBack) -- 開始錄影

stop(i_vid, i_callback) -- 結束錄影

listRecord() -- 取得錄影檔案列表

getRecordById(i_vid) -- 取得特定錄影檔案資料

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

###start(i_vid, i_callback);

功能說明:開始錄影

變數說明:

  • 傳入(input)

變數名稱: i_vid

變數類型: string

變數說明: 影片ID

  • 傳出(output)

變數名稱: callback( type, res )

變數類型:

變數說明: type : (封包名稱),res : (串流資料)

  • 回傳(return)

  • 範例:

IC.Video.Record.start( document.getElementById('vid').value, procees_REST );

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

###stop(i_vid, i_callback);

功能說明:結束錄影

變數說明:

  • 傳入(input)

變數名稱: i_vid

變數類型: string

變數說明: 影片ID

  • 傳出(output)

變數名稱: callback( type, res )

變數類型:

變數說明: type : (封包名稱),res : (串流資料)

  • 回傳(return)

  • 範例:

IC.Video.Record.stop( document.getElementById('vid').value, procees_REST );

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

###listRecord();

功能說明:取得錄影檔案列表

變數說明:

  • 傳入(input)

  • 傳出(output)

變數名稱: callback( type, res )

變數類型:

變數說明: type : (封包名稱),res : (串流資料)

  • 回傳(return)

  • 範例:

IC.Video.Record.listRecord( procees_REST );

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

###getRecordById(i_vid);

功能說明:取得特定錄影檔案資料

變數說明:

  • 傳入(input)

變數名稱: i_vid

變數類型: string

變數說明: 影像ID

  • 傳出(output)

變數名稱: callback( type, res )

變數類型:

變數說明: type : (封包名稱),res : (串流資料)

  • 回傳(return)

  • 範例:

IC.Video.Record.getRecordById( document.getElementById('vid').value, procees_REST );

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