Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win7 IE10 报错 #601

Open
tower1229 opened this issue Jan 4, 2019 · 7 comments
Open

win7 IE10 报错 #601

tower1229 opened this issue Jan 4, 2019 · 7 comments

Comments

@tower1229
Copy link

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

即时通讯功能无法使用

@leeyeh
Copy link
Contributor

leeyeh commented Jan 4, 2019

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

image

@wells1013
Copy link

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

@leeyeh
Copy link
Contributor

leeyeh commented Jan 16, 2020

需要提供更多的信息。

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

0003screenshot

@wells1013
Copy link

wells1013 commented Jan 21, 2020

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 上就有问题。

@leeyeh
Copy link
Contributor

leeyeh commented Jan 21, 2020

请试一下 apply IE10Compatible decorator with YJLiveVideoTransientMessage

示例:

IE10Compatible(ImageMessage);

@wells1013
Copy link

realtime.d.ts 没有定义哦?

@leeyeh
Copy link
Contributor

leeyeh commented Jan 26, 2020

realtime.d.ts 没有定义哦?

added in v5.0.0-beta.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants