当前位置:网站首页>How does easynvr call the interface to modify a user-defined page?
How does easynvr call the interface to modify a user-defined page?
2022-06-24 02:26:00 【Tsingsee green rhino video】
As more and more users use EasyNVR, Everyone to EasyNVR The functional requirements of are also increasing , For example, it needs to be changed EasyNVR platform Web Some of the styles of the front end . At present EasyNVR by 5.0.0 edition ,Web The front end is to increase the operation efficiency of the front end and reduce the project volume , It uses vue+webpack package , This makes it more difficult for users who need to customize and change the style .
EasyNVR The front end of is actually through calling our streaming media software interface demo To implement the interface , To make it easier to change , Users can independently compile the front end and modify the front end .
So how to put yourself in EasyNVR Front end version interface coordination 5.0.0 Version of EasyNVR Use up ? To solve this problem, we first need to find out EasyNVR The directory structure in the software package . In the root directory of the package www The folder is mine Web Where the interface for external output is stored , Our front-end source code is in this directory (EasyNVR5.0.0 The version stored in this directory is webpack Compressed file ). Therefore, you only need to replace the front-end interface of your front-end code package into this directory .
If you replace it directly , Go straight into Web End direct access will find EasyNVR Unable to display page . Press F12 When viewing the browser error, it is found that the style reference of the front-end page is a problem .
This is due to the front end Web An error occurred in the load reference file path of the page , As long as you modify the file path, you will successfully avoid this problem , But then comes another problem .
It can be seen from the error report of the browser , The problem is that the interface call is unsuccessful .EasyNVR default HTTP The port is 10800. Because we use http-server Starting up Web page , The default port of the service is 8080, This is the same as we call the interface 10800 Port conflict . So it's important to note that , stay Web Port of calling interface in front-end code .
about Web End to speak , The complete presentation of the style and the successful invocation of the interface have been completed , After this call , Small partners in need can be based on easy to understand html、js To customize the page .
边栏推荐
- What is the reason why the switching page group disappears after easycvr establishes a multi-level group?
- Do you still understand the deadlock handling methods in MySQL performance testing and tuning?
- Dry goods collection | the heaviest content collection of Tencent digital ecology Conference!
- How does [lightweight application server] build a cross-border e-commerce management environment?
- Question: can you get download the resources of Baidu online disk?
- Leetcode problem solving notes for slow ploughing of stupid cattle (dynamic update...)
- Tidb HTAP Getting Started Guide - how to add a copy of tiflash
- How to build a cloud game server what needs to be considered to build a cloud game server
- What are the conditions for trademark registration? How long does it take to register a trademark?
- Tencent cloud temporary secret key scheme - character recognition example
猜你喜欢

163 mailbox login portal display, enterprise mailbox computer version login portal

How to fill in and register e-mail, and open mass mailing software for free

Advanced BOM tool intelligent packaging function

application. Yaml configuring multiple running environments

BIM model example

2020 language and intelligent technology competition was launched, and Baidu provided the largest Chinese data set

If there are enumerations in the entity object, the conversion of enumerations can be carried out with @jsonvalue and @enumvalue annotations

Leetcode969: pancake sorting (medium, dynamic programming)

Introduction to development model + test model
Cloudpods golang practice
随机推荐
[security] Tencent cloud double 12 is not limited to new and old users! Safe sub venue - discount guide! Unlimited account types!
How many graphics cards are required for cloud game servers? What should be paid attention to when purchasing servers
How to build a website? These things should be paid attention to
[expense center] demand & problem feedback week is coming! Feedback wins a good gift!
Build your own cloud game server. What if the cloud game server is attacked
163 mailbox login portal display, enterprise mailbox computer version login portal
Cloud rendering: cloud exhibition hall of Tencent digital ecology Conference - open roaming mode on cloud
How to recover the garbled words in the software?
Centeros environment setup
5g Gigabit router dual band industrial grade
How does [lightweight application server] build a cross-border e-commerce management environment?
The new purchased machines with large customized images are slow to enter the system
What are the main functions of DNS? What are the benefits of IP address translation
NTP synchronization clock server server and client settings
[Tencent cloud double 12.12] from 56 yuan! New users of Tencent cloud buy for the first time, which is more cost-effective!
Thoroughly explain the details of the simple factory that you haven't paid attention to
Modify the original place where the method needs to be called and triggered
Mysql Find_ IN_ Set function
A detailed explanation of the laser slam framework logo-loam
[supply chain • case] Tianneng group: the key to understanding the leading battery manufacturer to achieve the first profit fault