CN110674436B - Data processing method and device based on browser - Google Patents

Data processing method and device based on browser Download PDF

Info

Publication number
CN110674436B
CN110674436B CN201810623754.0A CN201810623754A CN110674436B CN 110674436 B CN110674436 B CN 110674436B CN 201810623754 A CN201810623754 A CN 201810623754A CN 110674436 B CN110674436 B CN 110674436B
Authority
CN
China
Prior art keywords
terminal
upgrading
streaming media
media server
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810623754.0A
Other languages
Chinese (zh)
Other versions
CN110674436A (en
Inventor
谢文龙
李云鹏
胡倩丽
袁庆宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201810623754.0A priority Critical patent/CN110674436B/en
Publication of CN110674436A publication Critical patent/CN110674436A/en
Application granted granted Critical
Publication of CN110674436B publication Critical patent/CN110674436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention provides a data processing method and a data processing device based on a browser, which are applied to a streaming media server in a video network, wherein the method comprises the following steps: receiving an access request sent by a terminal; the access request is sent through the browser; analyzing the access request to acquire the type of the access request; the types comprise web page browsing, configuration updating and version upgrading; if the type is web browsing, returning corresponding web data to the terminal; if the type is configuration updating, returning the current configuration information of the streaming media server to the terminal; and if the type is version upgrading, acquiring an upgrading file from the terminal and upgrading the version. The embodiment of the invention not only greatly reduces the deployment steps, but also supports remote deployment, is flexible and convenient, and improves the user experience.

Description

Data processing method and device based on browser
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a data processing method and a data processing apparatus based on a browser.
Background
A web site (Website) is a collection of web pages that are created on the internet using tools such as HTML (an application in standard universal markup language) according to certain rules to display specific content. In short, a website is a communication tool, through which people can publish information they want to disclose, or provide related web services. People can access the website through a web browser to obtain information required by themselves or enjoy network services.
In the prior art, the deployment of the website includes two modes, i.e., a Client/Server (C/S) mode and a Browser/Server (B/S) mode.
The C/S structure is a well-known software system architecture, reduces the communication overhead of the system by reasonably distributing tasks to the Client end and the Server end, and can fully utilize the advantages of hardware environments at the two ends. Early software systems were largely the preferred design criteria.
The B/S structure is a structure which is changed or improved from the C/S structure along with the rise of Internet technology. In this configuration, the user interface is implemented entirely through the WWW browser, with a portion of the business logic implemented on the front-end, but the main business logic implemented on the server-end, forming a so-called 3-tier architecture. The B/S structure mainly utilizes the continuously mature WWW browser technology, combines a plurality of Script languages (VBscript, javaScript 8230;) and ActiveX technologies of the browser, realizes powerful functions which can be realized only by complex special software originally by using a general browser, saves development cost and is a brand-new software system construction technology.
In the prior art, the deployment of the website needs two different processes to separately process the C/S mode and the B/S mode, so that the deployment process is complicated, and the remote deployment can be realized only by using a specific client, so that the flexibility is poor.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a browser-based data processing method and a corresponding browser-based data processing apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a data processing method based on a browser, where the method is applied to a streaming media server in a video network, and includes:
receiving an access request sent by a terminal; the access request is sent through the browser;
analyzing the access request to acquire the type of the access request; the types comprise web page browsing, configuration updating and version upgrading;
if the type is web page browsing, returning corresponding web page data to the terminal;
if the type is configuration updating, returning the current configuration information of the streaming media server to the terminal;
and if the type is version upgrading, acquiring an upgrading file from the terminal and upgrading the version.
Preferably, before the step of receiving the access request sent by the terminal, the method further includes:
receiving a login request sent by the terminal; the login request comprises identity information of a user; the login request is sent through the browser;
verifying the identity information;
if the verification is passed, allowing the terminal to log in;
and if the verification is not passed, refusing the terminal to log in.
Preferably, the webpage is a static webpage;
the step of returning the corresponding webpage data to the terminal comprises the following steps:
extracting the webpage data of the static webpage from the local through a preset FileMoule interface;
and sending the webpage data of the static webpage to the terminal.
Preferably, the step of returning the current configuration information of the streaming media server to the terminal includes:
acquiring current configuration information of the streaming media server through a preset Api interface;
and sending the current configuration information of the streaming media server to the terminal.
Preferably, the step of obtaining the upgrade file from the terminal and upgrading the version includes:
acquiring an upgrading File required by version upgrading from the terminal through a preset File interface;
and upgrading the version by adopting the upgrading file.
Correspondingly, the embodiment of the invention discloses a data processing device based on a browser, which is applied to a streaming media server in a video network and comprises the following components:
the receiving module is used for receiving an access request sent by a terminal; the access request is sent through the browser;
the analysis module is used for analyzing the access request to acquire the type of the access request; the types comprise webpage browsing, configuration updating and version upgrading;
the webpage browsing module is used for returning corresponding webpage data to the terminal if the type is webpage browsing;
a configuration update module, configured to return the current configuration information of the streaming media server to the terminal if the type is configuration update;
and the version upgrading module is used for acquiring an upgrading file from the terminal and upgrading the version if the type is version upgrading.
Preferably, the method further comprises the following steps:
the receiving module is further configured to receive a login request sent by the terminal; the login request comprises identity information of a user; the login request is sent through the browser;
the verification module is used for verifying the identity information;
the judging module is used for allowing the terminal to log in if the verification is passed; and if the verification is not passed, refusing the terminal to log in.
Preferably, the webpage is a static webpage;
the web browsing module comprises:
the webpage data extraction submodule is used for extracting the webpage data of the static webpage from the local through a preset FileMoule interface;
and the webpage sending submodule is used for sending the webpage data of the static webpage to the terminal.
Preferably, the configuration update module includes:
the configuration information acquisition submodule is used for acquiring the current configuration information of the streaming media server through a preset Api interface;
and the configuration information sending submodule is used for sending the current configuration information of the streaming media server to the terminal.
Preferably, the version upgrade module includes:
the upgrading File acquisition submodule is used for acquiring an upgrading File required by version upgrading from the terminal through a preset File interface;
and the version upgrading submodule is used for upgrading the version by adopting the upgrading file.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, a browser is installed in a terminal, a user sends an access request to a streaming media server through the browser, when the streaming media server in the video network receives the access request sent by the terminal, the access request is analyzed, and the type of the access request is obtained, wherein the type comprises webpage browsing, configuration updating and version upgrading; if the type is web browsing, returning corresponding web data to the terminal; if the type is configuration update, returning the current configuration information of the media server to the terminal; and if the type is version upgrading, acquiring an upgrading file from the terminal and upgrading the version. Therefore, the streaming media server realizes compatible deployment of the C/S mode and the B/S mode, a user can remotely update the configuration information and version upgrade of the streaming media server by using the browser while browsing a webpage by using the browser, only one process is needed, deployment steps are greatly reduced, remote deployment is supported, flexibility and convenience are achieved, and user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a video networking of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a flowchart illustrating the steps of one embodiment of a browser-based data processing method of the present invention;
FIG. 6 is a block diagram of an embodiment of a browser-based data processing apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To enable those skilled in the art to better understand the embodiments of the present invention, the following description is given of the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, and realizes the seamless connection of a whole network switching type virtual circuit and a data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet exchange of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, and has end-to-end seamless connection of the whole network, direct connection with a user terminal and direct bearing of an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed memory technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is instantly and directly sent to the user terminal, and the user waiting time is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once, but also connected with a single user, a private network user or the sum of one network. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type matching table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Visio networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the packets coming from the network interface module 201, the cpu module 203 and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 according to the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) The port send buffer is not full; 2) The queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switch engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is close to full, it is discarded; if the packet entering the switching engine module 303 does not go from the downlink network interface to the uplink network interface, the data packet is stored into the queue of the corresponding packet buffer 307 according to the packet guiding information; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC DA, MAC SA, length or frame type (2 byte) is subtracted by the MAC deletion module 410 and enters the corresponding receiving buffer, otherwise it is discarded;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be largely classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Vission networking data packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), source Address (SA), reserved bytes, payload (PDU), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to the types of different datagrams, 64 bytes if various protocol packets, 32+1024=1056 bytes if single-multicast data packets, and certainly not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), source Address (SA), reserved byte (Reserved), tag, payload (PDU), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, which is located between the reserved bytes and the payload of the packet.
Referring to fig. 5, a flowchart illustrating steps of an embodiment of a browser-based data processing method according to the present invention is shown, where the method may be applied to a streaming media server in a video network, and specifically may include the following steps:
step 501, receiving an access request sent by a terminal; the access request is sent through the browser;
in the embodiment of the present invention, the terminal may have the following characteristics:
(1) On a hardware architecture, a device has a central processing unit, a memory, an input unit and an output unit, that is, the device is often a microcomputer device having a communication function. In addition, various input modes such as a keyboard, a mouse, a touch screen, a microphone, a camera and the like can be provided, and input can be adjusted as required. Meanwhile, the device often has multiple output modes, such as a receiver, a display screen and the like, and can be adjusted according to needs;
(2) In a software system, the device must have an operating system, such as Windows Mobile, symbian, palm, android, iOS, and the like. Meanwhile, the operating systems are more and more open, and personalized application programs developed based on the open operating system platforms are infinite, such as a communication book, a schedule, a notebook, a calculator, various games and the like, so that the requirements of personalized users are met to a great extent;
(3) In terms of communication capacity, the equipment has flexible access modes and high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment, thereby facilitating the use of users. The device can support GSM (Global System for Mobile Communication), WCDMA (Wideband Code Division Multiple Access), CDMA2000 (Code Division Multiple Access), TDSCDMA (Time Division-Synchronous Code Division Multiple Access), wi-Fi (WIreless-Fidelity), wiMAX (world Interoperability for Microwave Access), etc., thereby adapting to various systems of networks, not only supporting voice service, but also supporting various WIreless data services;
(4) In the aspect of functional use, the equipment pays more attention to humanization, individuation and multi-functionalization. With the development of computer technology, devices enter a human-centered mode from a device-centered mode, and the embedded computing, control technology, artificial intelligence technology, biometric authentication technology and the like are integrated, so that the human-oriented purpose is fully embodied. Due to the development of software technology, the equipment can be adjusted and set according to personal requirements, and is more personalized. Meanwhile, the device integrates a plurality of software and hardware, and the function is more and more powerful.
The terminal is equipped with a browser, wherein the browser refers to a software that can display the contents of HTML files (an application of standard universal markup language) of a web server or a file system and allow a user to interact with the files. It is used to display text, images and other information within a world wide web or local area network or the like. These words or images can be hyperlinks to other web sites, and the user can browse various information quickly and easily. Most web pages are in HTML format.
A web page may include a plurality of documents, each document being obtained from a respective server. Most browsers themselves support a wide range of formats other than HTML, such as image formats like JPEG, PNG, GIF, etc., and are capable of extending support for numerous plug-ins (plug-ins). In addition, many browsers also support other URL types and their corresponding protocols, such as FTP, gopher, HTTPS (encrypted versions of the HTTP protocol). The HTTP content type and URL protocol specifications allow web page designers to embed images, animations, video, sound, streaming media, etc. in web pages.
In the embodiment of the invention, the terminal communicates with the streaming media server in the video network through the browser. The streaming media server mainly has the functions of collecting, caching, scheduling, transmitting and playing media contents of audio, video and multimedia files transmitted in a network.
In a preferred embodiment of the present invention, before the step of receiving the access request sent by the terminal, the method further includes:
receiving a login request sent by the terminal; the login request comprises identity information of a user; the login request is sent through the browser;
verifying the identity information;
if the verification is passed, allowing the terminal to log in;
and if the verification is not passed, refusing the terminal to log in.
Specifically, when the user accesses the streaming media server, the streaming media server verifies the identity of the user, for example, a login interface may be displayed in the browser, the login interface includes an input box for inputting information such as a user name, a password, and a verification code, the browser sends the information as identity information to the streaming media server, the streaming media server matches the identity information, if a matching item exists, the verification is passed, the user is allowed to access the streaming media server, and if not, the user is denied to access the streaming media server.
In practical applications, when a user accesses a streaming media server, the user may input an address in the form of a character string in an address bar of a browser, such as http:// abcd. Com/, or IP: the address in the form of PORT, such as 111.222.333.444.
It should be noted that, in the embodiment of the present invention, the terminal and the streaming media server communicate with each other by using an httpserver service.
Step 502, analyzing the access request to obtain the type of the access request; the types comprise webpage browsing, configuration updating and version upgrading;
after receiving the access request, the streaming media server analyzes the access request, and identifies the type of the access request, including web page browsing, configuration updating, and version upgrading. That is, it is determined what the user intends to access the web page normally, access the configuration information of the streaming media, or upgrade the software version of the streaming media server.
Step 503, if the type is web browsing, returning corresponding web data to the terminal;
in a preferred embodiment of the present invention, the web page is a static web page;
the step of returning the corresponding webpage data to the terminal comprises the following steps:
extracting the webpage data of the static webpage from the local through a preset FileMoule interface;
and sending the webpage data of the static webpage to the terminal.
Specifically, the streaming media server stores a static webpage, and the static webpage may be preset by an administrator or preset by the streaming media server or other devices. When the streaming media server is started, the embedded httpserver service is started firstly, the httpserver service is linked to a local static webpage HTML database, then the httpserver service is adopted to receive an access request sent by the terminal, and if the type of the access request is webpage browsing, the streaming media server calls a preset FileMoule interface to extract a corresponding static webpage from the static webpage HTML database and then sends the static webpage to the terminal.
It should be noted that the static web page HTML database may be a database in the streaming media server itself, or may be a database in another server, for example, when the type of the access request is web browsing, the streaming media server may extract the static web page from the other server first, and then send the static web page to the terminal.
Step 504, if the type is configuration update, returning the current configuration information of the streaming media server to the terminal;
in a preferred embodiment of the present invention, the step of returning the current configuration information of the streaming media server to the terminal includes:
acquiring current configuration information of the streaming media server through a preset Api interface;
and sending the current configuration information of the streaming media server to the terminal.
In the prior art, a terminal remotely acquires configuration information of a server and updates the configuration information, a C/S mode is required, the deployment process is complicated, and a user needs to adopt a client for remotely deploying the server, so that the use is inconvenient.
In the embodiment of the present invention, when a user wants to obtain configuration information of a streaming media server, for example, network card configuration information, the streaming media server invokes a preset Api interface to acquire corresponding configuration information, and then sends the configuration information to a terminal, if the user needs to modify the configuration information, a modification instruction is sent to the streaming media server, the streaming media server modifies the configuration information according to the modification instruction, or the user sends the modified configuration information to the streaming media server, and the streaming media server replaces the current configuration information with the modified configuration information.
It should be noted that, in the embodiment of the present invention, an httpserver service under a streaming media service is adopted, which is started together with the streaming media, has a remote configuration streaming media server interface, and can perform remote configuration on information such as a streaming media IP PORT.
Step 505, if the type is version upgrading, obtaining an upgrading file from the terminal, and upgrading the version;
in a preferred embodiment of the present invention, the step of obtaining the upgrade file from the terminal and performing version upgrade includes:
acquiring an upgrading File required by version upgrading from the terminal through a preset File interface;
and upgrading the version by adopting the upgrading file.
Specifically, if a user wants to upgrade a software version of the streaming media server, the streaming media may obtain an upgrade File required for version upgrade from the terminal through the File interface. From the perspective of the user, for example, the user determines to perform version upgrade on the streaming media server in the current page of the browser, the browser may pop up a window to provide a path for the user to select an upgrade file, after the user determines the path, the upgrade file may be uploaded to the streaming media server by clicking "ok", and then the streaming media server performs version upgrade using the upgrade file.
It should be noted that, in practical applications, after the streaming media server receives the login information, that is, the user has input the user name, password, verification code, and other identity information, and clicks "login", the streaming media server first calls the Api interface to verify the identity information of the user, and when the verification is passed, calls the configuration information of the streaming media server to establish communication with the terminal, and sends the data of the "home page" to the terminal. From the perspective of the user, the user inputs information such as a user name, a password, an authentication code and the like in a login interface of the browser, and after the user clicks login, the page jumps to a homepage. The "homepage" includes corresponding entries of "configuration update" and "version upgrade", and when the user clicks the corresponding entry, the streaming media server calls the corresponding interface to perform corresponding processing. The entry of the "web browsing" may or may not include, if the entry includes, the same as "configuration update" and "version upgrade", if the entry does not include, a "search bar" may be set in the homepage, and after the user directly inputs information such as a keyword/word in the "search bar", the user may click "search" to browse the web, which may be specifically set according to actual needs, and this is not limited in the embodiment of the present invention.
In the embodiment of the invention, a browser is installed in a terminal, a user sends an access request to a streaming media server through the browser, when the streaming media server in the video network receives the access request sent by the terminal, the access request is analyzed, and the type of the access request is obtained, wherein the type comprises webpage browsing, configuration updating and version upgrading; if the type is web browsing, returning corresponding web data to the terminal; if the type is configuration updating, returning current configuration information of the streaming media server to the terminal; and if the type is version upgrading, acquiring an upgrading file from the terminal and upgrading the version. Therefore, the streaming media server realizes compatible deployment of the C/S mode and the B/S mode, a user can remotely update the configuration information and version upgrade of the streaming media server by using the browser while browsing a webpage by using the browser, only one process is needed, deployment steps are greatly reduced, remote deployment is supported, flexibility and convenience are achieved, and user experience is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a block diagram of an embodiment of a data processing apparatus based on a browser according to the present invention is shown, where the apparatus may be applied to a streaming media server in a video network, and specifically may include the following modules:
a receiving module 601, configured to receive an access request sent by a terminal; the access request is sent through the browser;
the analysis module 602 is configured to analyze the access request to obtain a type of the access request; the types comprise webpage browsing, configuration updating and version upgrading;
a web browsing module 603, configured to return corresponding web data to the terminal if the type is web browsing;
a configuration update module 604, configured to, if the type is configuration update, return current configuration information of the streaming media server to the terminal;
and the version upgrading module 605 is configured to obtain an upgrade file from the terminal and upgrade the version if the type is version upgrading.
In a preferred embodiment of the present invention, the method further comprises:
the receiving module is further configured to receive a login request sent by the terminal; the login request comprises identity information of a user; the login request is sent through the browser;
the verification module is used for verifying the identity information;
the judging module is used for allowing the terminal to log in if the verification is passed; and if the verification is not passed, refusing the terminal to log in.
In a preferred embodiment of the present invention, the web page is a static web page;
the web browsing module comprises:
the webpage data extraction submodule is used for extracting the webpage data of the static webpage from the local through a preset FileMoule interface;
and the webpage sending submodule is used for sending the webpage data of the static webpage to the terminal.
In a preferred embodiment of the present invention, the configuration update module includes:
the configuration information acquisition submodule is used for acquiring the current configuration information of the streaming media server through a preset Api interface;
and the configuration information sending submodule is used for sending the current configuration information of the streaming media server to the terminal.
In a preferred embodiment of the present invention, the version upgrade module includes:
the upgrading File acquisition submodule is used for acquiring an upgrading File required by version upgrading from the terminal through a preset File interface;
and the version upgrading submodule is used for upgrading the version by adopting the upgrading file.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The data processing method based on the browser and the data processing device based on the browser provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A data processing method based on a browser is applied to a streaming media server in a video network and comprises the following steps:
receiving an access request sent by a terminal; the access request is sent through the browser; the terminal communicates with the streaming media server in the video network through the browser;
analyzing the access request to acquire the type of the access request; the types comprise web page browsing, configuration updating and version upgrading;
if the type is web page browsing, returning corresponding web page data to the terminal;
if the type is configuration update, returning the current configuration information of the streaming media server to the terminal;
if the type is version upgrading, obtaining an upgrading file from the terminal, and upgrading the version of the streaming media server;
the step of returning the current configuration information of the streaming media server to the terminal comprises the following steps:
acquiring current configuration information of the streaming media server through a preset Api interface;
sending the current configuration information of the streaming media server to the terminal;
the step of obtaining the upgrade file from the terminal and upgrading the version comprises the following steps:
acquiring an upgrade File required by version upgrade from the terminal through a preset File interface;
and upgrading the version by adopting the upgrading file.
2. The method of claim 1, further comprising, before the step of receiving the access request sent by the terminal:
receiving a login request sent by the terminal; the login request comprises identity information of a user; the login request is sent through the browser;
verifying the identity information;
if the verification is passed, allowing the terminal to log in;
and if the verification is not passed, refusing the terminal to log in.
3. The method of claim 1 or 2, wherein the web page is a static web page;
the step of returning the corresponding webpage data to the terminal comprises the following steps:
extracting the webpage data of the static webpage from the local through a preset FileMoule interface;
and sending the webpage data of the static webpage to the terminal.
4. A data processing device based on a browser, wherein the device is applied to a streaming media server in a video network, and comprises:
the receiving module is used for receiving an access request sent by a terminal; the access request is sent through the browser; the terminal communicates with the streaming media server in the video network through the browser;
the analysis module is used for analyzing the access request to acquire the type of the access request; the types comprise webpage browsing, configuration updating and version upgrading;
the webpage browsing module is used for returning corresponding webpage data to the terminal if the type is webpage browsing;
a configuration update module, configured to return current configuration information of the streaming media server to the terminal if the type is configuration update;
the version upgrading module is used for acquiring an upgrading file from the terminal and upgrading the version of the streaming media server if the type is version upgrading;
the configuration update module includes:
the configuration information acquisition submodule is used for acquiring the current configuration information of the streaming media server through a preset Api interface;
the configuration information sending submodule is used for sending the current configuration information of the streaming media server to the terminal;
the version upgrade module includes:
the upgrading File acquisition submodule is used for acquiring an upgrading File required by version upgrading from the terminal through a preset File interface;
and the version upgrading submodule is used for upgrading the version by adopting the upgrading file.
5. The apparatus of claim 4, further comprising:
the receiving module is further configured to receive a login request sent by the terminal; the login request comprises identity information of a user; the login request is sent through the browser;
the verification module is used for verifying the identity information;
the judging module is used for allowing the terminal to log in if the verification is passed; and if the verification is not passed, refusing the terminal to log in.
6. The apparatus of claim 4 or 5, wherein the web page is a static web page;
the web browsing module comprises:
the webpage data extraction submodule is used for extracting the webpage data of the static webpage from the local through a preset FileMoule interface;
and the webpage sending submodule is used for sending the webpage data of the static webpage to the terminal.
CN201810623754.0A 2018-06-15 2018-06-15 Data processing method and device based on browser Active CN110674436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810623754.0A CN110674436B (en) 2018-06-15 2018-06-15 Data processing method and device based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810623754.0A CN110674436B (en) 2018-06-15 2018-06-15 Data processing method and device based on browser

Publications (2)

Publication Number Publication Date
CN110674436A CN110674436A (en) 2020-01-10
CN110674436B true CN110674436B (en) 2022-12-23

Family

ID=69065307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810623754.0A Active CN110674436B (en) 2018-06-15 2018-06-15 Data processing method and device based on browser

Country Status (1)

Country Link
CN (1) CN110674436B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478942A (en) * 2020-03-06 2020-07-31 视联动力信息技术股份有限公司 Request processing method and device, electronic equipment and storage medium
CN112988311A (en) * 2021-04-16 2021-06-18 辽宁向日葵教育科技有限公司 On-line experimental method based on WEB server
CN114244707B (en) * 2021-12-17 2023-11-28 中国人民解放军国防科技大学 Remote control and loading upgrading method for signal receiving and transmitting and channel simulation terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299854A (en) * 2008-06-19 2008-11-05 中兴通讯股份有限公司 Mobile terminal and data maintenance method thereof
CN102195971A (en) * 2011-03-24 2011-09-21 北京思创银联科技股份有限公司 Website access control method
CN103677860A (en) * 2012-08-30 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for updating browser
CN103729425A (en) * 2013-12-24 2014-04-16 腾讯科技(深圳)有限公司 Operation response method, client, browser and operation response system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100594498C (en) * 2008-09-02 2010-03-17 北京开拓天际信息技术有限公司 Mass data real time processing structure and real time need-based processing platform used for the structure
US20100153539A1 (en) * 2008-12-15 2010-06-17 Gregory Thomas Zarroli Algorithm for classification of browser links
CN103905472B (en) * 2012-12-25 2017-12-01 中国移动通信集团江苏有限公司 A kind of cloud storage method and system accessed by webpage mode
CN103268319A (en) * 2013-04-17 2013-08-28 北京航空航天大学 Cloud browser based on webpages
CN104253788B (en) * 2013-06-26 2019-07-16 腾讯科技(深圳)有限公司 A kind of data processing method, client, page engine and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299854A (en) * 2008-06-19 2008-11-05 中兴通讯股份有限公司 Mobile terminal and data maintenance method thereof
CN102195971A (en) * 2011-03-24 2011-09-21 北京思创银联科技股份有限公司 Website access control method
CN103677860A (en) * 2012-08-30 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for updating browser
CN103729425A (en) * 2013-12-24 2014-04-16 腾讯科技(深圳)有限公司 Operation response method, client, browser and operation response system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Testing of AJAX-Based Web Applications Using Hierarchical State Model;Chien-Hung Liu 等;《2016 IEEE 13th International Conference on e-Business Engineering (ICEBE)》;20170109;250-256 *
智能终端浏览器资源管理的研究与实现;李瑞东;《中国优秀硕士学位论文全文数据库信息科技辑》;20140115(第1期);I138-518 *

Also Published As

Publication number Publication date
CN110674436A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN110569463B (en) Page refreshing method and device and storage medium
CN109348171B (en) Video networking monitoring video acquisition method and device
CN110647698B (en) Page loading method and device, electronic equipment and readable storage medium
CN108965912B (en) A kind of method, client and the server of video data processing
CN111092863B (en) Method, client, server, device and medium for accessing internet website
CN110674436B (en) Data processing method and device based on browser
CN109413138B (en) File uploading method and device
CN109302455B (en) Data processing method and device for video network
CN109286826B (en) Information display method and device
CN110602266B (en) Domain name resolution method and system
CN110809026B (en) File processing method and device, electronic equipment and storage medium
CN110719258B (en) Server access method and system
CN111556346A (en) Method and device for remotely controlling video network terminal and computer readable storage medium
CN109857419B (en) Method and device for automatically upgrading scheduling system
CN108989850B (en) Video playing control method and control system
CN111107060B (en) Login request processing method, server, electronic equipment and storage medium
CN109361546B (en) Program early warning method and device based on video network
CN109640194B (en) Method and device for acquiring terminal permission through two-dimensional code based on video network
CN110391922B (en) Version prompting method and device for service platform
CN108989896B (en) Video-on-demand request processing method and device
CN111049942B (en) Address data processing method, device, equipment and storage medium of video networking terminal
CN109413460B (en) Method and system for displaying function menu of video network terminal
CN110730086B (en) Method and device for outputting log information
CN110418169B (en) Monitoring data carousel method and device
CN110809021A (en) Menu sequencing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant