CN114827674B - Network resource display method, device and system - Google Patents

Network resource display method, device and system Download PDF

Info

Publication number
CN114827674B
CN114827674B CN202210333246.5A CN202210333246A CN114827674B CN 114827674 B CN114827674 B CN 114827674B CN 202210333246 A CN202210333246 A CN 202210333246A CN 114827674 B CN114827674 B CN 114827674B
Authority
CN
China
Prior art keywords
displayed
address
network resource
target user
acquired
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
CN202210333246.5A
Other languages
Chinese (zh)
Other versions
CN114827674A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210333246.5A priority Critical patent/CN114827674B/en
Publication of CN114827674A publication Critical patent/CN114827674A/en
Application granted granted Critical
Publication of CN114827674B publication Critical patent/CN114827674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2404Monitoring of server processing errors or hardware failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4108Peripherals receiving signals from specially adapted client devices characterised by an identification number or address, e.g. local network address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method, a device and a system for displaying network resources, wherein screen throwing equipment acquires the current acquired address of the network resources to be displayed; and sending an acquisition request carrying a user identifier aiming at the network resource to be displayed to a scheduling server to which the current acquisition address belongs. When an acquisition request is received, if the network resource to be displayed is not stored locally, the scheduling server determines the current acquisition address corresponding to the user identifier and sends the current acquisition address to the screen throwing equipment; and if the network resources to be displayed are stored locally, sending the network resources to be displayed to the screen throwing equipment. When receiving the current acquisition address, the screen throwing device sends an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs until the network resource to be displayed is acquired, displays the network resource to be displayed, and can determine that the scheduling server to which the acquisition address corresponding to the user identifier belongs is the scheduling server which fails when the screen throwing is performed.

Description

Network resource display method, device and system
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, and a system for displaying network resources.
Background
With the development of internet technology, the screen projection technology is widely applied. For example, a user may send an acquisition address of a video to be projected to a projection device (e.g., a television) via a terminal (e.g., a cell phone). The screen throwing device can acquire the video according to the received acquisition address, play the acquired video, and the user can watch the video on the screen throwing device, so that the watching experience of the user can be improved.
In the related art, when a user performs video screen projection, screen projection equipment acquires a video to be played from a server cluster according to an acquisition address of a video for screen projection sent by a terminal, and plays the acquired video to be played. Because the server cluster comprises a plurality of scheduling servers, each time the screen throwing device acquires the video file, the server cluster responds to the screen throwing device by different scheduling servers based on a load balancing strategy.
In the video screen-throwing process, faults such as playing blocking and the like may occur, and a user can report a fault to a service server through a terminal. However, since the scheduling server responding to the screen-throwing device is different when the user performs video screen-throwing every time, when the service server receives the barrier report message sent by the user through the terminal, the scheduling server responding to the screen-throwing device cannot be determined, and therefore, the failed scheduling server cannot be determined.
Disclosure of Invention
The embodiment of the invention aims to provide a network resource display method, a device and a system, so that when a user performs screen projection every time, screen projection equipment requests a scheduling server to which an acquired address corresponding to a user identifier belongs, and then the scheduling server to which the acquired address corresponding to the user identifier belongs can be determined, and the scheduling server with faults during screen projection is performed for the user. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a network resource display method, where the method is applied to a screen-throwing device, the method including:
acquiring an acquired address corresponding to a network resource to be displayed, which needs to be screen-switched, as a current acquired address;
sending an acquisition request aiming at the network resource to be displayed to a scheduling server to which a current acquisition address in a server cluster belongs; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; when receiving the acquisition request, the scheduling server to which the current acquisition address belongs sends the network resource to be displayed to the screen throwing device if the network resource to be displayed is locally stored in the scheduling server to which the current acquisition address belongs; if the scheduling server to which the current acquired address belongs does not locally store the network resource to be displayed, determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier, which is locally recorded by the scheduling server to which the current acquired address belongs, as the current acquired address, and sending the current acquired address to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
Receiving a current acquisition address, and returning to execute the step of sending an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs in a server cluster until the network resource to be displayed is acquired;
and displaying the network resource to be displayed when the network resource to be displayed is acquired.
Optionally, the network resource to be displayed is a video resource;
the obtaining address corresponding to the network resource to be displayed, which is required to be screen-switched at present, as the current obtaining address includes:
receiving a target file which is sent by the terminal and comprises an acquisition address of each video segment in the video resource; the target file is acquired by the terminal from a service server in the server cluster;
and analyzing the target file to obtain an acquisition address of each video segment in the video resource, and taking the acquisition address as a current acquisition address.
Optionally, the sending, to a scheduling server to which the current acquisition address in the server cluster belongs, an acquisition request for the network resource to be displayed includes:
for each video segment in the video resource, sending an acquisition request for the video segment to a scheduling server to which the current acquisition address of the video segment in the server cluster belongs;
And displaying the network resource to be displayed when the network resource to be displayed is acquired, including:
and playing each video clip in the video resource based on the arrangement sequence of each video clip in the video resource when the video clip is acquired.
In a second aspect of the present invention, there is also provided a network resource display method, where the method is applied to a scheduling server in a server cluster, and the method includes:
receiving an acquisition request sent by a screen throwing device; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
if the network resources to be displayed are stored locally, sending the network resources to be displayed to the screen throwing equipment;
if the network resource to be displayed is not stored locally, determining an acquisition address corresponding to the target user identifier from the corresponding relation between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, as a current acquisition address, and sending the current acquisition address to the screen throwing equipment; when receiving the current acquisition address, the screen throwing equipment sends an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs until the screen throwing equipment acquires the network resource to be displayed and displays the network resource to be displayed; and the corresponding relations between the acquired addresses of the network resources to be displayed and the user identifications recorded in different scheduling servers are different.
Optionally, before determining, from the correspondence between the locally recorded acquired address of the network resource to be displayed and the user identifier, the acquired address corresponding to the target user identifier as the current acquired address, if the network resource to be displayed is not stored locally, the method further includes:
determining the number of a plurality of acquired addresses of the network resource to be displayed, which is recorded locally, as a first number;
performing a remainder operation on the target user identifier and the first number to obtain a target remainder;
determining a first target remainder acquisition address from the plurality of acquisition addresses according to a preset arrangement sequence of a scheduling server to which the plurality of acquisition addresses belong;
and locally recording that the target user identification corresponds to a first target remainder acquisition address.
In a third aspect of the present invention, there is also provided a network resource display system, the system including: the system comprises a screen throwing device and a server cluster, wherein:
the screen throwing equipment is used for acquiring an acquired address corresponding to the network resource to be displayed, which needs to be subjected to screen throwing, and taking the acquired address as a current acquired address; sending an acquisition request for the network resource to be displayed to a scheduling server to which a current acquisition address in the server cluster belongs; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
The scheduling server to which the current acquired address belongs is used for determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier recorded locally and sending the current acquired address to the screen throwing equipment if the network resource to be displayed is not stored locally when the acquired request is received; if the network resources to be displayed are stored locally, sending the network resources to be displayed to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different;
the screen throwing device is further used for displaying the network resources to be displayed when the network resources to be displayed are acquired.
In a fourth aspect of the present invention, there is also provided a network resource display apparatus, the apparatus being applied to a screen-throwing device, the apparatus comprising:
the acquisition module is used for acquiring an acquisition address corresponding to the network resource to be displayed, which needs to be screen-switched, and taking the acquisition address as a current acquisition address;
a sending module, configured to send an acquisition request for the network resource to be displayed to a scheduling server to which a current acquisition address in a server cluster belongs; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; when receiving the acquisition request, the scheduling server to which the current acquisition address belongs sends the network resource to be displayed to the screen throwing device if the network resource to be displayed is locally stored in the scheduling server to which the current acquisition address belongs; if the scheduling server to which the current acquired address belongs does not locally store the network resource to be displayed, determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier, which is locally recorded by the scheduling server to which the current acquired address belongs, as the current acquired address, and sending the current acquired address to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
The receiving module is used for receiving the current acquisition address and triggering the sending module to execute the step of sending the acquisition request aiming at the network resource to be displayed to a scheduling server to which the current acquisition address in the server cluster belongs until the network resource to be displayed is acquired;
and the display module is used for displaying the network resources to be displayed when the network resources to be displayed are acquired.
Optionally, the network resource to be displayed is a video resource;
the acquisition module is specifically configured to receive a target file sent by the terminal and including an acquisition address of each video segment in the video resource; the target file is acquired by the terminal from a service server in the server cluster;
and analyzing the target file to obtain an acquisition address of each video segment in the video resource, and taking the acquisition address as a current acquisition address.
Optionally, the sending module is specifically configured to send, for each video segment in the video resource, an acquisition request for the video segment to a scheduling server to which a current acquisition address of the video segment in the server cluster belongs;
The display module is specifically configured to play each video clip in the video resource based on the arrangement sequence of each video clip in the video resource when the video clip is acquired.
In a fifth aspect of the present invention, there is also provided a network resource display device, the device being applied to a scheduling server in a server cluster, the device comprising:
the receiving module is used for receiving the acquisition request sent by the screen throwing equipment; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
the first sending module is used for sending the network resources to be displayed to the screen throwing equipment if the network resources to be displayed are locally stored;
the second sending module is used for determining an acquisition address corresponding to the target user identifier from the corresponding relation between the acquisition address of the network resource to be displayed and the user identifier recorded locally if the network resource to be displayed is not stored locally, taking the acquisition address as a current acquisition address, and sending the current acquisition address to the screen throwing equipment; when receiving the current acquisition address, the screen throwing equipment sends an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs until the screen throwing equipment acquires the network resource to be displayed and displays the network resource to be displayed; and the corresponding relations between the acquired addresses of the network resources to be displayed and the user identifications recorded in different scheduling servers are different.
Optionally, the apparatus further includes:
a first determining module, configured to determine, in the second sending module, an acquisition address corresponding to the target user identifier from a correspondence between an acquisition address of the network resource to be displayed and a user identifier recorded locally, if the network resource to be displayed is not stored locally, and before the second sending module is used as a current acquisition address, determine, as a first number, a number of multiple acquisition addresses of the network resource to be displayed recorded locally;
the second determining module is used for carrying out a residual operation on the target user identification and the first number to obtain a target remainder;
a third determining module, configured to determine a first target remainder acquisition address from the plurality of acquisition addresses according to a preset arrangement sequence of the scheduling servers to which the plurality of acquisition addresses belong;
and the recording module is used for locally recording that the target user identification corresponds to the first target remainder acquisition address.
In yet another aspect of the present invention, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory perform communication with each other through the communication bus;
A memory for storing a computer program;
and the processor is used for realizing the network resource display method step applied to the screen throwing equipment in any one of the first aspect or the network resource display method step applied to the scheduling server in any one of the second aspect when executing the program stored in the memory.
In still another aspect of the implementation of the present invention, there is further provided a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the network resource display method applied to a screen-throwing device according to any one of the first aspect or the network resource display method applied to a scheduling server according to any one of the second aspect.
In yet another aspect of the implementation of the present invention, there is also provided a computer program product containing instructions, which when executed on a computer, cause the computer to perform the network resource display method applied to a screen-casting device according to any one of the first aspect or the network resource display method applied to a scheduling server according to any one of the second aspect.
According to the network resource display method provided by the embodiment of the invention, the screen throwing equipment acquires the acquired address corresponding to the network resource to be displayed, which needs to be thrown, as the current acquired address; sending an acquisition request for network resources to be displayed to a scheduling server to which a current acquisition address in a server cluster belongs; the method comprises the steps that a target user identifier of a target user of a terminal corresponding to a screen throwing device is carried in an acquisition request; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed. When receiving an acquisition request, a scheduling server to which a current acquisition address belongs determines an acquisition address corresponding to a target user identifier from a corresponding relation between the acquisition address of the network resource to be displayed and the user identifier recorded locally if the network resource to be displayed is not stored locally, and sends the current acquisition address to a screen throwing device; if the network resources to be displayed are stored locally, the network resources to be displayed are sent to the screen throwing equipment; and the corresponding relation between the acquired addresses of the network resources to be displayed and the user identification recorded in different scheduling servers is different. When receiving the current acquisition address, the screen throwing device sends an acquisition request aiming at the network resource to be displayed to a scheduling server to which the current acquisition address belongs in the server cluster, and the network resource to be displayed is displayed until the network resource to be displayed is acquired.
Based on the above processing, the acquisition request sent by the screen throwing device to the scheduling server carries the target user identifier, and the target user identifier is fixed. The scheduling server determines the acquisition address corresponding to the target user identifier from the corresponding relationship between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, so that the scheduling server determines the same acquisition address when the target user performs screen projection every time, and the screen projection equipment requests the same scheduling server when the target user performs screen projection every time. Subsequently, when the service server receives the fault report message sent by the target user through the terminal, the service server can determine the scheduling server to which the acquired address corresponding to the target user identifier belongs, and the service server is the scheduling server of the response screen throwing device, so that the scheduling server can be determined to be the scheduling server with faults when the target user performs screen throwing.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a method for displaying network resources according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for displaying network resources according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for displaying network resources according to an embodiment of the present invention;
fig. 4 is a block diagram of a network resource display device according to an embodiment of the present invention;
fig. 5 is a block diagram of another network resource display device according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
In the related art, during the video screen projection process, faults such as playing blocking and the like may occur, and a user may report a fault to a service server through a terminal. However, when the user receives the fault reported by the user through the terminal, the service server cannot determine the scheduling server responding to the screen-throwing device and further cannot determine the scheduling server with the fault because the scheduling server responding to the screen-throwing device is different when the user performs video screen-throwing each time.
In order to solve the above-mentioned problems, referring to fig. 1, fig. 1 is a flowchart of a network resource display method provided in an embodiment of the present invention, where the method is applied to a network resource display system, and the network resource display system includes: the method may include the steps of:
S101: the screen throwing equipment acquires an acquisition address corresponding to the network resource to be displayed, which needs to be thrown, as a current acquisition address.
S102: the screen throwing device sends an acquisition request aiming at the network resource to be displayed to a scheduling server to which the current acquisition address in the server cluster belongs.
The acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment. The target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed.
S103: when receiving an acquisition request, the scheduling server to which the current acquisition address belongs sends the network resource to be displayed to the screen throwing equipment if the network resource to be displayed is stored locally.
S104: if the network resource to be displayed is not stored locally, the scheduling server to which the current acquisition address belongs determines the acquisition address corresponding to the target user identifier from the corresponding relation between the acquisition address of the network resource to be displayed and the user identifier recorded locally, and takes the acquisition address as the current acquisition address, and sends the current acquisition address to the screen throwing equipment.
The corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different.
S105: the screen throwing equipment receives the current acquisition address, and sends an acquisition request aiming at the network resource to be displayed to a scheduling server to which the current acquisition address belongs until the network resource to be displayed is acquired.
S106: and the screen throwing equipment displays the network resources to be displayed when acquiring the network resources to be displayed.
Based on the network resource display method provided by the embodiment of the invention, the acquisition request sent by the screen throwing equipment to the scheduling server carries the target user identifier, and the target user identifier is fixed. The scheduling server determines the acquisition address corresponding to the target user identifier from the corresponding relationship between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, so that the scheduling server determines the same acquisition address when the target user performs screen projection every time, and the screen projection equipment requests the same scheduling server when the target user performs screen projection every time. Subsequently, when the service server receives the fault report message sent by the target user through the terminal, the service server can determine the scheduling server to which the acquired address corresponding to the target user identifier belongs, and the service server is the scheduling server of the response screen throwing device, so that the scheduling server can be determined to be the scheduling server with faults when the target user performs screen throwing.
For step S101, the network resource may be a video resource, a picture resource, a text resource, or the like. When the display screen of the terminal used by the target user is smaller, in order to obtain better viewing experience, the target user can instruct the terminal to display the network resource to be viewed (i.e. the network resource to be displayed in the embodiment of the invention) to the screen-throwing device with a larger display screen. The terminal used by the target user can be a mobile phone, a computer and the like, and the screen throwing equipment can be a television, a projector and the like. The target user can be any user who uses the terminal to throw a screen. For example, the target user can cast the video to the television for playing through the mobile phone, and the target user can watch the video on the television, so that the watching experience of the user can be improved.
Correspondingly, the screen-throwing device can determine the network resource to be displayed which needs to be thrown on the screen currently, and acquire the acquisition address (namely the current acquisition address) corresponding to the network resource to be displayed which needs to be thrown on the screen currently. The acquisition address is: the address of the scheduling server of the network resource to be displayed may be obtained in the server cluster.
The server cluster comprises a plurality of scheduling servers, and each scheduling server is used for storing network resources and acquired addresses of the network resources. The dispatch server may be a CDN (Content Delivery Network ) server or may also be a D-Cache server.
In one embodiment of the invention, the network resource to be displayed may be a video resource. Accordingly, referring to fig. 2 on the basis of fig. 1, step S101 may include the steps of:
s1011: and the screen throwing equipment receives a target file which is sent by the terminal and comprises the acquisition address of each video fragment in the video resource.
The target file is acquired by the terminal from a service server in the server cluster.
S1012: the screen throwing equipment analyzes the target file to obtain the acquisition address of each video clip in the video resource, and the acquisition address is used as the current acquisition address.
The server cluster may further include a service server, where the service server is configured to respond to the acquisition request of the terminal. The service server records the corresponding relation between the network resource provided by the server cluster to the user and the acquired address. The network resources provided by the server cluster to the user include: network resources stored in each scheduling server in the server cluster. The video acquisition address includes: the acquisition address of each video clip in the video. The acquisition address of a video clip is: the address of the scheduling server for the video clip may be obtained in the server cluster.
When the screen is required to be dropped, the terminal may send an acquisition request (may be referred to as a third acquisition request) for the video resource required to be dropped to the service server. The third acquisition request carries the video identification of the video resource, the equipment information of the terminal and the identity information of the target user. The identity information of the target user may include: the account number of the target user login terminal, the name of the target user, the account number grade of the target user and the like.
When the service server receives the third acquisition request, the acquisition address corresponding to each video segment in the video resource requested by the terminal can be determined in the corresponding relation between the locally recorded network resource and the acquisition address. And then, the service server can package the determined acquisition addresses to obtain a target file containing the acquisition address of each video segment in the video resource, and send the target file to the terminal.
The target file may be an M3U8 file, and the acquisition address of each video clip in the video asset is recorded using UTF-8 encoding in the M3U8 file. UTF-8 coding is a variable length character coding scheme for Unicode.
For example, the duration of the video resource may be 500 seconds, and one video clip in the video resource may be 10 seconds, and the M3U8 file includes the respective acquired addresses of the 50 video clips in the video resource.
The target file may further include information such as a start time, an end time, and a duration of each video clip in the video resource.
Furthermore, after receiving the target file sent by the service server, the terminal can send the target file to the screen throwing device. Correspondingly, the screen throwing device can receive the target file sent by the terminal, analyze the target file and obtain the acquisition address of each video segment in the video resource as the current acquisition address.
For step S102, the screen-throwing device may first acquire the target user identifier, where the target user identifier is determined based on the identity information of the target user, and/or the device information of the terminal. Since the identity information of the same user is fixed, the equipment information of the same terminal is also fixed, and the user identification of the same user is also fixed.
The identity information of the target user may include: the login information of the target user login terminal, such as an account number, an account number grade, a mobile phone number, a name and the like of the target user login terminal. The device information of the terminal may include: the model of the terminal, etc.
For example, the target user identification may be an account number for the target user to log into the terminal, or may be a model number of the terminal.
Alternatively, the target user identification may be determined based on the identity information of the target user and the device information of the terminal. For example, MD5 (Message Digest Algorithm MD, fifth version of the message digest algorithm) operation may be performed on the identity information of the target user and the device information of the terminal, and the calculation result may be used as the target user identifier. Or hash coding is carried out on the identity information of the target user and the equipment information of the terminal, and the obtained coding result is used as the target user identifier.
In one implementation manner, when the service server receives the third acquisition request, the service server may determine the target user identifier based on the identity information of the target user and/or the device information of the terminal, and send the target file carrying the target user identifier to the terminal. Correspondingly, the target file sent by the terminal and received by the screen throwing equipment carries the target user identifier, and the screen throwing equipment analyzes the target file to obtain the target user identifier.
In another implementation manner, the terminal may determine the target user identifier directly based on the identity information of the target user and/or the device information of the terminal, and send the target user identifier and the target file to the screen-throwing device. Correspondingly, the screen throwing device can receive the target user identification sent by the terminal.
Furthermore, after the current acquisition address and the target user identifier are acquired, the screen-throwing device may send an acquisition request for the network resource to be displayed and carrying the target user identifier to a scheduling server to which the current acquisition address belongs.
In one embodiment of the present invention, when the network resource to be displayed is a video resource, step S102 may include the steps of: for each video segment in the video resource, the screen throwing device sends an acquisition request for the video segment to a scheduling server to which a current acquisition address of the video segment in the server cluster belongs.
When the screen throwing device acquires the current acquisition addresses of all the video clips in the video resource, the screen throwing device can acquire the video clips from the scheduling server to which the current acquisition address of each video clip belongs. The current acquisition address is different for each video clip.
In one implementation manner, after obtaining the current obtaining addresses of the video clips in the video resource, the screen-throwing device may send the obtaining request for each video clip to the scheduling server to which the current obtaining address of each video clip belongs in turn according to the arrangement sequence of the video clips in the video resource.
In another implementation manner, after obtaining the current obtaining addresses of the video clips in the video resource, the screen throwing device may send the obtaining request for each video clip to the scheduling server to which the current obtaining address of the video clip belongs through a plurality of parallel processing threads.
For step S103, for each scheduling server in the server cluster, if the scheduling server receives the acquisition request sent by the screen-throwing device, the scheduling server is the scheduling server to which the current acquisition address of the network resource to be displayed that needs to be thrown screen belongs.
The scheduling server to which the current acquisition address belongs can receive the acquisition request sent by the screen throwing device and judge whether the network resource to be displayed is stored locally. If the network resource to be displayed is stored locally, the scheduling server to which the current acquired address belongs can directly send the network resource to be displayed to the screen throwing device. Correspondingly, the screen throwing device can receive the network resource to be displayed sent by the scheduling server to which the current acquired address belongs, and display the network resource to be displayed.
For step S104, when receiving the acquisition request sent by the screen-throwing device, the scheduling server to which the current acquisition address belongs may determine other scheduling servers that may acquire the network resource to be displayed if the network resource to be displayed is not stored locally, so that the screen-throwing device requests the network resource to be displayed from the other scheduling servers.
The scheduling server to which the current acquired address belongs may determine, from the locally recorded acquired addresses of the network resources to be displayed, an acquired address corresponding to the target user identifier, where the determined acquired address corresponding to the target user identifier is the address of the scheduling server that can acquire the network resources to be displayed, based on the corresponding relationship between the locally recorded acquired address of the network resources to be displayed and the user identifier. Then, the scheduling server to which the current acquired address belongs can take the acquired address corresponding to the determined target user identifier as the current acquired address, and send the current acquired address to the screen throwing device.
Before determining the acquired address corresponding to the target user identifier from the locally recorded acquired addresses of the network resources to be displayed, the scheduling server to which the current acquired address belongs can determine the corresponding relationship between the acquired address of the network resources to be displayed and the user identifier.
In one implementation, before step S104, the method may further include the steps of:
step 1: the scheduling server to which the current acquired address belongs determines the number of the plurality of acquired addresses of the network resource to be displayed, which is recorded locally, as a first number.
Step 2: and the scheduling server to which the current acquired address belongs performs a residual operation on the target user identification and the first number to obtain a target remainder.
Step 3: and determining a first target remainder acquired address from the plurality of acquired addresses according to the preset arrangement sequence of the scheduling server to which the plurality of acquired addresses belong by the scheduling server to which the current acquired address belongs.
Step 4: the scheduling server to which the current acquired address belongs locally records that the target user identifier corresponds to the first acquired address of the remainder.
The scheduling server to which the current acquired address belongs may determine the number (i.e. the first number) of locally recorded acquired addresses of the network resource to be displayed. Then, the scheduling server to which the current acquired address belongs can perform a remainder operation on the target user identifier and the first number to obtain a target remainder. Furthermore, the scheduling server to which the current acquired address belongs may determine, according to a preset arrangement sequence of the scheduling servers to which the plurality of acquired addresses belong, a first target remainder acquired address from the plurality of acquired addresses, and record locally that the target user identifier corresponds to the first target remainder acquired address. The preset arrangement sequence of the scheduling servers to which the plurality of acquired addresses respectively belong may be: the hardware performance of the dispatch server to which each of the plurality of acquisition addresses belongs is ranked from high to low.
The scheduling server to which the current acquired address belongs can determine the acquired address corresponding to the target user identifier according to the above manner when each time an acquired request sent by the screen-throwing device is received, and locally record the acquired address corresponding to the user identifier.
Or, when the scheduling server to which the current acquired address belongs receives the acquired request sent by the screen throwing device for the first time, the acquired address corresponding to the target user identifier is determined according to the mode, and the acquired address corresponding to the user identifier is recorded locally. Subsequently, when the scheduling server to which the current acquisition address belongs receives the acquisition request carrying the target user identifier sent by the screen throwing device again, the scheduling server to which the current acquisition address belongs can directly determine the acquisition address corresponding to the target user identifier from the corresponding relation between the locally recorded acquisition address of the network resource to be displayed and the user identifier, and the acquisition address is used as the current acquisition address.
In another implementation manner, when the scheduling server to which the current acquired address belongs receives the acquisition request sent by the screen throwing device for the first time, the scheduling server to which the current acquired address belongs may determine the scheduling server of the response screen throwing device from the scheduling servers to which the plurality of acquired addresses of the network resource to be displayed belong based on a preset load balancing policy. Then, the acquisition address of the scheduling server is determined as the acquisition address corresponding to the target user identification, and the target user identification is recorded locally to correspond to the acquisition address.
It can be understood that, when receiving the acquisition request for the network resource to be displayed, for the user identifier carried in each received acquisition request, the scheduling server to which the current acquisition address belongs may determine the acquisition address corresponding to the user identifier according to the above manner, and record the acquisition address corresponding to the user identifier locally. Furthermore, the corresponding relation between the acquired address of the network resource to be displayed and the user identifier can be obtained. The corresponding relation between the acquired address of the network resource to be displayed and the user identifier recorded in each scheduling server is different. For example, the scheduling server a may record that the target user identification corresponds to the acquisition address B of the network resource to be displayed. The scheduling server B to which the acquisition address B belongs may record that the target user identifier corresponds to the acquisition address C of the network resource to be displayed.
In one embodiment of the present invention, the network resource to be displayed is a video resource, and for each video segment in the video resource, if the scheduling server to which the current acquisition address of the video segment belongs locally stores the video segment, the video segment may be sent to the screen throwing device under the condition that the screen throwing device sends an acquisition request for the video segment to the scheduling server to which the current acquisition address of the video segment belongs. If the scheduling server to which the current acquisition address of the video segment belongs does not store the video segment locally, the acquisition address of the video segment corresponding to the target user identifier can be determined.
Furthermore, the scheduling server to which the current acquired address belongs may send the determined acquired address to the screen throwing device.
For step S105, the screen-throwing device may receive the new current acquisition address sent by the scheduling server to which the current acquisition address belongs, and send an acquisition request for the network resource to be displayed and carrying the target user identifier to the scheduling server to which the current acquisition address received this time belongs, until the network resource to be displayed is acquired.
The scheduling server to which the current acquisition address a of the network resource to be displayed belongs is, for example: the scheduling server A, the screen-throwing device can send an acquisition request aiming at the network resource to be displayed and carrying the target user identification to the scheduling server A. When receiving the acquisition request, the scheduling server A can directly send the network resources to be displayed to the screen throwing device if the network resources to be displayed are stored locally. If the network resource to be displayed is not stored locally, the scheduling server A determines an acquisition address B corresponding to the target user identifier in the corresponding relation between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, and sends the acquisition address B to the screen throwing equipment.
When receiving the acquisition address B sent by the scheduling server a, the screen-throwing device may send an acquisition request for the network resource to be displayed and carrying the target user identifier to the scheduling server B to which the acquisition address B belongs. When receiving the acquisition request, the scheduling server B can directly send the network resources to be displayed to the screen throwing device if the network resources to be displayed are stored locally. If the network resource to be displayed is not stored locally, the scheduling server B determines an acquisition address C corresponding to the target user identifier in the corresponding relation between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, and sends the acquisition address C to the screen throwing equipment.
When receiving the acquisition address C sent by the scheduling server B, the screen-throwing device may send an acquisition request for the network resource to be displayed and carrying the target user identifier to the scheduling server C to which the acquisition address C belongs, and so on until the network resource to be displayed is acquired.
For step S106, the screen-throwing device obtaining the network resource to be displayed means that: and the screen throwing equipment receives the network resource to be displayed, which is sent by any scheduling server. Correspondingly, when the network resource to be displayed is acquired, the screen throwing device can display the network resource to be displayed.
In one embodiment of the present invention, in the case where the network resource to be displayed is a video resource, step S106 may include the steps of: for each video clip in the video resource, when the video clip is acquired, the screen throwing device plays the video clip based on the arrangement sequence of each video clip in the video resource.
When the screen throwing device acquires the video files of all the video clips in the video resource, the screen throwing device can sequentially play the video clips according to the arrangement sequence of the video clips in the video resource.
When the screen throwing device acquires part of video clips in the video resource, the screen throwing device can play the acquired video clips according to the arrangement sequence of the video clips in the video resource, acquire other video clips which are not acquired currently, and when the other video clips are acquired, the screen throwing device can play the acquired other video clips according to the arrangement sequence of the video clips in the video resource.
Illustratively, the duration of the video asset may be 30 seconds and one video clip in the video asset may be 10 seconds. The video clips in the video asset include: video clip 1, video clip 2, and video clip 3. Video clip 1 is the 0 th to 10 th seconds of the video asset, video clip 2 is the 11 th to 20 th seconds of the video asset, and video clip 3 is the 21 st to 30 th seconds of the video asset.
If the screen projection device has acquired video clip 1, video clip 2 and video clip 3, the screen projection device may play video clip 1, then video clip 2 and then video clip 3. If the screen projection device only acquires the video clip 1 and the video clip 3, the screen projection device may play the video clip 1 first, play the video clip 2 when the video clip 2 is acquired, and then play the video clip 3.
Referring to fig. 3, fig. 3 is a flowchart of another method for displaying network resources according to an embodiment of the present invention. The method is applied to a network resource display system, and the network resource display system can comprise: the system comprises a terminal, a screen throwing device and a server cluster, wherein the server cluster comprises a service server and a plurality of scheduling servers, and the scheduling servers can be CDN servers. The network resource may be a video resource.
The terminal that needs to perform screen casting can request VRS (video cloud background) scheduling, that is, the terminal requests the M3U8 file to the service server in the server cluster, that is, the terminal sends a third acquisition request for the video resource to the service server. The service server may determine an acquisition address for each video clip in the video asset upon receiving the third acquisition request. And then, the service server can package the determined acquisition addresses to obtain an M3U8 file containing the acquisition address of each video segment of the video resource, and send the M3U8 file to the terminal.
When receiving the M3U8 file sent by the service server, the terminal can send the M3U8 file to the screen throwing equipment. The screen throwing device can analyze the M3U8 file to obtain the current acquisition address of each video clip in the video resource.
The screening device may then request the ts segments. One ts segment is one video segment in the video asset. The video asset includes a plurality of ts segments. For example, when the duration of the video asset is 500 seconds and the duration of one ts clip is 10 seconds, the video asset contains 50 video clips. In addition, the M3U8 file further includes a Start of each video clip (i.e., a Start time of the video clip in the video asset), an End (i.e., an End time of the video clip in the video asset), and a Length (i.e., a duration of the video clip). The screen throwing device requests ts segments, namely, the screen throwing device acquires each video segment in the video resource from a plurality of scheduling servers.
Specifically, for each ts segment, the manner in which the screen-casting device requests the ts segment may include the following steps: the screen throwing device may request the CDN, that is, the screen throwing device sends, to a scheduling server (may be referred to as a first scheduling server) to which the current acquisition address of the video clip belongs, an acquisition request for the video clip and carrying the target user identifier. If the first scheduling server locally stores the video clip, the first scheduling server sends the video clip to the screen throwing device; the screen-casting device may download the ts segment, that is, the screen-casting device may receive the video file of the video segment sent by the second scheduling server. If the first scheduling server does not store the video clip locally, determining an acquisition address corresponding to the target user identifier from the corresponding relation between the locally recorded acquisition address of the video clip and the user identifier, taking the acquisition address as a current acquisition address, and sending the current acquisition address to the screen throwing equipment.
Then, the screen throwing device can perform CDN rescheduling, that is, when the screen throwing device receives the current acquisition address sent by the first scheduling server, the screen throwing device sends an acquisition request for the video clip and carrying the target user identifier to a scheduling server (which may be referred to as a second scheduling server) to which the current acquisition address of the video clip belongs. If the second scheduling server locally stores the video clip, the second scheduling server sends a video file of the video clip to the screen casting device. If the second scheduling server does not store the video clip locally, determining an acquisition address corresponding to the target user identifier from the corresponding relation between the locally recorded acquisition address of the video clip and the user identifier, taking the acquisition address as a current acquisition address, and sending the current acquisition address to the screen throwing equipment.
And when receiving the current acquisition address sent by the second scheduling server, the screen throwing device sends an acquisition request which is specific to the video segment and carries the target user identifier to the scheduling server (which can be called as a third scheduling server) to which the current acquisition address of the video segment belongs, and the like until the screen throwing device downloads the ts segment, namely until the screen throwing device receives the video segment sent by any scheduling server. Furthermore, the screen throwing device can play each video clip in the acquired video resource.
Based on the above processing, the acquisition request sent by the screen throwing device to the scheduling server carries the target user identifier, and the target user identifier is fixed. The scheduling server determines the acquisition address corresponding to the target user identifier from the corresponding relationship between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, so that the scheduling server determines the same acquisition address when the target user performs screen projection every time, and the screen projection equipment requests the same scheduling server when the target user performs screen projection every time. Accordingly, faults caused by the reason of the scheduling server in the screen throwing process can be repeated. Subsequently, when the service server receives the fault report message sent by the target user through the terminal, the service server can determine the scheduling server to which the acquired address corresponding to the target user identifier belongs, and the service server is the scheduling server of the response screen-throwing equipment, so that the scheduling server which has faults when the service server throws the screen for the target user can be determined, and the faulty scheduling server can be accurately positioned.
The embodiment of the invention also provides a network resource display system, which comprises: the system comprises a screen throwing device and a server cluster, wherein:
The screen throwing equipment is used for acquiring an acquired address corresponding to the network resource to be displayed, which needs to be subjected to screen throwing, and taking the acquired address as a current acquired address; sending an acquisition request for the network resource to be displayed to a scheduling server to which a current acquisition address in the server cluster belongs; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
the scheduling server to which the current acquired address belongs is used for determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier recorded locally and sending the current acquired address to the screen throwing equipment if the network resource to be displayed is not stored locally when the acquired request is received; if the network resources to be displayed are stored locally, sending the network resources to be displayed to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different;
The screen throwing device is further used for displaying the network resources to be displayed when the network resources to be displayed are acquired.
Based on the network resource display system provided by the embodiment of the invention, the acquisition request sent by the screen throwing equipment to the scheduling server carries the target user identification, and the target user identification is fixed. The scheduling server determines the acquisition address corresponding to the target user identifier from the corresponding relationship between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, so that the scheduling server determines the same acquisition address when the target user performs screen projection every time, and the screen projection equipment requests the same scheduling server when the target user performs screen projection every time. Subsequently, when the service server receives the fault report message sent by the target user through the terminal, the service server can determine the scheduling server to which the acquired address corresponding to the target user identifier belongs, and the service server is the scheduling server of the response screen throwing device, so that the scheduling server can be determined to be the scheduling server with faults when the target user performs screen throwing.
Corresponding to the method embodiment of fig. 1, referring to fig. 4, fig. 4 is a block diagram of a network resource display device provided by the embodiment of the present invention, where the device is applied to a screen-throwing apparatus, and the device includes:
The acquiring module 401 is configured to acquire an acquired address corresponding to a network resource to be displayed, where the network resource needs to be screen-switched, as a current acquired address;
a sending module 402, configured to send, to a scheduling server to which a current acquisition address in a server cluster belongs, an acquisition request for the network resource to be displayed; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; when receiving the acquisition request, the scheduling server to which the current acquisition address belongs sends the network resource to be displayed to the screen throwing device if the network resource to be displayed is locally stored in the scheduling server to which the current acquisition address belongs; if the scheduling server to which the current acquired address belongs does not locally store the network resource to be displayed, determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier, which is locally recorded by the scheduling server to which the current acquired address belongs, as the current acquired address, and sending the current acquired address to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
A receiving module 403, configured to receive a current acquisition address, and trigger the sending module to perform the step of sending, to a scheduling server to which the current acquisition address in the server cluster belongs, an acquisition request for the network resource to be displayed until the network resource to be displayed is acquired;
and the display module 404 is configured to display the network resource to be displayed when the network resource to be displayed is acquired.
Optionally, the network resource to be displayed is a video resource;
the acquiring module 401 is specifically configured to receive a target file sent by the terminal and including an acquisition address of each video segment in the video resource; the target file is acquired by the terminal from a service server in the server cluster;
and analyzing the target file to obtain an acquisition address of each video segment in the video resource, and taking the acquisition address as a current acquisition address.
Optionally, the sending module 402 is specifically configured to send, for each video segment in the video resource, an acquisition request for the video segment to a scheduling server to which a current acquisition address of the video segment in the server cluster belongs;
The display module 404 is specifically configured to play each video clip in the video resource based on the arrangement sequence of the video clips in the video resource when the video clip is acquired.
Based on the network resource display device provided by the embodiment of the invention, the acquisition request sent by the screen throwing equipment to the scheduling server carries the target user identifier, and the target user identifier is fixed. The scheduling server determines the acquisition address corresponding to the target user identifier from the corresponding relationship between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, so that the scheduling server determines the same acquisition address when the target user performs screen projection every time, and the screen projection equipment requests the same scheduling server when the target user performs screen projection every time. Subsequently, when the service server receives the fault report message sent by the target user through the terminal, the service server can determine the scheduling server to which the acquired address corresponding to the target user identifier belongs, and the service server is the scheduling server of the response screen throwing device, so that the scheduling server can be determined to be the scheduling server with faults when the target user performs screen throwing.
Corresponding to the method embodiment of fig. 1, referring to fig. 5, fig. 5 is a network resource display device provided by the embodiment of the present invention, where the device is applied to a scheduling server in a server cluster, and the device includes:
a receiving module 501, configured to receive an acquisition request sent by a screen-throwing device; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
a first sending module 502, configured to send the network resource to be displayed to the screen-throwing device if the network resource to be displayed is locally stored;
a second sending module 503, configured to determine, if the network resource to be displayed is not stored locally, an acquisition address corresponding to the target user identifier from a corresponding relationship between an acquisition address of the network resource to be displayed and a user identifier recorded locally, as a current acquisition address, and send the current acquisition address to the screen-throwing device; when receiving the current acquisition address, the screen throwing equipment sends an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs until the screen throwing equipment acquires the network resource to be displayed and displays the network resource to be displayed; and the corresponding relations between the acquired addresses of the network resources to be displayed and the user identifications recorded in different scheduling servers are different.
Optionally, the apparatus further includes:
a first determining module, configured to determine, in the second sending module 503, an acquisition address corresponding to the target user identifier from a correspondence between an acquisition address of the network resource to be displayed and a user identifier recorded locally, if the network resource to be displayed is not stored locally, and before the second sending module is used as a current acquisition address, determine, as a first number, a number of multiple acquisition addresses of the network resource to be displayed recorded locally;
the second determining module is used for carrying out a residual operation on the target user identification and the first number to obtain a target remainder;
a third determining module, configured to determine a first target remainder acquisition address from the plurality of acquisition addresses according to a preset arrangement sequence of the scheduling servers to which the plurality of acquisition addresses belong;
and the recording module is used for locally recording that the target user identification corresponds to the first target remainder acquisition address.
Based on the network resource display device provided by the embodiment of the invention, the acquisition request sent by the screen throwing equipment to the scheduling server carries the target user identifier, and the target user identifier is fixed. The scheduling server determines the acquisition address corresponding to the target user identifier from the corresponding relationship between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, so that the scheduling server determines the same acquisition address when the target user performs screen projection every time, and the screen projection equipment requests the same scheduling server when the target user performs screen projection every time. Subsequently, when the service server receives the fault report message sent by the target user through the terminal, the service server can determine the scheduling server to which the acquired address corresponding to the target user identifier belongs, and the service server is the scheduling server of the response screen throwing device, so that the scheduling server can be determined to be the scheduling server with faults when the target user performs screen throwing.
The embodiment of the invention also provides an electronic device, as shown in fig. 6, which comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete communication with each other through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the network resource display method applied to the screen projection device according to any one of the above embodiments or the network resource display method applied to the scheduling server according to any one of the above embodiments when executing the program stored in the memory 603.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In still another embodiment of the present invention, a computer readable storage medium is provided, where a computer program is stored, where the computer program when executed by a processor implements the network resource display method applied to a screen-throwing device according to any one of the foregoing embodiments, or the network resource display method applied to a scheduling server according to any one of the foregoing embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when executed on a computer, cause the computer to perform the network resource display method applied to a screen-throwing device according to any one of the above embodiments, or the network resource display method applied to a scheduling server according to any one of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that 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. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, systems, electronic devices, computer readable storage media and computer program product embodiments, the description is relatively simple as it is substantially similar to method embodiments, as relevant to the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (13)

1. A network resource display method, wherein the method is applied to a screen-throwing device, and the method comprises:
acquiring an acquired address corresponding to a network resource to be displayed, which needs to be screen-switched, as a current acquired address;
sending an acquisition request aiming at the network resource to be displayed to a scheduling server to which a current acquisition address in a server cluster belongs; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; when receiving the acquisition request, the scheduling server to which the current acquisition address belongs sends the network resource to be displayed to the screen throwing device if the network resource to be displayed is locally stored in the scheduling server to which the current acquisition address belongs; if the scheduling server to which the current acquired address belongs does not locally store the network resource to be displayed, determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier, which is locally recorded by the scheduling server to which the current acquired address belongs, as the current acquired address, and sending the current acquired address to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
Receiving a current acquisition address, and returning to execute the step of sending an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs in a server cluster until the network resource to be displayed is acquired;
when the network resource to be displayed is acquired, the network resource to be displayed is displayed, so that when the business server receives the barrier report message sent by the target user through the terminal, the scheduling server to which the acquisition address corresponding to the target user identification belongs is determined to be the scheduling server responding to the screen throwing equipment, and the scheduling server which fails when the scheduling server throws the screen for the target user is determined.
2. The method of claim 1, wherein the network resource to be displayed is a video resource;
the obtaining address corresponding to the network resource to be displayed, which needs to be screen-switched, as the current obtaining address includes:
receiving a target file which is sent by the terminal and comprises an acquisition address of each video segment in the video resource; the target file is acquired by the terminal from a service server in the server cluster;
And analyzing the target file to obtain an acquisition address of each video segment in the video resource, and taking the acquisition address as a current acquisition address.
3. The method according to claim 2, wherein the sending, to the scheduling server to which the current acquisition address in the server cluster belongs, an acquisition request for the network resource to be displayed includes:
for each video segment in the video resource, sending an acquisition request for the video segment to a scheduling server to which the current acquisition address of the video segment in the server cluster belongs;
and displaying the network resource to be displayed when the network resource to be displayed is acquired, including:
and playing each video clip in the video resource based on the arrangement sequence of each video clip in the video resource when the video clip is acquired.
4. A method for displaying network resources, wherein the method is applied to a scheduling server in a server cluster, and the method comprises:
receiving an acquisition request sent by a screen throwing device; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
If the network resources to be displayed are stored locally, sending the network resources to be displayed to the screen throwing equipment;
if the network resource to be displayed is not stored locally, determining an acquisition address corresponding to the target user identifier from the corresponding relation between the acquisition address of the network resource to be displayed and the user identifier, which is recorded locally, as a current acquisition address, and sending the current acquisition address to the screen throwing equipment; when receiving the current acquisition address, the screen throwing equipment sends an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs until the screen throwing equipment acquires the network resource to be displayed and displays the network resource to be displayed; the corresponding relation between the acquired addresses of the network resources to be displayed and the user identifiers recorded in different scheduling servers is different, so that when the service server receives the barrier report message sent by the target user through the terminal, the scheduling server to which the acquired address corresponding to the target user identifier belongs is determined, the scheduling server is the scheduling server responding to the screen-throwing equipment, and the scheduling server which fails when the scheduling server throws the screen for the target user is determined.
5. The method according to claim 4, wherein, in the correspondence between the acquired address of the network resource to be displayed and the user identifier, if the network resource to be displayed is not stored locally, the acquired address corresponding to the target user identifier is determined as the current acquired address, and before the method further includes:
determining the number of a plurality of acquired addresses of the network resource to be displayed, which is recorded locally, as a first number;
performing a remainder operation on the target user identifier and the first number to obtain a target remainder;
determining a first target remainder acquisition address from the plurality of acquisition addresses according to a preset arrangement sequence of a scheduling server to which the plurality of acquisition addresses belong;
and locally recording that the target user identification corresponds to a first target remainder acquisition address.
6. A network resource display system, the system comprising: the system comprises a screen throwing device and a server cluster, wherein:
the screen throwing equipment is used for acquiring an acquired address corresponding to the network resource to be displayed, which needs to be subjected to screen throwing, and taking the acquired address as a current acquired address; sending an acquisition request for the network resource to be displayed to a scheduling server to which a current acquisition address in the server cluster belongs; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
The scheduling server to which the current acquired address belongs is used for determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier recorded locally and sending the current acquired address to the screen throwing equipment if the network resource to be displayed is not stored locally when the acquired request is received; if the network resources to be displayed are stored locally, sending the network resources to be displayed to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different;
the screen throwing device is further used for displaying the network resources to be displayed when the network resources to be displayed are acquired;
and the service server is used for determining a scheduling server to which the acquired address corresponding to the target user identifier belongs when receiving the barrier report message sent by the target user through the terminal, responding to the scheduling server of the screen throwing equipment and determining a scheduling server with faults when the scheduling server throws the screen for the target user.
7. A network resource display apparatus, the apparatus being applied to a screen-casting device, the apparatus comprising:
the acquisition module is used for acquiring an acquisition address corresponding to the network resource to be displayed, which needs to be screen-switched, and taking the acquisition address as a current acquisition address;
a sending module, configured to send an acquisition request for the network resource to be displayed to a scheduling server to which a current acquisition address in a server cluster belongs; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; when receiving the acquisition request, the scheduling server to which the current acquisition address belongs sends the network resource to be displayed to the screen throwing device if the network resource to be displayed is locally stored in the scheduling server to which the current acquisition address belongs; if the scheduling server to which the current acquired address belongs does not locally store the network resource to be displayed, determining the acquired address corresponding to the target user identifier from the corresponding relation between the acquired address of the network resource to be displayed and the user identifier, which is locally recorded by the scheduling server to which the current acquired address belongs, as the current acquired address, and sending the current acquired address to the screen throwing equipment; wherein, the corresponding relation between the acquired addresses of the network resources to be displayed recorded in different scheduling servers and the user identification is different; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
The receiving module is used for receiving the current acquisition address and triggering the sending module to execute the step of sending the acquisition request aiming at the network resource to be displayed to a scheduling server to which the current acquisition address in the server cluster belongs until the network resource to be displayed is acquired;
the display module is used for displaying the network resources to be displayed when the network resources to be displayed are acquired, so that when the business server receives the barrier report message sent by the target user through the terminal, the business server determines a scheduling server to which the acquisition address corresponding to the target user identifier belongs, the business server is a scheduling server responding to the screen throwing equipment, and the scheduling server is determined to be a scheduling server with faults when the screen throwing is performed for the target user.
8. The apparatus of claim 7, wherein the network resource to be displayed is a video resource;
the acquisition module is specifically configured to receive a target file sent by the terminal and including an acquisition address of each video segment in the video resource; the target file is acquired by the terminal from a service server in the server cluster;
And analyzing the target file to obtain an acquisition address of each video segment in the video resource, and taking the acquisition address as a current acquisition address.
9. The apparatus according to claim 8, wherein the sending module is specifically configured to send, for each video segment in the video resource, an acquisition request for the video segment to a scheduling server to which a current acquisition address of the video segment in the server cluster belongs;
the display module is specifically configured to play each video clip in the video resource based on the arrangement sequence of each video clip in the video resource when the video clip is acquired.
10. A network resource display apparatus, the apparatus being applied to a scheduling server in a server cluster, the apparatus comprising:
the receiving module is used for receiving the acquisition request sent by the screen throwing equipment; the acquisition request carries a target user identifier of a target user of a terminal corresponding to the screen throwing equipment; the target user identification is determined based on the identity information of the target user and/or the equipment information of the terminal; the user identification of the same user is fixed;
The first sending module is used for sending the network resources to be displayed to the screen throwing equipment if the network resources to be displayed are stored locally;
the second sending module is used for determining an acquisition address corresponding to the target user identifier from the corresponding relation between the acquisition address of the network resource to be displayed and the user identifier recorded locally if the network resource to be displayed is not stored locally, taking the acquisition address as a current acquisition address, and sending the current acquisition address to the screen throwing equipment; when receiving the current acquisition address, the screen throwing equipment sends an acquisition request for the network resource to be displayed to a scheduling server to which the current acquisition address belongs until the screen throwing equipment acquires the network resource to be displayed and displays the network resource to be displayed; the corresponding relation between the acquired addresses of the network resources to be displayed and the user identifiers recorded in different scheduling servers is different, so that when the service server receives the barrier report message sent by the target user through the terminal, the scheduling server to which the acquired address corresponding to the target user identifier belongs is determined, the scheduling server is the scheduling server responding to the screen-throwing equipment, and the scheduling server which fails when the scheduling server throws the screen for the target user is determined.
11. The apparatus of claim 10, wherein the apparatus further comprises:
a first determining module, configured to determine, in the second sending module, an acquisition address corresponding to the target user identifier from a correspondence between an acquisition address of the network resource to be displayed and a user identifier recorded locally, if the network resource to be displayed is not stored locally, and before the second sending module is used as a current acquisition address, determine, as a first number, a number of multiple acquisition addresses of the network resource to be displayed recorded locally;
the second determining module is used for carrying out a residual operation on the target user identification and the first number to obtain a target remainder;
a third determining module, configured to determine a first target remainder acquisition address from the plurality of acquisition addresses according to a preset arrangement sequence of the scheduling servers to which the plurality of acquisition addresses belong;
and the recording module is used for locally recording that the target user identification corresponds to the first target remainder acquisition address.
12. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-3 or claims 4-5 when executing a program stored on a memory.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-3, or of claims 4-5.
CN202210333246.5A 2022-03-30 2022-03-30 Network resource display method, device and system Active CN114827674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210333246.5A CN114827674B (en) 2022-03-30 2022-03-30 Network resource display method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210333246.5A CN114827674B (en) 2022-03-30 2022-03-30 Network resource display method, device and system

Publications (2)

Publication Number Publication Date
CN114827674A CN114827674A (en) 2022-07-29
CN114827674B true CN114827674B (en) 2023-09-05

Family

ID=82533124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210333246.5A Active CN114827674B (en) 2022-03-30 2022-03-30 Network resource display method, device and system

Country Status (1)

Country Link
CN (1) CN114827674B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 Method and system for implementing application server load balancing
CN102546568A (en) * 2010-12-31 2012-07-04 华为技术有限公司 Method and device for Internet protocol (IP) terminal being accessed into network
CN103796046A (en) * 2013-12-24 2014-05-14 Tcl集团股份有限公司 Video source address detection method and device
CN106941507A (en) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 The dispatching method and device of request message
CN107770222A (en) * 2016-08-19 2018-03-06 阿里巴巴集团控股有限公司 Web information processing method, equipment and system
CN108337327A (en) * 2018-04-26 2018-07-27 拉扎斯网络科技(上海)有限公司 A kind of resource acquiring method and proxy server
CN109150978A (en) * 2018-07-24 2019-01-04 北京百度网讯科技有限公司 The method and apparatus for debugging micro services
CN110248216A (en) * 2019-06-03 2019-09-17 广东有线广播电视网络有限公司 TV throws screen method, apparatus, TV throws screen system and computer equipment
WO2020168957A1 (en) * 2019-02-18 2020-08-27 华为技术有限公司 Method for scheduling edge node of content distribution network, and apparatus
WO2020206660A1 (en) * 2019-04-11 2020-10-15 深圳市欢太科技有限公司 Network resource request method and apparatus, electronic device and storage medium
CN112788090A (en) * 2020-05-08 2021-05-11 珠海金山办公软件有限公司 Network resource transmission method, device and system
CN112788126A (en) * 2020-12-31 2021-05-11 北京达佳互联信息技术有限公司 Resource downloading method, device, server and storage medium
WO2021218035A1 (en) * 2020-04-30 2021-11-04 武汉旷视金智科技有限公司 Video obtaining method and apparatus, terminal device, and server
CN113656713A (en) * 2021-08-23 2021-11-16 北京奇艺世纪科技有限公司 Network resource processing method, device and system
CN113973136A (en) * 2020-07-07 2022-01-25 中国移动通信集团广东有限公司 Traffic scheduling method, device and system
CN114090388A (en) * 2021-11-23 2022-02-25 东软集团股份有限公司 Information acquisition method, server cluster, server and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850710B (en) * 2015-12-03 2020-02-28 杭州海康威视数字技术股份有限公司 Data cloud storage system, client terminal, storage server and application method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 Method and system for implementing application server load balancing
CN102546568A (en) * 2010-12-31 2012-07-04 华为技术有限公司 Method and device for Internet protocol (IP) terminal being accessed into network
CN103796046A (en) * 2013-12-24 2014-05-14 Tcl集团股份有限公司 Video source address detection method and device
CN106941507A (en) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 The dispatching method and device of request message
CN107770222A (en) * 2016-08-19 2018-03-06 阿里巴巴集团控股有限公司 Web information processing method, equipment and system
CN108337327A (en) * 2018-04-26 2018-07-27 拉扎斯网络科技(上海)有限公司 A kind of resource acquiring method and proxy server
CN109150978A (en) * 2018-07-24 2019-01-04 北京百度网讯科技有限公司 The method and apparatus for debugging micro services
WO2020168957A1 (en) * 2019-02-18 2020-08-27 华为技术有限公司 Method for scheduling edge node of content distribution network, and apparatus
WO2020206660A1 (en) * 2019-04-11 2020-10-15 深圳市欢太科技有限公司 Network resource request method and apparatus, electronic device and storage medium
CN113366815A (en) * 2019-04-11 2021-09-07 深圳市欢太科技有限公司 Network resource request method, device, electronic equipment and storage medium
CN110248216A (en) * 2019-06-03 2019-09-17 广东有线广播电视网络有限公司 TV throws screen method, apparatus, TV throws screen system and computer equipment
WO2021218035A1 (en) * 2020-04-30 2021-11-04 武汉旷视金智科技有限公司 Video obtaining method and apparatus, terminal device, and server
CN112788090A (en) * 2020-05-08 2021-05-11 珠海金山办公软件有限公司 Network resource transmission method, device and system
CN113973136A (en) * 2020-07-07 2022-01-25 中国移动通信集团广东有限公司 Traffic scheduling method, device and system
CN112788126A (en) * 2020-12-31 2021-05-11 北京达佳互联信息技术有限公司 Resource downloading method, device, server and storage medium
CN113656713A (en) * 2021-08-23 2021-11-16 北京奇艺世纪科技有限公司 Network resource processing method, device and system
CN114090388A (en) * 2021-11-23 2022-02-25 东软集团股份有限公司 Information acquisition method, server cluster, server and equipment

Also Published As

Publication number Publication date
CN114827674A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US11777825B2 (en) Media stream monitoring
US7373415B1 (en) System and method for monitoring delivery of digital content, including streaming media
US9112825B2 (en) Performance monitoring of a media player launched by a web browser
US8528031B2 (en) Distributed diagnostics for internet video link
US20070256114A1 (en) Automated analysis of collected field data for error detection
US9472241B2 (en) Identifying and rerecording only the incomplete units of a program broadcast recording
US20170373939A1 (en) Data uploading method, apparatus, and system
CN112153410B (en) High-concurrency testing method and system for streaming media service
CN112218115B (en) Control method and device for streaming media audio and video synchronization and computer equipment
CN110460584B (en) Access request processing method and device, electronic equipment and computer readable medium
CN104185016B (en) OTT video quality method for supervising, Apparatus and system
CN110769268A (en) Data flow monitoring method and device
CN111309632A (en) Application program testing method and device, computer equipment and storage medium
CN103281594A (en) Monitoring over-the-top adaptive video streaming in a network
CN111614954A (en) Index acquisition processing method and device for streaming media, computer and storage medium
US20200366967A1 (en) Method and system for monitoring quality of streaming media
CN111611140A (en) Reporting verification method and device of buried point data, electronic equipment and storage medium
US10412428B2 (en) Content delivery monitor
CN114827674B (en) Network resource display method, device and system
CA3034846C (en) Real-time advertisement preparation system
US8850504B2 (en) Method and system for comparing media assets
CN111245853A (en) Multimedia advertisement playing method and related product
CN111090818A (en) Resource management method, resource management system, server, and computer storage medium
CN112135199B (en) Video playing method based on multiple types of video sources and related equipment
CN111106962B (en) Streaming media fault monitoring 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