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

#### 场景介绍

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


#### 前提条件

视频流引擎对象已创建。


#### 开发流程

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


#### 编码实例

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