CN117729364A - Red envelope display method and device, electronic equipment and storage medium - Google Patents

Red envelope display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117729364A
CN117729364A CN202311675514.2A CN202311675514A CN117729364A CN 117729364 A CN117729364 A CN 117729364A CN 202311675514 A CN202311675514 A CN 202311675514A CN 117729364 A CN117729364 A CN 117729364A
Authority
CN
China
Prior art keywords
video
red
control
playing
red packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311675514.2A
Other languages
Chinese (zh)
Inventor
陈天宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN202311675514.2A priority Critical patent/CN117729364A/en
Publication of CN117729364A publication Critical patent/CN117729364A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The application relates to a red envelope display method, a red envelope display device, electronic equipment and a storage medium, wherein the method comprises the following steps: on a target page of a video application program, responding to a video playing instruction, and playing the video through a player; triggering a red packet display instruction corresponding to the target page under the condition that red packet display conditions are met in the process of playing the video; responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program; and displaying the red package control on a corresponding position of the player, and controlling the red package control to start timing. Therefore, the red package control is decoupled from the pages supporting video playing of the specific video application program, and a plurality of pages supporting video playing share the red package control, so that the red package control can be displayed at the corresponding position of any player supporting the pages supporting video playing, the workload can be reduced, and the requirement of rapid business development is met.

Description

Red envelope display method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of internet, in particular to a red packet display method, a red packet display device, electronic equipment and a storage medium.
Background
At present, in order to attract users, each large video manufacturer disputes to put forward a function of obtaining benefits by watching videos, namely, when the users watch videos on a video playing page of a video APP through a player, a red packet is displayed at a certain position of the player, and when the red packet is timed to a certain time, the users can obtain a certain number of gold coins.
With the requirement of business development, for any video playing page of the video APP (for example, the first page of the video APP), not limited to the video playing page, when the video is watched on the page through the player, a certain position of the corresponding player needs to support displaying the red packet, and the user can obtain a certain number of gold coins when the red packet is timed to a certain time.
Because the logic for realizing the red packet is embedded in the video playing page of the video APP, the logic is only supported to be used in the video playing page, and for any other page supporting video playing of the video APP, if the red packet is wanted to be displayed at a certain position of a player of the page, a set of logic for realizing the red packet is required to be rewritten and embedded in the page, so that the workload is huge, and the requirement of rapid business development cannot be met.
Disclosure of Invention
In order to solve the technical problems that the logic for realizing the red packet is embedded in the video playing page of the video APP, so that the logic is only supported to be used in the video playing page, and if any other page supporting video playing of the video APP is required to display the red packet at a certain position of a player of the page, a set of logic for realizing the red packet is required to be rewritten and embedded in the page, so that the workload is huge, and the requirement of rapid business development cannot be met, the application provides a red packet display method, a device, electronic equipment and a storage medium. The specific technical scheme is as follows:
in a first aspect, the present application provides a method for displaying a red packet, the method including:
on a target page of a video application program, responding to a video playing instruction, and playing the video through a player;
triggering a red packet display instruction corresponding to the target page under the condition that red packet display conditions are met in the process of playing the video;
responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program;
and displaying the red package control on a corresponding position of the player, and controlling the red package control to start timing.
In an optional embodiment, the obtaining, in response to the red packet display instruction, a red packet control for sharing a plurality of pages supporting video playing of the video application program includes:
responding to the red packet display instruction, and acquiring a service type carried in the red packet display instruction;
searching red package control adjustment information corresponding to the service type, and acquiring red package controls shared by a plurality of pages supporting video playing of the video application program;
according to the red packet control adjustment information, adjusting the red packet control to obtain a target red packet control;
the step of displaying the red package control on the corresponding position of the player and controlling the red package control to start timing comprises the following steps:
and displaying the target red package control on a corresponding position of the player, and controlling the target red package control to start timing.
In an optional embodiment, after the displaying the red packet control on the corresponding position of the player and controlling the red packet control to start timing, the method further includes:
acquiring the playing state of the video, and responding to the red packet display instruction to acquire service parameters carried in the red packet display instruction;
Determining a processing mode of red packet control timing corresponding to the playing state according to the service parameters, wherein the processing mode comprises a first processing mode or a second processing mode;
the first processing mode represents that the red packet control continues to time, and the second processing mode represents that the red packet control pauses to time;
and controlling the red package control to continue timing according to the first processing mode, or controlling the red package control to pause timing according to the second processing mode.
In an alternative embodiment, a plurality of videos are displayed on the target page; the responding to the video playing instruction plays the video through the player, and the method comprises the following steps:
responding to a preset operation aiming at the video in the target page, determining the position of the video in the target page, and triggering a video playing instruction;
and responding to the video playing instruction, displaying a player at the position of the target page, and playing the video through the player.
In an alternative embodiment, the method further comprises:
responding to a preset operation for other videos in the target page, and triggering a video pause instruction;
and responding to the video pause instruction, pausing to play the video, controlling the pause timing of the red packet control, and removing the red packet control from the corresponding position of the player.
In an optional embodiment, after the responding to the preset operation for the other videos in the target page, the method further includes:
determining other positions of the other videos on the target page, and triggering a video playing instruction;
responding to a video playing instruction, displaying the player at other positions of the target page, and playing the other videos through the player;
and displaying the red package control on a corresponding position of the player, and controlling the red package control to continue timing.
In an alternative embodiment, after responding to the preset operation for other videos in the target page, the method further includes:
determining other positions of the other videos on the target page, and triggering a video playing instruction;
responding to a video playing instruction, displaying the player at other positions of the target page, and playing the other videos through the player;
triggering a red packet display instruction corresponding to the target page under the condition that red packet display conditions are met in the process of playing the other videos;
responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program;
And displaying the red package control on a corresponding position of the player, and controlling the red package control to continue timing.
In a second aspect, the present application provides a red envelope display apparatus, the apparatus comprising:
the video playing module is used for responding to the video playing instruction on the target page of the video application program and playing the video through the player;
the instruction triggering module is used for triggering the red packet display instruction corresponding to the target page under the condition that the red packet display condition is met in the process of playing the video;
the control acquisition module is used for responding to the red packet display instruction and acquiring red packet controls shared by a plurality of pages supporting video playing of the video application program;
and the control display module is used for displaying the red package control on the corresponding position of the player and controlling the red package control to start timing.
In a third aspect, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the red packet display method in any one of the first aspects when executing the program stored in the memory.
In a fourth aspect, there is also provided a storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of displaying red packets according to any one of the first aspects above.
In a fifth aspect, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the above-described methods of displaying red packets.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, on the target page of the video application program, the video is played through the player in response to the video playing instruction, the red packet displaying instruction corresponding to the target page is triggered under the condition that the red packet displaying condition is met in the video playing process, the red packet displaying instruction is responded, a plurality of red packet controls supporting page sharing of the video playing of the video application program are obtained, the red packet controls are displayed at the corresponding positions of the player, and timing of the red packet controls is controlled.
The red package control is displayed at the corresponding position of the player through acquiring a plurality of red package controls supporting the video playing of the video application program, and the red package controls are controlled to start timing, so that the red package controls are decoupled from the specific video application program supporting the video playing of the page, and the plurality of pages supporting the video playing share the red package controls, thereby the red package controls can be displayed at the corresponding position of any player supporting the video playing of the page, the workload can be reduced, and the requirement of rapid business development is met.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a schematic diagram of comparison before and after optimization of a red packet control according to an embodiment of the present application;
fig. 2 is a schematic implementation flow chart of a red packet display method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of another embodiment of a red packet display method according to the present disclosure;
Fig. 4 is a schematic flow chart of an implementation of another red packet display method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a red packet display device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
The following disclosure provides many different embodiments, or examples, for implementing different structures of the application. In order to simplify the disclosure of the present application, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present application. Furthermore, the present application may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
In this embodiment of the present application, for any page of the video APP that plays video, when the video is watched on the page by the player, a certain position of the corresponding player needs to support displaying the red packet, and the user can obtain a certain number of gold coins when the red packet is timed to a certain time. For this reason, a red package control needs to be embedded in the page, as shown in fig. 1, so that the workload is huge, and the requirement of rapid business development cannot be met.
Therefore, the red package control can be decoupled from the specific video application program page supporting video playing, and a plurality of pages supporting video playing share the red package control, as shown in fig. 1, so that the red package control can be displayed at the corresponding position of any player supporting the video playing page of the video APP, the workload can be reduced, and the requirement of rapid business development is met.
Based on the above-mentioned inventive concept, as shown in fig. 2, a schematic implementation flow chart of a red packet display method provided in an embodiment of the present application is provided, where the method is applied to a client, and specifically may include the following steps:
s201, on a target page of the video application program, responding to a video playing instruction, and playing the video through a player.
In the embodiment of the application, for the target page of the video application program, the number of videos displayed on the target service is different due to different page types. For example, a first page of a video application, which may present multiple videos, typically presents one video for a video play page of a video APP.
Based on the above, on a target page of the video application program, a user can perform a preset operation (such as a clicking operation) on the video displayed on the target page, so that in response to the preset operation, a video playing instruction can be triggered, and thus, in response to the video playing instruction, the video can be played through the player. Wherein the position of the player coincides with the position of the video in the target page.
It should be noted that, for a target page of a video application, it refers to any page of the video application that supports video playback. For example, the target page of the video application may be the top page of the video application, or may be a video play page of the video application (i.e., a player page, a particular page of the video viewed by the user).
S202, triggering a red packet display instruction corresponding to a target page under the condition that the red packet display condition is met in the process of playing the video.
In the embodiment of the application, the video is played through the player, and whether the red packet display condition is met is detected in the process of playing the video. And triggering a red packet display instruction corresponding to the target page of the video application program under the condition that the red packet display condition is met.
For example, a video is played through a player at the top page of the video application, and during the process of playing the video, it is detected whether the red package display condition is satisfied. And triggering a red packet display instruction corresponding to the first page of the video application program under the condition that the red packet display condition is met.
It should be noted that, for different pages of the video application program, the corresponding red packet display instructions are slightly different, which means that parameters thereof are different. For example, a red package display instruction corresponding to a top page of a video application is different from a red package display instruction corresponding to a video play page of the video application.
In addition, for example, the condition of displaying the red packet may be that the video playing duration reaches a certain duration, or the user logged in the video application program is a member, etc., and of course, other conditions of displaying the red packet may be set according to the service requirement, which is not limited in the embodiment of the present application.
And S203, responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program.
In this embodiment of the present application, after triggering a red packet display instruction corresponding to a target page, a red packet control shared by multiple pages supporting video playing of a video application program may be obtained in response to the red packet display instruction, where the pages include the target page.
Here, the red package control means a red package UI (User Interface) through which the red package can be displayed. Wherein embodiments of the present application are not limited in this regard as to the specific form of the red envelope control.
S204, displaying the red package control on the corresponding position of the player, and controlling the red package control to start timing.
In the embodiment of the application, for the red package control, the red package control can be displayed at a corresponding position of the player, and the red package control is controlled to start timing. The red package control is timed to a certain time to give the user benefits such as gold coins.
For example, for a red envelope control, the red envelope control may be displayed in the upper right corner of the player and control the red envelope control to begin timing. Wherein the red envelope control counts to, for example, 15 seconds, and can give the user a return such as gold coins, and then the red envelope control restarts the count and so on.
Through the description of the technical scheme provided by the embodiment of the application, on the target page of the video application program, the video is played through the player in response to the video playing instruction, in the process of playing the video, under the condition that the red package display condition is met, the red package display instruction corresponding to the target page is triggered, the red package control shared by a plurality of pages supporting video playing of the video application program is obtained in response to the red package display instruction, the red package control is displayed at the corresponding position of the player, and the red package control is controlled to start timing.
The red package control is displayed at the corresponding position of the player through acquiring a plurality of red package controls supporting the video playing of the video application program, and the red package controls are controlled to start timing, so that the red package controls are decoupled from the specific video application program supporting the video playing of the page, and the plurality of pages supporting the video playing share the red package controls, thereby the red package controls can be displayed at the corresponding position of any player supporting the video playing of the page, the workload can be reduced, and the requirement of rapid business development is met.
In addition, because of the difference of the page types of the multiple pages supporting video playing of the video application program, the corresponding red package control also needs to be adjusted along with the pages. For example, for a first page of a video application, the first page may typically display a plurality of videos, each video occupies a smaller page area, a corresponding player occupies a smaller page area, and a red packet may be displayed at a corresponding position on the player, so that the red packet may be small dots, and therefore, the red packet control may be small along with the first page, while for a video playing page of the video application, typically display a video, the video occupies a larger page area, a corresponding player occupies a larger page area, and the red packet may be displayed at a corresponding position on the player, so that the red packet control may be large dots, and therefore, the red packet control may be large along with the video playing page.
Based on this, as shown in fig. 3, a flowchart of another implementation of a red packet display method according to an embodiment of the present application is shown, where the method is applied to a client, and specifically may include the following steps:
s301, on a target page of the video application program, responding to a video playing instruction, and playing the video through a player.
In this embodiment of the present application, the step is similar to the step S201 described above, and the embodiment of the present application is not described here again.
S302, triggering a red packet display instruction corresponding to a target page under the condition that the red packet display condition is met in the process of playing the video.
In this embodiment of the present application, the step is similar to the step S202 described above, and the embodiment of the present application is not described here again.
S303, responding to the red packet display instruction, and acquiring the service type carried in the red packet display instruction.
In this embodiment of the present application, the instruction for displaying the red packet corresponding to the target page carries a newly added parameter (service type), where the parameter may determine the type of the red packet, and adapt the red packet.
Based on the service type, the service type carried in the red packet display instruction is acquired in response to the red packet display instruction. The service types carried in the red packet display instruction are related to the target page, meaning that the page types are different, and the service types carried in the red packet display instruction are different.
For example, if the target page is the first page of the video application program, the service type 1 carried in the red packet display instruction is acquired in response to the red packet display instruction, and if the target page is the video playing page of the video application program, the service type 2 carried in the red packet display instruction is acquired in response to the red packet display instruction, where the service type 1 is different from the service type 2.
S304, searching red package control adjustment information corresponding to the service type, and acquiring red package controls shared by a plurality of pages supporting video playing of the video application program.
In the embodiment of the application, the mapping relation between the service type and the red packet control adjustment information is preset, so that the red packet control adjustment information corresponding to the service type can be searched according to the mapping relation, and a plurality of red packet controls supporting page sharing of video playing of the video application program can be obtained.
For example, a mapping relationship between the service type and the red packet control adjustment information is preset, as shown in the following table 1, so that the red packet control adjustment information corresponding to the service type 1 (the red packet control is reduced by 50%) can be searched according to the mapping relationship, and a plurality of red packet controls supporting page sharing of video playing of the video application program can be obtained.
Service type Red envelope control adjustment information
Service type 1 The red envelope control is reduced by 50 percent
Service type 2 The red envelope control is enlarged by 50 percent
…… ……
TABLE 1
It should be noted that, for example, the red-package control adjustment information refers to adjustment of the size of the red-package control, or adjustment of an element of the red-package control (for example, deleting or adding a certain element), or adjustment of a color of the red-package control, which is not limited in the embodiment of the present application.
S305, according to the red package control adjustment information, adjusting the red package control to obtain a target red package control.
In the embodiment of the present application, for the red packet control adjustment information, the red packet control may be adjusted according to the red packet control adjustment information, so as to obtain a target red packet control, which means that the red packet control may be adjusted according to different service types.
For example, assuming that the red-envelope control adjustment information is 50% smaller than the red-envelope control, the red-envelope control can be 50% smaller according to the red-envelope control adjustment information, and the target red-envelope control after the contraction is obtained.
S306, displaying the target red package control on a corresponding position of the player, and controlling the target red package control to start timing.
In the embodiment of the application, for the target red-envelope control, the target red-envelope control can be displayed at a corresponding position of the player, and the target red-envelope control is controlled to start timing. The target red package control is timed to a certain time, and benefits such as gold coins can be issued to the user.
For example, for a target red-envelope control, the target red-envelope control may be displayed in the upper right corner of the player and controlled to begin timing. Wherein the target red envelope control counts to 15 seconds, for example, and can give the user benefits such as gold coins, and then the target red envelope control restarts counting and so forth.
The method comprises the steps of obtaining a plurality of red package controls supporting video playing of a video application program, adjusting the red package controls according to service types to obtain target red package controls, displaying the target red package controls on corresponding positions of a player, controlling the target red package controls to start timing, decoupling the red package controls from the specific video application program supporting video playing pages, and sharing the red package controls by the plurality of pages supporting video playing, so that the red package controls can be displayed on the corresponding positions of any player supporting video playing pages, workload can be reduced, and the requirement of rapid service development is met. And the red package control can be adjusted according to the service type, so that customization of the red package control is supported.
In addition, in the process of playing the video, the playing state of the video is changed, whether the playing state of the video affects the timing of the (target) red packet control or not needs to be determined, namely, whether the timing of the (target) red packet control processes the change of certain playing states or not is required to be determined, based on the change, the playing state of the video can be obtained, service parameters carried in the red packet display instruction can be obtained in response to the red packet display instruction, and according to the service parameters, the processing mode of the timing of the (target) red packet control corresponding to the playing state is determined, wherein the processing mode comprises a first processing mode or a second processing mode, the first processing mode represents the timing of the (target) red packet control, the second processing mode represents the timing of the (target) red packet control, and the timing of the (target) red packet control is controlled according to the first processing mode, or the timing of the (target) red packet control is controlled according to the second processing mode.
For example, a playing state (loading state) of the video is obtained, a service parameter carried in the red packet display instruction is obtained in response to the red packet display instruction, a second processing mode of timing of the (target) red packet control corresponding to the playing state is determined according to the service parameter, the second processing mode characterizes the timing of the (target) red packet control in a pause mode, and the timing of the (target) red packet control in the pause mode is controlled according to the second processing mode.
For example, a playing state (rebroadcast) of the video is obtained, a service parameter carried in the red packet display instruction is obtained in response to the red packet display instruction, a first processing mode for timing of a (target) red packet control corresponding to the playing state is determined according to the service parameter, the first processing mode characterizes the (target) red packet control to continue timing, and at the moment, the (target) red packet control is controlled to continue timing according to the first processing mode.
It should be noted that, for the playing state of the video, it may include an on-stream state, a pause state, a replay state, a loadind state, etc., and the processing manner of the (target) red packet control timing corresponding to each state may be set according to the actual needs, which is not limited in the embodiment of the present application.
In addition, in the embodiment of the application, for the target page of the video application program, a plurality of videos, for example, a first page of the video application program, a plurality of videos, a user can switch back and forth between the videos to play, and with the playing and pausing of the videos, the red package control can start timing and pause timing at any time.
Based on this, as shown in fig. 4, a flowchart of another implementation of a red packet display method provided in an embodiment of the present application is shown, where the method is applied to a client, and specifically may include the following steps:
s401, on a target page of a video application program, determining the position of a video on the target page in response to a preset operation for the video in the target page, and triggering a video playing instruction.
In the embodiment of the application, a plurality of videos are displayed on a target page of a video application program, and a user can execute a preset operation (such as a clicking operation) on a certain video in the target page, so that the position of the video on the target page is determined in response to the preset operation on the video in the target page, and a video playing instruction is triggered.
For example, on the top page of the video application program, 3 videos are displayed in the manner of up, down, and the user can perform a click operation on the video 1 in the target page, so that the position of the video 1 in the target page is determined in response to the click operation on the video 1 in the target page, and a video playing instruction is triggered.
S402, responding to the video playing instruction, displaying a player at the position of the target page, and playing the video through the player.
In the embodiment of the application, for the position of the video on the target page, a player can be displayed at the position of the video on the target page in response to the video playing instruction, and the video can be played through the player.
For example, for a position (middle area) of the video 1 on the target page, a player may be displayed at the position of the video 1 on the target page in response to a video play instruction, and the video 1 may be played by the player.
S403, triggering a red packet display instruction corresponding to the target page under the condition that the red packet display condition is met in the process of playing the video.
In this embodiment of the present application, the step is similar to the step S202 described above, and the embodiment of the present application is not described here again.
S404, responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program.
In this embodiment of the present application, the step is similar to the step S203 described above, and the embodiment of the present application is not described here again.
And S405, displaying the red package control on a corresponding position of the player, and controlling the red package control to start timing.
In this embodiment of the present application, the step is similar to the step S203 described above, and the embodiment of the present application is not described here again.
S406, triggering a video pause instruction in response to a preset operation for other videos in the target page.
In the embodiment of the application, a plurality of videos are displayed on a target page of a video application program, and when a user does not want to watch a currently played video, the user can execute a preset operation (such as a clicking operation) on other videos in the target page, so that a video pause instruction can be triggered in response to the preset operation on other videos in the target page.
For example, on the top page of the video application, 3 videos are shown in the manner of the top, middle and bottom, when the user does not want to watch the currently played video 1, the user can perform a click operation on the video 2 in the target page, so that a video pause instruction can be triggered in response to the click operation on the video 2 in the target page.
In addition, a plurality of videos are displayed on a target page of the video application program, when a user does not want to watch the video which is currently played, the user can execute preset operation (such as clicking operation) on the video in the target page, so that a video pause instruction can be triggered in response to the preset operation on the video in the target page, play of the video is paused in response to the video pause instruction, pause timing of a red packet control is controlled, and the red packet control is removed from a corresponding position of the player.
S407, responding to the video pause instruction, pausing to play the video, controlling the pause timing of the red packet control, and removing the red packet control from the corresponding position of the player.
In the embodiment of the application, for the video pause instruction, the video can be paused in response to the video pause instruction, the pause timing of the red packet control is controlled, and correspondingly, the red packet control can be removed from the corresponding position of the player.
For example, in response to a click operation for video 2 in the target page, a video pause instruction is triggered, in response to the video pause instruction, video 1 is paused, and a red packet control pause timing is controlled, and accordingly the red packet control can be removed from a corresponding position of a player of video 1.
In addition, in the embodiment of the application, after the preset operation for other videos in the target page is responded, other videos at other positions of the target page can be determined, a video playing instruction is triggered, the player is displayed at the other positions of the target page in response to the video playing instruction, the other videos are played through the player, in the process of playing the other videos, under the condition that the red package display condition is met, the red package display instruction corresponding to the target page is triggered, a red package control which is shared by a plurality of pages supporting video playing of the video application program is obtained in response to the red package display instruction, the red package control is displayed at the corresponding position of the player, and the red package control is controlled to continue timing.
For example, in response to a click operation on the video 2 in the home page of the video application program, other positions of the video 2 in the home page can be determined, a video playing instruction is triggered, in response to the video playing instruction, a player is displayed at the other positions of the home page, the video 2 is played through the player, in the process of playing the video 2, under the condition that the red package display condition is met, a red package display instruction corresponding to the home page is triggered, in response to the red package display instruction, a red package control shared by a plurality of pages supporting video playing of the video application program is obtained, the red package control is displayed at the corresponding position of the player, and the red package control is controlled to continue timing.
It should be noted that, for a target page of a video application program, a plurality of videos may be displayed, a user may switch between the videos, play back and forth, with play and pause of one video, play of another video, display the same red package control on a corresponding position of the two video players, and timing of the red package control may be continued, that is, with play and pause of one video, the red package control may start timing and pause timing at any time, play of another video starts, and the red package control continues timing.
In addition, in the embodiment of the application, after responding to the preset operation for other videos in the target page, other videos at other positions of the target page can be determined, a video playing instruction is triggered, a player is displayed at other positions of the target page in response to the video playing instruction, other videos are played through the player, a red package control is displayed at the corresponding positions of the player, and the red package control is controlled to continue timing. Therefore, for a target page of the video application program, a plurality of videos can be displayed, a user can switch back and forth between the videos to play, and as one video is played and paused, the other video starts to play, a red package control displayed at the corresponding position of the player of one video can be moved to the corresponding position of the player of the other video to be displayed, and the red package control is controlled to continue timing.
Corresponding to the above method embodiment, the embodiment of the present application further provides a red packet display device, as shown in fig. 5, where the device may include: video play module 510, instruction trigger module 520, control acquisition module 530, control display module 540.
The video playing module 510 is configured to respond to a video playing instruction on a target page of the video application program, and play a video through a player;
The instruction triggering module 520 is configured to trigger a red packet display instruction corresponding to the target page when the red packet display condition is satisfied during the process of playing the video;
the control acquisition module 530 is configured to acquire, in response to the red packet display instruction, a red packet control shared by a plurality of pages supporting video playing of the video application program;
and the control display module 540 is used for displaying the red package control on the corresponding position of the player and controlling the red package control to start timing.
The embodiment of the present application also provides an electronic device, as shown in fig. 6, including a processor 61, a communication interface 62, a memory 63, and a communication bus 64, where the processor 61, the communication interface 62, and the memory 63 perform communication with each other through the communication bus 64,
a memory 63 for storing a computer program;
the processor 61 is configured to execute the program stored in the memory 63, and implement the following steps:
on a target page of a video application program, responding to a video playing instruction, and playing the video through a player; triggering a red packet display instruction corresponding to the target page under the condition that red packet display conditions are met in the process of playing the video; responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program; and displaying the red package control on a corresponding position of the player, and controlling the red package control to start timing.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, a storage medium is provided, in which instructions are stored, which when run on a computer, cause the computer to perform the method for displaying red packets according to any of the above embodiments.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the method of red envelope display of any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage media may be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method of displaying a red envelope, the method comprising:
on a target page of a video application program, responding to a video playing instruction, and playing the video through a player;
triggering a red packet display instruction corresponding to the target page under the condition that red packet display conditions are met in the process of playing the video;
responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program;
and displaying the red package control on a corresponding position of the player, and controlling the red package control to start timing.
2. The method of claim 1, wherein the obtaining, in response to the red pack display instruction, a red pack control for sharing a plurality of pages of the video application program that support video playback comprises:
responding to the red packet display instruction, and acquiring a service type carried in the red packet display instruction;
Searching red package control adjustment information corresponding to the service type, and acquiring red package controls shared by a plurality of pages supporting video playing of the video application program;
according to the red packet control adjustment information, adjusting the red packet control to obtain a target red packet control;
the step of displaying the red package control on the corresponding position of the player and controlling the red package control to start timing comprises the following steps:
and displaying the target red package control on a corresponding position of the player, and controlling the target red package control to start timing.
3. The method of claim 1, wherein after displaying the red pack control on the corresponding position of the player and controlling the red pack control to start timing, the method further comprises:
acquiring the playing state of the video, and responding to the red packet display instruction to acquire service parameters carried in the red packet display instruction;
determining a processing mode of red packet control timing corresponding to the playing state according to the service parameters, wherein the processing mode comprises a first processing mode or a second processing mode;
the first processing mode represents that the red packet control continues to time, and the second processing mode represents that the red packet control pauses to time;
And controlling the red package control to continue timing according to the first processing mode, or controlling the red package control to pause timing according to the second processing mode.
4. The method of claim 1, wherein a plurality of videos are displayed on the target page; the responding to the video playing instruction plays the video through the player, and the method comprises the following steps:
responding to a preset operation aiming at the video in the target page, determining the position of the video in the target page, and triggering a video playing instruction;
and responding to the video playing instruction, displaying a player at the position of the target page, and playing the video through the player.
5. The method according to claim 4, wherein the method further comprises:
responding to a preset operation for other videos in the target page, and triggering a video pause instruction;
and responding to the video pause instruction, pausing to play the video, controlling the pause timing of the red packet control, and removing the red packet control from the corresponding position of the player.
6. The method of claim 5, wherein after the responding to the preset operation for the other videos in the target page, the method further comprises:
Determining other positions of the other videos on the target page, and triggering a video playing instruction;
responding to a video playing instruction, displaying the player at other positions of the target page, and playing the other videos through the player;
and displaying the red package control on a corresponding position of the player, and controlling the red package control to continue timing.
7. The method of claim 5, wherein after responding to a preset operation for other videos in the target page, the method further comprises:
determining other positions of the other videos on the target page, and triggering a video playing instruction;
responding to a video playing instruction, displaying the player at other positions of the target page, and playing the other videos through the player;
triggering a red packet display instruction corresponding to the target page under the condition that red packet display conditions are met in the process of playing the other videos;
responding to the red packet display instruction, and acquiring a red packet control shared by a plurality of pages supporting video playing of the video application program;
and displaying the red package control on a corresponding position of the player, and controlling the red package control to continue timing.
8. A red envelope display device, the device comprising:
the video playing module is used for responding to the video playing instruction on the target page of the video application program and playing the video through the player;
the instruction triggering module is used for triggering the red packet display instruction corresponding to the target page under the condition that the red packet display condition is met in the process of playing the video;
the control acquisition module is used for responding to the red packet display instruction and acquiring red packet controls shared by a plurality of pages supporting video playing of the video application program;
and the control display module is used for displaying the red package control on the corresponding position of the player and controlling the red package control to start timing.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any of claims 1-7 when executing a program stored on a memory.
10. A storage medium having stored thereon a computer program, which when executed by a processor performs the method of any of claims 1-7.
CN202311675514.2A 2023-12-07 2023-12-07 Red envelope display method and device, electronic equipment and storage medium Pending CN117729364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311675514.2A CN117729364A (en) 2023-12-07 2023-12-07 Red envelope display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311675514.2A CN117729364A (en) 2023-12-07 2023-12-07 Red envelope display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117729364A true CN117729364A (en) 2024-03-19

Family

ID=90208072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311675514.2A Pending CN117729364A (en) 2023-12-07 2023-12-07 Red envelope display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117729364A (en)

Similar Documents

Publication Publication Date Title
CN106998486B (en) Video playing method and device
US10448082B2 (en) Information exchanging method and device, audio terminal and computer-readable storage medium
CN110062284B (en) Video playing method and device and electronic equipment
CN108966016B (en) Video clip rebroadcasting method and device and terminal equipment
US20210160577A1 (en) Method for playing video, electronic device and storage medium
CN108933948A (en) A kind of video playing progress synchronous method and device
CN108668172B (en) Video playing method and device
CN109698979B (en) Video playing method and device and electronic equipment
CN111372115A (en) Application program access method and device and communication system
CN112492398A (en) Video playing method and device and electronic equipment
CN110996154A (en) Video playing method and device and electronic equipment
CN111107438B (en) Video loading method and device and electronic equipment
CN112584200A (en) Screen projection method and system, electronic equipment and storage medium
CN111541927A (en) Video playing method and device
CN113556568B (en) Cloud application running method, system, device and storage medium
CN111050217B (en) Video playing method and device
CN117729364A (en) Red envelope display method and device, electronic equipment and storage medium
CN113727167B (en) Video resource playing method, device, equipment and readable storage medium
CN113923481A (en) Multimedia content playing method and device, electronic equipment and storage medium
CN115712752A (en) Method, device, medium and program product for recommending videos
CN114827675A (en) Video data processing method and device for application program
WO2016155255A1 (en) Program recording method and apparatus
CN110134527B (en) Data processing method, client and electronic equipment
CN111930667A (en) Method and device for book recommendation in reading application
CN111131812A (en) Broadcast time testing method and device and computer readable storage medium

Legal Events

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