js-realtime-sdk icon indicating copy to clipboard operation
js-realtime-sdk copied to clipboard

win7 IE10 报错

Open tower1229 opened this issue 7 years ago • 7 comments

报错信息: Invalid messageClass[leancloud-realtime-plugin-im]

即时通讯功能无法使用

tower1229 avatar Jan 04 '19 01:01 tower1229

我用 最新的版本的 Demo 试了一下,看起来没有问题:

image

leeyeh avatar Jan 04 '19 02:01 leeyeh

我这里也是一样,IE11 下 选择 IE10 模式 会出现此问题

wells1013 avatar Jan 16 '20 09:01 wells1013

需要提供更多的信息。

用同样的 Demo 在 IE11(IE10) 模式下测试的结果:

0003screenshot

leeyeh avatar Jan 16 '20 10:01 leeyeh

export class YJLiveVideoTransientMessage extends TypedMessage {}
AVMessageType(YJLiveVideoTransientMessageType)(YJLiveVideoTransientMessage);
const TypedMessagesPlugin = {
                        name: "直播状态消息",
                        messageClasses: [YJLiveVideoTransientMessage]
                    };
                    const realtime = new Realtime({
                        appId: LeanCloudKeys.appId,
                        appKey: LeanCloudKeys.appKey,
                        plugins: [TypedMessagesPlugin]
                    });

添加自定义消息, 创建realtime 时候,添加plugins ,IE10 上就有问题。

wells1013 avatar Jan 21 '20 06:01 wells1013

请试一下 apply IE10Compatible decorator with YJLiveVideoTransientMessage

示例: https://github.com/leancloud/js-realtime-sdk/blob/344083857aefce8e9aa736dd4be03adfabaf07a3/plugins/typed-messages/src/image-message.js#L20

leeyeh avatar Jan 21 '20 15:01 leeyeh

realtime.d.ts 没有定义哦?

wells1013 avatar Jan 22 '20 05:01 wells1013

realtime.d.ts 没有定义哦?

added in v5.0.0-beta.2

leeyeh avatar Jan 26 '20 08:01 leeyeh