1.0.0-alpha.43 • Published 3 years ago
tingwu-meeting-ui-components v1.0.0-alpha.43
tingwu-meeting-sdk
阿里巴巴达摩院语音实验室听悟会议 UI 组件
安装
npm install tingwu-meeting-ui-components -S
TingwuMeetingClient
参数
参数 | 说明 | 类型 |
---|---|---|
server | 域名,暂用听悟服务地址。 | string |
notLoginListener | 未登陆监听(非必需) | () => void |
方法
参数 | 说明 | 类型 | 默认 |
---|---|---|---|
setMeetingInfo | 设置会议信息 | (meetinInfo: MeetingInfo) => void | null |
setLivMeetingInfo | 设置当前进行中的会议信息 | (livMeetingInfo: LivMeetingInfo) => void | null |
MeetingList
听悟会议纪要列表 UI 组件
参数
参数 | 说明 | 类型 | 默认 |
---|---|---|---|
onStartMeeting | 点击开始会议的回调 | ()=>void | null |
onGotoDetail | 前往会议详情的回调 | (meetingInfo: MeetingInfo)=>void | null |
onGotoLiving | 前往实时会议的回调 | (meetingInfo: MeetingInfo)=>void | null |
onGoback | 标题栏后退按钮的回调 | (...args: any[])=>void | null |
deviceStatus | 设备状态准备是否就绪 | boolean true 为准备就绪 | true |
loading | 开启会议 loading 状态 | boolean true 为加载中 | false |
listHeightValue | 控制列表页整体高度 | string | 100vh |
MeetingLive
听悟会议转写直播 UI 组件
参数
参数 | 说明 | 类型 | 默认 |
---|---|---|---|
mc | 拉取会议内容接口所需入参 | string | null |
onPauseRecord | 执行暂停的回调 | (transId: number)=>void | null |
onResumeRecord | 执行恢复的回调 | (transId: number)=>void | null |
onFinishRecord | 执行结束的回调 | (transId: number)=>void | null |
onChangeTitle | 执行修改标题的回调 | (transId: number)=>void | null |
onGoback | 标题栏后退按钮的回调 | (...args: any[])=>void | null |
onMeetingCreated | 进入实时会议组件后抛出组件信息的回调 | (livMeetingInfo: LivMeetingInfo)=>void | null |
liveHeightValue | 控制列表页整体高度 | string | 100vh |
MeetingDetail
听悟会议纪要详情页 UI 组件
参数
参数 | 说明 | 类型 | 默认 |
---|---|---|---|
summaryInfo.buttonText | 整理纪要的按钮文案 | any | null |
summaryInfo.onSummaryCilck | 整理/查看纪要的回调 | (transId: number)=>void | null |
onDigest | 摘取纪要的回调 | (paragraphValue: string, info: ParagraphType)=>void | null |
onGoback | 标题栏后退按钮的回调 | (...args: any[])=>void | null |
fileHeightValue | 离线页面的最外层高度 | number/string | 100vh |
getVideoUrl | 获取视频 URL | (playbackIdentifier: string) => Promise<{ status: 0 / 1 / 2, videoUrl?: string, nextTime?:number }> | status: (0 计算中 1 成功 2 失败); nextTime(下次拉取时间): 默认10s |
onFullScreen | 放大视频 | (videoInfo: { title: string; url: string }) => void | null |
使用
import React from 'react';
import TingwuMeetingClient from 'tingwu-meeting-ui-components';
import "tingwu-meeting-ui-components/dist/style.css"
interface IProps {}
interface IState {}
class TinwuMeetingSdkTest extends React.Component<IProps, IState> {
tingwuMeetingSdk: TingwuMeetingClient;
constructor(props: IProps) {
super(props);
this.tingwuMeetingSdk = new TingwuMeetingClient({
server: '',
notLoginListener:()=>{}
});
}
render() {
const { MeetingLive, MeetingList, MeetingDetail } = this.tingwuMeetingSdk;
return (
<div
style={{
width: 310,
height: 1000,
margin: '0 auto',
border: '1px solid gray',
}}
>
<MeetingList
onStartMeeting={() => {}}
onGotoDetail={() => {}}
onGoback={()=>{}}
deviceStatus = {false || true}
loading = {false || true}
listHeightValue = '100vh'
/>
<MeetingLive
meetingTime={0}
onResumeRecord={() => {}}
onFinishRecord={() => {}}
onPauseRecord={() => {}}
onChangeTitle={()=>{}}
onGoback={()=>{}}
onMeetingCreated={()=>{}}
liveHeightValue = '100vh'
/>
<MeetingDetail
transId={0}
summaryInfo={{
buttonText: '';
onSummaryCilck: (transId: number) => {};
}}
onDigest={(paragraphValue: string, info: ParagraphType)=>{}}
onGoback={()=>{}}
onFullScreen={(videoInfo: { title: string; url: string })=>{}}
fileHeightValue={`calc(100vh + ${headerHegith})`}
// fileHeightValue={1038}
getVideoUrl={(playbackIdentifier: string) => {
return new Promise((resolve, reject) => {
resolve({
status: 1,
videoUrl: '',
nextTime: 10000,
});
})
}}
/>
</div>
);
}
}
export default TinwuMeetingSdkTest;
1.0.0-alpha.38
3 years ago
1.0.0-alpha.39
3 years ago
1.0.0-alpha.41
3 years ago
1.0.0-alpha.40
3 years ago
1.0.0-alpha.43
3 years ago
1.0.0-alpha.42
3 years ago
1.0.0-alpha.19
3 years ago
1.0.0-alpha.9
3 years ago
1.0.0-alpha.8
3 years ago
1.0.0-alpha.30
3 years ago
1.0.0-alpha.7
3 years ago
1.0.0-alpha.6
3 years ago
1.0.0-alpha.32
3 years ago
1.0.0-alpha.10
3 years ago
1.0.0-alpha.5
3 years ago
1.0.0-alpha.31
3 years ago
1.0.0-alpha.4
3 years ago
1.0.0-alpha.3
3 years ago
1.0.0-alpha.2
3 years ago
1.0.0-alpha.1
3 years ago
1.0.0-alpha.16
3 years ago
1.0.0-alpha.37
3 years ago
1.0.0-alpha.15
3 years ago
1.0.0-alpha.18
3 years ago
1.0.0-alpha.17
3 years ago
1.0.0-alpha.34
3 years ago
1.0.0-alpha.12
3 years ago
1.0.0-alpha.33
3 years ago
1.0.0-alpha.11
3 years ago
1.0.0-alpha.36
3 years ago
1.0.0-alpha.14
3 years ago
1.0.0-alpha.35
3 years ago
1.0.0-alpha.13
3 years ago
1.0.0-alpha.21
3 years ago
1.0.0-alpha.20
3 years ago
1.0.0-alpha.27
3 years ago
1.0.0-alpha.26
3 years ago
1.0.0-alpha.29
3 years ago
1.0.0-alpha.28
3 years ago
1.0.0-alpha.23
3 years ago
1.0.0-alpha.22
3 years ago
1.0.0-alpha.25
3 years ago
1.0.0-alpha.24
3 years ago
1.0.0-alpha.0
3 years ago