imos 學習筆記四 錄影 c

2021-09-02 13:32:37 字數 1640 閱讀 8105

錄影

///

/// 單個通道的錄影

///

///

///

private void tsbuttonrecord_click(object sender, eventargs e)

//當前選中的使用者控制面板

selectedsubctrl = m_player.m_mainform.g_userctrllist[m_player.m_mainform.tabcontrol1.selectedindex];

playerpanel selectedpanel = selectedsubctrl.imosplayer.m_playerunit[playerpanel.selectedindex];

if (false == m_bisrecord)//未處於錄影過程中

if(null != selectedpanel.channelcode)

if (0 != ulret)

else

}else

if (0 != ulret)

else}}

呼叫sdk中的方法

///

/// 使用者標識

/// 檔案存放路徑(不包含檔名,且路徑不帶斜槓)

/// 錄影檔案的格式

///

[dllimport("xp_frame.dll", charset = charset.ansi, callingconvention = callingconvention.stdcall)]

public static extern uint32 imos_startrecord(ref user_login_id_info_s stuserlogininfo, byte szchannelcode, byte szfilename, uint32 ulfileformat);

///

/// 開始錄影,錄影檔名由使用者指定

///

/// 使用者標識

/// 要儲存的錄影檔名(不帶副檔名)

/// 錄影檔案的格式

/// 存放錄影檔案字尾的指標

///

[dllimport("xp_frame.dll", charset = charset.ansi, callingconvention = callingconvention.stdcall)]

public static extern uint32 imos_startrecordex(ref user_login_id_info_s stuserlogininfo, byte szchannelcode, byte szfilename, uint32 ulfileformat, intptr ptrfilepostfix);

///

/// 停止錄象

///

/// 使用者標識

///

[dllimport("xp_frame.dll", charset = charset.ansi, callingconvention = callingconvention.stdcall)]

public static extern uint32 imos_stoprecord(ref user_login_id_info_s stuserlogininfo, byte szchannelcode);

imos學習筆記一 sdk開發環境

音訊協議型別 g711 a u g722 48 56 64 g722.1 24 32 g723.1 5.3k 6.3k h261 h262 h263 h264 mpeg4 加密型別 aesdes h235加密 密碼加密 md5des 傳輸協議 h323 sipvs2010中預設包含路徑設定方法 vc...

C 學習筆記(四)

指標是指向一些記憶體位址的變數,既可以是資料的位址也可以是函式的位址。所以,可以在執行時改變指標指向的內容。c 的成員指標 pointer to member 遵從同樣的概念,除了所選擇的內容是在類中之內的成員指標。這裡麻煩的是所有的指標需要位址,但在類內部是沒有位址的 選擇乙個類的成員意味著在類中...

C 學習筆記四

15 友元函式 1.為什麼要引入友元函式?在對某些成員函式多次呼叫時,由於引數的型別檢查和安全性檢查都需要時間開銷,從而影響了程式的執行效率,引入友元後可以提高程式的執行效率 2.使用格式 a.是一種定義在類外部的 類 或 普通函式 但需要在類體內進行說明 前面加 friend關鍵字 b.不是成員函...