CN113766265A - Live broadcast short video loading method, equipment and storage medium based on WeChat applet - Google Patents

Live broadcast short video loading method, equipment and storage medium based on WeChat applet Download PDF

Info

Publication number
CN113766265A
CN113766265A CN202111061670.0A CN202111061670A CN113766265A CN 113766265 A CN113766265 A CN 113766265A CN 202111061670 A CN202111061670 A CN 202111061670A CN 113766265 A CN113766265 A CN 113766265A
Authority
CN
China
Prior art keywords
short video
live broadcast
applet
user
short
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
CN202111061670.0A
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 Kuailai Culture Communication Group Co ltd
Original Assignee
Beijing Kuailai Culture Communication Group 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 Kuailai Culture Communication Group Co ltd filed Critical Beijing Kuailai Culture Communication Group Co ltd
Priority to CN202111061670.0A priority Critical patent/CN113766265A/en
Publication of CN113766265A publication Critical patent/CN113766265A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4755End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for defining user preferences, e.g. favourite actors or genre
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a live broadcast short video loading method, live broadcast short video loading equipment and a live broadcast short video loading storage medium based on a WeChat applet, wherein the live broadcast short video loading method comprises the following steps: adding a live small program in the WeChat program, opening the live small program in the WeChat program for the first time, and entering an operation interface of the live small program; the method comprises the steps that a live broadcast applet receives a first short video data stream, plays a decoded first short video, and an operation interface comprises 1 st to N short video lines, wherein each short video line comprises a plurality of first short videos; the user watches the first short video, and the live broadcast server marks the favorite label of the user according to the first short video watched by the user; the live broadcast server sends the second short video data to the live broadcast applet when the user slides upwards to the top of the operation interface or slides downwards to the bottom of the operation interface, so that data flow can be saved, the second short video can be added infinitely according to the times of the first sliding touch instruction and the second sliding touch instruction, and the user experience is stronger.

Description

Live broadcast short video loading method, equipment and storage medium based on WeChat applet
Technical Field
The invention relates to the technical field of computers, in particular to a live broadcast short video loading method, live broadcast short video loading equipment and a live broadcast short video loading storage medium based on a WeChat applet.
Background
WeChat applet, one of the applets, the English name Wechat Mini Program, is an application that can be used without downloading and installing, and realizes the dream of being "reachable by the touch" by the user, and the user can open the application by scanning or searching once. After a full open application, the subject type is the developer of an enterprise, government, media, other organization or individual, and can apply for registration applets. The wechat small program, the wechat subscription number, the wechat service number and the wechat enterprise number are parallel systems. The WeChat applet is an application that can be used without downloading and is an innovation, and through the development of nearly two years, a new WeChat applet development environment and developer ecology have been constructed. The WeChat applet is an innovative achievement which can really affect common programmers in the IT industry of China for many years, over 150 million developers are added into the development of the WeChat applet and together with the developers, the development of the WeChat applet is promoted, the application quantity of the WeChat applet exceeds one million, the WeChat applet covers more than 200 subdivided industries, daily users reach two hundred million, and the WeChat applet also supports subway and public transport services in many cities. WeChat applet development brings more employment opportunities, and in 2017, the applet drives 104 thousands of employment people, so that social effects are continuously improved.
Live broadcast is a modern and hot entertainment and learning mode, a director can live broadcast games, sports events, live broadcast delivery, table singing, dancing and other programs on a live broadcast platform, and audiences can select the interested director to watch on the live broadcast platform, so that the current youngest life mode is formed.
In the prior art, if a short video is watched in a WeChat applet, all short video data need to be cached in the applet at the same time, data flow is large, meanwhile, the short video sent by a server is sent randomly, preference of a user is not considered, and therefore user experience is poor.
Therefore, it is desirable to provide a live broadcast short video loading method based on a wechat applet, which can reduce data flow and push short videos according to user preferences.
Disclosure of Invention
In view of this, the present invention provides a live broadcast short video loading method, device and storage medium based on WeChat applet.
On one hand, the invention provides a live broadcast short video loading method based on a WeChat applet, which comprises the following steps:
adding a live small program in the WeChat program;
opening a wechat program, opening the live small program in the wechat program for the first time, and entering an operation interface of the live small program;
the live broadcast applet receives a first short video data stream sent by the live broadcast server and decodes the first short video data stream, the live broadcast applet plays a decoded first short video, a plurality of first short video arrays are arranged in the operation interface, the operation interface comprises 1 st to N short video lines arranged along a first direction, and each short video line comprises a plurality of first short videos;
the user watches the first short video, and the live broadcast server marks a favorite label of the user according to the first short video watched by the user;
detecting that a user has a first sliding touch instruction after touching a 1 st short video line, wherein the first sliding touch instruction is a direction in which an Nth short video line points to a 1 st first short video, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user preference label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on one side of the 1 st short video line away from the Nth short video line;
or detecting that the user has a second sliding touch instruction after touching the nth short video line, wherein the second sliding touch instruction is a direction from the direction of the 1 st first short video to the nth short video line, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user preference label, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on the side of the nth short video line away from the 1 st short video line;
n is a positive integer greater than 1.
Optionally, the number of the first sliding touch instructions and the second sliding touch instructions is greater than M, where M is a positive integer greater than or equal to 1.
Optionally, the live broadcast server determines the preference degree of the user according to the number of times that the user watches the first short video of the same type.
Optionally, when the first sliding touch instruction is received, the second short videos are sequentially arranged on the side, away from the nth short video line, of the 1 st short video line according to the user preference degree.
Optionally, when the second sliding touch instruction is used, the second short videos are sequentially arranged on the side, away from the 1 st short video line, of the nth short video line according to the user preference degree.
Optionally, the second short videos in the same row are arranged in an order from high to low according to a heat value, wherein the heat value is the sum of the praise number and the comment number of the second short videos.
Optionally, the live applet has a Websocket interface, and the Websocket interface is coupled to the live server through the Websocket communication protocol.
Optionally, before the live applet receives the first short video data stream sent by the live server, the method further includes: and inputting an account and a password registered by the user in the live broadcast applet, wherein the account and the password registered by the user are a WeChat account and a WeChat password for obtaining privacy permission, or a mobile phone number and an authentication code.
In another aspect, the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, implements any one of the methods for loading live short video based on the wechat applet as described above.
In another aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the live short video loading method based on the wechat applet as described in any one of the above.
Compared with the prior art, the live broadcast short video loading method, the live broadcast short video loading equipment and the live broadcast short video loading storage medium based on the WeChat applet have the following beneficial effects that:
according to the invention, a live small program is added in a WeChat program; opening a wechat program, opening a live small program in the wechat program for the first time, and entering an operation interface of the live small program; the method comprises the steps that a live broadcast small program receives a first short video data stream sent by a live broadcast server and decodes the first short video data stream, the live broadcast small program plays a decoded first short video, a plurality of first short video arrays are arranged in an operation interface, the operation interface comprises 1 st to N short video lines arranged along a first direction, and each short video line comprises a plurality of first short videos; because the operation interface is fixed, the number of the first short videos played at this time is limited, and certainly, the number of the first short videos in each short video line can be adjusted according to the size of the display icon of each first short video, the user watches the first short videos, and the live broadcast server marks the favorite labels of the user according to the first short videos watched by the user; detecting that a user has a first sliding touch instruction after touching a 1 st short video line, wherein the first sliding touch instruction is a direction pointing to the 1 st first short video from an Nth short video line, a live broadcast server sends a second short video data stream to a live broadcast small program according to a user favorite label mark, the live broadcast small program decodes the second short video data stream to obtain a second short video, and the second short video is arranged on one side, far away from the Nth short video line, of the 1 st short video line; or detecting that the user has a second sliding touch instruction after touching the nth short video line, wherein the second sliding touch instruction is a direction pointing to the nth short video line from the direction of the 1 st first short video, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on the side of the nth short video line away from the 1 st short video line; according to the method and the device, the live broadcast server sends the second short video data to the live broadcast applet only when the user slides upwards to the top of the operation interface or the user slides downwards to the bottom of the operation interface, so that data flow can be saved, the second short video can be added infinitely according to the times of the first sliding touch instruction and the second sliding touch instruction, and the user experience is stronger.
Of course, it is not necessary for any product in which the present invention is practiced to achieve all of the above-described technical effects simultaneously.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart of a live broadcast short video loading method based on WeChat small program provided by the invention;
fig. 2 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
With reference to fig. 1, the present invention provides a live broadcast short video loading method based on a wechat applet, including:
s1: adding a live small program in the WeChat program;
the invention loads the live small program into the WeChat program, namely, the live small program can be accessed from the WeChat program.
S2: opening a wechat program, opening a live small program in the wechat program for the first time, and entering an operation interface of the live small program;
s3: the method comprises the steps that a live broadcast small program receives a first short video data stream sent by a live broadcast server and decodes the first short video data stream, the live broadcast small program plays a decoded first short video, a plurality of first short video arrays are arranged in an operation interface, the operation interface comprises 1 st to N short video lines arranged along a first direction, and each short video line comprises a plurality of first short videos;
it will be appreciated that the operating interface of a live applet generally matches the screen size of the electronic product in which the WeChat program is used. The first direction here may be a column direction.
Therefore, the number of the short video lines in the operation interface is determined, and of course, the number of the first short video in each view line can be adjusted according to the size of the display icon of the first short video, which is not specifically limited herein.
S4: the user watches the first short video, and the live broadcast server marks the favorite label of the user according to the first short video watched by the user;
the user preference is determined by the fact that the user watches the limited number of first short videos for the first time, the first short videos can be of any type and are not particularly limited, and after the user watches part of the first short videos, the user can determine which type of first short videos the user is interested in.
S5: detecting that a user has a first sliding touch instruction after touching the 1 st short video line, wherein the first sliding touch instruction is a direction pointing to the 1 st short video line from the Nth short video line, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on one side of the 1 st short video line away from the Nth short video line;
or detecting that the user has a second sliding touch instruction after touching the nth short video line, wherein the second sliding touch instruction is a direction pointing to the nth short video line from the direction of the 1 st first short video, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on the side of the nth short video line away from the 1 st short video line;
n is a positive integer greater than 1.
The step of detecting that the user has the first sliding touch instruction after touching the 1 st short video line means that the user still slides upwards to touch after watching the topmost short video line in the operation interface, and the step of detecting that the user has the second sliding touch instruction after touching the Nth short video line means that the user still slides downwards to touch after watching the bottommost short video line in the operation interface.
According to the method and the device, the live broadcast server sends the second short video data to the live broadcast applet only when the user slides upwards to the top of the operation interface or the user slides downwards to the bottom of the operation interface, so that data flow can be saved, the second short video can be added infinitely according to the times of the first sliding touch instruction and the second sliding touch instruction, and the user experience is stronger.
In some optional embodiments, the number of the first sliding touch instructions and the second sliding touch instructions is greater than M, where M is a positive integer greater than or equal to 1.
M here may be any positive integer, optionally, a second short videos corresponding to each first sliding touch instruction may be updated, or a second short videos corresponding to each second sliding touch instruction may be updated, where a may be the number of second short videos in each short video line, that is, the number of second short videos updated each time is exactly 1 short video line, the live broadcast server corresponding to 1 first sliding touch instruction sends the second short videos of 1 short video line, of course, the sent 1 short video line may replace the original 1 st short video line to become the updated 1 st short video line, similarly, the live broadcast server corresponding to 1 second sliding touch instruction sends the second short videos of 1 short video line, and of course, the sent 1 line of second short videos may replace the original nth short video line to become the updated nth short video line, the larger the number of the first sliding touch instructions and the second sliding touch instructions is, the larger the number of the second short videos sent by the live broadcast server is, and if the number of the first sliding touch instructions and the second sliding touch instructions approaches infinity, the infinite the number of the second short videos sent by the live broadcast server is. According to the method and the device, the number of the second short videos is determined according to the first sliding touch instruction and the second sliding touch instruction, all the short videos do not need to be cached in the live small program when the live small program is opened for the first time, and data flow can be saved.
In some optional embodiments, the live server determines the preference degree of the user according to the number of times that the user watches the first short videos of the same type.
When the live broadcast small program is opened for the first time, the live broadcast server sends a batch of first short videos to the live broadcast small program according to the operation interface, and if the number of times that the user watches the same type of first short videos is large, the preference degree of the user on the type of first short videos can be determined accordingly.
In some optional embodiments, when the first sliding touch instruction is received, the second short videos are sequentially arranged on the side of the 1 st short video line far away from the nth short video line according to the user preference degree.
As can be seen from the above, the live broadcast server corresponding to the 1 first sliding touch instruction sends the second short videos of the 1 short video line, and the ordering of the second short videos in different short video lines can be determined according to the preference degree of the user, that is, the second short video with higher preference degree is displayed first and is arranged on one side close to the 1 st short video line, and the second short video with lower preference degree is displayed later and is located farther from the 1 st short video line, and the preference degree of the user is determined according to the number of times that the user watches the first short videos of the same type.
In some optional embodiments, when the second sliding touch instruction is used, the second short videos are sequentially arranged on the side of the nth short video line far away from the 1 st short video line according to the user preference degree.
The live broadcast server corresponding to the 1 second sliding touch instruction sends the second short videos of the 1 short video line, the second short video sequence in different short video lines can be determined according to the preference degree of the user, namely, the second short video with high preference degree of the user is displayed firstly and is arranged on one side close to the Nth short video line, the second short video with low preference degree of the user is displayed secondly and is positioned far away from the Nth short video line, and the preference degree of the user is determined according to the times of watching the first short videos of the same type by the user.
In some optional embodiments, the second short videos in the same row are arranged in order from high to low according to a heat value, and the heat value is the sum of the praise number and the comment number of the second short videos.
For the updated short video line, the second short video in the same line needs to be sorted, for example, the operation interface is from left to right, the second short videos are sorted according to the heat value from high to low, the heat value is the sum of the praise number and the comment number of the second short video, the heat value is calculated according to the big data in the live broadcast server, and therefore the sorting order is determined by the live broadcast server.
In some alternative embodiments, the live applet has a Websocket interface that couples with the live server via a Websocket communication protocol.
In the invention, a live small program is installed in a wechat program, and the wechat small program is communicated with a live server through a Websocket communication protocol. The Websocket protocol has less control overhead, and a data packet header for protocol control is relatively small when data is exchanged between the live broadcast server and the live broadcast applet after connection is established. Without the inclusion of an extension, this header size is only 2 to 10 bytes (relative to the packet length) for live server to live applet content; for the content of the live applet to the live server, the header needs to be added with an additional mask of 4 bytes, and compared with the method that an HTTP request carries a complete header each time, the overhead is obviously reduced; in addition, the real-time performance of the Websocket protocol communication is stronger, and the Websocket protocol is full-duplex, so that the live broadcast server can actively send data to the live broadcast applet at any time, and compared with an HTTP request, the response of the live broadcast server can be realized only by waiting for the live broadcast applet to initiate a request, and the delay is obviously less.
In some optional embodiments, before the live applet receives the first short video data stream sent by the live server, the method further includes: and inputting an account and a password registered by the user in the live broadcast applet, wherein the account and the password registered by the user are a WeChat account and a WeChat password for obtaining privacy permission, or a mobile phone number and an authentication code.
Certainly, in the invention, the live broadcast applet and the live broadcast server need to be connected through the Websocket protocol, so that the live broadcast applet and the live broadcast server become a stateful protocol, and part of state information can be omitted during communication later. If the user already has account information in the live APP, the account information in the live APP can be continuously used in the live applet; in addition, the user can log in by using the WeChat account and the WeChat password in the live small program, and certainly, the user can also log in by using the mobile phone number and the verification code, so that specific limitation is not required, the logging in mode is more diversified, and the user experience is improved.
The invention also provides electronic equipment which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to realize the live broadcast short video loading method based on the WeChat applet.
Referring to fig. 2, which is a diagram illustrating an embodiment of an electronic device according to the present embodiment, the electronic device 200 includes: one or more processors 210; a memory 240 for storing one or more programs; when the one or more programs are executed by the one or more processors 210, the one or more processors 210 are caused to perform the method described above:
adding a live small program in the WeChat program;
opening a wechat program, opening a live small program in the wechat program for the first time, and entering an operation interface of the live small program;
the method comprises the steps that a live broadcast small program receives a first short video data stream sent by a live broadcast server and decodes the first short video data stream, the live broadcast small program plays a decoded first short video, a plurality of first short video arrays are arranged in an operation interface, the operation interface comprises 1 st to N short video lines arranged along a first direction, and each short video line comprises a plurality of first short videos;
the user watches the first short video, and the live broadcast server marks the favorite label of the user according to the first short video watched by the user;
detecting that a user has a first sliding touch instruction after touching the 1 st short video line, wherein the first sliding touch instruction is a direction pointing to the 1 st short video line from the Nth short video line, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on one side of the 1 st short video line away from the Nth short video line;
or detecting that the user has a second sliding touch instruction after touching the nth short video line, wherein the second sliding touch instruction is a direction pointing to the nth short video line from the direction of the 1 st first short video, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on the side of the nth short video line away from the 1 st short video line;
n is a positive integer greater than 1.
As shown in fig. 2, electronic device 200 may include a processor 210 (e.g., central processing unit, graphics processor, etc.) that may perform various appropriate actions and processes in accordance with a program stored in a institutional memory (ROM)220 or a program loaded from memory 240 into a Random Access Memory (RAM) 220. In the RAM 220, various programs and data necessary for the operation of the electronic apparatus 200 are also stored. The processor 210, the ROM 220, and the RAM 220 are connected to each other through a bus 260. An input/output (I/O) interface 250 is also connected to bus 260.
The following components are connected to the I/O interface 250: an input portion 280 including a keyboard, a mouse, and the like; an output section 290 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section including a hard disk and the like; and a communication section 270 including a network interface card such as a LAN card, a modem, or the like. The communication section 270 performs communication processing via a network such as the internet. The drives are also connected to the I/O interface 250 as needed. A removable medium such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive as necessary, so that a computer program read out therefrom is mounted into the storage section as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 270, and/or installed from a removable medium. The computer program performs the above-described functions defined in the system of the present invention when executed by a Central Processing Unit (CPU).
The electronic device 200 provided in the above embodiment can execute the live broadcast short video loading method based on the WeChat applet provided in any embodiment of the present disclosure, and has corresponding functional units and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments can be referred to a live broadcast short video loading method based on a wechat applet provided in any embodiment of the present disclosure.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer.
The units described in the present embodiment may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The invention also provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the live broadcast short video loading method based on the WeChat applet comprises the following steps:
adding a live small program in the WeChat program;
opening a wechat program, opening a live small program in the wechat program for the first time, and entering an operation interface of the live small program;
the method comprises the steps that a live broadcast small program receives a first short video data stream sent by a live broadcast server and decodes the first short video data stream, the live broadcast small program plays a decoded first short video, a plurality of first short video arrays are arranged in an operation interface, the operation interface comprises 1 st to N short video lines arranged along a first direction, and each short video line comprises a plurality of first short videos;
the user watches the first short video, and the live broadcast server marks the favorite label of the user according to the first short video watched by the user;
detecting that a user has a first sliding touch instruction after touching the 1 st short video line, wherein the first sliding touch instruction is a direction pointing to the 1 st short video line from the Nth short video line, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on one side of the 1 st short video line away from the Nth short video line;
or detecting that the user has a second sliding touch instruction after touching the nth short video line, wherein the second sliding touch instruction is a direction pointing to the nth short video line from the direction of the 1 st first short video, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on the side of the nth short video line away from the 1 st short video line;
n is a positive integer greater than 1.
By the embodiment, the live broadcast short video loading method, the live broadcast short video loading equipment and the live broadcast short video loading storage medium based on the WeChat applet have the following beneficial effects that:
according to the invention, a live small program is added in a WeChat program; opening a wechat program, opening a live small program in the wechat program for the first time, and entering an operation interface of the live small program; the method comprises the steps that a live broadcast small program receives a first short video data stream sent by a live broadcast server and decodes the first short video data stream, the live broadcast small program plays a decoded first short video, a plurality of first short video arrays are arranged in an operation interface, the operation interface comprises 1 st to N short video lines arranged along a first direction, and each short video line comprises a plurality of first short videos; because the operation interface is fixed, the number of the first short videos played at this time is limited, and certainly, the number of the first short videos in each short video line can be adjusted according to the size of the display icon of each first short video, the user watches the first short videos, and the live broadcast server marks the favorite labels of the user according to the first short videos watched by the user; detecting that a user has a first sliding touch instruction after touching a 1 st short video line, wherein the first sliding touch instruction is a direction pointing to the 1 st first short video from an Nth short video line, a live broadcast server sends a second short video data stream to a live broadcast small program according to a user favorite label mark, the live broadcast small program decodes the second short video data stream to obtain a second short video, and the second short video is arranged on one side, far away from the Nth short video line, of the 1 st short video line; or detecting that the user has a second sliding touch instruction after touching the nth short video line, wherein the second sliding touch instruction is a direction pointing to the nth short video line from the direction of the 1 st first short video, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user favorite label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on the side of the nth short video line away from the 1 st short video line; according to the method and the device, the live broadcast server sends the second short video data to the live broadcast applet only when the user slides upwards to the top of the operation interface or the user slides downwards to the bottom of the operation interface, so that data flow can be saved, the second short video can be added infinitely according to the times of the first sliding touch instruction and the second sliding touch instruction, and the user experience is stronger.
Although some specific embodiments of the present invention have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustrative purposes only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.

Claims (10)

1. A live broadcast short video loading method based on WeChat small program is characterized by comprising the following steps:
adding a live small program in the WeChat program;
opening a wechat program, opening the live small program in the wechat program for the first time, and entering an operation interface of the live small program;
the live broadcast applet receives a first short video data stream sent by the live broadcast server and decodes the first short video data stream, the live broadcast applet plays a decoded first short video, a plurality of first short video arrays are arranged in the operation interface, the operation interface comprises 1 st to N short video lines arranged along a first direction, and each short video line comprises a plurality of first short videos;
the user watches the first short video, and the live broadcast server marks a favorite label of the user according to the first short video watched by the user;
detecting that a user has a first sliding touch instruction after touching a 1 st short video line, wherein the first sliding touch instruction is a direction in which an Nth short video line points to a 1 st first short video, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user preference label mark, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on one side of the 1 st short video line away from the Nth short video line;
or detecting that the user has a second sliding touch instruction after touching the nth short video line, wherein the second sliding touch instruction is a direction from the direction of the 1 st first short video to the nth short video line, the live broadcast server sends a second short video data stream to the live broadcast applet according to the user preference label, the live broadcast applet decodes the second short video data stream to obtain a second short video, and arranges the second short video on the side of the nth short video line away from the 1 st short video line;
n is a positive integer greater than 1.
2. The live broadcast short video loading method based on the WeChat applet as claimed in claim 1, wherein the number of the first sliding touch instructions and the second sliding touch instructions is greater than M, and M is a positive integer greater than or equal to 1.
3. The method as claimed in claim 1, wherein the live broadcast server determines the preference of the user according to the number of times the user watches the first short video of the same type.
4. The method as claimed in claim 3, wherein the second short video is arranged on the side of the 1 st short video line far from the nth short video line in sequence according to the user preference degree when the command is the first sliding touch command.
5. The method as claimed in claim 3, wherein when the command is a second sliding touch command, the second short videos are sequentially arranged on the side of the nth short video line far away from the 1 st short video line according to the user preference degree.
6. The method for loading the live short video based on the WeChat applet as claimed in claim 4 or 5, wherein the second short videos in the same row are arranged in the order from high to low according to the heat value, and the heat value is the sum of the praise number and the comment number of the second short videos.
7. The live broadcast short video loading method based on the WeChat applet as claimed in claim 1, wherein the live broadcast applet has a Websocket interface, and the Websocket interface is coupled to the live broadcast server through the Websocket communication protocol.
8. The live broadcast short video loading method based on the WeChat applet as claimed in claim 1, wherein before the live broadcast applet receives the first short video data stream sent by the live broadcast server, the method further comprises: and inputting an account and a password registered by the user in the live broadcast applet, wherein the account and the password registered by the user are a WeChat account and a WeChat password for obtaining privacy permission, or a mobile phone number and an authentication code.
9. An electronic device, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the wechat applet based live short video loading method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for live video loading based on a wechat applet as claimed in any one of claims 1 to 8.
CN202111061670.0A 2021-09-10 2021-09-10 Live broadcast short video loading method, equipment and storage medium based on WeChat applet Pending CN113766265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111061670.0A CN113766265A (en) 2021-09-10 2021-09-10 Live broadcast short video loading method, equipment and storage medium based on WeChat applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111061670.0A CN113766265A (en) 2021-09-10 2021-09-10 Live broadcast short video loading method, equipment and storage medium based on WeChat applet

Publications (1)

Publication Number Publication Date
CN113766265A true CN113766265A (en) 2021-12-07

Family

ID=78794884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111061670.0A Pending CN113766265A (en) 2021-09-10 2021-09-10 Live broadcast short video loading method, equipment and storage medium based on WeChat applet

Country Status (1)

Country Link
CN (1) CN113766265A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9854317B1 (en) * 2014-11-24 2017-12-26 Wew Entertainment Corporation Enabling video viewer interaction
US20190364133A1 (en) * 2018-05-14 2019-11-28 Ucweb Singapore Pte. Ltd. Display processing method and apparatus, and electronic terminal therefor
CN110688571A (en) * 2019-09-20 2020-01-14 北京字节跳动网络技术有限公司 List stream implementation method and device, electronic equipment and storage medium
CN112738639A (en) * 2020-12-25 2021-04-30 北京百度网讯科技有限公司 Video switching method and device, electronic equipment and computer readable medium
CN112887797A (en) * 2019-11-29 2021-06-01 腾讯科技(深圳)有限公司 Method for controlling video playing and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9854317B1 (en) * 2014-11-24 2017-12-26 Wew Entertainment Corporation Enabling video viewer interaction
US20190364133A1 (en) * 2018-05-14 2019-11-28 Ucweb Singapore Pte. Ltd. Display processing method and apparatus, and electronic terminal therefor
CN110688571A (en) * 2019-09-20 2020-01-14 北京字节跳动网络技术有限公司 List stream implementation method and device, electronic equipment and storage medium
CN112887797A (en) * 2019-11-29 2021-06-01 腾讯科技(深圳)有限公司 Method for controlling video playing and related equipment
CN112738639A (en) * 2020-12-25 2021-04-30 北京百度网讯科技有限公司 Video switching method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
US9003277B2 (en) Method and system for presenting web page resources
EP2741474B1 (en) System and method for providing distributed online services
US10878044B2 (en) System and method for providing content recommendation service
CN111435998B (en) Video playing control method, device, equipment and storage medium
US7783622B1 (en) Identification of electronic content significant to a user
US20120078725A1 (en) Method and system for contextual advertisement recommendation across multiple devices of content delivery
US20190222662A1 (en) Methods and Systems for Rewriting Scripts to Redirect Web Requests
CN104144357B (en) Video broadcasting method and system
US11310066B2 (en) Method and apparatus for pushing information
US20100036933A1 (en) Dynamic Portal Creation Based on Personal Usage
CN112463106A (en) Voice interaction method, device and equipment based on intelligent screen and storage medium
KR20210005255A (en) Dynamic application content analysis
US8651951B2 (en) Game processing server apparatus
US20230219006A1 (en) Systems and methods for providing multi-part persistent content
CN108600780A (en) Method for pushed information
CN108738362A (en) The deep linking of application is generated based on multi-layer reference data
CN113766265A (en) Live broadcast short video loading method, equipment and storage medium based on WeChat applet
CN115563134A (en) Interaction method, interaction device, electronic equipment and computer readable medium
KR20220061383A (en) Method and system for recommending content using chatbot
CN112861007A (en) Screen saver display method, device, equipment, medium and program product
US20210312009A1 (en) Content aggregation and data streaming through unified application functionalities
US20240080285A1 (en) Information processing method and apparatus, electronic device, and storage medium
CN108462680B (en) Input information processing method, server and terminal equipment
CN116932849A (en) Request processing method, device, computer equipment and storage medium
CN113032051A (en) Data display method and device, electronic equipment and computer 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211207

RJ01 Rejection of invention patent application after publication