CN110737519A - theme switching method and device - Google Patents

theme switching method and device Download PDF

Info

Publication number
CN110737519A
CN110737519A CN201910860658.2A CN201910860658A CN110737519A CN 110737519 A CN110737519 A CN 110737519A CN 201910860658 A CN201910860658 A CN 201910860658A CN 110737519 A CN110737519 A CN 110737519A
Authority
CN
China
Prior art keywords
theme
video
application program
scene switching
video networking
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.)
Pending
Application number
CN201910860658.2A
Other languages
Chinese (zh)
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 CN201910860658.2A priority Critical patent/CN110737519A/en
Publication of CN110737519A publication Critical patent/CN110737519A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The embodiment of the invention provides theme switching methods, which are characterized in that the method is applied to terminal equipment, the terminal equipment is in communication connection with a video networking server, the method comprises the steps of obtaining a scene switching instruction, responding to the scene switching instruction, sending a video networking scene switching request to the video networking server, receiving target theme style data returned by the video networking server, and switching the theme of a preset application program by adopting the target theme style data.

Description

theme switching method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to theme switching methods and apparatuses, and computer-readable storage media.
Background
The video networking service comprises various services such as personal video distribution, video call, multi-person meeting and the like generally speaking, the video networking application can display the video networking service on a preset program interface, and the user can conveniently select the video networking service required to be used.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide kinds of kinds of theme switching methods, kinds of theme switching apparatuses, and kinds of computer-readable storage media that overcome or at least partially solve the above problems.
In order to solve the above problem, kinds of methods are disclosed in the embodiments of the present invention, and in order to solve the above problem, the embodiments of the present invention disclose kinds of theme switching methods, which are applied to a terminal device, the terminal device is in communication connection with a video networking server, and the method includes:
acquiring a scene switching instruction;
responding to the scene switching instruction, and sending a scene switching request of the video network to the video network server;
receiving target theme style data returned by the video network server;
and switching the theme of the preset application program by adopting the target theme style data.
Optionally, the step of sending a scene switching request to the video network server in response to the scene switching instruction includes:
responding to the scene switching instruction, and generating a video networking scene switching request based on a preset video networking protocol;
and sending the video networking scene switching request to the video networking server.
Optionally, the video network server is configured to search, for the video network scene switching request, corresponding target theme style data in preset theme style data.
Optionally, an operating system is preset in the terminal device;
the step of switching the application scene of the application program by using the target scene style data includes:
the operating system sends a notification message to the application program through a preset interface;
and the application program responds to the notification message and adopts the target theme style data to switch the theme of the application program.
Optionally, the theme comprises a background style and a control style;
the step of the application program responding to the notification message and adopting the target theme style data to switch the theme of the application program comprises the following steps:
and the application program responds to the notification message, and switches the background style and the control style of the application program by adopting the target theme style data.
The embodiment of the invention discloses an theme switching device, which is applied to terminal equipment, wherein the terminal equipment is in communication connection with a video networking server, and the device comprises:
the acquisition module is used for acquiring a scene switching instruction;
the sending module is used for responding to the scene switching instruction and sending a scene switching request of the video network to the video network server;
the receiving module is used for receiving the target theme style data returned by the video networking server;
and the switching module is used for switching the theme of the preset application program by adopting the target theme style data.
Optionally, the sending module includes:
the generation submodule is used for responding to the scene switching instruction and generating a video networking scene switching request based on a preset video networking protocol;
and the sending submodule is used for sending the video networking scene switching request to the video networking server.
Optionally, the video network server is configured to search, for the video network scene switching request, corresponding target theme style data in preset theme style data.
Optionally, an operating system is preset in the terminal device;
the switching module includes:
the notification submodule is used for sending a notification message to the application program by the operating system through a preset interface;
switching sub-module, for the application program to respond to the notification message, and to switch the theme of the application program by using the target theme style data.
Optionally, the theme comprises a background style and a control style;
the switching module includes:
and the second switching submodule is used for responding to the notification message by the application program, adopting the target theme style data and switching the background style and the control style of the application program.
The embodiment of the invention also discloses kinds of devices, which comprise:
or more processors, and
or more machine readable media having instructions stored thereon that, when executed by the or more processors, cause the apparatus to perform the subject switching method of or more as described in embodiments of the invention.
The embodiment of the invention also discloses computer readable storage media, and the stored computer program enables a processor to execute the theme switching method according to the embodiment of the invention.
The embodiment of the invention has the following advantages:
according to the theme switching method, the scene switching instruction is obtained, the scene switching instruction is responded, the video networking scene switching request is sent to the video networking server, the target theme style data returned by the video networking server is received, the preset theme of the application program is switched by adopting the target theme style data, the theme of the application program can be switched by a user through the scene switching instruction, the scene style of the application program is switched by switching the theme, the application program can display the video networking service required by the user, and the user can use the video networking service more conveniently.
Drawings
FIG. 1 is a networking schematic of types of video networks of the present invention;
FIG. 2 is a schematic diagram of the hardware architecture of node servers of the present invention;
fig. 3 is a schematic diagram of the hardware architecture of the access switches of the present invention;
fig. 4 is a schematic diagram of the hardware structure of ethernet protocol gateways of the present invention;
FIG. 5 is a flowchart illustrating the steps of an embodiment of an topic switching method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of theme switching devices according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, a more detailed description is provided below in conjunction with the accompanying drawings and the detailed description.
Referring to fig. 5, a flowchart of steps of an embodiment of a method for switching themes according to an embodiment of the present invention is shown, where the method is applied to a terminal device, and the terminal device is in communication connection with a video network server, and specifically includes the following steps:
step 501, acquiring a scene switching instruction;
in the embodiment of the present invention, the terminal device may be a device supporting video networking, which is supported by a user. Such as a mobile phone, a desktop computer, a notebook computer, a tablet computer, a smart watch, a television, a projector, etc., which are not limited in this respect.
In the embodiment of the present invention, the terminal device may be provided with an application program, and the application program may display a function module corresponding to an internet of view service on a preset program interface, a user may change a theme of the program interface to change the internet of view service displayed on the program interface, so that the user can conveniently use a commonly used internet of view service.
In the embodiment of the present invention, the terminal device may obtain a scene switching instruction. The scene switching instruction may be an operation performed by a user on the terminal device. For example, a user clicks a touch screen of the terminal device to input a scene switching instruction; a user clicks a keyboard connected with the terminal equipment to input a scene switching instruction; and the user acts in front of the camera of the terminal equipment to input a scene switching instruction. The terminal device may pre-store an operation corresponding to the scene switching instruction, and when the operation of the user conforms to the operation corresponding to the scene switching instruction, the terminal device may consider that the scene switching instruction is obtained.
In this embodiment of the present invention, the scene switching instruction may also be information sent to the terminal device by another electronic device. The other electronic devices may be a mobile phone, a desktop computer, a notebook computer, a tablet computer, an intelligent watch, a television, a projector, a remote controller, and the like, which is not limited in this respect. Therefore, the user can send instructions to the terminal equipment through other electronic equipment so as to control the terminal equipment.
Step 502, responding to the scene switching instruction, and sending a scene switching request of the video network to the video network server;
in the embodiment of the present invention, after the terminal device obtains the scene switching instruction, a video networking scene switching request may be sent to the video networking server in response to the scene switching instruction. And the scene switching request of the video network is used for requesting the video network server to acquire data required by switching scene styles.
In the embodiment of the present invention, after the video networking server obtains the video networking scene switching request, the target theme style data corresponding to the video networking scene switching request may be searched for the video networking scene switching request, and the target theme style data is sent to the terminal device.
Step 503, receiving target theme style data returned by the video network server;
in the embodiment of the present invention, the terminal device may receive target theme style data returned by the video network server. The target theme style data is used to configure the theme of the application. The theme may be a style of a program interface of the application.
And step 504, switching the preset theme of the application program by adopting the target theme style data.
In the embodiment of the present invention, the terminal device may switch the theme of the preset application program by using the target theme style data, and reconfigure the style of the program interface to switch the scene style of the application program, so that the application program may display the video networking service required by the user.
When the scene style of the application program is a popular style, the terminal device can acquire a scene switching instruction sent by a user and respond to the scene switching instruction to send a scene switching request of the video network to the video network server.
According to the theme switching method, the scene switching instruction is obtained, the scene switching instruction is responded, the video networking scene switching request is sent to the video networking server, the target theme style data returned by the video networking server is received, the preset theme of the application program is switched by adopting the target theme style data, the theme of the application program can be switched by a user through the scene switching instruction, the scene style of the application program is switched by switching the theme, the application program can display the video networking service required by the user, and the user can use the video networking service more conveniently.
In embodiments of the present invention, the step of sending a scene switching request to the video network server in response to the scene switching instruction comprises:
s11, responding to the scene switching instruction, and generating a video networking scene switching request based on a preset video networking protocol;
in the embodiment of the invention, the terminal equipment and the video networking server communicate based on a video networking protocol. Therefore, the terminal equipment can be preset with a video networking protocol library, so that the terminal equipment can communicate based on the video networking protocol.
In the embodiment of the present invention, after the terminal device obtains the scene switching instruction, a video networking scene switching request applicable to a video networking protocol may be generated by using the scene switching instruction.
S12, sending the request for switching the scene of the video network to the video network server.
In the embodiment of the invention, the terminal equipment can send a scene switching request of the video network to a video network server in the video network, so that the terminal equipment can acquire data required for switching the scene style of the application program from the video network.
In embodiments of the present invention, the video network server is configured to search, for the video network scene switching request, corresponding target theme style data in preset theme style data.
As examples of the present invention, the scene style information may be character strings.
In the embodiment of the invention, at least theme style data can be preset in the video network server, each theme style data can correspondingly have a scene style, and after the video network server acquires the video network scene switching request, the scene style information can be extracted, and target theme style data matched with the scene style information is searched in the theme style data to be used as target theme style data.
In embodiments of the present invention, an operating system is preset in the terminal device;
in the embodiment of the present invention, the terminal device may be preset with an operating system, and the operating system may manage hardware resources and software resources of the terminal device, and process basic transactions such as managing and configuring a memory, determining a priority order of supply and demand of system resources, controlling input devices and output devices, operating a network, and managing a file system.
The step of switching the application scene of the application program by using the target scene style data includes:
s21, the operating system sends a notification message to the application program through a preset interface;
in the embodiment of the present invention, the operating system and the application program may have different language environments, and data transmission between the application program and the operating system may be performed through preset interfaces, where the interfaces may be local programming interfaces, which provide support for interaction between the application program and the operating system, and as examples of the present invention, the interfaces may be JNI interfaces.
In the embodiment of the present invention, the application program may obtain a scene switching instruction, and send the scene switching instruction to the operating system through the interface, and the operating system may send a scene switching request to the video networking server in response to the scene switching instruction. The video networking server may return target scene style data to the operating system.
As examples of the present invention, the application program may obtain a scene switching instruction, a virtual voidsendVisionVeraTheme (medical Style), and send the scene switching instruction to the operating system through the interface, and the operating system may send a view networking scene switching request send _8855_ pic _ style (medical Style) to the view networking server in response to the scene switching instruction, and the view networking server may return target scene style data to the operating system through an instruction Rcv _8558_ pic (byte [ ]).
In the embodiment of the present invention, after the operating system acquires the target scene style data, the operating system may store the target scene style data in a local terminal device. Thereafter, the operating system may send a notification message to the application program through the interface. The notification message is used for notifying the application program to acquire the locally stored target scene style data and switching the theme of the application program.
S22, the application program responds to the notification message, and the theme of the application program is switched by adopting the target theme style data.
In this embodiment of the present invention, the application program may access, in response to the notification message, target scene style data locally located in the terminal device. The application program can adopt the target theme style data, switch the theme of the application program, and reconfigure the style of the program interface so as to switch the scene style of the application program, so that the application program can display the video networking service required by the user.
In embodiments of the present invention, the theme includes a background style and a control style;
in an embodiment of the present invention, the theme may include a background style and a control style of a program interface of the application program. The background pattern may include information such as a background color, a background image, and the like. The controls of the program interface may include buttons, text boxes, menus, and the like. The control style may include information such as the position, type of video networking service pointed to by the control, etc.
The step of the application program responding to the notification message and adopting the target theme style data to switch the theme of the application program comprises the following steps:
and S31, the application program responds to the notification message, and switches the background style and the control style of the application program by adopting the target theme style data.
In the embodiment of the present invention, the application program may respond to the notification message, switch the background style and the control style of the application program by using the target theme style data, and reconfigure the background and the control of the application program to switch the scene style of the application program, so that the application program may display the video networking service required by the user.
In a specific implementation, the background style and the control style may be set in any layout manners of a linear layout, a single-frame layout, a relative layout, an absolute layout, and a table layout, which is not limited in this disclosure.
It should be noted that, for simplicity of description, the method embodiments are described as series combinations of actions, but those skilled in the art should understand that the present invention is not limited by the order of the actions described, because some steps may occur in other orders or concurrently according to the embodiments of the present invention.
Referring to fig. 6, there are shown theme switching apparatuses according to an embodiment of the present invention, which are applied to a terminal device, where the terminal device is communicatively connected to a video network server, and the apparatuses may include the following modules:
an obtaining module 601, configured to obtain a scene switching instruction;
a sending module 602, configured to send a scene switching request to the video networking server in response to the scene switching instruction;
a receiving module 603, configured to receive target theme style data returned by the video networking server;
a switching module 604, configured to switch a preset theme of the application program by using the target theme style data.
In embodiments of the present invention, the sending module includes:
the generation submodule is used for responding to the scene switching instruction and generating a video networking scene switching request based on a preset video networking protocol;
and the sending submodule is used for sending the video networking scene switching request to the video networking server.
In embodiments of the present invention, the video network server is configured to search, for the video network scene switching request, corresponding target theme style data in preset theme style data.
In embodiments of the present invention, an operating system is preset in the terminal device;
the switching module includes:
the notification submodule is used for sending a notification message to the application program by the operating system through a preset interface;
switching sub-module, for the application program to respond to the notification message, and to switch the theme of the application program by using the target theme style data.
In embodiments of the present invention, the theme includes a background style and a control style;
the switching module includes:
and the second switching submodule is used for responding to the notification message by the application program, adopting the target theme style data and switching the background style and the control style of the application program.
For the embodiment of the theme switching apparatus, since it is basically similar to the embodiment of the theme switching method, the description is relatively simple, and for relevant points, reference may be made to part of the description of the embodiment of the theme switching method.
The embodiment of the invention also provides kinds of devices, which comprise:
or more processors, and
or more machine readable media having instructions stored thereon that, when executed by the or more processors, cause the apparatus to perform the subject switching method of or more as described in embodiments of the invention.
The embodiment of the present invention further provides computer-readable storage media, where stored computer programs enable a processor to execute the theme switching method according to the embodiment of the present invention.
The video networking is an important milestone for network development, is real-time networks, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video and high-definition face-to-face.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of video, voice, pictures, characters, communication, data and the like on the network platforms, such as high-definition video conferences, video monitoring, intelligent monitoring analysis, emergency command, digital television broadcasting, delayed television, network teaching, live broadcasting, VOD on demand, television mails, Personal Video Recorder (PVR), intranet (self-made) channels, intelligent video broadcasting control, information distribution and the like, into the system platforms, and realizes high-definition quality video broadcasting through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
The video networking technology has the flexibility, simplicity and low price of Packet Switching, and simultaneously has the quality and safety guarantee of Circuit Switching, and realizes the full-network Switching type virtual Circuit and the seamless connection of data formats.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears IP data packets, and does not need any format conversion in the whole network range.
Server Technology (Server Technology)
The video networking and system video platform server technology is different from the traditional server, its stream media transmission is based on the connection oriented base, its data processing ability is independent of flow and communication time, the single network layer can contain signaling and data transmission, for voice and video service, the complexity of video networking and system video platform stream media processing is much simpler than data processing, the efficiency is greatly improved over hundred times than the traditional server.
Storage Technology (Storage Technology)
The ultra-high speed memory technology of the system 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, the time for the user to wait is less than 0.2 second, the optimized sector distribution greatly reduces the mechanical movement of the hard disk magnetic head seek, the resource consumption only accounts for 20% of the same grade IP internet, but the concurrent flow which is 3 times larger than 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 which troubles the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, and does not need antivirus programs and firewalls, thereby avoiding the attack of hackers and viruses and providing a structural careless security network for users.
Service Innovation Technology (Service Innovation Technology)
The system video platform integrates services and transmission at , no matter a single user, a private network user or a total of networks, the automatic connection is only times, a user terminal, a set-top box or a PC is directly connected to the system video platform to obtain various multimedia video services in various forms, and the system 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 new service innovation in an infinite quantity.
Networking of the video network is as follows:
the internet of view is kinds of network structures with centralized control, and the network can be a tree type network, a star type network, a ring network and the like, but on the basis of the network, a centralized control node is needed to control the whole 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.
It can be seen that the whole network of view is network structures controlled by hierarchical centralization, and the network controlled by node server and metropolitan area server can be various structures such as tree, star, ring, etc.
The access network part can form a system video platform (the part in the dotted circle), a plurality of systems video platforms can form a video network, and each system video platform can be interconnected through a metropolitan area and a video network.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, 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 server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, 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 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 based on 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, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching 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 incoming data packet of the CPU module 304 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 nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include 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 308 is configured by the CPU module 304, 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 orframe 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 deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
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 MACSA of the ethernet coordination 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 mainly 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. Video networking 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 th byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are at most 256 possibilities, 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 different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is 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 the metro network is a graph, and there may be 2, even more than 2 connections between two devices, that is, there may be more than 2 connections between a node switch and a node server, between a node switch and a node switch, and between a node switch and a node server, however, the addresses of the metro networks of the metro network devices are only , and in order to accurately describe the connection relationship between the metro network devices, the parameter label is introduced in the embodiment of the present invention, so that only describes metro network devices.
The Label definition in this specification is similar to the Label definition of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between device a and device B, there are 2 labels for a packet from device a to device B, and there are 2 labels for a packet from device B to device a. the Label is divided into an incoming Label and an outgoing Label, and assuming that the Label (incoming Label) of a packet entering device a is 0x0000, the Label (outgoing Label) of the packet leaving device a may become 0x 0001.
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, and its position is between the reserved bytes and payload of the packet.
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.
Furthermore, the present invention may take the form of a computer program product embodied on or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
It is to be understood that each flow and/or block in the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions which can 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 flow diagram 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.
Having thus described the preferred embodiments of the present invention, additional variations and modifications of these embodiments may occur to those skilled in the art from the basic inventive concepts .
Finally, it should also be noted that, in this document, relational terms such as , second, and the like are only used to distinguish entities or operations from another entities or operations, without necessarily requiring or implying any actual relationship or order between such entities or operations, furthermore, the terms "comprise", "include", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises the family of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or terminal.
The theme switching methods, theme switching devices and computer-readable storage media provided by the present invention are described in detail, and specific examples are applied herein to describe the principles and embodiments of the present invention, and the above description of the embodiments is only used to help understand the methods and the core ideas of the present invention, meanwhile, for persons in the art, there are changes in the specific embodiments and application ranges according to the ideas of the present invention, and in conclusion, the present description should not be construed as limiting the present invention.

Claims (10)

1, theme switching method, characterized in that, it applies to terminal equipment, the terminal equipment and the video network server communication connection, the method includes:
acquiring a scene switching instruction;
responding to the scene switching instruction, and sending a scene switching request of the video network to the video network server;
receiving target theme style data returned by the video network server;
and switching the theme of the preset application program by adopting the target theme style data.
2. The method according to claim 1, wherein said step of sending a scene switching request to said video network server in response to said scene switching command comprises:
responding to the scene switching instruction, and generating a video networking scene switching request based on a preset video networking protocol;
and sending the video networking scene switching request to the video networking server.
3. The method according to claim 1, wherein the video networking server is configured to search preset theme style data for corresponding target theme style data in the video networking scene switching request.
4. The method according to claim 1, wherein an operating system is preset in the terminal device;
the step of switching the application scene of the application program by using the target scene style data includes:
the operating system sends a notification message to the application program through a preset interface;
and the application program responds to the notification message and adopts the target theme style data to switch the theme of the application program.
5. The method of claim 4, wherein the theme comprises a background style and a control style;
the step of the application program responding to the notification message and adopting the target theme style data to switch the theme of the application program comprises the following steps:
and the application program responds to the notification message, and switches the background style and the control style of the application program by adopting the target theme style data.
The title switching device of is characterized in that it is applied to a terminal device, the terminal device is connected with a video network server in communication, the device includes:
the acquisition module is used for acquiring a scene switching instruction;
the sending module is used for responding to the scene switching instruction and sending a scene switching request of the video network to the video network server;
the receiving module is used for receiving the target theme style data returned by the video networking server;
and the switching module is used for switching the theme of the preset application program by adopting the target theme style data.
7. The apparatus of claim 1, wherein the sending module comprises:
the generation submodule is used for responding to the scene switching instruction and generating a video networking scene switching request based on a preset video networking protocol;
and the sending submodule is used for sending the video networking scene switching request to the video networking server.
8. The apparatus according to claim 1, wherein the video networking server is configured to search, for the video networking scene switching request, corresponding target theme style data in preset theme style data.
An apparatus of the type , comprising:
or more processors, and
or more machine readable media having instructions stored thereon that when executed by the or more processors cause the apparatus to perform the subject switching method of or more of claims 1-5.
10, computer-readable storage medium, characterized in that it stores a computer program to make a processor execute the topic switching method according to any of claims 1 to 5 through .
CN201910860658.2A 2019-09-11 2019-09-11 theme switching method and device Pending CN110737519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910860658.2A CN110737519A (en) 2019-09-11 2019-09-11 theme switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910860658.2A CN110737519A (en) 2019-09-11 2019-09-11 theme switching method and device

Publications (1)

Publication Number Publication Date
CN110737519A true CN110737519A (en) 2020-01-31

Family

ID=69267627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910860658.2A Pending CN110737519A (en) 2019-09-11 2019-09-11 theme switching method and device

Country Status (1)

Country Link
CN (1) CN110737519A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552537A (en) * 2020-05-06 2020-08-18 深圳市卡牛科技有限公司 Theme switching method and device, computer equipment and storage medium
CN113050966A (en) * 2021-03-12 2021-06-29 重庆长安汽车股份有限公司 Vehicle display interface theme updating method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080148183A1 (en) * 2006-12-18 2008-06-19 Michael Danninger Method and system for providing themes for software applications
US20150149891A1 (en) * 2013-11-26 2015-05-28 Yahoo! Inc. Web application theme preview based on live previews
CN104867365A (en) * 2015-06-02 2015-08-26 阔地教育科技有限公司 Teaching interactive mode switching method and system
CN106775773A (en) * 2017-01-20 2017-05-31 深圳市金立通信设备有限公司 A kind of theme control method and terminal device
CN107391134A (en) * 2017-07-19 2017-11-24 北京勤哲软件技术有限责任公司 A kind of General Mobile application interactive interface automatically generates and dynamic mapping method and apparatus
CN107861982A (en) * 2017-09-29 2018-03-30 五八有限公司 It is dynamically determined method, terminal, server and the system of application program page layout

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080148183A1 (en) * 2006-12-18 2008-06-19 Michael Danninger Method and system for providing themes for software applications
US20150149891A1 (en) * 2013-11-26 2015-05-28 Yahoo! Inc. Web application theme preview based on live previews
CN104867365A (en) * 2015-06-02 2015-08-26 阔地教育科技有限公司 Teaching interactive mode switching method and system
CN106775773A (en) * 2017-01-20 2017-05-31 深圳市金立通信设备有限公司 A kind of theme control method and terminal device
CN107391134A (en) * 2017-07-19 2017-11-24 北京勤哲软件技术有限责任公司 A kind of General Mobile application interactive interface automatically generates and dynamic mapping method and apparatus
CN107861982A (en) * 2017-09-29 2018-03-30 五八有限公司 It is dynamically determined method, terminal, server and the system of application program page layout

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BEN FALCHUK: "Visual and interaction design themes in mobile healthcare", 《2009 6TH ANNUAL INTERNATIONAL MOBILE AND UBIQUITOUS SYSTEMS: NETWORKING & SERVICES, MOBIQUITOUS》 *
HAO JIANG: "Exploring the Users’ Preference Pattern of Application Services Between Different Mobile Phone Brands", 《IEEE TRANSACTIONS ON COMPUTATIONAL SOCIAL SYSTEMS》 *
谢坤桃: "以用户场景需求目标为导向的手机桌面新闻应用设计研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
贺雅楠: "基于MICAPS4的智能网格预报平台设计与实现", 《应用气象学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552537A (en) * 2020-05-06 2020-08-18 深圳市卡牛科技有限公司 Theme switching method and device, computer equipment and storage medium
CN111552537B (en) * 2020-05-06 2023-10-20 深圳市卡牛科技有限公司 Theme switching method and device, computer equipment and storage medium
CN113050966A (en) * 2021-03-12 2021-06-29 重庆长安汽车股份有限公司 Vehicle display interface theme updating method and system

Similar Documents

Publication Publication Date Title
CN109714527B (en) Method and device for controlling video network camera in internet
CN109660816B (en) Information processing method and device
CN109547731B (en) Video conference display method and system
CN110191315B (en) Monitoring and checking method and device based on video network
CN109246135B (en) Method and system for acquiring streaming media data
CN109379209B (en) Method and device for upgrading storage service of video network
CN111131754A (en) Control split screen method and device of conference management system
CN110557612B (en) Control method of monitoring equipment and video networking system
CN109802952B (en) Monitoring data synchronization method and device
CN110737519A (en) theme switching method and device
CN110891156B (en) Conference entering method and device of monitoring camera
CN110381285B (en) Conference initiating method and device
CN109768964B (en) Audio and video display method and device
CN110324578B (en) Monitoring video processing method, device and storage medium
CN110830185B (en) Data transmission method and device
CN110493311B (en) Service processing method and device
CN109788231B (en) Video telephone service processing method and device
CN109495709B (en) Video network management system and method
CN110120937B (en) Resource acquisition method, system, device and computer readable storage medium
CN109194896B (en) Calling method and system for video networking terminal
CN109379553B (en) Audio and video data display method and system
CN110636132A (en) Data synchronization method, client, electronic device and computer-readable storage medium
CN110809021A (en) Menu sequencing method and device, electronic equipment and storage medium
CN110674421A (en) Data query method and system for video conference
CN110716771A (en) Terminal page display method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200131