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

decoderPath是绝对路径还是相对路径啊?前后端分离前端项目如何显示监控视频? #46

Open
lizhongzhen11 opened this issue Jul 10, 2020 · 2 comments

Comments

@lizhongzhen11
Copy link

lizhongzhen11 commented Jul 10, 2020

readme里面写的是 相对路径,但是官方文档写的是 绝对路径

我用相对路径,控制台打印三个报错,

  • Unexpected token < in JSON at position 0
  • Unexpected token '<'
  • JSPlugin is not defined

这个 JSPlugin is not defined 是不是要我单独引入?

@Ezviz-Open
Copy link
Member

Ezviz-Open commented Jul 10, 2020 via email

@lizhongzhen11
Copy link
Author

是我 decoderPath 路径写错了,哎,我还是去 ezuikit.js 中打印输出才调试出来的。

我是react项目,我把整个 EZUIKit-JavaScript 文件夹放在 public 文件夹下,然后 src/views 内的页面组件中通过 new window.EZUIPlayer 调用,其中 decoderPath 直接写为 ‘/EZUIKit-JavaScript' 即可。

@lizhongzhen11 lizhongzhen11 changed the title decoderPath是绝对路径还是相对路径啊? decoderPath是绝对路径还是相对路径啊?前后端分离前端项目如何显示监控视频? Jul 10, 2020
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

2 participants