Video display method and device
By pre-storing video templates and user relationships, it solves the problems of large memory overhead and low user experience in social implementation methods, achieves rapid acquisition and display of user information, and improves user experience.
Patent Information
- Application Number
- CN202111366451.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-18
AI Technical Summary
When existing social implementation methods handle a large amount of user data, they have large memory overhead and are prone to timeout problems, which affects the user experience.
By pre-storing the corresponding relationship between the video template, the users using the template, and their friend lists, the secondary processing during data storage and acquisition is reduced, and user information is directly obtained and displayed from the storage.
It reduces memory overhead, avoids timeout issues in information acquisition, and improves user experience.
Smart Images

Figure CN114095773B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of video processing, and in particular to a video display method and device. Background Art
[0002] Social networking is a relatively common technical requirement, which is implemented in social middle platforms and like middle platforms. For the PLC (Photo Left Corner, the traffic entrance in the lower left corner of the video details page) business, the current social implementation method is to store all the data of each user, and then filter and sort the stored data during display to obtain the information to be displayed, and finally display the processed data. However, this not only requires a large amount of memory overhead, but the data storage overhead for hundreds of millions of users is generally T-level overhead, and the secondary processing is more likely to time out when the data volume is large, affecting the user experience. Summary of the invention
[0003] The present disclosure provides a video display method and device to at least solve the problems of large memory overhead and low user experience in social implementation methods in related technologies.
[0004] According to a first aspect of an embodiment of the present disclosure, a video display method is provided, including: detecting that a video watched by a first user is a video produced using a predetermined template; sending an identifier of the first user and an identifier of the predetermined template to a server; receiving information of a second user fed back by the server, wherein the information of the second user is pre-stored by the server based on the identifier of the first user and the identifier of the predetermined template; and displaying the information of the second user on the watched video.
[0005] Optionally, before detecting that the video watched by the user is a video made using a predetermined template, it also includes: periodically obtaining the identifiers of all second users within a predetermined time, wherein the second users are users who have made videos using the predetermined template within the predetermined time and have a social relationship with the first user; sending the second user's information to a server, so that the server stores the correspondence between the identifiers of all second users, the identifier of the predetermined template and the friend list corresponding to each second user in a memory, wherein the friend list includes the identifiers of users who have a social relationship with the corresponding second user.
[0006] Optionally, the information of the second users includes the number of second users and / or nicknames of a predetermined number of second users.
[0007] According to a second aspect of an embodiment of the present disclosure, a video display method is provided, including: receiving an identifier of a first user and an identifier of a predetermined template sent by a client, wherein the first user is a user who watches a video produced using the predetermined template; obtaining information of a second user who has a social relationship with the first user and has produced a video using the predetermined template through the identifier of the first user and the identifier of the predetermined template; and feeding back the information of the second user to the client.
[0008] Optionally, before obtaining information of a second user who has a social relationship with the first user and has made a video using the predetermined template through the identifier of the first user and the identifier of the predetermined template, the method further includes: periodically receiving identifiers of all second users within a predetermined time sent by the client, wherein the second user is a user who has made a video using the predetermined template within the predetermined time and has a social relationship with the first user; for each second user, based on the identifier of the second user, obtaining identifiers of all users who are friends with the second user; merging the identifiers of all users to obtain a friend list corresponding to the second user; and storing the correspondence among the identifier of the second user, the identifier of the predetermined template and the friend list corresponding to the second user in a memory.
[0009] Optionally, the information of the second users includes the number of second users and / or nicknames of a predetermined number of second users.
[0010] Optionally, information of a second user who has a social relationship with the first user and has made a video using the predetermined template is obtained through the identifier of the first user and the identifier of the predetermined template, including: obtaining a friend list corresponding to the identifier of the first user; obtaining the identifier of the second user corresponding to the friend list; obtaining the identifier of the second user corresponding to the identifier of the predetermined template from the identifier of the second user corresponding to the friend list; and obtaining information of the second user corresponding to the identifier of the second user corresponding to the identifier of the predetermined template.
[0011] Optionally, information of a second user who has a social relationship with the first user and has made a video using the predetermined template is obtained through the identifier of the first user and the identifier of the predetermined template, including: obtaining the identifier of the second user corresponding to the identifier of the predetermined template; obtaining the friend list corresponding to the identifier of the second user; and obtaining information of the second user corresponding to the identifier of the second user corresponding to the friend list containing the identifier of the first user.
[0012] According to a third aspect of an embodiment of the present disclosure, a video display device is provided, comprising: a detection unit, configured to detect that a video watched by a first user is a video produced using a predetermined template; an identification sending unit, configured to send an identification of the first user and an identification of the predetermined template to a server; an information receiving unit, configured to receive information of a second user fed back by the server, wherein the information of the second user is pre-stored by the server based on the identification of the first user and the identification of the predetermined template; and a display unit, configured to display the information of the second user on the watched video.
[0013] Optionally, the detection unit is further configured to periodically obtain the identifiers of all second users within a predetermined time before detecting that the video watched by the first user is a video made using a predetermined template, wherein the second user is a user who has made a video using a predetermined template within the predetermined time and has a social relationship with the first user; and send the second user's information to the server so that the server stores the correspondence between the identifiers of all second users, the identifier of the predetermined template and the friend list corresponding to each second user in a memory, wherein the friend list includes the identifiers of users who have a social relationship with the corresponding second user.
[0014] Optionally, the information of the second users includes the number of second users and / or nicknames of a predetermined number of second users.
[0015] According to a fourth aspect of an embodiment of the present disclosure, a video display device is provided, comprising: an identification receiving unit, configured to receive an identification of a first user and an identification of a predetermined template sent by a client, wherein the first user is a user who watches a video produced using the predetermined template; an information acquisition unit, configured to acquire information of a second user who has a social relationship with the first user and has produced a video using the predetermined template through the identification of the first user and the identification of the predetermined template; and an information sending unit, configured to feed back the information of the second user to the client.
[0016] Optionally, the information acquisition unit is further configured to periodically receive the identifiers of all second users within a predetermined time sent by the client before acquiring the information of the second user who has a social relationship with the first user and has made a video using the predetermined template through the identifier of the first user and the identifier of the predetermined template, wherein the second user is a user who has made a video using the predetermined template within the predetermined time and has a social relationship with the first user; for each second user, based on the identifier of the second user, acquire the identifiers of all users who are friends with the second user; merge the identifiers of all users to obtain a friend list corresponding to the second user; and store the correspondence between the identifier of the second user, the identifier of the predetermined template and the friend list corresponding to the second user in a memory.
[0017] Optionally, the information of the second users includes the number of second users and / or nicknames of a predetermined number of second users.
[0018] Optionally, the information acquisition unit is further configured to acquire a friend list corresponding to the identifier of the first user; acquire the identifier of the second user corresponding to the friend list; acquire the identifier of the second user corresponding to the identifier of the predetermined template from the identifier of the second user corresponding to the friend list; and acquire the information of the second user corresponding to the identifier of the second user corresponding to the identifier of the predetermined template.
[0019] Optionally, the information acquisition unit is further configured to acquire the identifier of the second user corresponding to the identifier of the predetermined template; acquire the friend list corresponding to the identifier of the second user; and acquire the information of the second user corresponding to the identifier of the second user corresponding to the friend list containing the identifier of the first user.
[0020] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions to implement a video display method according to the present disclosure.
[0021] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the video presentation method according to the present disclosure as described above.
[0022] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, including computer instructions, which implement the video display method according to the present disclosure when executed by a processor.
[0023] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0024] According to the video display method and device disclosed in the present invention, what is pre-stored is no longer all the data of each user, but the corresponding relationship between the template, the user using the template, and the user's friend list is stored, which reduces the memory overhead, and when the information of the second user corresponding to the first user watching the video is subsequently obtained, it can be directly and quickly obtained from the stored data and displayed on the video watched by the first user, that is, when obtaining the information of the second user, no secondary processing is required, which avoids the problem of timeout in obtaining the information of the second user, and improves the user experience. Therefore, the present invention solves the problem of large memory overhead and low user experience in the social implementation method in the related art.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0027] Figure 1 is a schematic diagram showing an implementation scenario of a video display method according to an exemplary embodiment of the present disclosure;
[0028] Figure 2 The following is a flow chart of a video display method according to an exemplary embodiment. Figure 1 ;
[0029] Figure 3 is a schematic diagram of a redis storage data structure according to an exemplary embodiment;
[0030] Figure 4 The following is a flow chart of a video display method according to an exemplary embodiment. Figure 2 ;
[0031] Figure 5 is a schematic diagram showing an optional video display method according to an exemplary embodiment;
[0032] Figure 6 A frame diagram of a video display device according to an exemplary embodiment Figure 1 ;
[0033] Figure 7 A frame diagram of a video display device according to an exemplary embodiment Figure 2 ;
[0034] Figure 8 is a block diagram of an electronic device 800 according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0037] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0038] In view of the above problems, the present disclosure provides a video display method, which can reduce memory overhead and improve user experience. The following is an example of PLC service. The PLC service itself is a Remote Procedure Call Protocol (RPC) service for external calls, which means that it is necessary to ensure very high-quality availability and very low latency to ensure external calls. In order to ensure availability and low latency, the present disclosure provides a very simple and direct way to obtain data. What is directly stored in the memory (such as redis memory) is the content that the PLC service needs to display. In this way, when an external call is made, the PLC service actually only transfers the data and no longer performs secondary processing such as filtering and sorting, so that high availability and low latency can be guaranteed.
[0039] Figure 1 is a schematic diagram showing an implementation scenario of a video display method according to an exemplary embodiment of the present disclosure, such as Figure 1 The implementation scenario includes a server 100, a user terminal 110 and a user terminal 120, wherein the user terminals are not limited to two, and include but are not limited to mobile phones, personal computers and other devices. The user terminal can install an application for watching short videos. The server can be a single server, or a server cluster composed of several servers, or a cloud computing platform or a virtualization center.
[0040] The user terminals 110 and 120 start an application for watching short videos, and when it is detected that the video watched by the first user is a video made using a predetermined template, the identifier of the first user and the identifier of the predetermined template are sent to the server 100; the server 100 receives the identifier of the first user and the identifier of the predetermined template sent by the user terminals 110 and 120, obtains information of a second user who is a friend of the first user and has made a video using the predetermined template from the memory through the identifier of the first user and the identifier of the predetermined template, and feeds back the information of the second user to the user terminals 110 and 120; the user terminals 110 and 120 receive the information of the second user who is a friend of the first user and has made a video using the predetermined template fed back by the server 100, and display the information of the second user on the watched video, wherein the memory pre-stores a correspondence between the identifier of the predetermined template, the identifiers of all second users who have made videos using the predetermined template, and the friend list corresponding to each second user, and the friend list includes the identifiers of users who are friends with the corresponding second user.
[0041] Next, we will refer to Figures 2 to 7 A video display method and apparatus according to exemplary embodiments of the present disclosure are described in detail.
[0042] Figure 2 The following is a flow chart of a video display method according to an exemplary embodiment. Figure 1 ,like Figure 2 As shown, the video display method includes the following steps:
[0043] In step S201, it is detected that the video watched by the first user is a video produced using a predetermined template. For example, the first user watches a video through a short video APP, and during the viewing process, video A is swiped, and the terminal detects that video A is a video produced using a predetermined template.
[0044] In step S202, the first user's identifier and the identifier of the predetermined template are sent to the server. For example, when the terminal detects that video A is a video produced using a predetermined template, the terminal sends the user's identifier and the identifier of the predetermined template to the server.
[0045] In step S203, information of a second user fed back by the server is received, where the information of the second user is pre-stored by the server based on the identifier of the first user and the identifier of a predetermined template. For example, it can be pre-stored in a memory, that is, the corresponding relationship among the identifier of the predetermined template, the identifiers of all second users who have made videos using the predetermined template, and the friend list corresponding to each second user is pre-stored in the memory. The friend list includes the identifiers of users who have a friend relationship with the corresponding second user. In related technologies, data needs to be processed twice when being written, such as processing the original data into data directly available to the business side. In fact, in this step, this part of the time delay is transferred from the reading stage to the writing stage, and the complex logic is separated from the main logic of the business, so as to ensure the high availability of business data in the memory.
[0046] It should be noted that the above-mentioned memory can be a redis memory, but the present disclosure does not limit this. Redis itself supports the storage method of map. Through an external key (referred to as a large key here), a data structure of a map can be queried, and then the desired data can be obtained through the key inside the map (referred to as a small key here); when the business side queries, two parameters will be provided: the user ID of the consumer (i.e., the above-mentioned first user) and the template ID used by the consumer to watch the video. Taking the consumer user ID as the large key of redis, and then taking the template ID as the small key of the map, the data query can be very directly realized. The time complexity of the query is O(1), where the consumer refers to the user who views the social information.
[0047] Specifically, Figure 3 FIG. is a schematic diagram of a redis storage data structure shown according to an exemplary embodiment. As Figure 3 shown, in the design of the redis storage data structure, the starting point is to hope that the information of the producer (i.e., the above-mentioned second user) can be directly obtained without secondary processing of the stored data. Currently, the known conditions are the user ID of the consumer (i.e., the above-mentioned first user) and the template ID. Then the most efficient acquisition method is to implement it through a map with double keys.
[0048] In step S204, the information of the second user is displayed on the watched video. For example, the information of the second user can be displayed at the lower left corner of the video, and the specific display position is not limited by the present disclosure. It should be noted that the information of the second user may not be directly displayed on the video. For example, the direct display can be a logo such as "This video is made using a template" or "#Same Frame Challenge", etc. After clicking on this logo, the corresponding information of the second user is then displayed.
[0049] According to an exemplary embodiment of the present disclosure, before detecting that the video watched by the first user is a video produced using a predetermined template, it also includes: periodically obtaining the identifiers of all second users within a predetermined time, wherein the second user is a user who has produced a video using a predetermined template within the predetermined time and has a social relationship with the first user; sending the second user's information to a server so that the server stores the corresponding relationship between the identifiers of all second users, the identifier of the predetermined template, and the friend list corresponding to each second user in a memory, wherein the friend list includes the identifiers of users who have a social relationship with the corresponding second user. Through this embodiment, the stored content is periodically updated to ensure the correctness of the stored data within a certain period of time and avoid problems such as data expansion.
[0050] For example, you can obtain data of all producers (the production data of each producer will be recorded) within a valid period (such as 7 days) every day, and then query their friends to obtain all consumers, that is, all friends of the producer who view social information, and write the obtained data into the redis storage in batches at one time, which can ensure the correctness of the data in a certain period of time and avoid problems such as data expansion. Specifically, the following problems can be avoided: the problem of user social relationship changes, which means that the data in the value will change; data expiration, the redis expiration policy is for large keys, and it is impossible to expire small keys in the map structure, and it is even more impossible to distinguish the expired data in the value. If the data cannot expire, the total amount of data will become larger and larger; the problem of distortion of the total number of friends recorded in the value, because the user IDs of all friends are not stored in the value, which means that the changes brought by the new user using the template may make the data of the total number of friends incorrect.
[0051] According to an exemplary embodiment of the present disclosure, the information of the second user includes the number of second users and / or the nicknames of a predetermined number of second users. For example, from the perspective of value, the social information that the PLC service needs to display includes two points: the number of friends using the same template and the nicknames of the corresponding friend users, but when the PLC displays data, due to space limitations, only the avatars of three friend users and the nickname of one friend user can be displayed.
[0052] It should be noted that, as mentioned above, due to space limitations, only the avatars of three friend users and the nickname of one friend user can be displayed, so it is not necessary to store the user information of all producers (such as nicknames, IDs). It is only necessary to store the number of producers and the three user information. This can ensure the data display needs of the business party. Specifically, the memory can only store the number of producers corresponding to each template and the avatars, nicknames, etc. of the three producers corresponding to each template.
[0053] Figure 4 The following is a flow chart of a video display method according to an exemplary embodiment. Figure 2 ,like Figure 4 As shown, the video display method includes the following steps:
[0054] In step S401, an identifier of a first user and an identifier of a predetermined template sent by a client are received, wherein the first user is a user who watches a video produced using the predetermined template.
[0055] In step S401, information of a second user who has a social relationship with the first user and has produced a video using the predetermined template is obtained through the identifier of the first user and the identifier of the predetermined template;
[0056] In step S401, the information of the second user is fed back to the client.
[0057] According to an exemplary embodiment of the present disclosure, after obtaining the information of the second user who has a social relationship with the first user and has made a video using the predetermined template through the identification of the first user and the identification of the predetermined template, it also includes: periodically receiving the identification of all second users within a predetermined time sent by the client, wherein the second user is a user who has made a video using the predetermined template within the predetermined time and has a social relationship with the first user; for each second user, based on the identification of the second user, obtaining the identification of all users who are friends with the second user; merging the identification of all users to obtain the friend list corresponding to the second user; and storing the correspondence between the identification of the second user, the identification of the predetermined template, and the friend list corresponding to the second user in the memory. Through this embodiment, the stored content is periodically updated to ensure the correctness of the stored data for a certain period of time and avoid problems such as data expansion.
[0058] According to an exemplary embodiment of the present disclosure, the information of the second users includes the number of second users and / or nicknames of a predetermined number of second users.
[0059] According to an exemplary embodiment of the present disclosure, obtaining information of a second user who has a social relationship with the first user and has produced a video using a predetermined template through an identifier of the first user and an identifier of a predetermined template includes: obtaining a friend list corresponding to the identifier of the first user; obtaining an identifier of the second user corresponding to the friend list; obtaining an identifier of the second user corresponding to the identifier of the predetermined template from the identifier of the second user corresponding to the friend list; and obtaining information of the second user corresponding to the identifier of the second user corresponding to the identifier of the predetermined template. Through this embodiment, the information of the second user can be obtained conveniently and quickly.
[0060] According to an exemplary embodiment of the present disclosure, obtaining information of a second user who has a social relationship with the first user and has produced a video using a predetermined template through an identifier of the first user and an identifier of a predetermined template includes: obtaining an identifier of the second user corresponding to the identifier of the predetermined template; obtaining a friend list corresponding to the identifier of the second user; and obtaining information of the second user corresponding to the identifier of the second user corresponding to the friend list containing the identifier of the first user. Through this embodiment, the information of the second user can be obtained conveniently and quickly.
[0061] In order to facilitate the understanding of the above embodiments, Figure 5 For detailed explanation, Figure 5 is a schematic diagram showing an optional video display method according to an exemplary embodiment. Figure 5 As shown, users who use templates can be detected regularly. For example, if user A is detected to have used template m to make a video, all friends of user A are queried, the user IDs of all friends are merged together, a friend list of user A is constructed, and the corresponding relationship between the identifier of user A, the identifier of template m, and the corresponding friend list is stored in redis. Later, when it is found that a friend of user A has watched a video made with template m, the information of the producer corresponding to the identifier of template m and the identifier of user A's friend can be queried in redis, such as the information of user A, so that the information of user A is displayed in the lower left corner of the video watched by the friend.
[0062] In summary, the present disclosure achieves low memory overhead. At the scale of 200 million consumers, the redis memory overhead is 200G at the initial stage and stabilizes to 350G in the later stage, which puts less pressure on the memory. The present disclosure also has high availability. Data is directly obtained from redis without the need for secondary processing. The obtained data can be directly displayed after being processed into user information. The latency overhead, CPU overhead, and memory overhead are all very low, and there is almost no impact on the overall performance of the service. Through stress testing before going online, it was found that the CPU overhead increased by less than 2%.
[0063] Figure 6 A frame diagram of a video display device according to an exemplary embodiment Figure 1 . Reference Figure 6 The device includes a detection unit 60, an identification sending unit 62, an information receiving unit 64 and a display unit 66.
[0064] The detection unit 60 is configured to detect that the video watched by the first user is a video produced using a predetermined template; the identification sending unit 62 is configured to send the identification of the first user and the identification of the predetermined template to the server; the information receiving unit 64 is configured to receive the information of the second user fed back by the server, wherein the information of the second user is pre-stored by the server based on the identification of the first user and the identification of the predetermined template; the display unit 66 is configured to display the information of the second user on the watched video.
[0065] Optionally, the detection unit 60 is also configured to periodically obtain the identifiers of all second users within a predetermined time before detecting that the video watched by the first user is a video made using a predetermined template, wherein the second user is a user who has made a video using a predetermined template within the predetermined time and has a social relationship with the first user; and send the information of the second user to the server so that the server stores the correspondence between the identifiers of all second users, the identifier of the predetermined template and the friend list corresponding to each second user in a memory.
[0066] Optionally, the information of the second users includes the number of second users and / or nicknames of a predetermined number of second users.
[0067] Figure 7 A frame diagram of a video display device according to an exemplary embodiment Figure 2 . Reference Figure 7 The device includes an identification receiving unit 70, an information acquiring unit 72 and an information sending unit 74.
[0068] The identification receiving unit 70 is configured to receive the identification of the first user and the identification of the predetermined template sent by the client, wherein the first user is a user who watches a video made using the predetermined template; the information obtaining unit 72 is configured to obtain the information of the second user who has a social relationship with the first user and has made a video using the predetermined template through the identification of the first user and the identification of the predetermined template; the information sending unit 74 is configured to feed back the information of the second user to the client.
[0069] Optionally, the information acquisition unit 72 is further configured to periodically receive the identifiers of all second users within a predetermined time sent by the client before acquiring the information of the second user who has a social relationship with the first user and has made a video using the predetermined template through the identifier of the first user and the identifier of the predetermined template, wherein the second user is a user who has made a video using the predetermined template within the predetermined time and has a social relationship with the first user; for each second user, based on the identifier of the second user, acquire the identifiers of all users who are friends with the second user; merge the identifiers of all users to obtain a friend list corresponding to the second user; and store the correspondence between the identifier of the second user, the identifier of the predetermined template and the friend list corresponding to the second user in the memory.
[0070] Optionally, the information of the second users includes the number of second users and / or nicknames of a predetermined number of second users.
[0071] Optionally, the information acquisition unit 72 is further configured to acquire a friend list corresponding to the identifier of the first user; acquire the identifier of the second user corresponding to the friend list; acquire the identifier of the second user corresponding to the identifier of the predetermined template from the identifier of the second user corresponding to the friend list; and acquire the information of the second user corresponding to the identifier of the second user corresponding to the identifier of the predetermined template.
[0072] Optionally, the information acquisition unit 72 is further configured to acquire the identifier of the second user corresponding to the identifier of the predetermined template; acquire the friend list corresponding to the identifier of the second user; and acquire the information of the second user corresponding to the identifier of the second user corresponding to the friend list containing the identifier of the first user.
[0073] According to an embodiment of the present disclosure, an electronic device may be provided. Figure 8 It is a block diagram of an electronic device 800 according to an embodiment of the present disclosure, and the electronic device includes at least one memory 801 and at least one processor 802, wherein a set of computer executable instructions is stored in the at least one memory, and when the computer executable instruction set is executed by the at least one processor, the training method and video display method of the transfer learning model according to the embodiment of the present disclosure are executed.
[0074] As an example, the electronic device 800 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the electronic device 1000 is not necessarily a single electronic device, but may also be any device or circuit capable of executing the above-mentioned instructions (or instruction sets) individually or in combination. The electronic device 800 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0075] In the electronic device 800, the processor 802 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor 802 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0076] The processor 802 may execute instructions or codes stored in the memory, wherein the memory 801 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.
[0077] The memory 801 may be integrated with the processor 802, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 801 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 801 and the processor 802 may be operationally coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 802 can read files stored in the memory 801.
[0078] In addition, the electronic device 800 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device may be connected to each other via a bus and / or a network.
[0079] According to an embodiment of the present disclosure, a computer-readable storage medium may also be provided, wherein when the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the training method and video display method of the transfer learning model of the embodiment of the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0080] According to an embodiment of the present disclosure, a computer program product is provided, including computer instructions, which, when executed by a processor, implement the training method and video display method of the transfer learning model of the embodiment of the present disclosure.
[0081] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0082] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A video display method, characterized in that: include: Detecting that the video watched by the first user is a video produced using a predetermined template; Sending the identifier of the first user and the identifier of the predetermined template to a server; receiving information of a second user fed back by the server, wherein the information of the second user is pre-stored by the server based on an identifier of the first user and an identifier of the predetermined template; displaying the second user's information on the watched video; Before detecting that the video watched by the user is a video produced using a predetermined template, the method further includes: Periodically obtaining the identifiers of all second users within a predetermined time period, wherein the second users are users who have produced videos using the predetermined template within the predetermined time period and have a social relationship with the first user; The information of all the second users is sent to the server so that the server stores the correspondence between the identifiers of all the second users, the identifier of the predetermined template and the friend list corresponding to each second user in a memory, wherein the friend list includes the identifiers of users who have a social relationship with the corresponding second user.
2. The video display method according to claim 1, characterized in that: The information of the second users includes the number of second users and / or the nicknames of a predetermined number of second users.
3. A video display method, characterized in that: include: Receiving an identifier of a first user and an identifier of a predetermined template sent by a client, wherein the first user is a user who watches a video produced using the predetermined template; Acquire information of a second user who has a social relationship with the first user and has produced a video using the predetermined template, using the identifier of the first user and the identifier of the predetermined template; Feeding back the information of the second user to the client; Before obtaining information of a second user who has a social relationship with the first user and has produced a video using the predetermined template through the identifier of the first user and the identifier of the predetermined template, the method further includes: Periodically receiving identifiers of all second users within a predetermined time sent by the client, wherein the second users are users who have made videos using the predetermined template within the predetermined time and have a social relationship with the first user; For each second user, based on the identifier of the second user, the identifiers of all users who have social relationships with the second user are obtained; the identifiers of all users are merged to obtain a friend list corresponding to the second user; and the correspondence between the identifier of the second user, the identifier of the predetermined template and the friend list corresponding to the second user is stored in a memory.
4. The video display method according to claim 3, characterized in that: The information of the second users includes the number of second users and / or the nicknames of a predetermined number of second users.
5. The video display method according to claim 3, characterized in that: The acquiring, through the identifier of the first user and the identifier of the predetermined template, information of a second user who has a social relationship with the first user and has produced a video using the predetermined template, includes: Obtain a friend list corresponding to the identifier of the first user; Obtaining an identifier of a second user corresponding to a friend list corresponding to the identifier of the first user; acquiring, from the identifier of the second user corresponding to the friend list corresponding to the identifier of the first user, the identifier of the second user corresponding to the identifier of the predetermined template; The information of the second user corresponding to the identifier of the second user corresponding to the identifier of the predetermined template is obtained.
6. A video display device, characterized in that: include: A detection unit, configured to detect that the video watched by the first user is a video produced using a predetermined template; an identification sending unit, configured to send the identification of the first user and the identification of the predetermined template to a server; an information receiving unit, configured to receive information of a second user fed back by the server, wherein the information of the second user is pre-stored by the server based on an identifier of the first user and an identifier of the predetermined template; a display unit, configured to display the second user's information on the watched video; Wherein, the detection unit is also configured to periodically obtain the identifiers of all second users within a predetermined time before detecting that the video watched by the first user is a video made using a predetermined template, wherein the second user is a user who has made a video using a predetermined template within the predetermined time and has a social relationship with the first user; and send the information of all second users to the server so that the server stores the correspondence between the identifiers of all second users, the identifier of the predetermined template and the friend list corresponding to each second user in a memory, wherein the friend list includes the identifiers of users who have a social relationship with the corresponding second user.
7. The video display device according to claim 6, characterized in that: The information of the second users includes the number of second users and / or the nicknames of a predetermined number of second users.
8. A video display device, characterized in that: include: an identification receiving unit, configured to receive an identification of a first user and an identification of a predetermined template sent by a client, wherein the first user is a user who watches a video produced using the predetermined template; an information acquisition unit, configured to acquire information of a second user who has a social relationship with the first user and has produced a video using the predetermined template, through the identifier of the first user and the identifier of the predetermined template; an information sending unit, configured to feed back the information of the second user to the client; Among them, the information acquisition unit is also configured to periodically receive the identifiers of all second users within a predetermined time sent by the client before acquiring the information of the second user who has a social relationship with the first user and has used the predetermined template to make a video through the identifier of the first user and the identifier of the predetermined template, wherein the second user is a user who has used the predetermined template to make a video within the predetermined time and has a social relationship with the first user; for each second user, based on the identifier of the second user, acquire the identifiers of all users who have a social relationship with the second user; merge the identifiers of all users to obtain a friend list corresponding to the second user; and store the correspondence between the identifier of the second user, the identifier of the predetermined template and the friend list corresponding to the second user in a memory.
9. The video display device according to claim 8, characterized in that: The information of the second users includes the number of second users and / or the nicknames of a predetermined number of second users.
10. The video display device according to claim 8, characterized in that: The information acquisition unit is further configured to acquire a friend list corresponding to the identifier of the first user; acquire an identifier of a second user corresponding to the friend list corresponding to the identifier of the first user; The identifier of the second user corresponding to the identifier of the predetermined template is obtained from the identifier of the second user corresponding to the friend list corresponding to the identifier of the first user; and the information of the second user corresponding to the identifier of the second user corresponding to the identifier of the predetermined template is obtained.
11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the video display method as described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform the video presentation method according to any one of claims 1 to 5.
