Conversation
markdown/online-ktv/改进/场景化方案/iOS/K 歌房场景化 Objective-C API for iOS.md
Outdated
Show resolved
Hide resolved
markdown/online-ktv/改进/场景化方案/iOS/K 歌房场景化 Objective-C API for iOS.md
Outdated
Show resolved
Hide resolved
markdown/online-ktv/改进/场景化方案/iOS/K 歌房场景化 Objective-C API for iOS.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
歌曲编号和歌词编号是通过什么获取的?用户自己随便填的么,还是要和音乐文件的名字对应之类的?建议写清楚
There was a problem hiding this comment.
在 songCode 参数要填一次歌曲编号,然后 config 里又要填一个 songCode 参数。这两个参数有区别么?
markdown/online-ktv/改进/场景化方案/iOS/K 歌房场景化 Objective-C API for iOS.md
Outdated
Show resolved
Hide resolved
markdown/online-ktv/改进/场景化方案/iOS/K 歌房场景化 Objective-C API for iOS.md
Outdated
Show resolved
Hide resolved
markdown/online-ktv/改进/场景化方案/iOS/K 歌房场景化 Objective-C API for iOS.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
一个 KTV API 模块里,可以多次调用 playSong 播放多个歌曲么?还是不管调用多少次 playSong,只会播放最后一次调用的歌曲?
建议写清楚。
There was a problem hiding this comment.
stop、pause、resume、seek、selectTrackMode、setKaraokeView 这几个 API 都没有传 songCode 的地方,看起来是只有成功调用 playSong 之后才能对当前的歌曲进行设置,建议加上调用时序限制。
尤其是 seek、selectTrackMode、setKaraokeView 这类功能和 play 的关系。比如我调了 play 播放音乐,再调了 pause,这个时候调用 seek,再调用 resume,会按照我在 seek 里设置的时间点去放音乐么?
There was a problem hiding this comment.
这条 note 加在步骤 4 里是不是好些?
在这之前的描述中都没提到要使用数据流的概念,只提到了 streamId 参数,我会有点 get 不到想表达的意思,滑到步骤 4 了才知道是用 createDataStream 去创建 stream,才能有 streamid 去传入 init 方法。
There was a problem hiding this comment.
如果你在其他模块中也使用 sendStreamMessage
这里的 sendStreamMessage 要改成 createDataStream 不?我看全文只有这一个地方提到了 sendStreamMessage,不确定是不是写错了。
There was a problem hiding this comment.
初始化 KTV 模块调用了 5 个 API,但图片里只写了 initWithRtcEngine。是因为只有 initWithRtcEngine 属于 KTV 场景化 API 么?
sharedEngineWithAppId、sharedContentCenterWithConfig、createMusicPlayerWithDelegate、createDataStream 这四个 API 都是必须调用的么?如果是的话,还是建议时序图里加上。
There was a problem hiding this comment.
52 和 53 是监听回调相关实现,文内没有其他地方有解释说明,建议这里加个行内注释说明下
There was a problem hiding this comment.
这里面的四个 API 有 API 文档么?我没搜索到
markdown/online-ktv/改进/场景化方案/iOS/K 歌房场景化 Objective-C API for iOS.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
歌曲加载失败的操作
因为当前这步骤没代码,看不出重试三次的逻辑。
There was a problem hiding this comment.
这步骤没有监听回调的示例代码。标题是不是只需写控制歌曲播放?
There was a problem hiding this comment.
建议 note 这里简单写下:
通过更新媒体选项切换用户角色、是否发布麦克风流等
然后原文的两条内容放到步骤 5 的详细描述里。
- 主唱和上麦 xxx
- 普通听众 xxx
建议理由:看到时序图的这两句话,有点不知道什么意思,理解前后文才知道是建议xx角色设置是否发布麦克风流,所以建议图片里简单写设置的目的,然后步骤里详细写各角色要怎么设置。
There was a problem hiding this comment.
K 歌用户角色
修改理由:整篇有 clientrole 和 singrole 两种用户角色,容易引起混淆。
There was a problem hiding this comment.
AgoraRtcEngineKit 缺代码格式
There was a problem hiding this comment.
伴唱 UID 可以为 0
建议和之前的角色一样加上 uid 的描述
There was a problem hiding this comment.
主唱实现那里可以不填伴唱 UID。这里的伴唱实现需要填伴唱 UID。
There was a problem hiding this comment.
如果听众想上麦与主唱或伴唱语聊
主唱、伴唱和其他听众
主语中有主唱的,是不是都可以加上伴唱?
疑问:听众上麦只能语聊、不能合唱么?


上线格式检查可参考 preprod 链接: