---
title: 调用视频流引擎对象initialize接口
description: "初始化视频流引擎，传入IP、端口以及服务端云手机分辨率信息。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/230RC2/armnative/kunpengcpsvideo_16_0019.html
sourcePath: /source/zh/kunpengboostkithistory/230RC2/armnative/kunpengcpsvideo_16_0019.html
indexId: e9fe830df0bc5e46400f8311c369fb6b2072be11b45526b32070a53815cd12c079
---
# 调用视频流引擎对象initialize接口

#### 场景介绍

初始化视频流引擎，传入IP、端口以及服务端云手机分辨率信息。


#### 前提条件

视频流引擎对象已创建。


#### 开发流程

调用视频流引擎初始化接口。


#### 编码实例

```
public class Activity implements BaseActivity {
protected void onCreate(Bundle savedInstanceState) {
int initResult = engine.initialize();
if (initResult != VideoEngine.VMI_SUCCESS) {
// 初始化失败，退出处理
}
}
```
