Skip to content

Commit

Permalink
Deal with publish url
Browse files Browse the repository at this point in the history
  • Loading branch information
BoleLiu committed Apr 8, 2022
1 parent f2078d9 commit beed3e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ private void initView() {
mRemoteRenderView.setZOrderOnTop(true);

mPublishUrlEditText = findViewById(R.id.publish_url_edit_text);
mPublishUrlEditText.setText(Config.PUBLISH_URL);
mConfigWidthEditText = findViewById(R.id.transcoding_config_width_edit_text);
mConfigHeightEditText = findViewById(R.id.transcoding_config_height_edit_text);
mConfigBitrateEditText = findViewById(R.id.transcoding_config_bitrate_edit_text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ private void initView() {
mRemoteRenderView.setZOrderOnTop(true);

mPublishUrlEditText = findViewById(R.id.publish_url_edit_text);
mPublishUrlEditText.setText(Config.PUBLISH_URL);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class Config {
// 输入您的 RoomToken,生成方式可参考 https://developer.qiniu.com/rtc/9858/applist#4
public static final String ROOM_TOKEN = "";
// CDN 转推场景下需要配置推流的 rtmp 地址,获取方式可参考 https://developer.qiniu.com/pili/1221/the-console-quick-start
public static final String PUBLISH_URL = "自定义转推 rtmp 地址";
public static final String PUBLISH_URL = "";

public static final String KEY_ROOM_NAME = "roomName";
public static final String KEY_USER_ID = "userId";
Expand Down

0 comments on commit beed3e4

Please sign in to comment.