CN115460135A - Resource display method, system, storage medium and terminal equipment - Google Patents

Resource display method, system, storage medium and terminal equipment Download PDF

Info

Publication number
CN115460135A
CN115460135A CN202211408552.7A CN202211408552A CN115460135A CN 115460135 A CN115460135 A CN 115460135A CN 202211408552 A CN202211408552 A CN 202211408552A CN 115460135 A CN115460135 A CN 115460135A
Authority
CN
China
Prior art keywords
resource
displayed
display
acquisition
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211408552.7A
Other languages
Chinese (zh)
Inventor
邓俊伦
白剑
黄海亮
梁瑛玮
张海林
鲁和平
李长杰
陈焕然
李乐
王浩
洪行健
冷冬
丁一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yifang Information Technology Co ltd
Original Assignee
Yifang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yifang Information Technology Co ltd filed Critical Yifang Information Technology Co ltd
Priority to CN202211408552.7A priority Critical patent/CN115460135A/en
Publication of CN115460135A publication Critical patent/CN115460135A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a resource display method, a resource display system, a storage medium and terminal equipment, which are applied to the technical field of information processing. When the resource display system is in the process of displaying the resources to be displayed, and when the acquisition states corresponding to the plurality of continuous resource sub-segments are all acquisition failures and the number of the plurality of continuous resource sub-segments reaches a preset value, the resource display system determines that the display of the resources to be displayed fails, the resource display system displays the information of the display failure of the resources to be displayed, and switches from the current resource providing route to a new resource providing route. Therefore, if the duration of the resource to be displayed is long, the preset value can be set to be a small value, and as long as the number of the plurality of resource sub-segments which fail to be acquired reaches the preset value, the switching of the resource providing route can be started without traversing all resource sub-segments included in the resource to be displayed, so that the switching efficiency of the resource providing route is improved, and the stability of displaying the resource to be displayed is also improved.

Description

Resource display method, system, storage medium and terminal equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a resource display method, a resource display system, a storage medium, and a terminal device.
Background
In the prior art, in order to pursue the stability of an online player for displaying resources such as videos, it is generally set that the online player can be connected to multiple resource providing routes, for example, content Delivery Networks (CDNs) of multiple service providers, and at a certain time, the online player can only be connected to one resource providing route and receive and play corresponding video resources, and if a currently used resource providing route fails, the online player can switch to other resource providing routes to receive and play corresponding video resources, so that the stability of the online player can be highly improved.
However, in the process of playing video resources, if a current resource providing route fails and the total duration of the video resources is long, a long time is required to determine and return information of the current video resource failure, so that the optimal time for switching the current resource providing route is lost, and the situation of playing video resources incorrectly is caused.
Disclosure of Invention
The embodiment of the invention provides a resource display method, a resource display system, a storage medium and a terminal device, which improve the switching efficiency of a resource providing route.
An embodiment of the present invention provides a resource display method, including:
determining the acquisition states corresponding to a plurality of resource sub-segments included in the resource to be displayed respectively;
when the determined acquisition states respectively corresponding to the plurality of continuous resource sub-segments are all acquisition failures and the number of the plurality of continuous resource sub-segments reaches a preset value, determining the display failure of the resource to be displayed, wherein the preset value is smaller than the number of the resource sub-segments included in the resource to be displayed;
and displaying the information of the display failure of the resources to be displayed, and switching from the current resource providing route to a new resource providing route so as to display the resources to be displayed.
Another aspect of the embodiments of the present invention provides a resource display system, including:
the state acquisition unit is used for determining the acquisition states corresponding to the resource sub-segments included in the resource to be displayed respectively;
the display determining unit is used for determining the display failure of the resource to be displayed when the determined acquisition states corresponding to the continuous resource sub-segments are all acquisition failures and the number of the continuous resource sub-segments reaches a preset value, wherein the preset value is smaller than the number of the resource sub-segments included in the resource to be displayed;
and the switching display unit is used for displaying the information of display failure of the resources to be displayed and switching from the current resource providing route to a new resource providing route so as to display the resources to be displayed.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a plurality of computer programs, and the computer programs are adapted to be loaded by a processor and execute the resource exhibition method according to an aspect of the embodiment of the present invention.
In another aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the resource showing method provided by the embodiment of the invention; the processor is configured to implement each of the plurality of computer programs.
It can be seen that, in the method of this embodiment, in the process of displaying the resource to be displayed, the resource display system monitors, in real time, the acquisition states respectively corresponding to the resource sub-segments included in the resource to be displayed, when the acquisition states respectively corresponding to the plurality of continuous resource sub-segments are all acquisition failures and the number of the plurality of continuous resource sub-segments reaches a preset value, it is determined that the display of the resource to be displayed fails, and the resource display system displays information of the display failure of the resource to be displayed, and switches from the current resource providing route to a new resource providing route. Therefore, if the duration of the resource to be displayed is long, the preset value can be set to be a small value, and as long as the number of the plurality of resource sub-segments which fail to be acquired reaches the preset value, the switching of the resource providing route can be started without traversing all resource sub-segments included in the resource to be displayed, so that when the current resource providing route fails, the current resource providing route can be switched to a new resource providing route quickly, the switching efficiency of the resource providing route is improved, and the stability of displaying the resource to be displayed is also improved.
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 embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a resource display method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a resource presentation method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a resource presentation method provided in an application embodiment of the present invention;
FIG. 4 is a schematic diagram of a distributed system to which the resource showing method is applied in another embodiment of the present invention;
FIG. 5 is a block diagram illustrating an exemplary block structure according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a logical structure of a resource display system according to an embodiment of the present invention;
fig. 7 is a schematic logical structure diagram of another terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
An embodiment of the present invention provides a resource display method, which mainly performs display on an application terminal for a network of resources such as video and audio, and as shown in fig. 1, mainly deploys a resource display system on any application terminal, and executes the following resource display process through the resource display system:
determining the acquisition states corresponding to a plurality of resource sub-segments included in the resource to be displayed respectively; when the determined acquisition states respectively corresponding to the plurality of continuous resource sub-segments are all acquisition failures and the number of the plurality of continuous resource sub-segments reaches a preset value, determining the display failure of the resource to be displayed, wherein the preset value is smaller than the number of the resource sub-segments included in the resource to be displayed; and displaying the information of the display failure of the resources to be displayed, and switching from the current resource providing route to a new resource providing route so as to display the resources to be displayed.
In an actual application process, the resource exhibition system can be deployed in any application terminal, but not limited to: mobile phones, computers, intelligent interactive devices, intelligent household appliances, vehicle-mounted terminals and the like.
Therefore, if the duration of the resource to be displayed is long, the preset value can be set to be a small value, and as long as the number of the plurality of resource sub-segments which fail to be acquired reaches the preset value, the switching of the resource providing route can be started without traversing all resource sub-segments included in the resource to be displayed, so that when the current resource providing route fails, the current resource providing route can be switched to a new resource providing route quickly, the switching efficiency of the resource providing route is improved, and the stability of displaying the resource to be displayed is also improved.
An embodiment of the present invention provides a resource display method, which is a method executed by the resource display system, and a flowchart is shown in fig. 2, where the method includes:
step 101, determining the acquisition states corresponding to a plurality of resource sub-segments included in the resource to be displayed.
It can be understood that, when the resource display system displays the resource to be displayed, the resource to be displayed is divided into a plurality of resource sub-segments, and each resource sub-segment is sequentially and respectively acquired through a certain resource providing route request and displayed. The resource providing route can be a CDN system of each service provider, and the CDN mainly depends on edge servers deployed in various places, and enables the application terminal to obtain required content nearby through functional modules of load balancing, content distribution, scheduling and the like of the central platform, so that network congestion is reduced, and the access response speed and hit rate of a user are improved.
When the resource display system needs to display a resource to be displayed, a display list of the resource to be displayed in a certain resource providing route (current resource providing route) needs to be obtained first, and the display list records media information such as request obtaining addresses and display sequences of all resource sub-segments included in the resource to be displayed.
The resource display system monitors the acquisition state of each resource sub-segment in real time, namely whether the acquisition state of each resource sub-segment is successfully acquired or not, including the state of successful acquisition or failure acquisition.
And 102, when the determined acquisition states corresponding to the continuous multiple resource sub-segments are all acquisition failures and the number of the continuous multiple resource sub-segments reaches a preset value, determining the display failure of the resource to be displayed, wherein the preset value is smaller than the number of the resource sub-segments included in the resource to be displayed, and the preset value can be obtained by calculating through the number of the resource sub-segments included in the resource to be displayed and a certain calculation function.
Specifically, when the resource display system monitors the acquisition state of each resource sub-segment in real time, a counter can be set and started, and when the acquisition state corresponding to one resource sub-segment is determined to be acquisition failure, the counter is used for counting; when the acquisition state of the next resource sub-segment of one resource sub-segment is determined to be acquisition failure, counting is carried out through a counter, after counting, if the count value of the counter reaches a preset value, the display failure of the resource to be displayed is determined, and the counter is cleared so as to be convenient for recounting.
Further, when the acquisition state of the next resource sub-segment of one resource sub-segment is determined to be successful, the counter is directly cleared.
And 103, displaying the information of the display failure of the resource to be displayed.
Specifically, the information of the display failure of the resource to be displayed can be displayed in a mode of pop-up window or prompt tone, and the like.
And 104, switching from the current resource providing route to a new resource providing route to display the resource to be displayed.
Specifically, the resource display system obtains a display list of the resource to be displayed in the new resource providing route, the display list records media information such as a request obtaining address and a display sequence of each resource sub-segment included in the resource to be displayed in the new resource providing route, and then displays the resource to be displayed through the display list, so that switching from the current resource providing route to the new resource providing route is achieved. Meanwhile, the resource display process of the embodiment of the invention is initiated for a new resource providing route.
It should be noted that, in order to implement the above steps 101 to 104, the preset value is set in the system, specifically, an AVOptions mechanism may be used, and the threshold of the first parameter in the execution function that determines the display failure of the resource to be displayed in the above step 102 is set as the preset value, where the first parameter is the number of allowed errors, the AVOptions mechanism is a general mechanism used for declaring any configuration option in FFmpeg, which provides a general method to assign a configuration member variable easily, and FFmpeg is a set of open source computer programs that provides a complete solution for recording, converting and streaming audio and video.
It should be noted that, there is no absolute order relationship between the steps 103 and 104, and the steps may be performed simultaneously or sequentially, and fig. 2 shows only one specific application example.
It can be seen that, in the method of this embodiment, in the process of displaying the resource to be displayed, the resource display system monitors, in real time, the acquisition states respectively corresponding to the resource sub-segments included in the resource to be displayed, when the acquisition states respectively corresponding to the plurality of continuous resource sub-segments are all acquisition failures and the number of the plurality of continuous resource sub-segments reaches a preset value, it is determined that the display of the resource to be displayed fails, and the resource display system displays information of the display failure of the resource to be displayed, and switches from the current resource providing route to a new resource providing route. Therefore, if the duration of the resource to be displayed is long, the preset value can be set to be a small value, and as long as the number of the plurality of resource sub-segments which fail to be acquired reaches the preset value, the switching of the resource providing route can be started without traversing all resource sub-segments included in the resource to be displayed, so that when the current resource providing route fails, the current resource providing route can be switched to a new resource providing route quickly, the switching efficiency of the resource providing route is improved, and the stability of displaying the resource to be displayed is also improved.
In this embodiment, the resource exhibition method is mainly applied to an exhibition scenario of video resources, and the resource exhibition system is specifically applied to an FFmpeg module of an application terminal, and an hls decapsulation implementation sub-module in the FFmpeg module may be set in advance through an AVOptions mechanism, specifically, the resource exhibition system sets a threshold (max _ open _ fail) of an allowable error number in the hls decapsulation implementation sub-module to a preset value; in addition, the resource exhibition system also adds a member variable of the structure body, namely an error number count (open _ fail _ count), in the hls decapsulation implementation submodule, and is used for recording the number of the plurality of continuous resource sub-fragments with the acquisition failure.
Wherein hls is an adaptive bitrate streaming protocol based on HTTP. The hls decapsulation implementation sub-module is the decapsulation implementation for the hls protocol in the FFmpeg module, and is responsible for downloading the video sub-segments, separating the audio stream compression encoded data and the video stream compression encoded data, and the like.
Thus, as shown in fig. 3, the FFmpeg module of the application terminal may implement the display process of the video resource by the following steps:
step 201, a user can operate an application terminal, so that the application terminal starts an FFmpeg module, and first obtains a display list of a video to be displayed in a video resource providing route through the FFmpeg module, where the display list includes information such as an obtaining address and a playing sequence of each video sub-segment included in the video to be displayed.
In step 202, the FFmpeg module sequentially acquires and plays each video sub-segment according to the display list, and the FFmpeg module monitors the acquisition status of each video sub-segment in real time and starts a counter, specifically, in this embodiment, the number of errors is counted.
Step 203, the ffmpeg module determines that the obtaining state of a video sub-segment is successful, and then continues to execute the step 203 for the next video sub-segment of the video sub-segment; the FFmpeg module determines that the acquisition status of a video sub-segment is acquisition failure, counts the number of errors, and proceeds to step 204.
Step 204, after counting, determining whether the count value of the error number count reaches the threshold value of the allowable error number, if so, clearing the error number count, and executing the following step 205; if not, the following step 206 is performed.
And step 205, displaying the information of the playing failure of the video to be displayed by the FFmpeg module, and switching to a new resource providing route from the current resource providing route so as to display the video to be displayed.
Step 206, the ffmpeg module determines that the acquisition state of the next video sub-segment of a video sub-segment is successful, and the error number count is cleared, and the ffmpeg module returns to execute the step 203 for the next video sub-segment of the next video sub-segment; the FFmpeg module determines the acquisition status of the next video sub-segment of a video sub-segment as acquisition failure, counts by the above error count, and returns to perform the following step 204.
As can be seen, in the embodiment, by setting the threshold of the allowable error number in the sub-module implemented by the hls decapsulation in the FFmpeg module and increasing the structure member variable (error number count), the intrusiveness of the FFmpeg module is less, so that if the current resource providing route fails, the current resource providing route can be switched to a new resource providing route as soon as possible, so as to display the video to be displayed.
In the following, a resource display method according to the present invention is described with another specific application example, where the resource display system in the embodiment of the present invention is mainly a distributed system 100, the distributed system may include a client 300 and a plurality of nodes 200 (any form of computing devices in an access network, such as a server and a user terminal), and the client 300 and the nodes 200 are connected in a network communication manner.
Taking a distributed system as an example of a blockchain system, fig. 4 is an optional structural schematic diagram of the application of the distributed system 100 To the blockchain system, which is provided by the embodiment of the present invention, and is formed by a plurality of nodes 200 (any form of computing devices in an access network, such as servers and user terminals) and a client 300, a point-To-point (P2P) network is formed between the nodes, and the P2P Protocol is an application layer Protocol running on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 4, the related functions include:
1) Routing, the basic function a node has for supporting communication between nodes.
Besides the routing function, the node can also have the following functions:
2) The application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization function to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the service implemented by the application includes a code implementing a resource exhibition function, and the resource exhibition function mainly includes:
determining the acquisition states corresponding to a plurality of resource sub-segments included in the resource to be displayed respectively; when the determined acquisition states respectively corresponding to the plurality of continuous resource sub-segments are all acquisition failures and the number of the plurality of continuous resource sub-segments reaches a preset value, determining display failures of the resources to be displayed, wherein the preset value is smaller than the information of the display failures of the resources to be displayed; and displaying the number of the resource sub-segments included by the resource, and switching from the current resource providing route to a new resource providing route to display the resource to be displayed.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and the blocks record the record data submitted by the nodes in the Block chain system.
Referring to fig. 5, an optional Block Structure (Block Structure) provided in the embodiment of the present invention is shown, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
An embodiment of the present invention further provides a resource display system, a schematic structural diagram of which is shown in fig. 6, and the resource display system specifically includes:
the state obtaining unit 10 is configured to determine obtaining states corresponding to a plurality of resource sub-segments included in the resource to be displayed.
The display determining unit 11 is configured to determine that the display of the resource to be displayed fails when the obtaining states respectively corresponding to the multiple continuous resource sub-segments determined by the state obtaining unit 10 are all obtaining failures and the number of the multiple continuous resource sub-segments reaches a preset value, where the preset value is smaller than the number of the resource sub-segments included in the resource to be displayed.
The display determination unit 11 is configured to set a counter; when the acquisition state corresponding to one resource sub-segment is determined to be acquisition failure, counting is carried out through the counter; when the acquisition state of the next resource sub-segment of the resource sub-segment is determined to be acquisition failure, counting by the counter, if the count value of the counter reaches the preset value, determining that the display of the resource to be displayed fails, and resetting the counter so as to count again; and when the acquisition state of the next resource sub-segment of the resource sub-segment is determined to be successful, clearing the counter.
And the switching and displaying unit 12 is configured to display information of failed display of the resource to be displayed when the display determining unit 11 determines that the display of the resource to be displayed fails, and switch from a current resource providing route to a new resource providing route to display the resource to be displayed.
The switching and displaying unit 12 is specifically configured to obtain a display list of the resource to be displayed in the new resource providing route, where the display list includes a request obtaining address and a display sequence of each resource sub-segment included in the resource to be displayed in the new resource providing route, and display the resource to be displayed according to the display list.
Further, the resource display system in this embodiment may further include:
a setting unit 13, configured to set a threshold of a first parameter in the execution function that determines the display failure of the resource to be displayed as the preset value, where the first parameter is an allowable error number. Thus, the above-mentioned presentation determining unit 11 may compare with the preset value set by the setting unit 13.
The setting unit 13 is further configured to add a structure member variable to the execution function that determines the display failure of the resource to be displayed, where the structure member variable is used to record the number of consecutive resource sub-segments that have failed to be obtained.
It can be seen that, in the process of displaying the resource to be displayed by the resource display system of this embodiment, the acquisition states respectively corresponding to the resource sub-segments included in the resource to be displayed are monitored in real time, when the acquisition states respectively corresponding to the multiple continuous resource sub-segments are all acquisition failures, and the number of the multiple continuous resource sub-segments reaches a preset value, it is determined that the display of the resource to be displayed fails, and the resource display system displays the information of the display failure of the resource to be displayed, and switches from the current resource providing route to a new resource providing route. Therefore, if the duration of the resource to be displayed is long, the preset value can be set to be a small value, and as long as the number of the plurality of resource sub-segments which fail to be acquired reaches the preset value, the switching of the resource providing route can be started without traversing all resource sub-segments included in the resource to be displayed, so that when the current resource providing route fails, the current resource providing route can be switched to a new resource providing route quickly, the switching efficiency of the resource providing route is improved, and the stability of displaying the resource to be displayed is also improved.
The embodiment of the present invention further provides a terminal device, a schematic structural diagram of which is shown in fig. 7, where the terminal device may generate relatively large differences due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 20 (e.g., one or more processors), a memory 21, and one or more storage media 22 (e.g., one or more mass storage devices) for storing applications 221 or data 222. Wherein the memory 21 and the storage medium 22 may be a transient storage or a persistent storage. The program stored in the storage medium 22 may include one or more modules (not shown), each of which may include a series of instruction operations for the terminal device. Still further, the central processor 20 may be arranged to communicate with the storage medium 22, and to execute a series of instruction operations in the storage medium 22 on the terminal device.
Specifically, the application programs 221 stored in the storage medium 22 include application programs for resource display, and the programs may include the state obtaining unit 10, the display determining unit 11, the switching display unit 12, and the setting unit 13 in the resource display system, which will not be described herein again. Further, the central processor 20 may be configured to communicate with the storage medium 22, and execute a series of operations corresponding to the application program of the resource presentation stored in the storage medium 22 on the terminal device.
The terminal equipment may also include one or more power supplies 23, one or more wired or wireless network interfaces 24, one or more input-output interfaces 25, and/or one or more operating systems 223, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
The steps executed by the resource presentation system in the above method embodiment may be based on the structure of the terminal device shown in fig. 7.
Further, another aspect of the embodiments of the present invention also provides a computer-readable storage medium, which stores a plurality of computer programs, where the computer programs are adapted to be loaded by a processor and execute the resource exhibition method performed by the resource exhibition system.
In another aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the resource display method executed by the resource display system; the processor is configured to implement each of the plurality of computer programs.
Further, according to an aspect of the application, a computer program product or a computer program is provided, comprising computer instructions, which are stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the resource showing method provided in the above-mentioned various optional implementation modes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disk, or the like.
The resource display method, system, storage medium and terminal device provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A resource display method is characterized by comprising the following steps:
determining the acquisition states corresponding to a plurality of resource sub-segments included in the resource to be displayed respectively;
when the determined acquisition states corresponding to the continuous resource sub-segments are all acquisition failures and the number of the continuous resource sub-segments reaches a preset value, determining the display failures of the resources to be displayed, wherein the preset value is smaller than the number of the resource sub-segments included in the resources to be displayed;
and displaying the information of the display failure of the resources to be displayed, and switching from the current resource providing route to a new resource providing route so as to display the resources to be displayed.
2. The method according to claim 1, wherein when the determined acquisition states corresponding to the plurality of consecutive resource sub-segments are all acquisition failures and the number of the plurality of consecutive resource sub-segments reaches a preset value, determining that the resource to be displayed fails to be displayed specifically comprises:
setting a counter;
when the acquisition state corresponding to one resource sub-segment is determined to be acquisition failure, counting is carried out through the counter;
and when the acquisition state of the next resource sub-segment of the resource sub-segment is determined to be acquisition failure, counting by the counter, and if the count value of the counter reaches the preset value, determining that the display of the resource to be displayed fails and resetting the counter so as to count again.
3. The method of claim 2, further comprising:
and when the acquisition state of the next resource sub-segment of the resource sub-segment is determined to be successful, clearing the counter.
4. A method according to any one of claims 1 to 3, wherein the method further comprises:
setting a threshold value of a first parameter in the execution function for determining the display failure of the resource to be displayed as the preset value, wherein the first parameter is the number of allowed errors.
5. The method of any of claims 1 to 3, further comprising:
and adding a structure member variable in the execution function for determining the display failure of the resource to be displayed, wherein the structure member variable is used for recording the number of the continuous multiple resource sub-segments which fail to be obtained.
6. A resource presentation system, comprising:
the state acquisition unit is used for determining the acquisition states corresponding to the resource sub-segments included in the resource to be displayed respectively;
the display determining unit is used for determining the display failure of the resource to be displayed when the determined acquisition states corresponding to the continuous resource sub-segments are all acquisition failures and the number of the continuous resource sub-segments reaches a preset value, wherein the preset value is smaller than the number of the resource sub-segments included in the resource to be displayed;
and the switching display unit is used for displaying the display failure information of the resources to be displayed and switching from the current resource providing route to a new resource providing route so as to display the resources to be displayed.
7. The system of claim 6,
the display determining unit is used for setting a counter; when the acquisition state corresponding to one resource sub-segment is determined to be acquisition failure, counting is carried out through the counter; when the acquisition state of the next resource sub-segment of the resource sub-segment is determined to be acquisition failure, counting is carried out through the counter, if the count value of the counter reaches the preset value, the display failure of the resource to be displayed is determined, and the counter is reset to be zero so as to be convenient for counting again; and when the acquisition state of the next resource sub-segment of the resource sub-segment is determined to be successful, clearing the counter.
8. The system of any one of claims 6 or 7, further comprising:
a setting unit, configured to set a threshold of a first parameter in the execution function that determines the display failure of the resource to be displayed to the preset value, where the first parameter is an allowable error number; and adding a structure member variable in the execution function for determining the display failure of the resource to be displayed, wherein the structure member variable is used for recording the number of the continuous multiple resource sub-segments with acquisition failure.
9. A computer-readable storage medium, characterized in that it stores a plurality of computer programs adapted to be loaded by a processor and to execute the resource exhibition method according to any one of claims 1 to 5.
10. A terminal device comprising a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the resource display method according to any one of claims 1 to 5; the processor is configured to implement each of the plurality of computer programs.
CN202211408552.7A 2022-11-10 2022-11-10 Resource display method, system, storage medium and terminal equipment Pending CN115460135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211408552.7A CN115460135A (en) 2022-11-10 2022-11-10 Resource display method, system, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211408552.7A CN115460135A (en) 2022-11-10 2022-11-10 Resource display method, system, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN115460135A true CN115460135A (en) 2022-12-09

Family

ID=84295625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211408552.7A Pending CN115460135A (en) 2022-11-10 2022-11-10 Resource display method, system, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN115460135A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156473A (en) * 2017-12-28 2018-06-12 网宿科技股份有限公司 A kind of method and system for obtaining live data
CN112333850A (en) * 2020-11-24 2021-02-05 展讯半导体(成都)有限公司 Method for preventing downlink desynchronization, communication device and readable storage medium
CN112399190A (en) * 2020-10-16 2021-02-23 北京达佳互联信息技术有限公司 Audio and video data acquisition method and device
CN113095894A (en) * 2021-06-10 2021-07-09 浙江口碑网络技术有限公司 Resource bit display method, terminal, server, electronic device and storage medium
CN114120231A (en) * 2021-11-25 2022-03-01 武汉文弘文创科技有限公司 Intelligent monitoring system and method for court
CN114448871A (en) * 2021-12-23 2022-05-06 天翼云科技有限公司 Data feedback routing method and system for CDN
CN115002505A (en) * 2022-08-02 2022-09-02 广州市千钧网络科技有限公司 Time shift control method and device for interrupting reconnected live stream

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156473A (en) * 2017-12-28 2018-06-12 网宿科技股份有限公司 A kind of method and system for obtaining live data
CN112399190A (en) * 2020-10-16 2021-02-23 北京达佳互联信息技术有限公司 Audio and video data acquisition method and device
CN112333850A (en) * 2020-11-24 2021-02-05 展讯半导体(成都)有限公司 Method for preventing downlink desynchronization, communication device and readable storage medium
CN113095894A (en) * 2021-06-10 2021-07-09 浙江口碑网络技术有限公司 Resource bit display method, terminal, server, electronic device and storage medium
CN114120231A (en) * 2021-11-25 2022-03-01 武汉文弘文创科技有限公司 Intelligent monitoring system and method for court
CN114448871A (en) * 2021-12-23 2022-05-06 天翼云科技有限公司 Data feedback routing method and system for CDN
CN115002505A (en) * 2022-08-02 2022-09-02 广州市千钧网络科技有限公司 Time shift control method and device for interrupting reconnected live stream

Similar Documents

Publication Publication Date Title
JP5298331B2 (en) Digital content distribution system and method
CN110830735B (en) Video generation method and device, computer equipment and storage medium
US8291062B2 (en) Managing access to digital content sources
EP3554010A1 (en) Method and system for use in constructing content delivery network platform on heterogeneous resources
CN104852934A (en) Method for realizing flow distribution based on front-end scheduling, device and system thereof
CN113181658A (en) Edge computing node scheduling method, device, equipment and medium
CN110417870A (en) configuration file management method, device, equipment and storage medium
US11032358B2 (en) Monitoring web applications including microservices
CN109802926B (en) Recommendation model establishing method, live broadcast method and device for content distribution network
CN111432158B (en) Load balancing method and device for media nodes, storage medium and electronic device
CN107888717A (en) A kind of domain name determines method, apparatus and electronic equipment
CN109618003B (en) Server planning method, server and storage medium
CN110198332A (en) Dispatching method, device and the storage medium of content delivery network node
CN110515728B (en) Server scheduling method and device, electronic equipment and machine-readable storage medium
CN107959702B (en) Routing method and device
CN114222086B (en) Method, system, medium and electronic device for scheduling audio and video code stream
US11445246B1 (en) Activity-based selection of replacement content
CN110943877A (en) Network state measuring method, equipment and system
CN113179295A (en) Message processing method and device
CN115460135A (en) Resource display method, system, storage medium and terminal equipment
EP4114025A1 (en) Method for sorting video bullet-screen comments, server, and storage medium
CN109639533A (en) A kind of test method, system and the terminal device of subdispatch strategy
CN108462897A (en) A kind of method of data capture and device of network failure
CN112751944A (en) Streaming data acceleration method, server and load balancing equipment
US11838562B1 (en) Activity-based streaming video replacement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20221209

RJ01 Rejection of invention patent application after publication