当前位置:网站首页>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 are the general contents of the enterprise website construction scheme
- Echo framework: add tracing Middleware
- Gin framework: add API logging Middleware
- Flink practice tutorial: getting started 1- zero basic users realize simple Flink tasks
- Start tcapulusdb process
- Wwise + GME game voice scheme: unlock more voice playing methods and let players "sound in their environment"
- Why do cloud desktops use rack servers? What are the functions of cloud desktop?
- Looking at the future development direction of industrial Internet from the transformation of circulation links of large building materials
- Gin framework: adding tracing Middleware
- Introduction to development model + test model
猜你喜欢

Leetcode969: pancake sorting (medium, dynamic programming)

application. Yaml configuring multiple running environments
Cloudpods golang practice

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

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

Introduction to development model + test model

BIM model example

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

Advanced BOM tool intelligent packaging function
随机推荐
Do you still understand the deadlock handling methods in MySQL performance testing and tuning?
Evaluation index of machine learning model
How to batch output ean 13 code to pictures
What about registered domain names? How long does it take to register a domain name?
How about Tencent cloud game server? Can the cloud game server play games
Live broadcast of the double 11 King bombing! Must buy good things introduction, come on~
The dealer management and control platform in the leather industry simplifies the purchase approval process and easily controls agents
Leetcode969: pancake sorting (medium, dynamic programming)
Tencent Ding Ke: the mission of Tencent security is to safeguard the beauty of digital
Thoroughly explain the details of the simple factory that you haven't paid attention to
The whole procurement process of the procurement mall website in the transportation industry is electronic to reduce the procurement cost
Efficient Internet access and systematic learning
Select problem set 3
Dry goods collection | the heaviest content collection of Tencent digital ecology Conference!
What are the conditions for trademark registration? How long does it take to register a trademark?
Operation and maintenance platform tcapulusdb transaction management
How to use annotations to record operation logs gracefully
Gin framework: adding tracing Middleware
Advanced BOM tool intelligent packaging function
Tencent cloud won the first place in the cloud natural language understanding classification task