WO2022170920A1 - Multimedia content presentation control method and apparatus, and terminal, server and medium - Google Patents

Multimedia content presentation control method and apparatus, and terminal, server and medium Download PDF

Info

Publication number
WO2022170920A1
WO2022170920A1 PCT/CN2022/072368 CN2022072368W WO2022170920A1 WO 2022170920 A1 WO2022170920 A1 WO 2022170920A1 CN 2022072368 W CN2022072368 W CN 2022072368W WO 2022170920 A1 WO2022170920 A1 WO 2022170920A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia content
reference parameter
server
terminal
display
Prior art date
Application number
PCT/CN2022/072368
Other languages
French (fr)
Chinese (zh)
Inventor
孙海源
张至权
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2022170920A1 publication Critical patent/WO2022170920A1/en

Links

Images

Classifications

    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a method, device, terminal, server and medium for controlling multimedia content presentation.
  • multimedia content can be displayed on the buffer interface of the application, multimedia content can be displayed on the startup interface of the application, or displayed on the exit interface of the application.
  • Multimedia content, etc., wherein the multimedia content can be advertisement, publicity content, etc.
  • one implementation method is: when the application program needs to display the multimedia content, the server pushes the multimedia content in real time; another implementation method is: preloading the content of the multimedia content on the user's terminal, and the multimedia content is An advertisement as an example, when the trigger condition is met (for example, the trigger condition of the screen-opening advertisement is after receiving the start instruction of the application, where the screen-opening advertisement refers to the first display displayed to the user after the user opens the application The advertisement displayed on the interface), the terminal sends a Hyper Text Transfer Protocol (Hyper Text Transfer Protocol over Secure Socket Layer, HTTPS) request to the server, requesting the server to indicate whether to display the advertisement, and the terminal will display the advertisement according to the server's instructions or not.
  • HTTPS Hyper Text Transfer Protocol
  • the terminal takes a long time to acquire multimedia content, therefore, the user waits for a long time and the user experience is not high, and in another implementation, it takes a long time to obtain the server indication, It affects the efficiency of decision-making multimedia content display and user experience.
  • the present disclosure provides a multimedia content presentation control method, apparatus and computer-readable storage medium.
  • a first aspect of the present disclosure provides a multimedia content display control method, which is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content.
  • the method includes:
  • the application is controlled to display the target multimedia content according to the display state of the target multimedia content.
  • the first response message further includes: server time;
  • the method further includes:
  • server time is within the range of the presentation time of the target multimedia content.
  • the method before controlling the application to display the target multimedia content according to the display state of the target multimedia content, the method further includes:
  • the method before controlling the application to display the target multimedia content according to the display state of the target multimedia content, the method further includes:
  • the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1; the second reference parameter is A binary number of N bytes;
  • the determining the display state of the target multimedia content according to the first reference parameter and the second reference parameter includes:
  • the display state is display, and when the single digit of the decimal number is less than or equal to the first preset threshold, the display state is not displayed.
  • the current actual time is determined according to the startup time and startup duration of the terminal;
  • the first request message is in a user datagram protocol format
  • the first response message is in the user datagram protocol format.
  • a second aspect of the present disclosure provides a multimedia content display control method, which is applied to a server, and the method includes:
  • the terminal receiving a first request message sent by the terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
  • the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1;
  • the generating the second reference parameter according to the presentation state of the target multimedia content and the first reference parameter includes:
  • the value of the target byte is determined according to the presentation state of the target multimedia content and the target byte to be added, wherein the value of the target byte satisfies a second preset condition, and the second preset value
  • the condition is: the display state is display, sum the values of the target bytes to obtain the decimal number corresponding to the sum, and the single digit of the decimal number is greater than the first preset threshold; the display state In order not to show, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained, and the single digit of the decimal number is less than or equal to the first preset threshold;
  • the second reference parameter is generated according to the value of the target byte to be added.
  • the first request message sent by the receiving terminal includes:
  • a third aspect of the present disclosure provides a multimedia content display control device, which is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content, and the device includes:
  • a sending module configured to send a first request message to the server, wherein the first request message includes a first reference parameter and an identifier of the target multimedia content, and the first request message is used to request the server to indicate whether to display the Describe the target multimedia content;
  • a receiving module configured to receive a first response message sent by the server, where the first response message includes a second reference parameter, wherein the second reference parameter is the display state and generated by the first reference parameter;
  • a processing module configured to determine the display state of the target multimedia content according to the first reference parameter and the second reference parameter
  • the processing module is further configured to control the application to display the target multimedia content according to the display state of the target multimedia content.
  • the first response message further includes: server time;
  • the processing module is further configured to determine that the server time is within the range of the display time of the target multimedia content.
  • the processing module is further configured to determine the current actual time according to the startup time and startup duration of the terminal; and determine that the current actual time is within the range of the display time of the target multimedia content.
  • the sending module is further configured to send a second request message to the server, where the second request message is used to request the first time of the server;
  • the receiving module is further configured to receive a second response message sent by the server, where the second response message includes the first time of the server;
  • the processing module is further configured to determine the time difference according to the first time of the server and the startup duration of the terminal; determine the current actual time according to the time difference and the startup duration of the terminal device; determine the current actual time.
  • the actual time is within the range of the presentation time of the target multimedia content.
  • the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1; the second reference parameter is A binary number of N bytes;
  • the processing module is specifically configured to determine the target byte to be added in the N bytes according to the N-digit decimal number, sum the values corresponding to the target byte to be added, and obtain the corresponding value of the sum.
  • Decimal number when the single digit of the decimal number is greater than the first preset threshold, the display state is display, and when the single digit of the decimal number is less than or equal to the first preset threshold, the display state is not displayed .
  • the processing module is further configured to determine the current actual time according to the startup time and startup duration of the terminal if the first response message is not received within a preset time range; The current actual time is within the range of the display time of the target multimedia content, and it is determined to display the target multimedia content.
  • the first request message is in a user datagram protocol format
  • the first response message is in the user datagram protocol format.
  • a fourth aspect of the present disclosure provides a multimedia content display control device, which is applied to a server, and the device includes:
  • a receiving module configured to receive a first request message sent by a terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
  • a processing module for generating a second reference parameter according to the presentation state of the target multimedia content and the first reference parameter
  • a sending module configured to send a first response message to the terminal, where the first response message includes a second reference parameter.
  • the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1;
  • the processing module is specifically configured to determine the target byte to be added according to the N-digit decimal number; determine the target byte according to the display state of the target multimedia content and the target byte to be added , wherein the value of the target byte satisfies a second preset condition, and the second preset condition is: the display state is display, sum the values of the target byte, and obtain the sum The corresponding decimal number, the single digit of the decimal number is greater than the first preset threshold; the display state is not displayed, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained, the The single digit of the decimal number is less than or equal to the first preset threshold; the second reference parameter is generated according to the value of the target byte to be added.
  • the receiving module is specifically configured to receive the first request message sent by the terminal when the application is started; or, receive the first request message sent by the terminal after the application runs for a preset duration.
  • a fifth aspect of the present disclosure provides a terminal, including: a processor configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the steps of the method of the first aspect.
  • a sixth aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method described in the first aspect.
  • a seventh aspect of the present disclosure provides a server, comprising: a processor configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the steps of the method described in the second aspect.
  • An eighth aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method described in the second aspect are implemented.
  • a ninth aspect of the present disclosure provides a computer program product, comprising a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
  • a tenth aspect of the present disclosure provides a computer program product, comprising a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
  • the terminal sends the first request message to the server, and the first request message carries the first reference parameter.
  • the server generates the second reference parameter according to the first reference parameter and the display state, and sends the first response message to the server.
  • the second reference parameter is carried in the message, so that the terminal can know the display state of the target multimedia content according to the first reference parameter and the second reference parameter, and display the target multimedia content according to the display state of the target multimedia content, that is, based on the first reference parameter and the second reference parameter.
  • the second reference parameter indicates the display state, which improves the security of data transmission. Therefore, the terminal and the server can communicate based on an unreliable transmission protocol, for example, sending request messages and response messages based on UDP. Since the unreliable transmission protocol has fewer handshakes, it improves the ability to determine the display state of the target multimedia content. Efficiency, reducing user waiting time and improving user experience.
  • FIG. 1 is a schematic flowchart of a multimedia content display control method provided by the present disclosure
  • FIG. 2 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 3 is a schematic diagram of a message format of a first request message provided by the present disclosure
  • FIG. 4 is a schematic diagram of a message format of a first response message provided by the present disclosure
  • FIG. 5 is a schematic flowchart of still another multimedia content display control method provided by the present disclosure.
  • FIG. 6 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 7 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 8 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 9 is a schematic flowchart of an application scenario provided by the present disclosure.
  • FIG. 10 is a schematic structural diagram of a multimedia content display control device provided by the present disclosure.
  • FIG. 11 is a schematic structural diagram of another multimedia content display control apparatus provided by the present disclosure.
  • the technical solution of the present disclosure is applied to a terminal, where the terminal may be a computer, a tablet, a mobile phone, or other terminals.
  • the terminal has an application program installed, and the terminal has preloaded the target multimedia content.
  • the terminal determines whether to display the target multimedia content according to the instruction information of the server.
  • the reference parameters are used for certain information hiding, so that the terminal and the server can transmit the request message and the response message based on the unreliable transmission protocol, for example, Based on the User Datagram Protocol (UDP), only one round-trip time (Round-Trip Time, RTT) is needed to obtain the indication information, which improves the efficiency of the terminal obtaining the indication information from the server whether to display the multimedia content.
  • UDP User Datagram Protocol
  • RTT Round-Trip Time
  • FIG. 1 is a schematic flowchart of a multimedia content display control method provided by the present disclosure. As shown in FIG. 1 , the method in this embodiment is as follows:
  • S101 The terminal sends a first request message to the server.
  • the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content.
  • the terminal After determining that the preset trigger condition is satisfied, the terminal sends a first request message to the server.
  • the terminal may send the first request message when the application program starts, or send the first request message after the application program runs for a preset duration. Specifically, it can be determined according to a specific application scenario.
  • the preset trigger condition is related to the target multimedia content.
  • Multimedia content takes advertisements as an example.
  • the target multimedia content is an open-screen advertisement (also known as an above-the-fold advertisement or a splash-screen advertisement), that is, the advertisement content displayed on the first display interface displayed to the user after the application is started, then the The preset trigger condition of the target advertisement can be set to receive an application startup instruction, or can be set to complete the application startup, or can also be set to before or after a certain step in the application startup process.
  • the target advertisement is the advertisement content displayed after the application starts for a preset duration
  • the preset trigger condition of the target advertisement may be set as the application startup preset duration.
  • the preset trigger condition may also be other conditions determined according to the target advertisement, which is not limited in this disclosure.
  • the terminal sends a request message to the server to request the server to indicate whether to display the target multimedia content.
  • the present disclosure carries the first reference parameter and the identifier of the target advertisement in the first request message, wherein the first reference parameter is a random number that satisfies the first preset condition.
  • the random number that satisfies the first preset condition includes but is not limited to the following possible situations:
  • the random number that satisfies the first preset condition can be an M-byte binary generated within a preset range using a pseudo-random number generator (Cryptographically Secure Pseudo-Random Number Generator, CSPRNG for short).
  • the decimal representation corresponding to the first reference parameter is: 12300000830.
  • the random number that satisfies the first preset condition may also be a random number greater than a preset threshold, where the preset threshold and the size of the field in the first request message for writing the first reference parameter
  • the field of the first reference parameter is 8 bytes
  • the preset threshold is: 2 64 -1, for example, the decimal representation corresponding to the first reference parameter is 10000.
  • the first request message may further include an identifier of the target multimedia content, so that the server knows which multimedia content the terminal specifically requests to display. For example, in the same multimedia content bit in the application, multiple target multimedia contents may be played in turn. Taking the multimedia content on the screen as an example, after the application is started for the first time, the target multimedia content A is displayed, and the application is started for the second time. Then, the target multimedia content B is displayed. In this scenario, by carrying the identifier of the target multimedia content in the first request message, the server can know which multimedia content the terminal specifically requests to display.
  • S103 The server sends a first response message to the terminal.
  • the server After receiving the first request message sent by the terminal, the server obtains the display state of the target multimedia content.
  • the server will maintain the display state of all multimedia content.
  • the server can maintain the display state of all multimedia content through the following table.
  • the display state of all multimedia content is shown in Table 1.
  • Table 2 shows part of the multimedia content. The content is not shown as an illustration. Therefore, the server can obtain the presentation status of the target multimedia content according to the maintained presentation status of all multimedia contents.
  • Table 1 Display status table of multimedia content
  • Multimedia Content name exhibit do not show Multimedia Content 1 ⁇ ⁇ Multimedia Content 2 ⁇ ⁇ Multimedia Content 3 ⁇ ⁇ Multimedia Content 4 ⁇ ⁇ Multimedia Content 5 ⁇ ⁇ Multimedia Content 6 ⁇ ⁇
  • Table 2 Display state table of multimedia content
  • Multimedia Content name exhibit do not show Multimedia Content 1 ⁇ ⁇ Multimedia Content 2 ⁇ ⁇ Multimedia Content 3 ⁇ ⁇ Multimedia Content 4 ⁇ ⁇
  • Multimedia Content 5 ⁇ ⁇ Multimedia Content 6 ⁇ ⁇
  • means valid, and ⁇ means invalid.
  • the display state of multimedia content 1 corresponds to ⁇ , which means that the display state of multimedia content 1 is displayed
  • the display state of multimedia content 2 corresponds to ⁇ , which means that the display state of multimedia content 1 is displayed.
  • the display state of the multimedia content 2 is not displayed.
  • the server generates the second reference parameter according to the display state of the target multimedia content and the first reference parameter in the request message, including but not limited to the following possible implementations:
  • the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and N is an integer greater than or equal to 1; according to the N-digit decimal number, Determine the target byte to be added; determine the value of the target byte according to the display state of the target multimedia content and the target byte to be added, wherein the value of the target byte satisfies the second preset Condition, the second preset condition is: the display state is display, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained, and the single digit of the decimal number is greater than the preset threshold ; The display state is not to display, sum the values of the target bytes, and obtain the decimal number corresponding to the sum, and the single digit of the decimal number is less than or equal to the preset threshold; according to the to-be-added The value of the target byte, the second reference parameter is generated. Specifically,
  • the decimal representation of the first reference parameter is 12300000830
  • the unit digit corresponding to the decimal representation of the sum of the number of bytes, the 8th byte and the 3rd byte should be greater than 4.
  • the decimal representation of the first reference parameter is 12300000830, then the first byte, the second byte, the third byte, the eighth byte and the third byte of the second reference parameter
  • the unit digit of the decimal representation corresponding to the sum value of the byte addition should be less than or equal to 4, and a random number is selected from the values satisfying this condition as the second reference parameter.
  • the second reference parameter is: 00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000100 00010000 00001100.
  • the second reference parameter needs to satisfy the following conditions: the absolute value of the difference between the second reference parameter and the first reference parameter is greater than or equal to a second preset threshold.
  • the absolute value of the difference between the second reference parameter and the first reference parameter is smaller than the second preset threshold.
  • a random number is selected from the values that satisfy the condition as the second reference parameter.
  • the second preset threshold is 100
  • the absolute value of the difference between the second reference parameter and 10000 is greater than 100, and a random number is selected from the values that satisfy the condition as The second reference parameter, for example, 10300.
  • the absolute value of the difference between the second reference parameter and 10000 is less than 100, and a random number is selected from the values that satisfy the condition as the second reference parameter, for example, 10001.
  • the above conditions can be set flexibly as long as the terminal and the server are consistent, which is not limited in the present disclosure.
  • the server sends a first response message carrying the second reference parameter to the terminal.
  • S105 The terminal determines the display state of the target multimedia content according to the first reference parameter and the second reference parameter.
  • the terminal After receiving the first response message, the terminal acquires the second reference parameter carried in the first response message, and determines the display state of the target multimedia content according to the second reference parameter and the first reference parameter.
  • a possible implementation is: determining the target byte to be added in the N bytes according to the N-digit decimal number, and corresponding to the target byte to be added Add and sum the values, and obtain the decimal number corresponding to the sum.
  • the display state is display.
  • the display state is not displayed.
  • the decimal representation of the first reference parameter is 12300000830
  • the second reference parameter is 00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000111 00010000 00001100.
  • the decimal representation of the first reference parameter it can be determined that the 1st byte, the 2nd byte, the 3rd byte, the 8th byte and the 3rd byte of the second reference parameter are added and summed, The obtained sum value is 16, and if the single digit is 6 and greater than 4, it can be determined that the display state is display.
  • the decimal representation of the first reference parameter is 12300000830
  • the second reference parameter is: 00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000100 00010000 00001100.
  • the decimal representation of the first reference parameter it can be determined that the 1st byte, the 2nd byte, the 3rd byte, the 8th byte and the 3rd byte of the second reference parameter are added and summed, If the obtained sum value is 13, and the single digit is 3 and less than 4, it can be determined that the display status is not displayed.
  • another possible implementation is: the absolute value of the subtraction of the second reference parameter and the first reference parameter is greater than or equal to the second preset threshold, then it is determined that the display state is display, and The absolute value of the subtraction of the second reference parameter and the first reference parameter is smaller than the second preset threshold, and the display state is determined to be no display.
  • the second preset threshold is 100
  • the first reference parameter is 10000
  • the second reference parameter is 10300
  • the absolute value of the difference between the second reference parameter and the first reference parameter is greater than or equal to 100
  • the display state is determined to be display.
  • the first reference parameter is 10000
  • the second reference parameter is 10001
  • the absolute value of the difference between the second reference parameter and the first reference parameter is less than 100, and the display state is determined to be no display.
  • S107 The terminal controls the application to display the target multimedia content according to the display state of the target multimedia content.
  • the target multimedia content is displayed, and if the terminal determines that the display state of the target multimedia content is not displayed, the target multimedia content is not displayed.
  • the terminal sends the first request message to the server, the first request message carries the first reference parameter, the server generates the second reference parameter according to the first reference parameter and the display state, and sends the first response message to the server,
  • the second reference parameter is carried in the first response message, so that the terminal can know the display state of the target multimedia content according to the first reference parameter and the second reference parameter, and display the target multimedia content according to the display state of the target multimedia content, that is, based on the first reference parameter and the second reference parameter.
  • a reference parameter and a second reference parameter indicate the display state, which improves the security of data transmission. Therefore, the terminal and the server can communicate based on an unreliable transmission protocol, for example, sending request messages and response messages based on UDP. Since the unreliable transmission protocol has fewer handshakes, it improves the ability to determine the display state of the target multimedia content. Efficiency, reducing user waiting time and improving user experience.
  • the display time range will also be set.
  • multimedia content related to breakfast the display time range is 7:00-9:00 in the morning, and it will not be displayed in other time periods.
  • the display time range is a certain number of days.
  • the clock of the terminal may not match the actual time due to faults or artificial adjustment. In this case, This may cause confusion in the display of multimedia content and affect user experience. Therefore, the present disclosure also provides some embodiments to solve the above problems.
  • FIG. 2 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 2 is based on the embodiment shown in FIG. 1 , and further, the first response message also carries the server time.
  • S107 also included:
  • S106a The terminal determines that the server time is within the range of the display time of the target multimedia content.
  • the server time is more consistent with the current actual time.
  • the transmission time of the first response message is short, it can be ignored, and the server time can be regarded as the current actual time.
  • the current actual time can be determined according to the server time plus the transmission time, and then it is determined that the current actual time is within the display time range of the target multimedia content.
  • the server carries the server time in the first response message, so that the terminal can determine whether the target multimedia content is within the display time range of the target multimedia content according to the server time. It is not allowed to cause confusion in the display of multimedia content, and further improve the user experience.
  • the present disclosure also provides an example of the message format of the first request message, as shown in FIG. 3 , including: version field, type field, message identification field, flag field, content field and check code field.
  • An example of the message format of the first response message is shown in Figure 4, including: message identification field, type field, content field and check code field.
  • the first reference parameter is carried in the content field of the first request message, and optionally, the application identifier and the terminal timestamp, that is, the current time displayed by the terminal, may also be carried.
  • the first reference parameter is carried in the content field of the first response message, and optionally, the time of the server may also be carried.
  • FIG. 5 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 5 is similar to the scenario in FIG. 2 , except that FIG. 2 determines the current actual time based on the server time, and FIG. 5 is based on the terminal The startup time and startup duration determine the current actual time.
  • Figure 5 is based on the embodiment shown in Figure 1, and further, before S107, it also includes:
  • S1061b The terminal determines the current actual time according to the start-up time and start-up duration of the terminal.
  • the startup time of the terminal comes from a network server, so the startup time of the terminal is generally not easy to be changed.
  • the system After the terminal is started, the system will record the start-up duration of the terminal.
  • the start-up duration is the length of time that the terminal runs from the current system startup to the current time. Therefore, if the startup time and startup duration of the terminal can be determined, the current actual time of the terminal can be determined.
  • the startup duration of the terminal can be obtained in the following ways. For example, in the current iOS and Android systems, a timestamp that cannot be tampered with by the user can be obtained through the following system level (Application Programming Interface). Not adjustable:
  • the timestamp is obtained through "@property(readonly)NSTimeInterval systemUptime", which is the startup time.
  • the startup time of the terminal is 8:00 am
  • the startup time of the terminal is 2 hours
  • it can be determined that the current actual time of the terminal is 10:00 am.
  • S1062b The terminal determines that the current actual time of the terminal is within the range of the display time of the target multimedia content.
  • the terminal determines the current actual time of the terminal, it then determines that the current actual time of the terminal is within the display range of the target multimedia content.
  • the terminal determines the current actual time of the terminal according to the start-up time and start-up duration of the terminal, and then determines that the current actual time of the terminal is within the range of the display time of the target multimedia content, which can improve the display of multimedia content.
  • the accuracy of the display can avoid confusion in the display of multimedia content due to the inaccuracy of the terminal's own time.
  • FIG. 6 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 6 is based on the embodiment shown in FIG. 1, and further, before S107, it further includes:
  • S10601 The terminal sends a second request message to the server.
  • the second request message is used to request the first time of the server.
  • the terminal may send a second request message to the server every time it is started, so as to request the first time of the server.
  • S10602 The terminal receives the second response message sent by the server.
  • the second response message includes the first time of the server.
  • the terminal determines the time difference according to the first time of the server and the startup duration of the terminal.
  • the transmission time of the second response message since the transmission time of the second response message is short, it can be ignored, and the first time can be regarded as the current actual time. Therefore, the time difference can be determined according to the first time of the server and the startup duration of the terminal.
  • the current actual time can also be determined according to the first time plus the transmission time, The time difference is then determined according to the current actual time and the start-up duration of the terminal.
  • S10604 Determine the current actual time according to the time difference and the startup duration of the terminal device.
  • the time difference is added to the start-up duration of the terminal device to determine the current actual time
  • the time difference is 8:00
  • the startup time of the terminal device is 2 hours
  • the current actual time is determined to be 10:00.
  • S10605 Determine that the current actual time is within the range of the display time of the target multimedia content.
  • the terminal sends a second request message to the server to request the first time of the server, the terminal receives the second response message sent by the server, and obtains the first time of the server, according to the first time of the server and the terminal
  • the startup duration is determined, the time difference is determined, the current actual time is determined according to the time difference and the startup duration of the terminal device, and it is determined that the current actual time is within the range of the display time of the target multimedia content, which can improve the multimedia content.
  • the accuracy of the display can avoid confusion in the display of multimedia content due to the inaccuracy of the terminal's own time.
  • FIG. 7 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • FIG. 7 is a processing method in the case of not receiving the first response message sent by the server, such as As shown in Figure 7, the method further includes:
  • the preset time range may be determined according to the round-trip time of the UDP packet between the terminal and the server. For example, the preset time range is greater than one round-trip time and less than two round-trip times.
  • the first response message may be caused by the server not receiving the first request message, or the server may have sent the first response message, but it appears on the transmission path from the server to the terminal. The problem caused the terminal not to receive the first response message.
  • the current actual time of the terminal is determined according to the start-up time and start-up duration of the terminal.
  • S111 Determine to display the target multimedia content when the current actual time of the terminal is within the range of the display time of the target multimedia content.
  • the current actual time of the terminal is within the range of the display time of the target multimedia content, it is determined to display the target multimedia content.
  • the current actual time of the terminal is not within the range of the display time of the target multimedia content, it is determined not to display the target multimedia content. That is, in this case, whether to present the target multimedia content is determined only according to the range of the presentation time of the target multimedia content.
  • the current actual time of the terminal is determined according to the start-up time and start-up duration of the terminal, and the current actual time of the terminal is Within the scope of the display time of the target multimedia content, it is determined to display the target multimedia content, so that when the terminal does not receive the first response message sent by the server, the target multimedia content can still be displayed or not displayed. decisions to ensure the normal operation of the application.
  • FIG. 8 is a schematic flowchart of another multimedia content display control method provided by the present disclosure.
  • the embodiment shown in FIG. 8 can be directed to a scenario where it is only necessary to determine whether to display multimedia content according to the current time.
  • the method includes:
  • the terminal sends a third request message to the server, the third request message is used to request the time of the server, the terminal receives the third response message returned by the server, the third response message includes the time of the server, and determines that the time of the server is the current actual time. time. Or, the terminal determines that the time of the server plus the transmission time of the third response message is the current actual time.
  • the terminal determines the current actual time according to the startup time and startup duration of the terminal. That is, the startup time plus the startup duration is the current actual time.
  • the startup time of the terminal can also be determined according to the following methods:
  • the terminal sends a second request message to the server, where the second request message is used to request the first time of the server, the terminal receives the second response message sent by the server, and the terminal determines according to the first time of the server and the startup time of the terminal The startup time of the terminal.
  • S802 Determine whether the current actual time is within the range of the display time of the target multimedia content. If yes, execute S803, if not, execute S804.
  • Steps in this embodiment that are the same as or similar to those in the foregoing embodiments may be referred to each other, and will not be repeated here.
  • the current actual time it is determined whether the current actual time is within the display time range of the target multimedia content. If it is within the display time range of the target multimedia content, the target multimedia content is displayed. Multimedia content is not displayed during the display time frame. The accuracy of the multimedia content display can be improved, and the confusion of the multimedia content display caused by the inaccuracy of the terminal's own time can be avoided.
  • the multimedia content of the present disclosure takes advertisements as an example.
  • an advertisement is a screen-opening advertisement, and its display time range is 7:00-9:00 in the morning, that is, if a user opens an advertisement from 7:00-9:00 in the morning application, then display the advertisement, but there are some special days, the advertisement cannot be displayed all day, for example, some special anniversary, therefore, the terminal needs to request the server whether to display the advertisement, the specific process is shown in Figure 9 9 is a schematic flowchart of an application scenario provided by the present disclosure:
  • S901 The terminal receives an application startup instruction input by the user, and the terminal sends a first request message to the server, where the first request message is used to request the server to indicate whether to display the target advertisement.
  • the first request message includes a first reference parameter and an identifier of the target advertisement, where the first reference parameter is a random number that satisfies a first preset condition.
  • S902 The server generates a second reference parameter according to the display state of the target advertisement and the first reference parameter in the request message.
  • S903 The server sends a first response message to the terminal.
  • S904 The terminal determines the display state of the target advertisement according to the first reference parameter and the second reference parameter.
  • S905 The terminal controls the application to display the target advertisement according to the display state of the target advertisement.
  • the terminal receives an application startup instruction input by the user, the terminal sends a first request message to the server, the first request message carries the first reference parameter, and the server generates the second reference parameter according to the first reference parameter and the display state.
  • send a first response message to the server and carry the second reference parameter in the first response message, so that the terminal can know the display status of the target advertisement according to the first reference parameter and the second reference parameter, and according to the display status of the target advertisement
  • the target advertisement is displayed, that is, the display state is indicated based on the first reference parameter and the second reference parameter, which improves the security of data transmission. Therefore, the terminal and the server can communicate based on an unreliable transmission protocol. For example, request messages and response messages are sent based on UDP. Since the unreliable transmission protocol has fewer handshakes, the efficiency of determining the display state of the target advertisement is improved. , reducing the user's waiting time and improving the user experience.
  • FIG. 10 is a schematic structural diagram of a multimedia content display control device provided by the present disclosure, which is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content.
  • the device includes: a sending module 1001, a receiving module 1002 and processing module 1003, wherein,
  • a sending module 1001 configured to send a first request message to a server, wherein the first request message includes a first reference parameter and an identifier of a target multimedia content, and the first request message is used to request the server to indicate whether to display the target multimedia content;
  • a receiving module 1002 configured to receive a first response message sent by the server, where the first response message includes a second reference parameter, where the second reference parameter is the display state of the target multimedia content by the server and the first reference parameter is generated;
  • a processing module 1003, configured to determine the display state of the target multimedia content according to the first reference parameter and the second reference parameter;
  • the processing module 1003 is further configured to control the application to display the target multimedia content according to the display state of the target multimedia content.
  • the first response message further includes: server time;
  • the processing module 1003 is further configured to determine that the server time is within the range of the display time of the target multimedia content.
  • the processing module 1003 is further configured to determine the current actual time according to the startup time and startup duration of the terminal; and determine that the current actual time is within the range of the display time of the target multimedia content.
  • the sending module 1001 is further configured to send a second request message to the server, where the second request message is used to request the first time of the server;
  • the receiving module 1002 is further configured to receive a second response message sent by the server, where the second response message includes the first time of the server;
  • the processing module 1003 is further configured to determine the time difference according to the first time of the server and the startup duration of the terminal; determine the current actual time according to the time difference and the startup duration of the terminal device; determine the current actual time; The actual time is within the range of the display time of the target multimedia content.
  • the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1; the second reference parameter is A binary number of N bytes;
  • the processing module 1003 is specifically configured to determine the target byte to be added in the N bytes according to the N-digit decimal number, sum the values corresponding to the target bytes to be added, and obtain the corresponding value of the sum.
  • the decimal number when the single digit of the decimal number is greater than the first preset threshold, the display state is display, when the single digit of the decimal number is less than or equal to the first preset threshold, the display state is not exhibit.
  • the processing module 1003 is further configured to determine the current actual time according to the startup time and startup duration of the terminal if the first response message is not received within a preset time range; The current actual time is within the range of the display time of the target multimedia content, and it is determined to display the target multimedia content.
  • the first request message is in a user datagram protocol format
  • the first response message is in the user datagram protocol format.
  • FIG. 11 is a schematic structural diagram of a multimedia content display control device provided by the present disclosure, applied to a server, the device includes: a receiving module 1101, a processing module 1102 and a sending module 1103, wherein,
  • a receiving module 1101 configured to receive a first request message sent by a terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
  • a processing module 1102 configured to generate a second reference parameter according to the display state of the target multimedia content and the first reference parameter
  • the sending module 1103 is configured to send a first response message to the terminal, where the first response message includes a second reference parameter.
  • the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1;
  • the processing module 1102 is specifically configured to determine the target byte to be added according to the N-digit decimal number; determine the target word according to the display state of the target multimedia content and the target byte to be added section value, wherein the value of the target byte satisfies a second preset condition, the second preset condition is: the display state is display, sum the values of the target byte, and obtain the and the corresponding decimal number, the single digit of the decimal number is greater than the first preset threshold; the display state is not displayed, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained.
  • the single digit of the decimal number is less than or equal to the first preset threshold; the second reference parameter is generated according to the value of the target byte to be added.
  • the receiving module 1101 is specifically configured to receive the first request message sent by the terminal when the application is started; or, receive the first request message sent by the terminal after the application runs for a preset duration.
  • the apparatus in this embodiment corresponds to the technical solutions that can be used to execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the present disclosure also provides a terminal, including: a processor, where the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the method described in any of the embodiments of FIG. 1 to FIG. 7 . step.
  • the present disclosure also provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method described in any one of the embodiments of FIG. 1 to FIG. 9 are implemented.
  • the present disclosure also provides a server, which is characterized in that it includes: a processor, where the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements any of the embodiments in FIGS. 1 to 9 . steps of the method.
  • the present disclosure also provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method described in any one of the embodiments of FIG. 1 to FIG. 7 are implemented.
  • the present disclosure provides a computer program product, including a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in any of the embodiments of FIG. 1 to FIG. 7 are implemented.
  • the present disclosure provides a computer program product, including a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in any of the embodiments of FIG. 1 to FIG. 7 are implemented.

Abstract

Provided are a multimedia content presentation control method and apparatus, and a computer-readable storage medium. A first request message is sent to a server by means of a terminal, wherein the first request message carries a first reference parameter. The server generates a second reference parameter according to the first reference parameter and a presentation state, and sends a first response message to the terminal, wherein the first response message carries the second reference parameter, such that the terminal learns the presentation state of target multimedia content according to the first reference parameter and the second reference parameter, and presents the target multimedia content according to the presentation state of the target multimedia content, that is, the presentation state is indicated on the basis of the first reference parameter and the second reference parameter, thereby improving the security of data transmission. Therefore, a terminal and a server can communicate with each other on the basis of a non-reliable transmission protocol, thereby improving the efficiency of determining the presentation state of target multimedia content, reducing the waiting time of a user, and improving the user experience.

Description

多媒体内容展示控制方法、装置、终端、服务器和介质Multimedia content presentation control method, device, terminal, server and medium
优先权信息priority information
本申请要求于2021年02月09日提交的,申请名称为“多媒体内容展示控制方法、装置、终端、服务器和介质”的、中国专利申请号“202110187829.7”的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. "202110187829.7" filed on February 09, 2021, and the application name is "Multimedia Content Display Control Method, Device, Terminal, Server and Medium". The entire content of the application is approved by Reference is incorporated in this application.
技术领域technical field
本公开涉及计算机技术领域,尤其涉及一种多媒体内容展示控制方法、装置、终端、服务器和介质。The present disclosure relates to the field of computer technologies, and in particular, to a method, device, terminal, server and medium for controlling multimedia content presentation.
背景技术Background technique
在应用程序内展示多媒体内容,已成为一种常见的多媒体内容投放方式,例如,可以在应用程序的缓冲界面展示多媒体内容,可以在应用程序的启动界面展示多媒体内容或者在应用程序的退出界面展示多媒体内容等,其中,多媒体内容可以是广告、宣传内容等。Displaying multimedia content in an application has become a common way of delivering multimedia content. For example, multimedia content can be displayed on the buffer interface of the application, multimedia content can be displayed on the startup interface of the application, or displayed on the exit interface of the application. Multimedia content, etc., wherein the multimedia content can be advertisement, publicity content, etc.
现有技术中,一种实现方式为:当应用程序需要展示多媒体内容时,服务器进行实时推送多媒体内容;另一种实现方式为:将多媒体内容的内容预加载到用户的终端上,多媒体内容以广告为例,当满足触发条件后(例如,开屏广告的触发条件为接收到应用程序的启动指令之后,其中,开屏广告是指用户打开应用程序后,在呈现给用户的第一个展示界面显示的广告),终端向服务器发送安全套接层超文本传输协议(Hyper Text Transfer Protocol over Secure Socket Layer,HTTPS)请求,请求服务器指示是否展示广告,终端根据服务器的指示对广告进行展示或者不展示。In the prior art, one implementation method is: when the application program needs to display the multimedia content, the server pushes the multimedia content in real time; another implementation method is: preloading the content of the multimedia content on the user's terminal, and the multimedia content is An advertisement as an example, when the trigger condition is met (for example, the trigger condition of the screen-opening advertisement is after receiving the start instruction of the application, where the screen-opening advertisement refers to the first display displayed to the user after the user opens the application The advertisement displayed on the interface), the terminal sends a Hyper Text Transfer Protocol (Hyper Text Transfer Protocol over Secure Socket Layer, HTTPS) request to the server, requesting the server to indicate whether to display the advertisement, and the terminal will display the advertisement according to the server's instructions or not. .
然而,采用现有技术的方法,一种实现方式,终端获取多媒体内容的时间较长,因此,用户等待时间较长,用户体验不高,另一种实现方式,获取服务器指示的时间较长,影响决策多媒体内容展示的效率,影响用户体验。However, using the method in the prior art, in one implementation, the terminal takes a long time to acquire multimedia content, therefore, the user waits for a long time and the user experience is not high, and in another implementation, it takes a long time to obtain the server indication, It affects the efficiency of decision-making multimedia content display and user experience.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题,本公开提供了一种多媒体内容展示控制方法、装置和计算机可读存储介质。In order to solve the above technical problems, the present disclosure provides a multimedia content presentation control method, apparatus and computer-readable storage medium.
本公开第一方面提供一种多媒体内容展示控制方法,应用于安装有应用程序的终端,所述终端已预加载目标多媒体内容,所述方法,包括:A first aspect of the present disclosure provides a multimedia content display control method, which is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content. The method includes:
向服务器发送第一请求消息,其中,所述第一请求消息中包括第一参考参数和目标多 媒体内容的标识,所述第一请求消息用于请求所述服务器指示是否展示所述目标多媒体内容;Send a first request message to the server, wherein the first request message includes a first reference parameter and the identification of the target multimedia content, and the first request message is used to request the server to indicate whether to display the target multimedia content;
接收所述服务器发送的第一响应消息,所述第一响应消息包括第二参考参数,其中,所述第二参考参数为所述服务器根据所述目标多媒体内容的展示状态和所述第一参考参数生成的;Receive a first response message sent by the server, where the first response message includes a second reference parameter, where the second reference parameter is the display state of the target multimedia content by the server and the first reference generated by parameters;
根据所述第一参考参数和所述第二参考参数,确定所述目标多媒体内容的展示状态;determining the presentation state of the target multimedia content according to the first reference parameter and the second reference parameter;
根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容。The application is controlled to display the target multimedia content according to the display state of the target multimedia content.
可选的,所述第一响应消息中还包括:服务器时间;Optionally, the first response message further includes: server time;
根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容之前,还包括:Before controlling the application to display the target multimedia content according to the display state of the target multimedia content, the method further includes:
确定所述服务器时间在所述目标多媒体内容的展示时间的范围内。It is determined that the server time is within the range of the presentation time of the target multimedia content.
可选的,所述根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容之前,还包括:Optionally, before controlling the application to display the target multimedia content according to the display state of the target multimedia content, the method further includes:
根据所述终端的启动时间和启动时长,确定当前的实际时间;Determine the current actual time according to the startup time and startup duration of the terminal;
确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。It is determined that the current actual time is within the range of the presentation time of the target multimedia content.
可选的,所述根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容之前之前,还包括:Optionally, before controlling the application to display the target multimedia content according to the display state of the target multimedia content, the method further includes:
向所述服务器发送第二请求消息,其中,所述第二请求消息用于请求服务器的第一时间;sending a second request message to the server, wherein the second request message is used to request the first time of the server;
接收所述服务器发送的第二响应消息,所述第二响应消息中包括所述服务器的第一时间;receiving a second response message sent by the server, where the second response message includes the first time of the server;
根据所述服务器的第一时间以及所述终端的启动时长,确定时间差;determining the time difference according to the first time of the server and the start-up duration of the terminal;
根据所述时间差和所述终端设备的启动时长,确定当前的实际时间;Determine the current actual time according to the time difference and the start-up duration of the terminal device;
确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。It is determined that the current actual time is within the range of the presentation time of the target multimedia content.
可选的,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;所述第二参考参数为N个字节的二进制数;Optionally, the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1; the second reference parameter is A binary number of N bytes;
所述根据所述第一参考参数和所述第二参考参数,确定所述目标多媒体内容的展示状态,包括:The determining the display state of the target multimedia content according to the first reference parameter and the second reference parameter includes:
根据所述N位十进制数确定所述N个字节中待相加的目标字节,将所述待相加的目标字节对应的值求和,获取和对应的十进制数,当所述十进制数的个位数大于第一预设阈值,所述展示状态为展示,当所述十进制数的个位数小于等于第一预设阈值,所述展示状态为不展示。Determine the target byte to be added among the N bytes according to the N-digit decimal number, sum the values corresponding to the target bytes to be added, and obtain the decimal number corresponding to the sum. If the single digit of the number is greater than the first preset threshold, the display state is display, and when the single digit of the decimal number is less than or equal to the first preset threshold, the display state is not displayed.
可选的,还包括:Optionally, also include:
若在预设时间范围内,未接收到所述第一响应消息,则根据所述终端的启动时间和启动时长,确定当前的实际时间;If the first response message is not received within the preset time range, the current actual time is determined according to the startup time and startup duration of the terminal;
在所述当前的实际时间在所述目标多媒体内容的展示时间的范围内,确定展示所述目标多媒体内容。When the current actual time is within the range of the display time of the target multimedia content, it is determined to display the target multimedia content.
可选的,所述第一请求消息为用户数据报协议格式;Optionally, the first request message is in a user datagram protocol format;
相应地,所述第一响应消息为所述用户数据报协议格式。Correspondingly, the first response message is in the user datagram protocol format.
本公开第二方面提供一种多媒体内容展示控制方法,应用于服务器,所述方法,包括:A second aspect of the present disclosure provides a multimedia content display control method, which is applied to a server, and the method includes:
接收终端发送的第一请求消息,其中,所述第一请求消息中包含第一参考参数,所述第一请求消息用于请求所述服务器指示是否展示目标多媒体内容;receiving a first request message sent by the terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
根据目标多媒体内容的展示状态和所述第一参考参数生成第二参考参数;generating a second reference parameter according to the presentation state of the target multimedia content and the first reference parameter;
向所述终端发送第一响应消息,所述第一响应消息中包含第二参考参数。Send a first response message to the terminal, where the first response message includes a second reference parameter.
可选的,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;Optionally, the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1;
所述根据目标多媒体内容的展示状态和所述第一参考参数生成第二参考参数,包括:The generating the second reference parameter according to the presentation state of the target multimedia content and the first reference parameter includes:
根据所述N位十进制数,确定待相加的目标字节;Determine the target byte to be added according to the N-digit decimal number;
根据所述目标多媒体内容的展示状态和所述待相加的目标字节,确定所述目标字节的值,其中,所述目标字节的值满足第二预设条件,所述第二预设条件为:所述展示状态为展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数大于第一预设阈值;所述展示状态为不展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数小于等于第一预设阈值;The value of the target byte is determined according to the presentation state of the target multimedia content and the target byte to be added, wherein the value of the target byte satisfies a second preset condition, and the second preset value Suppose the condition is: the display state is display, sum the values of the target bytes to obtain the decimal number corresponding to the sum, and the single digit of the decimal number is greater than the first preset threshold; the display state In order not to show, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained, and the single digit of the decimal number is less than or equal to the first preset threshold;
根据所述待相加的目标字节的值,生成所述第二参考参数。The second reference parameter is generated according to the value of the target byte to be added.
可选的,所述接收终端发送的第一请求消息,包括:Optionally, the first request message sent by the receiving terminal includes:
接收终端在应用程序启动时发送的第一请求消息;或者,receiving the first request message sent by the terminal when the application is started; or,
接收所述终端在所述应用程序运行预设时长后发送的第一请求消息。Receive a first request message sent by the terminal after the application runs for a preset duration.
本公开第三方面提供一种多媒体内容展示控制装置,应用于安装有应用程序的终端,所述终端已预加载目标多媒体内容,所述装置包括:A third aspect of the present disclosure provides a multimedia content display control device, which is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content, and the device includes:
发送模块,用于向服务器发送第一请求消息,其中,所述第一请求消息中包括第一参考参数和目标多媒体内容的标识,所述第一请求消息用于请求所述服务器指示是否展示所述目标多媒体内容;A sending module, configured to send a first request message to the server, wherein the first request message includes a first reference parameter and an identifier of the target multimedia content, and the first request message is used to request the server to indicate whether to display the Describe the target multimedia content;
接收模块,用于接收所述服务器发送的第一响应消息,所述第一响应消息包括第二参考参数,其中,所述第二参考参数为所述服务器根据所述目标多媒体内容的展示状态和所 述第一参考参数生成的;A receiving module, configured to receive a first response message sent by the server, where the first response message includes a second reference parameter, wherein the second reference parameter is the display state and generated by the first reference parameter;
处理模块,用于根据所述第一参考参数和所述第二参考参数,确定所述目标多媒体内容的展示状态;a processing module, configured to determine the display state of the target multimedia content according to the first reference parameter and the second reference parameter;
所述处理模块还用于根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容。The processing module is further configured to control the application to display the target multimedia content according to the display state of the target multimedia content.
可选的,所述第一响应消息中还包括:服务器时间;Optionally, the first response message further includes: server time;
所述处理模块还用于确定所述服务器时间在所述目标多媒体内容的展示时间的范围内。The processing module is further configured to determine that the server time is within the range of the display time of the target multimedia content.
可选的,所述处理模块还用于根据所述终端的启动时间和启动时长,确定当前的实际时间;确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。Optionally, the processing module is further configured to determine the current actual time according to the startup time and startup duration of the terminal; and determine that the current actual time is within the range of the display time of the target multimedia content.
可选的,所述发送模块还用于向所述服务器发送第二请求消息,其中,所述第二请求消息用于请求服务器的第一时间;Optionally, the sending module is further configured to send a second request message to the server, where the second request message is used to request the first time of the server;
所述接收模块还用于接收所述服务器发送的第二响应消息,所述第二响应消息中包括所述服务器的第一时间;The receiving module is further configured to receive a second response message sent by the server, where the second response message includes the first time of the server;
所述处理模块还用于根据所述服务器的第一时间以及所述终端的启动时长,确定时间差;根据所述时间差和所述终端设备的启动时长,确定当前的实际时间;确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。The processing module is further configured to determine the time difference according to the first time of the server and the startup duration of the terminal; determine the current actual time according to the time difference and the startup duration of the terminal device; determine the current actual time. The actual time is within the range of the presentation time of the target multimedia content.
可选的,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;所述第二参考参数为N个字节的二进制数;Optionally, the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1; the second reference parameter is A binary number of N bytes;
所述处理模块具体用于根据所述N位十进制数确定所述N个字节中待相加的目标字节,将所述待相加的目标字节对应的值求和,获取和对应的十进制数,当所述十进制数的个位数大于第一预设阈值,所述展示状态为展示,当所述十进制数的个位数小于等于第一预设阈值,所述展示状态为不展示。The processing module is specifically configured to determine the target byte to be added in the N bytes according to the N-digit decimal number, sum the values corresponding to the target byte to be added, and obtain the corresponding value of the sum. Decimal number, when the single digit of the decimal number is greater than the first preset threshold, the display state is display, and when the single digit of the decimal number is less than or equal to the first preset threshold, the display state is not displayed .
可选的,所述处理模块还用于若在预设时间范围内,未接收到所述第一响应消息,则根据所述终端的启动时间和启动时长,确定当前的实际时间;在所述当前的实际时间在所述目标多媒体内容的展示时间的范围内,确定展示所述目标多媒体内容。Optionally, the processing module is further configured to determine the current actual time according to the startup time and startup duration of the terminal if the first response message is not received within a preset time range; The current actual time is within the range of the display time of the target multimedia content, and it is determined to display the target multimedia content.
可选的,所述第一请求消息为用户数据报协议格式;Optionally, the first request message is in a user datagram protocol format;
相应地,所述第一响应消息为所述用户数据报协议格式。Correspondingly, the first response message is in the user datagram protocol format.
本公开第四方面提供一种多媒体内容展示控制装置,应用于服务器,所述装置包括:A fourth aspect of the present disclosure provides a multimedia content display control device, which is applied to a server, and the device includes:
接收模块,用于接收终端发送的第一请求消息,其中,所述第一请求消息中包含第一参考参数,所述第一请求消息用于请求所述服务器指示是否展示目标多媒体内容;a receiving module, configured to receive a first request message sent by a terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
处理模块,用于根据目标多媒体内容的展示状态和所述第一参考参数生成第二参考参 数;a processing module for generating a second reference parameter according to the presentation state of the target multimedia content and the first reference parameter;
发送模块,用于向所述终端发送第一响应消息,所述第一响应消息中包含第二参考参数。A sending module, configured to send a first response message to the terminal, where the first response message includes a second reference parameter.
可选的,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;Optionally, the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1;
所述处理模块具体用于根据所述N位十进制数,确定待相加的目标字节;根据所述目标多媒体内容的展示状态和所述待相加的目标字节,确定所述目标字节的值,其中,所述目标字节的值满足第二预设条件,所述第二预设条件为:所述展示状态为展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数大于第一预设阈值;所述展示状态为不展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数小于等于第一预设阈值;根据所述待相加的目标字节的值,生成所述第二参考参数。The processing module is specifically configured to determine the target byte to be added according to the N-digit decimal number; determine the target byte according to the display state of the target multimedia content and the target byte to be added , wherein the value of the target byte satisfies a second preset condition, and the second preset condition is: the display state is display, sum the values of the target byte, and obtain the sum The corresponding decimal number, the single digit of the decimal number is greater than the first preset threshold; the display state is not displayed, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained, the The single digit of the decimal number is less than or equal to the first preset threshold; the second reference parameter is generated according to the value of the target byte to be added.
可选的,所述接收模块具体用于接收终端在应用程序启动时发送的第一请求消息;或者,接收所述终端在所述应用程序运行预设时长后发送的第一请求消息。Optionally, the receiving module is specifically configured to receive the first request message sent by the terminal when the application is started; or, receive the first request message sent by the terminal after the application runs for a preset duration.
本公开第五方面提供一种终端,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现第一方面所述的方法的步骤。A fifth aspect of the present disclosure provides a terminal, including: a processor configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the steps of the method of the first aspect.
本公开第六方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的方法的步骤。A sixth aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method described in the first aspect.
本公开第七方面提供一种服务器,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现第二方面所述的方法的步骤。A seventh aspect of the present disclosure provides a server, comprising: a processor configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the steps of the method described in the second aspect.
本公开第八方面提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现第二方面所述的方法的步骤。An eighth aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method described in the second aspect are implemented.
本公开第九方面提供一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现第一方面所述的方法的步骤。A ninth aspect of the present disclosure provides a computer program product, comprising a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
本公开第十方面提供一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现第二方面所述的方法的步骤。A tenth aspect of the present disclosure provides a computer program product, comprising a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
本公开实施例提供的技术方案与现有技术相比具有如下优点:Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages:
通过终端向服务器发送第一请求消息,在第一请求消息中携带第一参考参数,服务器根据第一参考参数和展示状态,生成第二参考参数,向服务器发送第一响应消息,在第一响应消息中携带第二参考参数,以使终端根据第一参考参数和第二参考参数获知目标多媒体内容的展示状态,根据目标多媒体内容的展示状态对目标多媒体内容进行展示,即基于第一参考参数和第二参考参数指示展示状态,提高了数据传输的安全性。因此,终端和服 务器之间可以基于非可靠的传输协议进行通信,例如,基于UDP发送请求消息和响应消息,由于非可靠的传输协议握手次数少,从而,提高了确定目标多媒体内容的展示状态的效率,减少了用户的等待时间,提高了用户体验。The terminal sends the first request message to the server, and the first request message carries the first reference parameter. The server generates the second reference parameter according to the first reference parameter and the display state, and sends the first response message to the server. The second reference parameter is carried in the message, so that the terminal can know the display state of the target multimedia content according to the first reference parameter and the second reference parameter, and display the target multimedia content according to the display state of the target multimedia content, that is, based on the first reference parameter and the second reference parameter. The second reference parameter indicates the display state, which improves the security of data transmission. Therefore, the terminal and the server can communicate based on an unreliable transmission protocol, for example, sending request messages and response messages based on UDP. Since the unreliable transmission protocol has fewer handshakes, it improves the ability to determine the display state of the target multimedia content. Efficiency, reducing user waiting time and improving user experience.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the accompanying drawings that are required to be used in the description of the embodiments or the prior art will be briefly introduced below. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.
图1为本公开提供的一种多媒体内容展示控制方法的流程示意图;1 is a schematic flowchart of a multimedia content display control method provided by the present disclosure;
图2为本公开提供的另一种多媒体内容展示控制方法的流程示意图;FIG. 2 is a schematic flowchart of another multimedia content display control method provided by the present disclosure;
图3为本公开提供的一种第一请求消息的报文格式示意图;3 is a schematic diagram of a message format of a first request message provided by the present disclosure;
图4为本公开提供的一种第一响应消息的报文格式示意图;4 is a schematic diagram of a message format of a first response message provided by the present disclosure;
图5为本公开提供的再一种多媒体内容展示控制方法的流程示意图;5 is a schematic flowchart of still another multimedia content display control method provided by the present disclosure;
图6为本公开提供的又一种多媒体内容展示控制方法的流程示意图;6 is a schematic flowchart of another multimedia content display control method provided by the present disclosure;
图7为本公开提供的又一种多媒体内容展示控制方法的流程示意图;7 is a schematic flowchart of another multimedia content display control method provided by the present disclosure;
图8为本公开提供的又一种多媒体内容展示控制方法的流程示意图;8 is a schematic flowchart of another multimedia content display control method provided by the present disclosure;
图9为本公开提供的一种应用场景的流程示意图;FIG. 9 is a schematic flowchart of an application scenario provided by the present disclosure;
图10为本公开提供的一种多媒体内容展示控制装置的结构示意图;10 is a schematic structural diagram of a multimedia content display control device provided by the present disclosure;
图11为本公开提供的另一种多媒体内容展示控制装置的结构示意图。FIG. 11 is a schematic structural diagram of another multimedia content display control apparatus provided by the present disclosure.
具体实施方式Detailed ways
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments may be combined with each other under the condition of no conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。Many specific details are set forth in the following description to facilitate a full understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, and Not all examples.
本公开的技术方案应用于终端,其中,终端可以是电脑、平板、手机或者其他终端等。该终端安装有应用程序,并且终端已预加载目标多媒体内容。终端根据服务器的指示信息确定是否展示所述目标多媒体内容。The technical solution of the present disclosure is applied to a terminal, where the terminal may be a computer, a tablet, a mobile phone, or other terminals. The terminal has an application program installed, and the terminal has preloaded the target multimedia content. The terminal determines whether to display the target multimedia content according to the instruction information of the server.
本公开为了提高指示信息传输的可靠性,避免在传输过程中被篡改,采用参考参数进行一定的信息隐藏,从而,终端和服务器之间可以基于非可靠传输协议传输请求消息和响应消息,例如,基于用户数据报协议(User Datagram Protocol,UDP),只需要一个往返时间(Round-Trip Time,RTT)即可获取到指示信息,提高了终端从服务器获取是否展示多媒体内容的指示信息的效率。In the present disclosure, in order to improve the reliability of the indication information transmission and avoid being tampered with during the transmission process, the reference parameters are used for certain information hiding, so that the terminal and the server can transmit the request message and the response message based on the unreliable transmission protocol, for example, Based on the User Datagram Protocol (UDP), only one round-trip time (Round-Trip Time, RTT) is needed to obtain the indication information, which improves the efficiency of the terminal obtaining the indication information from the server whether to display the multimedia content.
下面以几个具体的实施例对本公开的技术方案进行描述。The technical solutions of the present disclosure will be described below with several specific embodiments.
图1为本公开提供的一种多媒体内容展示控制方法的流程示意图,如图1所示,本实施例的方法如下:FIG. 1 is a schematic flowchart of a multimedia content display control method provided by the present disclosure. As shown in FIG. 1 , the method in this embodiment is as follows:
S101:终端向服务器发送第一请求消息。S101: The terminal sends a first request message to the server.
其中,第一请求消息中包含第一参考参数,所述第一请求消息用于请求服务器指示是否展示目标多媒体内容。The first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content.
当终端确定满足预设触发条件后,向服务器发送第一请求消息。After determining that the preset trigger condition is satisfied, the terminal sends a first request message to the server.
例如:终端可以在应用程序启动时发送第一请求消息,或者,在应用程序运行预设时长后发送第一请求消息。具体地,可以根据具体的应用场景确定。For example, the terminal may send the first request message when the application program starts, or send the first request message after the application program runs for a preset duration. Specifically, it can be determined according to a specific application scenario.
如,预设触发条件与目标多媒体内容有关。多媒体内容以广告为例,目标多媒体内容为开屏广告(也称为首屏广告或者闪屏广告),即,在启动应用程序之后展示给用户的第一个显示界面上展示的广告内容,则该目标广告的预设触发条件可以设置为接收到应用程序的启动指令,也可以设置为应用程序启动完成,或者,也可以设置为应用程序启动过程中的某步骤之前或者之后。再例如,目标广告为应用程序启动预设时长之后展示的广告内容,则该目标广告的预设触发条件可以设置为应用程序启动预设时长。预设触发条件还可以是根据目标广告确定的其他条件,对此,本公开不做限制,总之,是在将要展示目标多媒体内容之前,终端向服务器发送请求消息,以请求服务器指示是否展示该目标多媒体内容。For example, the preset trigger condition is related to the target multimedia content. Multimedia content takes advertisements as an example. The target multimedia content is an open-screen advertisement (also known as an above-the-fold advertisement or a splash-screen advertisement), that is, the advertisement content displayed on the first display interface displayed to the user after the application is started, then the The preset trigger condition of the target advertisement can be set to receive an application startup instruction, or can be set to complete the application startup, or can also be set to before or after a certain step in the application startup process. For another example, if the target advertisement is the advertisement content displayed after the application starts for a preset duration, the preset trigger condition of the target advertisement may be set as the application startup preset duration. The preset trigger condition may also be other conditions determined according to the target advertisement, which is not limited in this disclosure. In short, before the target multimedia content is about to be displayed, the terminal sends a request message to the server to request the server to indicate whether to display the target multimedia content.
本公开在第一请求消息中携带第一参考参数和目标广告的标识,其中,第一参考参数为满足第一预设条件的随机数。The present disclosure carries the first reference parameter and the identifier of the target advertisement in the first request message, wherein the first reference parameter is a random number that satisfies the first preset condition.
可选的,满足第一预设条件的随机数包括但不限于如下可能的情况:Optionally, the random number that satisfies the first preset condition includes but is not limited to the following possible situations:
一种可能的情况:满足第一预设条件的随机数,可以为在预设范围内,使用伪随机数产生器(Cryptographically Secure Pseudo-Random Number Generator,简称CSPRNG)生成的M个字节的二进制的随机数,该M个字节的二进制的随机数对应N为10进制数,所述M为大于等于1的整数,所述N为大于等于1的整数;例如,M=8,N=10,第一参考参数对应的十进制表示为:12300000830。A possible situation: the random number that satisfies the first preset condition can be an M-byte binary generated within a preset range using a pseudo-random number generator (Cryptographically Secure Pseudo-Random Number Generator, CSPRNG for short). The random number of the M bytes of binary random number corresponds to N is a decimal number, the M is an integer greater than or equal to 1, and the N is an integer greater than or equal to 1; for example, M=8, N= 10. The decimal representation corresponding to the first reference parameter is: 12300000830.
另一种可能的情况:满足第一预设条件的随机数,还可以为大于预设阈值的随机数,其中,预设阈值与第一请求消息中用于写入第一参考参数的字段大小有关,例如,第一参 考参数的字段为8个字节,预设阈值为:2 64-1,例如,第一参考参数对应的十进制表示为10000。 Another possible situation: the random number that satisfies the first preset condition may also be a random number greater than a preset threshold, where the preset threshold and the size of the field in the first request message for writing the first reference parameter For example, the field of the first reference parameter is 8 bytes, and the preset threshold is: 2 64 -1, for example, the decimal representation corresponding to the first reference parameter is 10000.
可选的,第一请求消息中还可以包含目标多媒体内容的标识,以使服务器获知终端具体请求展示哪个多媒体内容。例如,在应用程序中的同一多媒体内容位,可能会轮流播放多个目标多媒体内容,以开屏多媒体内容为例,第一次启动应用程序后,展示目标多媒体内容A,第二次启动应用程序后,展示目标多媒体内容B,在这种场景中,通过在第一请求消息中携带目标多媒体内容的标识,可以使服务器获知终端具体请求展示哪个多媒体内容。Optionally, the first request message may further include an identifier of the target multimedia content, so that the server knows which multimedia content the terminal specifically requests to display. For example, in the same multimedia content bit in the application, multiple target multimedia contents may be played in turn. Taking the multimedia content on the screen as an example, after the application is started for the first time, the target multimedia content A is displayed, and the application is started for the second time. Then, the target multimedia content B is displayed. In this scenario, by carrying the identifier of the target multimedia content in the first request message, the server can know which multimedia content the terminal specifically requests to display.
S103:服务器向终端发送第一响应消息。S103: The server sends a first response message to the terminal.
服务器接收到终端发送过的第一请求消息之后,获取到目标多媒体内容的展示状态。After receiving the first request message sent by the terminal, the server obtains the display state of the target multimedia content.
目标多媒体内容的展示状态包括两种,一种为展示,另一种为不展示。There are two display states of the target multimedia content, one is display and the other is not displayed.
服务器会维护所有多媒体内容的展示状态,例如,服务器可以通过如下的表格维护所有多媒体内容的展示状态,默认条件下,所有多媒体内容的展示状态如表1所示。当有特殊条件出现时,例如,某纪念日,需要停播部分或全部的多媒体内容,则将部分或全部的多媒体内容的展示状态设置为不展示,如表2所示,表2以部分多媒体内容不展示为例示出。因此,服务器可以根据维护的所有多媒体内容的展示状态获取到目标多媒体内容的展示状态。The server will maintain the display state of all multimedia content. For example, the server can maintain the display state of all multimedia content through the following table. By default, the display state of all multimedia content is shown in Table 1. When a special condition occurs, for example, on an anniversary, part or all of the multimedia content needs to be stopped, then the display state of part or all of the multimedia content is set to not be displayed, as shown in Table 2. Table 2 shows part of the multimedia content. The content is not shown as an illustration. Therefore, the server can obtain the presentation status of the target multimedia content according to the maintained presentation status of all multimedia contents.
表1 多媒体内容的展示状态表Table 1 Display status table of multimedia content
多媒体内容名称multimedia content name 展示exhibit 不展示do not show
多媒体内容1Multimedia Content 1
多媒体内容2Multimedia Content 2
多媒体内容3Multimedia Content 3
多媒体内容4Multimedia Content 4
多媒体内容5Multimedia Content 5
多媒体内容6Multimedia Content 6
表2 多媒体内容的展示状态表Table 2 Display state table of multimedia content
多媒体内容名称multimedia content name 展示exhibit 不展示do not show
多媒体内容1Multimedia Content 1
多媒体内容2Multimedia Content 2
多媒体内容3Multimedia Content 3
多媒体内容4Multimedia Content 4
多媒体内容5Multimedia Content 5
多媒体内容6Multimedia Content 6
表1和表2中●表示有效,⊙表示无效,例如,多媒体内容1的展示对应的为●则表示该多媒体内容1的展示状态为展示,多媒体内容2的不展示对应的为●则表示该多媒体内容2的展示状态为不展示。In Table 1 and Table 2, ● means valid, and ⊙ means invalid. For example, the display state of multimedia content 1 corresponds to ●, which means that the display state of multimedia content 1 is displayed, and the display state of multimedia content 2 corresponds to ●, which means that the display state of multimedia content 1 is displayed. The display state of the multimedia content 2 is not displayed.
服务器根据目标多媒体内容的展示状态和请求消息中的第一参考参数,生成第二参考参数,包括但不限于如下可能的实现方式:The server generates the second reference parameter according to the display state of the target multimedia content and the first reference parameter in the request message, including but not limited to the following possible implementations:
一种可能的实现方式为:第一参考参数为满足第一预设条件的随机数,该随机数的值为N位十进制数,所述N为大于等于1的整数;根据N位十进制数,确定待相加的目标字节;根据目标多媒体内容的展示状态和所述待相加的目标字节,确定所述目标字节的值,其中,所述目标字节的值满足第二预设条件,所述第二预设条件为:所述展示状态为展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数大于预设阈值;所述展示状态为不展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数小于等于预设阈值;根据所述待相加的目标字节的值,生成所述第二参考参数。具体地,从满足第二预设条件的数值中选择一个随机数作为第二参考参数。A possible implementation manner is: the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and N is an integer greater than or equal to 1; according to the N-digit decimal number, Determine the target byte to be added; determine the value of the target byte according to the display state of the target multimedia content and the target byte to be added, wherein the value of the target byte satisfies the second preset Condition, the second preset condition is: the display state is display, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained, and the single digit of the decimal number is greater than the preset threshold ; The display state is not to display, sum the values of the target bytes, and obtain the decimal number corresponding to the sum, and the single digit of the decimal number is less than or equal to the preset threshold; according to the to-be-added The value of the target byte, the second reference parameter is generated. Specifically, a random number is selected from the values satisfying the second preset condition as the second reference parameter.
假设,第一预设阈值为4,N=10,如果展示状态为展示,第一参考参数的十进制表示为12300000830,则第二参考参数的第1个字节、第2个字节、第3个字节、第8个字节和第3个字节相加的和值对应的十进制表示的个位数应该大于4,从满足该条件的数值中选择一个随机数作为第二参考参数,例如:第二参考参数为:00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000111 00010000 00001100。Assuming that the first preset threshold is 4 and N=10, if the display state is display, the decimal representation of the first reference parameter is 12300000830, then the first byte of the second reference parameter, the second byte, the third The unit digit corresponding to the decimal representation of the sum of the number of bytes, the 8th byte and the 3rd byte should be greater than 4. Select a random number from the values that satisfy this condition as the second reference parameter, for example : The second reference parameter is: 00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000111 00010000 00001100.
如果展示状态为不展示,第一参考参数的十进制表示为12300000830,则第二参考参数的第1个字节、第2个字节、第3个字节、第8个字节和第3个字节相加的和值对应的十进制表示的个位数应该小于等于4,从满足该条件的数值中选择一个随机数作为第二参考参数。例如:第二参考参数为:00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000100 00010000 00001100。If the display state is not displayed, the decimal representation of the first reference parameter is 12300000830, then the first byte, the second byte, the third byte, the eighth byte and the third byte of the second reference parameter The unit digit of the decimal representation corresponding to the sum value of the byte addition should be less than or equal to 4, and a random number is selected from the values satisfying this condition as the second reference parameter. For example: the second reference parameter is: 00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000100 00010000 00001100.
另一种可能的实现方式,如果确定展示状态为展示时,第二参考参数需要满足如下条件,第二参考参数与第一参考参数的差值的绝对值大于等于第二预设阈值。当展示状态为不展示时,第二参考参数与第一参考参数的差值的绝对值小于第二预设阈值。从满足条件的数值中选择一个随机数作为第二参考参数。In another possible implementation manner, if it is determined that the display state is display, the second reference parameter needs to satisfy the following conditions: the absolute value of the difference between the second reference parameter and the first reference parameter is greater than or equal to a second preset threshold. When the display state is not displayed, the absolute value of the difference between the second reference parameter and the first reference parameter is smaller than the second preset threshold. A random number is selected from the values that satisfy the condition as the second reference parameter.
假设,第二预设阈值为100,如果展示状态为展示,第一参考参数为10000,则第二参考参数与10000的差值的绝对值大于100,从满足条件的数值中选择一个随机数作为第二参考参数,例如,10300。如果展示状态为不展示,第一参考参数为10000,则第二参考参 数与10000的差值的绝对值小于100,从满足条件的数值中选择一个随机数作为第二参考参数,例如,10001。Assuming that the second preset threshold is 100, if the display state is display and the first reference parameter is 10000, the absolute value of the difference between the second reference parameter and 10000 is greater than 100, and a random number is selected from the values that satisfy the condition as The second reference parameter, for example, 10300. If the display state is not displayed, and the first reference parameter is 10000, the absolute value of the difference between the second reference parameter and 10000 is less than 100, and a random number is selected from the values that satisfy the condition as the second reference parameter, for example, 10001.
上述条件只要终端和服务器保持一致即可,可以灵活设置,对此,本公开不做限制。The above conditions can be set flexibly as long as the terminal and the server are consistent, which is not limited in the present disclosure.
服务器向终端发送携带第二参考参数的第一响应消息。The server sends a first response message carrying the second reference parameter to the terminal.
S105:终端根据第一参考参数和第二参考参数,确定目标多媒体内容的展示状态。S105: The terminal determines the display state of the target multimedia content according to the first reference parameter and the second reference parameter.
终端接收到第一响应消息之后,获取第一响应消息中携带的第二参考参数,根据第二参考参数和第一参考参数,确定目标多媒体内容的展示状态。After receiving the first response message, the terminal acquires the second reference parameter carried in the first response message, and determines the display state of the target multimedia content according to the second reference parameter and the first reference parameter.
结合S103中的实现方式,相应地,一种可能的实现方式为:根据N位十进制数确定所述N个字节中待相加的目标字节,将所述待相加的目标字节对应的值相加求和,获取和对应的十进制数,当所述十进制数的个位数大于第一预设阈值,所述展示状态为展示,当所述十进制数的个位数小于等于第一预设阈值,所述展示状态为不展示。With reference to the implementation in S103, correspondingly, a possible implementation is: determining the target byte to be added in the N bytes according to the N-digit decimal number, and corresponding to the target byte to be added Add and sum the values, and obtain the decimal number corresponding to the sum. When the single digit of the decimal number is greater than the first preset threshold, the display state is display. When the single digit of the decimal number is less than or equal to the first A preset threshold, the display state is not displayed.
假设第一预设阈值为4,第一参考参数的十进制表示为12300000830,第二参考参数为00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000111 00010000 00001100。根据第一参考参数的十进制表示可以确定将第二参考参数的第1个字节、第2个字节、第3个字节、第8个字节和第3个字节相加求和,得到的和值为16,个位数为6大于4,则可以确定展示状态为展示。Assuming that the first preset threshold is 4, the decimal representation of the first reference parameter is 12300000830, and the second reference parameter is 00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000111 00010000 00001100. According to the decimal representation of the first reference parameter, it can be determined that the 1st byte, the 2nd byte, the 3rd byte, the 8th byte and the 3rd byte of the second reference parameter are added and summed, The obtained sum value is 16, and if the single digit is 6 and greater than 4, it can be determined that the display state is display.
再假设:第一预设阈值为4,第一参考参数的十进制表示为12300000830,第二参考参数为:00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000100 00010000 00001100。根据第一参考参数的十进制表示可以确定将第二参考参数的第1个字节、第2个字节、第3个字节、第8个字节和第3个字节相加求和,得到的和值为13,个位数为3小于4,则可以确定展示状态为不展示。Suppose again: the first preset threshold is 4, the decimal representation of the first reference parameter is 12300000830, and the second reference parameter is: 00000001 00000010 00000011 00000111 11000110 00011100 01100011 00000100 00010000 00001100. According to the decimal representation of the first reference parameter, it can be determined that the 1st byte, the 2nd byte, the 3rd byte, the 8th byte and the 3rd byte of the second reference parameter are added and summed, If the obtained sum value is 13, and the single digit is 3 and less than 4, it can be determined that the display status is not displayed.
结合S103中的实现方式,相应地,另一种可能的实现方式为:将第二参考参数与第一参考参数相减的绝对值大于等于第二预设阈值,则确定展示状态为展示,将第二参考参数与第一参考参数相减的绝对值小于第二预设阈值,则确定展示状态为不展示。In combination with the implementation in S103, correspondingly, another possible implementation is: the absolute value of the subtraction of the second reference parameter and the first reference parameter is greater than or equal to the second preset threshold, then it is determined that the display state is display, and The absolute value of the subtraction of the second reference parameter and the first reference parameter is smaller than the second preset threshold, and the display state is determined to be no display.
例如:第二预设阈值为100,第一参考参数为10000,第二参考参数为10300;第二参考参数与第一参考参数的差值的绝对值大于等于100,则确定展示状态为展示。再例如:第一参考参数为10000,第二参考参数为10001;第二参考参数与第一参考参数的差值的绝对值小于100,则确定展示状态为不展示。For example: the second preset threshold is 100, the first reference parameter is 10000, and the second reference parameter is 10300; the absolute value of the difference between the second reference parameter and the first reference parameter is greater than or equal to 100, and the display state is determined to be display. For another example: the first reference parameter is 10000, the second reference parameter is 10001; the absolute value of the difference between the second reference parameter and the first reference parameter is less than 100, and the display state is determined to be no display.
S107:终端根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容。S107: The terminal controls the application to display the target multimedia content according to the display state of the target multimedia content.
如果终端确定目标多媒体内容的展示状态为展示,则展示目标多媒体内容,如果终端确定目标多媒体内容的展示状态为不展示,则不展示目标多媒体内容。If the terminal determines that the display state of the target multimedia content is display, the target multimedia content is displayed, and if the terminal determines that the display state of the target multimedia content is not displayed, the target multimedia content is not displayed.
本实施例,通过终端向服务器发送第一请求消息,在第一请求消息中携带第一参考参数,服务器根据第一参考参数和展示状态,生成第二参考参数,向服务器发送第一响应消息,在第一响应消息中携带第二参考参数,以使终端根据第一参考参数和第二参考参数获知目标多媒体内容的展示状态,根据目标多媒体内容的展示状态对目标多媒体内容进行展示,即基于第一参考参数和第二参考参数指示展示状态,提高了数据传输的安全性。因此,终端和服务器之间可以基于非可靠的传输协议进行通信,例如,基于UDP发送请求消息和响应消息,由于非可靠的传输协议握手次数少,从而,提高了确定目标多媒体内容的展示状态的效率,减少了用户的等待时间,提高了用户体验。In this embodiment, the terminal sends the first request message to the server, the first request message carries the first reference parameter, the server generates the second reference parameter according to the first reference parameter and the display state, and sends the first response message to the server, The second reference parameter is carried in the first response message, so that the terminal can know the display state of the target multimedia content according to the first reference parameter and the second reference parameter, and display the target multimedia content according to the display state of the target multimedia content, that is, based on the first reference parameter and the second reference parameter. A reference parameter and a second reference parameter indicate the display state, which improves the security of data transmission. Therefore, the terminal and the server can communicate based on an unreliable transmission protocol, for example, sending request messages and response messages based on UDP. Since the unreliable transmission protocol has fewer handshakes, it improves the ability to determine the display state of the target multimedia content. Efficiency, reducing user waiting time and improving user experience.
针对有一些多媒体内容,还会设置展示时间的范围,例如,早餐相关的多媒体内容,其展示时间的范围为早上7:00-9:00,在其他时间段则不展示,再例如,某些限时活动的多媒体内容,其展示时间范围为某特定的几天,然而,终端的时钟可能因为故障或者人为调整等原因,使得终端的时钟时间与实际的时间不相符合,在这种情况下,则可能会造成多媒体内容展示的错乱,影响用户体验。因此,本公开还提供了一些实施例以解决上述问题。For some multimedia content, the display time range will also be set. For example, multimedia content related to breakfast, the display time range is 7:00-9:00 in the morning, and it will not be displayed in other time periods. For the multimedia content of limited-time activities, the display time range is a certain number of days. However, the clock of the terminal may not match the actual time due to faults or artificial adjustment. In this case, This may cause confusion in the display of multimedia content and affect user experience. Therefore, the present disclosure also provides some embodiments to solve the above problems.
图2为本公开提供的另一种多媒体内容展示控制方法的流程示意图,图2是在图1所示实施例的基础上,进一步地,在第一响应消息中还携带服务器时间。在S107之前,还包括:FIG. 2 is a schematic flowchart of another multimedia content display control method provided by the present disclosure. FIG. 2 is based on the embodiment shown in FIG. 1 , and further, the first response message also carries the server time. Before S107, also included:
S106a:终端确定服务器时间在所述目标多媒体内容的展示时间的范围内。S106a: The terminal determines that the server time is within the range of the display time of the target multimedia content.
由于服务器时间不受用户的终端本身的影响,因此,服务器时间与当前的实际时间更相符合。Since the server time is not affected by the user's terminal itself, the server time is more consistent with the current actual time.
由于第一响应消息的传输时间较短,因此,可以忽略,服务器时间即可认为是当前的实际时间。Since the transmission time of the first response message is short, it can be ignored, and the server time can be regarded as the current actual time.
可选的,针对一些对时间要求准确性比较高的多媒体内容,还可以根据服务器时间加上传输时间,确定当前的实际时间,再确定当前的实际时间在目标多媒体内容的展示时间范围内。Optionally, for some multimedia contents that require relatively high time accuracy, the current actual time can be determined according to the server time plus the transmission time, and then it is determined that the current actual time is within the display time range of the target multimedia content.
本实施例,通过服务器在第一响应消息中携带服务器时间,以使终端可以根据服务器时间确定是否在目标多媒体内容的展示时间范围内,可以提高多媒体内容展示的准确性,避免因终端本身时间的不准导致多媒体内容展示的错乱,进一步地提高用户体验。In this embodiment, the server carries the server time in the first response message, so that the terminal can determine whether the target multimedia content is within the display time range of the target multimedia content according to the server time. It is not allowed to cause confusion in the display of multimedia content, and further improve the user experience.
结合图1和图2所示实施例中,本公开还给出了第一请求消息的报文格式示例如图3所示,包括:版本字段、类型字段、报文标识字段、标志字段、内容字段和校验码字段,第一响应消息的报文格式示例如图4所示,包括:报文标识字段、类型字段、内容字段和校验码字段,本公开主要针对其中的内容字段做了改进,在第一请求消息的内容字段中携 带第一参考参数,可选的,还可以携带应用程序标识和终端时间戳,即终端显示的当前时间。在第一响应消息的内容字段中携带第一参考参数,可选的,还可以携带服务器的时间。In conjunction with the embodiments shown in FIG. 1 and FIG. 2 , the present disclosure also provides an example of the message format of the first request message, as shown in FIG. 3 , including: version field, type field, message identification field, flag field, content field and check code field. An example of the message format of the first response message is shown in Figure 4, including: message identification field, type field, content field and check code field. This disclosure mainly focuses on the content field. In an improvement, the first reference parameter is carried in the content field of the first request message, and optionally, the application identifier and the terminal timestamp, that is, the current time displayed by the terminal, may also be carried. The first reference parameter is carried in the content field of the first response message, and optionally, the time of the server may also be carried.
图5为本公开提供的再一种多媒体内容展示控制方法的流程示意图,图5与图2所针对的场景类似,不同的是图2是基于服务器时间确定当前的实际时间,图5是基于终端的启动时间和启动时长确定当前的实际时间,图5是在图1所示实施例的基础上,进一步地,在S107之前,还包括:FIG. 5 is a schematic flowchart of another multimedia content display control method provided by the present disclosure. FIG. 5 is similar to the scenario in FIG. 2 , except that FIG. 2 determines the current actual time based on the server time, and FIG. 5 is based on the terminal The startup time and startup duration determine the current actual time. Figure 5 is based on the embodiment shown in Figure 1, and further, before S107, it also includes:
S1061b:终端根据终端的启动时间和启动时长,确定当前的实际时间。S1061b: The terminal determines the current actual time according to the start-up time and start-up duration of the terminal.
通常,终端的启动时间来源于网络服务器,因此,终端的启动时间一般不容易被改动。终端启动之后系统会记录终端的启动时长,启动时长即终端自从本次系统启动之后运行到当前的时间长度。因此,如果能够确定终端的启动时间以及启动时长,则能够确定终端的当前的实际时间。Usually, the startup time of the terminal comes from a network server, so the startup time of the terminal is generally not easy to be changed. After the terminal is started, the system will record the start-up duration of the terminal. The start-up duration is the length of time that the terminal runs from the current system startup to the current time. Therefore, if the startup time and startup duration of the terminal can be determined, the current actual time of the terminal can be determined.
其中,终端的启动时长可以通过如下方式获取,例如,在目前iOS和Android系统中,通过以下系统层级(Application Programming Interface,应用程序接口)能够获取到一个无法被用户篡改的时间戳,该时间戳不可调整:The startup duration of the terminal can be obtained in the following ways. For example, in the current iOS and Android systems, a timestamp that cannot be tampered with by the user can be obtained through the following system level (Application Programming Interface). Not adjustable:
对于苹果手机操作系统(iPhone Operating System,iOS)系统,通过“@property(readonly)NSTimeInterval systemUptime”获取时间戳,该时间戳就是启动时长。For the iPhone Operating System (iOS) system, the timestamp is obtained through "@property(readonly)NSTimeInterval systemUptime", which is the startup time.
对于安卓(Android)系统,通过“Systemclock.elapsedrealtime()For Android (Android) system, pass "Systemclock.elapsedrealtime()
”获取时间戳,这个时间戳就是启动时长。"Get the timestamp, which is the startup time.
例如:终端的启动时间为上午8:00,终端的启动时长为2个小时,则可以确定终端的当前的实际时间为上午10:00。For example, if the startup time of the terminal is 8:00 am, and the startup time of the terminal is 2 hours, it can be determined that the current actual time of the terminal is 10:00 am.
S1062b:终端确定所述终端的当前的实际时间在所述目标多媒体内容的展示时间的范围内。S1062b: The terminal determines that the current actual time of the terminal is within the range of the display time of the target multimedia content.
终端确定了终端的当前的实际时间之后,再确定终端的当前的实际时间在目标多媒体内容的展示范围内。After the terminal determines the current actual time of the terminal, it then determines that the current actual time of the terminal is within the display range of the target multimedia content.
本实施例,通过终端根据终端的启动时间和启动时长确定终端的当前的实际时间,再确定所述终端的当前的实际时间在所述目标多媒体内容的展示时间的范围内,可以提高多媒体内容展示的准确性,避免因终端本身时间的不准导致多媒体内容展示的错乱。In this embodiment, the terminal determines the current actual time of the terminal according to the start-up time and start-up duration of the terminal, and then determines that the current actual time of the terminal is within the range of the display time of the target multimedia content, which can improve the display of multimedia content. The accuracy of the display can avoid confusion in the display of multimedia content due to the inaccuracy of the terminal's own time.
图6为本公开提供的又一种多媒体内容展示控制方法的流程示意图,图6是在图1所示实施例的基础上,进一步地,在S107之前,还包括:FIG. 6 is a schematic flowchart of another multimedia content display control method provided by the present disclosure. FIG. 6 is based on the embodiment shown in FIG. 1, and further, before S107, it further includes:
S10601:终端向服务器发送第二请求消息。S10601: The terminal sends a second request message to the server.
其中,所述第二请求消息用于请求服务器的第一时间。Wherein, the second request message is used to request the first time of the server.
可选的,终端可以在每次启动时,均向服务器发送第二请求消息,以请求服务器的第 一时间。Optionally, the terminal may send a second request message to the server every time it is started, so as to request the first time of the server.
也可以在一次系统启动后,在终端第一次启动时,向服务器发送第二请求消息,以请求服务器的第一时间,终端在之后再启动时,则不再向服务器发送第二请求消息。It is also possible to send a second request message to the server when the terminal starts up for the first time after a system startup to request the first time of the server, and when the terminal restarts later, it does not send the second request message to the server.
S10602:终端接收所述服务器发送的第二响应消息。S10602: The terminal receives the second response message sent by the server.
第二响应消息中包含所述服务器的第一时间。The second response message includes the first time of the server.
S10603:终端根据服务器的第一时间以及终端的启动时长,确定时间差。S10603: The terminal determines the time difference according to the first time of the server and the startup duration of the terminal.
具体地,由于第二响应消息的传输时间较短,可以忽略,第一时间即可认为是当前的实际时间,因此,可以根据服务器的第一时间以及终端的启动时长确定时间差。Specifically, since the transmission time of the second response message is short, it can be ignored, and the first time can be regarded as the current actual time. Therefore, the time difference can be determined according to the first time of the server and the startup duration of the terminal.
可选的,针对一些对时间要求准确性比较高的多媒体内容,例如一些特定时间点触发的多媒体内容,如:00:00;还可以根据第一时间加上传输时间,确定当前的实际时间,再根据当前的实际时间以及终端的启动时长,确定时间差。Optionally, for some multimedia contents that require relatively high time accuracy, for example, some multimedia contents triggered at a specific time point, such as: 00:00; the current actual time can also be determined according to the first time plus the transmission time, The time difference is then determined according to the current actual time and the start-up duration of the terminal.
S10604:根据所述时间差和所述终端设备的启动时长,确定当前的实际时间。S10604: Determine the current actual time according to the time difference and the startup duration of the terminal device.
具体地,所述时间差加上所述终端设备的启动时长,确定当前的实际时间;Specifically, the time difference is added to the start-up duration of the terminal device to determine the current actual time;
例如,所述时间差为8:00,终端设备的启动时长为2小时,确定当前的实际时间为10:00。For example, the time difference is 8:00, the startup time of the terminal device is 2 hours, and the current actual time is determined to be 10:00.
S10605:确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。S10605: Determine that the current actual time is within the range of the display time of the target multimedia content.
本实施例,通过终端向服务器发送第二请求消息,以请求服务器的第一时间,终端接收所述服务器发送的第二响应消息,获取到服务器的第一时间,根据服务器的第一时间和终端的启动时长,确定时间差,根据所述时间差和所述终端设备的启动时长,确定当前的实际时间,确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内,可以提高多媒体内容展示的准确性,避免因终端本身时间的不准导致多媒体内容展示的错乱。In this embodiment, the terminal sends a second request message to the server to request the first time of the server, the terminal receives the second response message sent by the server, and obtains the first time of the server, according to the first time of the server and the terminal The startup duration is determined, the time difference is determined, the current actual time is determined according to the time difference and the startup duration of the terminal device, and it is determined that the current actual time is within the range of the display time of the target multimedia content, which can improve the multimedia content. The accuracy of the display can avoid confusion in the display of multimedia content due to the inaccuracy of the terminal's own time.
图7为本公开提供的又一种多媒体内容展示控制方法的流程示意图,图7是在上述各实施例的基础上,针对未收到服务器发送的第一响应消息的情况下的处理方式,如图7所示,所述方法还包括:FIG. 7 is a schematic flowchart of another multimedia content display control method provided by the present disclosure. On the basis of the above embodiments, FIG. 7 is a processing method in the case of not receiving the first response message sent by the server, such as As shown in Figure 7, the method further includes:
S109:若在预设时间范围内,未接收到所述第一响应消息,则根据所述终端的启动时间和启动时长,确定终端的当前的实际时间。S109: If the first response message is not received within a preset time range, determine the current actual time of the terminal according to the start-up time and start-up duration of the terminal.
其中,预设时间范围可以根据终端和服务器之间UDP报文的往返时间确定,例如,预设时间范围大于一个往返时间小于2个往返时间。The preset time range may be determined according to the round-trip time of the UDP packet between the terminal and the server. For example, the preset time range is greater than one round-trip time and less than two round-trip times.
若在预设时间范围内,未接收到第一响应消息,可能是服务器没有接收到第一请求消息导致的,也可能是服务器发送了第一响应消息,但在服务器到终端的传输路径上出现问题导致终端没有接收到第一响应消息。If the first response message is not received within the preset time range, it may be caused by the server not receiving the first request message, or the server may have sent the first response message, but it appears on the transmission path from the server to the terminal. The problem caused the terminal not to receive the first response message.
在这种情况下,则根据终端的启动时间和启动时长,确定终端的当前的实际时间。In this case, the current actual time of the terminal is determined according to the start-up time and start-up duration of the terminal.
S111:在终端的当前的实际时间在所述目标多媒体内容的展示时间的范围内,确定展示所述目标多媒体内容。S111: Determine to display the target multimedia content when the current actual time of the terminal is within the range of the display time of the target multimedia content.
在终端的当前的实际时间在所述目标多媒体内容的展示时间的范围内,确定展示所述目标多媒体内容。在终端的当前的实际时间不在所述目标多媒体内容的展示时间的范围内,确定不展示所述目标多媒体内容。也就是,在这种情况,仅根据目标多媒体内容的展示时间的范围来确定是否展示目标多媒体内容。When the current actual time of the terminal is within the range of the display time of the target multimedia content, it is determined to display the target multimedia content. When the current actual time of the terminal is not within the range of the display time of the target multimedia content, it is determined not to display the target multimedia content. That is, in this case, whether to present the target multimedia content is determined only according to the range of the presentation time of the target multimedia content.
本实施例,通过若在预设时间范围内,未接收到所述第一响应消息,则根据所述终端的启动时间和启动时长,确定终端的当前的实际时间,在终端的当前的实际时间在所述目标多媒体内容的展示时间的范围内,确定展示所述目标多媒体内容,使得当终端在未收到服务器发送的第一响应消息的情况,依然可以对目标多媒体内容进行展示或者不展示的决策,保证应用程序的正常运行。In this embodiment, if the first response message is not received within the preset time range, the current actual time of the terminal is determined according to the start-up time and start-up duration of the terminal, and the current actual time of the terminal is Within the scope of the display time of the target multimedia content, it is determined to display the target multimedia content, so that when the terminal does not receive the first response message sent by the server, the target multimedia content can still be displayed or not displayed. decisions to ensure the normal operation of the application.
图8为本公开提供的又一种多媒体内容展示控制方法的流程示意图,图8所示实施例可以针对只需要根据当前时间确定是否展示多媒体内容的场景,如图8所示,该方法包括:FIG. 8 is a schematic flowchart of another multimedia content display control method provided by the present disclosure. The embodiment shown in FIG. 8 can be directed to a scenario where it is only necessary to determine whether to display multimedia content according to the current time. As shown in FIG. 8 , the method includes:
S801:确定当前的实际时间。S801: Determine the current actual time.
其中,确定当前的实际时间的方式包括但不限于如下可能的实现方式:Wherein, the ways of determining the current actual time include but are not limited to the following possible implementations:
其中,一种可能的实现方式为:Among them, one possible implementation is:
终端向服务器发送第三请求消息,所述第三请求消息用于请求服务器的时间,终端接收服务器返回的第三响应消息,第三响应消息中包含服务器的时间,确定服务器的时间为当前的实际时间。或者,终端确定服务器的时间加第三响应消息的传输时间为当前的实际时间。The terminal sends a third request message to the server, the third request message is used to request the time of the server, the terminal receives the third response message returned by the server, the third response message includes the time of the server, and determines that the time of the server is the current actual time. time. Or, the terminal determines that the time of the server plus the transmission time of the third response message is the current actual time.
另一种可能的实现方式为:Another possible implementation is:
终端根据终端的启动时间和启动时长,确定当前的实际时间。即启动时间加启动时长为当前的实际时间。The terminal determines the current actual time according to the startup time and startup duration of the terminal. That is, the startup time plus the startup duration is the current actual time.
可选的,还可以根据如下方式确定终端的启动时间:Optionally, the startup time of the terminal can also be determined according to the following methods:
终端向服务器发送第二请求消息,所述第二请求消息用于请求服务器的第一时间,终端接收所述服务器发送的第二响应消息,终端根据服务器的第一时间以及终端的启动时长,确定所述终端的启动时间。The terminal sends a second request message to the server, where the second request message is used to request the first time of the server, the terminal receives the second response message sent by the server, and the terminal determines according to the first time of the server and the startup time of the terminal The startup time of the terminal.
S802:确定当前的实际时间是否在目标多媒体内容的展示时间的范围内。若是,执行S803,若否,执行S804。S802: Determine whether the current actual time is within the range of the display time of the target multimedia content. If yes, execute S803, if not, execute S804.
S803:展示目标多媒体内容。S803: Display the target multimedia content.
S804:不展示目标多媒体内容。S804: Do not display the target multimedia content.
本实施例中与上述各实施例相同或者相似的步骤可以相互参考,此处不再一一赘述。Steps in this embodiment that are the same as or similar to those in the foregoing embodiments may be referred to each other, and will not be repeated here.
本实施例,通过确定当前的实际时间,确定当前的实际时间是否在目标多媒体内容的展示时间的范围内,若在目标多媒体内容的展示时间范围内则展示目标多媒体内容,若不在目标多媒体内容的展示时间范围内则不展示多媒体内容。可以提高多媒体内容展示的准确性,避免因终端本身时间的不准导致多媒体内容展示的错乱。In this embodiment, by determining the current actual time, it is determined whether the current actual time is within the display time range of the target multimedia content. If it is within the display time range of the target multimedia content, the target multimedia content is displayed. Multimedia content is not displayed during the display time frame. The accuracy of the multimedia content display can be improved, and the confusion of the multimedia content display caused by the inaccuracy of the terminal's own time can be avoided.
本公开的多媒体内容以广告为例,假设某广告为开屏广告,其展示的时间范围为早上7:00-9:00,也就是,在早上的7:00-9:00用户如果打开某应用程序,则展示该广告,但是有一些特殊的日子,全天都不能展示广告,例如,一些特殊的纪念日,因此,终端需要向服务器请求是否展示该广告,具体地的流程如图9所示,图9为本公开提供的一种应用场景的流程示意图:The multimedia content of the present disclosure takes advertisements as an example. Suppose an advertisement is a screen-opening advertisement, and its display time range is 7:00-9:00 in the morning, that is, if a user opens an advertisement from 7:00-9:00 in the morning application, then display the advertisement, but there are some special days, the advertisement cannot be displayed all day, for example, some special anniversary, therefore, the terminal needs to request the server whether to display the advertisement, the specific process is shown in Figure 9 9 is a schematic flowchart of an application scenario provided by the present disclosure:
S901:终端接收用户输入的应用程序的启动指令,终端向服务器发送第一请求消息,其中,第一请求消息用于请求服务器指示是否展示目标广告。S901: The terminal receives an application startup instruction input by the user, and the terminal sends a first request message to the server, where the first request message is used to request the server to indicate whether to display the target advertisement.
第一请求消息中包含第一参考参数和目标广告的标识,其中,第一参考参数为满足第一预设条件的随机数。The first request message includes a first reference parameter and an identifier of the target advertisement, where the first reference parameter is a random number that satisfies a first preset condition.
S902:服务器根据目标广告的展示状态和请求消息中的第一参考参数,生成第二参考参数。S902: The server generates a second reference parameter according to the display state of the target advertisement and the first reference parameter in the request message.
S903:服务器向终端发送第一响应消息。S903: The server sends a first response message to the terminal.
S904:终端根据第一参考参数和第二参考参数,确定目标广告的展示状态。S904: The terminal determines the display state of the target advertisement according to the first reference parameter and the second reference parameter.
S905:终端根据目标广告的展示状态控制应用程序展示目标广告。S905: The terminal controls the application to display the target advertisement according to the display state of the target advertisement.
本实施例中各步骤参见图1所示实施例的详细描述,此处不再一一赘述。For each step in this embodiment, reference is made to the detailed description of the embodiment shown in FIG. 1 , and details are not repeated here.
本实施例,通过终端接收用户输入的应用程序的启动指令,终端向服务器发送第一请求消息,在第一请求消息中携带第一参考参数,服务器根据第一参考参数和展示状态,生成第二参考参数,向服务器发送第一响应消息,在第一响应消息中携带第二参考参数,以使终端根据第一参考参数和第二参考参数获知目标广告的展示状态,根据目标广告的展示状态对目标广告进行展示,即基于第一参考参数和第二参考参数指示展示状态,提高了数据传输的安全性。因此,终端和服务器之间可以基于非可靠的传输协议进行通信,例如,基于UDP发送请求消息和响应消息,由于非可靠的传输协议握手次数少,从而,提高了确定目标广告的展示状态的效率,减少了用户的等待时间,提高了用户体验。In this embodiment, the terminal receives an application startup instruction input by the user, the terminal sends a first request message to the server, the first request message carries the first reference parameter, and the server generates the second reference parameter according to the first reference parameter and the display state. With reference to the parameters, send a first response message to the server, and carry the second reference parameter in the first response message, so that the terminal can know the display status of the target advertisement according to the first reference parameter and the second reference parameter, and according to the display status of the target advertisement The target advertisement is displayed, that is, the display state is indicated based on the first reference parameter and the second reference parameter, which improves the security of data transmission. Therefore, the terminal and the server can communicate based on an unreliable transmission protocol. For example, request messages and response messages are sent based on UDP. Since the unreliable transmission protocol has fewer handshakes, the efficiency of determining the display state of the target advertisement is improved. , reducing the user's waiting time and improving the user experience.
图10为本公开提供的一种多媒体内容展示控制装置的结构示意图,应用于安装有应用程序的终端,所述终端已预加载目标多媒体内容,所述装置包括:发送模块1001、接收模块1002和处理模块1003,其中,10 is a schematic structural diagram of a multimedia content display control device provided by the present disclosure, which is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content. The device includes: a sending module 1001, a receiving module 1002 and processing module 1003, wherein,
发送模块1001,用于向服务器发送第一请求消息,其中,所述第一请求消息中包括第一参考参数和目标多媒体内容的标识,所述第一请求消息用于请求所述服务器指示是否展 示所述目标多媒体内容;A sending module 1001, configured to send a first request message to a server, wherein the first request message includes a first reference parameter and an identifier of a target multimedia content, and the first request message is used to request the server to indicate whether to display the target multimedia content;
接收模块1002,用于接收所述服务器发送的第一响应消息,所述第一响应消息包括第二参考参数,其中,所述第二参考参数为所述服务器根据所述目标多媒体内容的展示状态和所述第一参考参数生成的;A receiving module 1002, configured to receive a first response message sent by the server, where the first response message includes a second reference parameter, where the second reference parameter is the display state of the target multimedia content by the server and the first reference parameter is generated;
处理模块1003,用于根据所述第一参考参数和所述第二参考参数,确定所述目标多媒体内容的展示状态;A processing module 1003, configured to determine the display state of the target multimedia content according to the first reference parameter and the second reference parameter;
所述处理模块1003还用于根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容。The processing module 1003 is further configured to control the application to display the target multimedia content according to the display state of the target multimedia content.
可选的,所述第一响应消息中还包括:服务器时间;Optionally, the first response message further includes: server time;
所述处理模块1003还用于确定所述服务器时间在所述目标多媒体内容的展示时间的范围内。The processing module 1003 is further configured to determine that the server time is within the range of the display time of the target multimedia content.
可选的,所述处理模块1003还用于根据所述终端的启动时间和启动时长,确定当前的实际时间;确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。Optionally, the processing module 1003 is further configured to determine the current actual time according to the startup time and startup duration of the terminal; and determine that the current actual time is within the range of the display time of the target multimedia content.
可选的,所述发送模块1001还用于向所述服务器发送第二请求消息,其中,所述第二请求消息用于请求服务器的第一时间;Optionally, the sending module 1001 is further configured to send a second request message to the server, where the second request message is used to request the first time of the server;
所述接收模块1002还用于接收所述服务器发送的第二响应消息,所述第二响应消息中包括所述服务器的第一时间;The receiving module 1002 is further configured to receive a second response message sent by the server, where the second response message includes the first time of the server;
所述处理模块1003还用于根据所述服务器的第一时间以及所述终端的启动时长,确定时间差;根据所述时间差和所述终端设备的启动时长,确定当前的实际时间;确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。The processing module 1003 is further configured to determine the time difference according to the first time of the server and the startup duration of the terminal; determine the current actual time according to the time difference and the startup duration of the terminal device; determine the current actual time; The actual time is within the range of the display time of the target multimedia content.
可选的,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;所述第二参考参数为N个字节的二进制数;Optionally, the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1; the second reference parameter is A binary number of N bytes;
所述处理模块1003具体用于根据所述N位十进制数确定所述N个字节中待相加的目标字节,将所述待相加的目标字节对应的值求和,获取和对应的十进制数,当所述十进制数的个位数大于第一预设阈值,所述展示状态为展示,当所述十进制数的个位数小于等于第一预设阈值,所述展示状态为不展示。The processing module 1003 is specifically configured to determine the target byte to be added in the N bytes according to the N-digit decimal number, sum the values corresponding to the target bytes to be added, and obtain the corresponding value of the sum. The decimal number, when the single digit of the decimal number is greater than the first preset threshold, the display state is display, when the single digit of the decimal number is less than or equal to the first preset threshold, the display state is not exhibit.
可选的,所述处理模块1003还用于若在预设时间范围内,未接收到所述第一响应消息,则根据所述终端的启动时间和启动时长,确定当前的实际时间;在所述当前的实际时间在所述目标多媒体内容的展示时间的范围内,确定展示所述目标多媒体内容。Optionally, the processing module 1003 is further configured to determine the current actual time according to the startup time and startup duration of the terminal if the first response message is not received within a preset time range; The current actual time is within the range of the display time of the target multimedia content, and it is determined to display the target multimedia content.
可选的,所述第一请求消息为用户数据报协议格式;Optionally, the first request message is in a user datagram protocol format;
相应地,所述第一响应消息为所述用户数据报协议格式。Correspondingly, the first response message is in the user datagram protocol format.
本实施例的装置对应的可用于执行上述各方法实施例的技术方案,其实现原理和技术 效果类似,此处不再赘述。The technical solutions corresponding to the apparatus in this embodiment can be used to execute the above method embodiments, and the implementation principles and technical effects thereof are similar, and are not repeated here.
图11为本公开提供的一种多媒体内容展示控制装置的结构示意图,应用于服务器,所述装置包括:接收模块1101、处理模块1102和发送模块1103,其中,11 is a schematic structural diagram of a multimedia content display control device provided by the present disclosure, applied to a server, the device includes: a receiving module 1101, a processing module 1102 and a sending module 1103, wherein,
接收模块1101,用于接收终端发送的第一请求消息,其中,所述第一请求消息中包含第一参考参数,所述第一请求消息用于请求所述服务器指示是否展示目标多媒体内容;A receiving module 1101, configured to receive a first request message sent by a terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
处理模块1102,用于根据目标多媒体内容的展示状态和所述第一参考参数生成第二参考参数;a processing module 1102, configured to generate a second reference parameter according to the display state of the target multimedia content and the first reference parameter;
发送模块1103,用于向所述终端发送第一响应消息,所述第一响应消息中包含第二参考参数。The sending module 1103 is configured to send a first response message to the terminal, where the first response message includes a second reference parameter.
可选的,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;Optionally, the first reference parameter is a random number that satisfies the first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1;
所述处理模块1102具体用于根据所述N位十进制数,确定待相加的目标字节;根据所述目标多媒体内容的展示状态和所述待相加的目标字节,确定所述目标字节的值,其中,所述目标字节的值满足第二预设条件,所述第二预设条件为:所述展示状态为展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数大于第一预设阈值;所述展示状态为不展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数小于等于第一预设阈值;根据所述待相加的目标字节的值,生成所述第二参考参数。The processing module 1102 is specifically configured to determine the target byte to be added according to the N-digit decimal number; determine the target word according to the display state of the target multimedia content and the target byte to be added section value, wherein the value of the target byte satisfies a second preset condition, the second preset condition is: the display state is display, sum the values of the target byte, and obtain the and the corresponding decimal number, the single digit of the decimal number is greater than the first preset threshold; the display state is not displayed, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained. The single digit of the decimal number is less than or equal to the first preset threshold; the second reference parameter is generated according to the value of the target byte to be added.
可选的,所述接收模块1101具体用于接收终端在应用程序启动时发送的第一请求消息;或者,接收所述终端在所述应用程序运行预设时长后发送的第一请求消息。Optionally, the receiving module 1101 is specifically configured to receive the first request message sent by the terminal when the application is started; or, receive the first request message sent by the terminal after the application runs for a preset duration.
本实施例的装置对应的可用于执行上述各方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The apparatus in this embodiment corresponds to the technical solutions that can be used to execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
本公开还提供一种终端,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现图1-图7任一实施例所述的方法的步骤。The present disclosure also provides a terminal, including: a processor, where the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the method described in any of the embodiments of FIG. 1 to FIG. 7 . step.
本公开还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现图1-图9任一实施例所述的方法的步骤。The present disclosure also provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method described in any one of the embodiments of FIG. 1 to FIG. 9 are implemented.
本公开还提供一种服务器,其特征在于,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现图1-图9任一实施例的方法的步骤。The present disclosure also provides a server, which is characterized in that it includes: a processor, where the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements any of the embodiments in FIGS. 1 to 9 . steps of the method.
本公开还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现图1-图7任一实施例所述的方法的步骤。The present disclosure also provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method described in any one of the embodiments of FIG. 1 to FIG. 7 are implemented.
本公开提供一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序 /指令被处理器执行时实现图1-图7任一实施例所述的方法的步骤。The present disclosure provides a computer program product, including a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in any of the embodiments of FIG. 1 to FIG. 7 are implemented.
本公开提供一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现图1-图7任一实施例所述的方法的步骤。The present disclosure provides a computer program product, including a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the steps of the method described in any of the embodiments of FIG. 1 to FIG. 7 are implemented.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as "first" and "second" etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is no such actual relationship or sequence between entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not to be limited to the embodiments described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (16)

  1. 一种多媒体内容展示控制方法,其特征在于,应用于安装有应用程序的终端,所述终端已预加载目标多媒体内容,所述方法,包括:A multimedia content display control method, characterized in that it is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content, and the method includes:
    向服务器发送第一请求消息,其中,所述第一请求消息中包括第一参考参数和目标多媒体内容的标识,所述第一请求消息用于请求所述服务器指示是否展示所述目标多媒体内容;sending a first request message to the server, wherein the first request message includes a first reference parameter and an identifier of the target multimedia content, and the first request message is used to request the server to indicate whether to display the target multimedia content;
    接收所述服务器发送的第一响应消息,所述第一响应消息包括第二参考参数,其中,所述第二参考参数为所述服务器根据所述目标多媒体内容的展示状态和所述第一参考参数生成的;Receive a first response message sent by the server, where the first response message includes a second reference parameter, where the second reference parameter is the display state of the target multimedia content by the server and the first reference generated by parameters;
    根据所述第一参考参数和所述第二参考参数,确定所述目标多媒体内容的展示状态;determining the presentation state of the target multimedia content according to the first reference parameter and the second reference parameter;
    根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容。The application is controlled to display the target multimedia content according to the display state of the target multimedia content.
  2. 根据权利要求1所述的方法,其特征在于,所述第一响应消息中还包括:服务器时间;The method according to claim 1, wherein the first response message further comprises: server time;
    根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容之前,还包括:Before controlling the application to display the target multimedia content according to the display state of the target multimedia content, the method further includes:
    确定所述服务器时间在所述目标多媒体内容的展示时间的范围内。It is determined that the server time is within the range of the presentation time of the target multimedia content.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容之前,还包括:The method according to claim 1, wherein before controlling the application to display the target multimedia content according to the display state of the target multimedia content, the method further comprises:
    根据所述终端的启动时间和启动时长,确定当前的实际时间;Determine the current actual time according to the startup time and startup duration of the terminal;
    确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。It is determined that the current actual time is within the range of the presentation time of the target multimedia content.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容之前之前,还包括:The method according to claim 1, wherein, before the application program displays the target multimedia content according to the display state of the target multimedia content, the method further comprises:
    向所述服务器发送第二请求消息,其中,所述第二请求消息用于请求服务器的第一时间;sending a second request message to the server, wherein the second request message is used to request the first time of the server;
    接收所述服务器发送的第二响应消息,所述第二响应消息中包括所述服务器的第一时间;receiving a second response message sent by the server, where the second response message includes the first time of the server;
    根据所述服务器的第一时间以及所述终端的启动时长,确定时间差;determining the time difference according to the first time of the server and the start-up duration of the terminal;
    根据所述时间差和所述终端设备的启动时长,确定当前的实际时间;Determine the current actual time according to the time difference and the start-up duration of the terminal device;
    确定所述当前的实际时间在所述目标多媒体内容的展示时间的范围内。It is determined that the current actual time is within the range of the presentation time of the target multimedia content.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;所述第二参考参数为N个字节的二进制数;The method according to any one of claims 1-4, wherein the first reference parameter is a random number that satisfies a first preset condition, the value of the random number is an N-digit decimal number, and the N is an integer greater than or equal to 1; the second reference parameter is a binary number of N bytes;
    所述根据所述第一参考参数和所述第二参考参数,确定所述目标多媒体内容的展示状 态,包括:The determining the display state of the target multimedia content according to the first reference parameter and the second reference parameter includes:
    根据所述N位十进制数确定所述N个字节中待相加的目标字节,将所述待相加的目标字节对应的值求和,获取和对应的十进制数,当所述十进制数的个位数大于第一预设阈值,所述展示状态为展示,当所述十进制数的个位数小于等于第一预设阈值,所述展示状态为不展示。Determine the target byte to be added among the N bytes according to the N-digit decimal number, sum the values corresponding to the target bytes to be added, and obtain the decimal number corresponding to the sum. If the single digit of the number is greater than the first preset threshold, the display state is display, and when the single digit of the decimal number is less than or equal to the first preset threshold, the display state is not displayed.
  6. 根据权利要求3或4所述的方法,其特征在于,还包括:The method according to claim 3 or 4, further comprising:
    若在预设时间范围内,未接收到所述第一响应消息,则根据所述终端的启动时间和启动时长,确定当前的实际时间;If the first response message is not received within the preset time range, the current actual time is determined according to the startup time and startup duration of the terminal;
    在所述当前的实际时间在所述目标多媒体内容的展示时间的范围内,确定展示所述目标多媒体内容。When the current actual time is within the range of the display time of the target multimedia content, it is determined to display the target multimedia content.
  7. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一请求消息为用户数据报协议格式;The method according to any one of claims 1-4, wherein the first request message is in a user datagram protocol format;
    相应地,所述第一响应消息为所述用户数据报协议格式。Correspondingly, the first response message is in the user datagram protocol format.
  8. 一种多媒体内容展示控制方法,其特征在于,应用于服务器,所述方法,包括:A multimedia content display control method, characterized in that it is applied to a server, and the method includes:
    接收终端发送的第一请求消息,其中,所述第一请求消息中包含第一参考参数,所述第一请求消息用于请求所述服务器指示是否展示目标多媒体内容;receiving a first request message sent by the terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
    根据目标多媒体内容的展示状态和所述第一参考参数生成第二参考参数;generating a second reference parameter according to the presentation state of the target multimedia content and the first reference parameter;
    向所述终端发送第一响应消息,所述第一响应消息中包含第二参考参数。Send a first response message to the terminal, where the first response message includes a second reference parameter.
  9. 根据权利要求8所述的方法,其特征在于,所述第一参考参数为满足第一预设条件的随机数,所述随机数的值为N位十进制数,所述N为大于等于1的整数;The method according to claim 8, wherein the first reference parameter is a random number that satisfies a first preset condition, the value of the random number is an N-digit decimal number, and the N is greater than or equal to 1 integer;
    所述根据目标多媒体内容的展示状态和所述第一参考参数生成第二参考参数,包括:The generating the second reference parameter according to the presentation state of the target multimedia content and the first reference parameter includes:
    根据所述N位十进制数,确定待相加的目标字节;Determine the target byte to be added according to the N-digit decimal number;
    根据所述目标多媒体内容的展示状态和所述待相加的目标字节,确定所述目标字节的值,其中,所述目标字节的值满足第二预设条件,所述第二预设条件为:所述展示状态为展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数大于第一预设阈值;所述展示状态为不展示,对所述目标字节的值求和,获取所述和对应的十进制数,所述十进制数的个位数小于等于第一预设阈值;The value of the target byte is determined according to the presentation state of the target multimedia content and the target byte to be added, wherein the value of the target byte satisfies a second preset condition, and the second preset value Suppose the condition is: the display state is display, sum the values of the target bytes to obtain the decimal number corresponding to the sum, and the single digit of the decimal number is greater than the first preset threshold; the display state In order not to show, the value of the target byte is summed, and the decimal number corresponding to the sum is obtained, and the single digit of the decimal number is less than or equal to the first preset threshold;
    根据所述待相加的目标字节的值,生成所述第二参考参数。The second reference parameter is generated according to the value of the target byte to be added.
  10. 根据权利要求8所述的方法,其特征在于,所述接收终端发送的第一请求消息,包括:The method according to claim 8, wherein the receiving the first request message sent by the terminal comprises:
    接收终端在应用程序启动时发送的第一请求消息;或者,receiving the first request message sent by the terminal when the application is started; or,
    接收所述终端在所述应用程序运行预设时长后发送的第一请求消息。Receive a first request message sent by the terminal after the application runs for a preset duration.
  11. 一种多媒体内容展示控制装置,其特征在于,应用于安装有应用程序的终端,所述终端已预加载目标多媒体内容,所述装置包括:A multimedia content display control device, characterized in that it is applied to a terminal installed with an application program, and the terminal has preloaded target multimedia content, and the device includes:
    发送模块,用于向服务器发送第一请求消息,其中,所述第一请求消息中包括第一参考参数和目标多媒体内容的标识,所述第一请求消息用于请求所述服务器指示是否展示所述目标多媒体内容;A sending module, configured to send a first request message to the server, wherein the first request message includes a first reference parameter and an identifier of the target multimedia content, and the first request message is used to request the server to indicate whether to display the Describe the target multimedia content;
    接收模块,用于接收所述服务器发送的第一响应消息,所述第一响应消息包括第二参考参数,其中,所述第二参考参数为所述服务器根据所述目标多媒体内容的展示状态和所述第一参考参数生成的;A receiving module, configured to receive a first response message sent by the server, where the first response message includes a second reference parameter, wherein the second reference parameter is the display state and generated by the first reference parameter;
    处理模块,用于根据所述第一参考参数和所述第二参考参数,确定所述目标多媒体内容的展示状态;a processing module, configured to determine the display state of the target multimedia content according to the first reference parameter and the second reference parameter;
    所述处理模块还用于根据所述目标多媒体内容的展示状态控制所述应用程序展示所述目标多媒体内容。The processing module is further configured to control the application to display the target multimedia content according to the display state of the target multimedia content.
  12. 一种多媒体内容展示控制装置,其特征在于,应用于服务器,所述装置包括:A multimedia content display control device, characterized in that, applied to a server, the device comprising:
    接收模块,用于接收终端发送的第一请求消息,其中,所述第一请求消息中包含第一参考参数,所述第一请求消息用于请求所述服务器指示是否展示目标多媒体内容;a receiving module, configured to receive a first request message sent by a terminal, wherein the first request message includes a first reference parameter, and the first request message is used to request the server to indicate whether to display the target multimedia content;
    处理模块,用于根据目标多媒体内容的展示状态和所述第一参考参数生成第二参考参数;a processing module, configured to generate a second reference parameter according to the display state of the target multimedia content and the first reference parameter;
    发送模块,用于向所述终端发送第一响应消息,所述第一响应消息中包含第二参考参数。A sending module, configured to send a first response message to the terminal, where the first response message includes a second reference parameter.
  13. 一种终端,其特征在于,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现权利要求1-7任一项所述的方法的步骤。A terminal, characterized by comprising: a processor, the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the steps of the method according to any one of claims 1-7 .
  14. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-7任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1-7 are implemented.
  15. 一种服务器,其特征在于,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现权利要求8-10任一项所述的方法的步骤。A server, characterized by comprising: a processor, the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, implements the steps of the method according to any one of claims 8-10 .
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求8-10任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 8-10 are implemented.
PCT/CN2022/072368 2021-02-09 2022-01-17 Multimedia content presentation control method and apparatus, and terminal, server and medium WO2022170920A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110187829.7A CN112866411B (en) 2021-02-09 2021-02-09 Multimedia content display control method, device, terminal, server and medium
CN202110187829.7 2021-02-09

Publications (1)

Publication Number Publication Date
WO2022170920A1 true WO2022170920A1 (en) 2022-08-18

Family

ID=75988148

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072368 WO2022170920A1 (en) 2021-02-09 2022-01-17 Multimedia content presentation control method and apparatus, and terminal, server and medium

Country Status (2)

Country Link
CN (1) CN112866411B (en)
WO (1) WO2022170920A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866411B (en) * 2021-02-09 2022-11-11 北京字节跳动网络技术有限公司 Multimedia content display control method, device, terminal, server and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883625A (en) * 2015-06-12 2015-09-02 腾讯科技(北京)有限公司 Information display method, terminal device, server, and system
CN105117186A (en) * 2015-08-13 2015-12-02 小米科技有限责任公司 Multimedia information displaying method and apparatus
US20170270561A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Method, terminal and server for monitoring advertisement exhibition
CN109471674A (en) * 2018-10-25 2019-03-15 上海连尚网络科技有限公司 It spreads its tail information displaying method, computer equipment and storage medium using starting
CN109816452A (en) * 2019-01-28 2019-05-28 腾讯科技(深圳)有限公司 Advertisement processing method, device, terminal, server and storage medium
CN112866411A (en) * 2021-02-09 2021-05-28 北京字节跳动网络技术有限公司 Multimedia content display control method, device, terminal, server and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095869B (en) * 2016-06-03 2020-11-06 腾讯科技(深圳)有限公司 Advertisement information processing method, user equipment, background server and system
CN109495427B (en) * 2017-09-12 2021-05-07 腾讯科技(深圳)有限公司 Multimedia data display method and device, storage medium and computer equipment
CN107872715A (en) * 2017-11-09 2018-04-03 北京奇艺世纪科技有限公司 A kind of method and device for showing displaying information
CN110958470A (en) * 2019-12-09 2020-04-03 北京字节跳动网络技术有限公司 Multimedia content processing method, device, medium and electronic equipment
CN112203111B (en) * 2020-09-29 2023-03-14 北京达佳互联信息技术有限公司 Multimedia resource preloading method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883625A (en) * 2015-06-12 2015-09-02 腾讯科技(北京)有限公司 Information display method, terminal device, server, and system
CN105117186A (en) * 2015-08-13 2015-12-02 小米科技有限责任公司 Multimedia information displaying method and apparatus
US20170270561A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Method, terminal and server for monitoring advertisement exhibition
CN109471674A (en) * 2018-10-25 2019-03-15 上海连尚网络科技有限公司 It spreads its tail information displaying method, computer equipment and storage medium using starting
CN109816452A (en) * 2019-01-28 2019-05-28 腾讯科技(深圳)有限公司 Advertisement processing method, device, terminal, server and storage medium
CN112866411A (en) * 2021-02-09 2021-05-28 北京字节跳动网络技术有限公司 Multimedia content display control method, device, terminal, server and medium

Also Published As

Publication number Publication date
CN112866411A (en) 2021-05-28
CN112866411B (en) 2022-11-11

Similar Documents

Publication Publication Date Title
KR102491500B1 (en) Systems and methods for processing content item actions based on anti-fraud device identifiers
US11375044B2 (en) Custom digital components
US20180013700A1 (en) System for Inserting and Responding to Brand-Related Data in Communicated Messages
US20110161181A1 (en) Management of advertisements
CN109951546B (en) Transaction request processing method, device, equipment and medium based on intelligent contract
US9432810B2 (en) Opt-in and time limited bi-directional real-time location sharing
WO2017092277A1 (en) Method, device, and computer apparatus for sharing video watching permission
WO2022170920A1 (en) Multimedia content presentation control method and apparatus, and terminal, server and medium
WO2014176896A1 (en) System and method for updating information in an instant messaging application
CN111431724A (en) Data transmission method and device and electronic equipment
CN110955905A (en) Block chain based asset transfer method, device, equipment and readable storage medium
WO2015158262A1 (en) Method for sending and generating card/coupon, public account server, and mobile terminal
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN111932317A (en) Block chain based advertisement playing method, device, medium and electronic equipment
EP4246298A1 (en) Information exchange method and apparatus and device
CN110083786A (en) A kind of link verification method and device
US10178512B2 (en) Information broadcast
JP2023546131A (en) Client-side device bloom filter mapping
KR20190136499A (en) Apparatus and method for messaging service
CN115118697B (en) Method and device for activating resource access rights
US20240095364A1 (en) Privacy-preserving and secure application install attribution
US20230141428A1 (en) Secure network communications that limit information access
CN110781523B (en) Method and apparatus for processing information
CN117424873A (en) Message reminding method, message reminding device and computer storage medium
CN117193847A (en) Micro-terminal generation method, micro-terminal generation device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22752082

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.11.2023)