CN110740339A - Live content preview method and device - Google Patents

Live content preview method and device Download PDF

Info

Publication number
CN110740339A
CN110740339A CN201911045004.0A CN201911045004A CN110740339A CN 110740339 A CN110740339 A CN 110740339A CN 201911045004 A CN201911045004 A CN 201911045004A CN 110740339 A CN110740339 A CN 110740339A
Authority
CN
China
Prior art keywords
live broadcast
live
broadcast room
card
room
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.)
Granted
Application number
CN201911045004.0A
Other languages
Chinese (zh)
Other versions
CN110740339B (en
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201911045004.0A priority Critical patent/CN110740339B/en
Publication of CN110740339A publication Critical patent/CN110740339A/en
Application granted granted Critical
Publication of CN110740339B publication Critical patent/CN110740339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • 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/485End-user interface for client configuration

Abstract

The method for previewing live broadcast contents comprises the steps of obtaining effective live broadcast room cards displayed in a visual area in a live broadcast room list page, determining live broadcast room card serial numbers to be subjected to live broadcast content previewing according to the effective live broadcast room cards, and obtaining corresponding live broadcast contents in a live broadcast room according to the live broadcast room card serial numbers to be played, wherein the live broadcast contents are video data streams provided by a main broadcast client side.

Description

Live content preview method and device
Technical Field
The disclosure relates to the technical field of internet, in particular to a live content preview method and device.
Background
With the development of web technologies, web browser-based applications are becoming more and more rich, for example, web live related applications. In the existing web live broadcast technology, a user wants to watch live broadcast content, and usually watches the live broadcast content in a live broadcast room page of a web live broadcast application.
However, the live broadcasting rooms are usually separate pages, and only corresponding anchor broadcasts are live broadcast in the live broadcasting rooms.
Disclosure of Invention
The present disclosure provides live content preview methods and devices, the technical scheme of the present disclosure is as follows:
according to , the method for previewing the live broadcast contents comprises the steps of obtaining effective live broadcast room cards displayed in a visual area in a live broadcast room list page, determining th live broadcast room card serial numbers to be subjected to live broadcast content previewing according to the effective live broadcast room cards, obtaining corresponding live broadcast contents in a live broadcast room according to the th live broadcast room card serial numbers to be played, wherein the live broadcast contents are video data streams provided by a main broadcast client.
The step of obtaining the effective live broadcast room card displayed in the visual area in the live broadcast room list page comprises the following steps of: acquiring DOM elements corresponding to all live broadcast room cards displayed in a visual area in a live broadcast room list page; and acquiring an effective live broadcast room card displayed in a visual area according to the DOM element.
Wherein, the step of obtaining the effective live broadcast room card displayed in the visual area according to the DOM element comprises the following steps: monitoring the DOM element to enter the range of the visible area; and determining the live broadcast room card of which the range of the DOM element entering the visual area meets the preset requirement as an effective live broadcast room card.
The step of determining th live broadcast room card serial number to be subjected to live broadcast content preview according to the effective live broadcast room card comprises the steps of setting the effective live broadcast room card at a specified position as a th live broadcast room card to be subjected to live broadcast content preview, and obtaining a corresponding th live broadcast room card serial number.
The step of determining the card serial number of the live broadcast room to be subjected to live broadcast content preview according to the effective live broadcast room cards comprises the steps of randomly extracting a preset number of live broadcast room cards from the effective live broadcast room cards to set the th live broadcast room cards to be subjected to live broadcast content preview, and acquiring the corresponding th live broadcast room card serial number.
The step of obtaining the live broadcast content of the corresponding live broadcast room according to the th live broadcast room card serial number for playing comprises the steps of obtaining a player corresponding to the th live broadcast room card serial number and a playing address of the live broadcast content, obtaining the live broadcast content in the playing address, and playing the live broadcast content through the player.
The live broadcast content previewing method further comprises the steps of obtaining effective live broadcast room cards displayed in a visual area in the live broadcast room list page to obtain and play live broadcast contents of a live broadcast room to be subjected to live broadcast content previewing in an updated visual area when the rolling operation aiming at the live broadcast room list page is monitored, obtaining a second live broadcast room card serial number in the previous visual area for performing live broadcast content previewing when the rolling operation aiming at the live broadcast room list page is monitored, and stopping playing the corresponding live broadcast contents of the live broadcast room according to the second live broadcast room card serial number.
According to a second aspect of the embodiment of the disclosure, live broadcast content previewing devices are provided, and the live broadcast content previewing devices comprise an effective card obtaining module configured to obtain effective live broadcast room cards displayed in a visual area in a live broadcast room list page, a preview card operation module configured to determine live broadcast room card serial numbers to be subjected to live broadcast content previewing according to the effective live broadcast room cards, and a playing module configured to obtain corresponding live broadcast contents in a live broadcast room according to the live broadcast room card serial numbers to play, wherein the live broadcast contents are video data streams provided by a main broadcast client.
Wherein, the valid card acquisition module includes: the DOM element acquisition unit is configured to execute acquisition of DOM elements corresponding to live broadcast room cards displayed in a visual area in a live broadcast room list page; and the valid live broadcast room card acquisition unit is configured to acquire the valid live broadcast room card displayed in the visual area according to the DOM element.
Wherein, effective live broadcast room card acquisition unit includes: a state monitoring subunit configured to perform monitoring of the DOM element entering the range of the visible area; and the effective live broadcast room card determining subunit is configured to execute live broadcast room cards, in which the range of the DOM elements entering the visual area meets the preset requirement, and determine the cards as the effective live broadcast room cards.
The preview card operation module comprises a card specifying unit, wherein the card specifying unit is configured to set the effective live broadcast room card at the specified position as the th live broadcast room card to be subjected to live broadcast content preview, and acquire the corresponding th live broadcast room card serial number.
The preview card operation module comprises a card random extraction unit, wherein the card random extraction unit is configured to randomly extract preset number of live broadcast room cards from the effective live broadcast room cards to set th live broadcast room cards to be subjected to live broadcast content preview, and acquire corresponding th live broadcast room card serial numbers.
The playing module comprises an address searching unit, a live broadcast content acquiring unit and a playing unit, wherein the address searching unit is configured to execute acquiring of a player corresponding to the th live broadcast room card serial number and a playing address of live broadcast content, the live broadcast content acquiring unit is configured to execute acquiring of live broadcast content in the playing address, and the playing unit is configured to execute playing of the live broadcast content through the player.
The live broadcast content previewing device further comprises an th rolling operation monitoring module, a second rolling operation monitoring module and a third rolling operation monitoring module, wherein the th rolling operation monitoring module is configured to execute the step of acquiring the effective live broadcast room cards displayed in the visual area in the live broadcast room list page when the rolling operation aiming at the live broadcast room list page is monitored so as to acquire and play the live broadcast content of the live broadcast room to be subjected to live broadcast content previewing in the updated visual area, the second rolling operation monitoring module is configured to execute the step of acquiring the second live broadcast room card serial number in the previous visual area when the rolling operation aiming at the live broadcast room list page is monitored, and the playing of the corresponding live broadcast content of the live broadcast room is stopped according to the second live broadcast room card serial number.
According to a third aspect of the embodiments of the present disclosure, live content preview electronic devices are provided, including a processor and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement a live content preview method as described above.
According to a fourth aspect of embodiments of the present disclosure, there are provided storage media that when executed by a processor of a live content preview electronic device, enable the live content preview electronic device to perform a live content preview method as described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
through from the effective live broadcast room card in the visible area, confirm th live broadcast room card serial number that will carry out live broadcast content preview, and through th live broadcast room card serial number acquires the live broadcast content that corresponds and plays, can make the user browse during the live broadcast room tabulation webpage, just can carry out comprehensive understanding to the live broadcast content of a plurality of live broadcast rooms in the page, improved preview efficiency and preview the comprehensiveness of content.
It is to be understood that both the foregoing -general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description , serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a live content preview method according to an exemplary embodiment of .
Fig. 2 is a block diagram illustrating the structure of a kind of live content preview devices according to an exemplary embodiment of .
Fig. 3 is a live content preview cell phone interface diagram shown in accordance with an exemplary embodiment of .
Fig. 4 is an internal block diagram of a computer device shown in accordance with an exemplary embodiment at .
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Fig. 1 is a flowchart of a live content preview method shown in an exemplary embodiment of , where the live content preview method is executed at a play terminal 100 of a live system shown in fig. 2, and as shown in fig. 2, the live system includes an anchor terminal 300, a server 200, and a play terminal 100, the anchor terminal 300 collects live content, sends the live content to the server 200 as a video data stream, and the server 200 encodes the video data stream and sends the video data stream to each anchor terminal 300, a user views live content through the anchor terminal 300, first needs to enter a live room listing page, and clicks a live room card to enter the live room to view the live content by browsing the live room listing page, and when the user views the live room listing page, the play terminal 100 obtains an effective live room card displayed in a visual area in the live room listing page, determines a live room serial number to be previewed of the live room card according to the effective live room card, and obtains a corresponding live room live content to be previewed according to each live room card serial number to play.
As shown in fig. 1, the live content preview method includes the following steps.
In step S110, a valid live view card shown in the visual area in the live view list page is obtained.
The live broadcast room card is displayed in a live broadcast room list page in a card mode, pictures, characters or a combination of the pictures and the characters can be configured in the card, the live broadcast room card can be used for knowing about live broadcast contents of a live broadcast room corresponding to the live broadcast room card, the live broadcast room card is also an inlet of the live broadcast room, and the live broadcast room card can enter the live broadcast room by clicking the live broadcast room card.
Effective live broadcast room cards refer to live broadcast room cards displayed in a visual area in a live broadcast room list page according to a preset state, the preset state comprises that more than card windows enter the visual area or all the card windows enter the visual area, and of course, the preset state can also be that any part of the card windows enter the visual area.
The live broadcast room cards are displayed in a live broadcast room list page in an image or video mode, and in the browser, a user operates the live broadcast room list page through input equipment such as a mouse and a keyboard. It can be understood that the operation instruction of the live-air room list page can be input by sliding and clicking with a finger at the mobile phone terminal. For example, as shown in fig. 3, a finger slides on the screen of the mobile phone, the touch pad of the mobile phone receives a scrolling command of a page, and the finger clicks the touch pad of the mobile phone on the screen of the mobile phone to receive a command to enter a live broadcast room.
Specifically, the valid live view cards displayed in the visual area in the live view list page are acquired by monitoring through an interaction observer interface in the browser according to step S112, or by monitoring through a scroll event in the browser according to step S114. The advantage of using the scroll event monitoring in the browser is that the browser has better support; the browser is supported by using the IntersectionalObserver interface in the browser in a poor way, and the method has the advantage of better performance.
In step S120, th live broadcast slot card number for live broadcast content preview is determined according to the valid live broadcast slot card.
The live broadcast room card serial number is ID (identification) information of the live broadcast room card at the front end, the live broadcast room card serial number can be expressed as characters, numbers, letters or combinations, in a live broadcast system, the live broadcast room card serial number is associated with the live broadcast room, and a player of the corresponding live broadcast room and a playing address of live broadcast content can be found through the live broadcast room card serial number. For example, after the user clicks the valid live broadcast room card, the playing terminal obtains the live broadcast room card and the live broadcast room card serial number of the click position according to the click instruction, and finds the corresponding player in the live broadcast room through the live broadcast room card serial number to play the corresponding live broadcast content.
the specific manner of determining the card number of the live broadcast room may be step S122, specify a position, that is, specify live broadcast content preview of the live broadcast room in a preset position, for example, according to human visual habits, preview direct content of two live broadcast rooms located in a middle position of the visual area, two live broadcast room cards in the middle position are used as live broadcast room cards for live broadcast content preview, and a corresponding live broadcast room card number is a live broadcast room card number, the specific manner of determining the card number of the live broadcast room may also be step S124, randomly extract, that is, randomly extract live broadcast content preview of a preset number of live broadcast rooms, where the preset number may be set as needed, as shown in fig. 3, six live broadcast room cards are displayed in a mobile phone interface, four effective live broadcast room cards are used, live broadcast room cards 301 and live broadcast room cards 302 are randomly extracted from four effective live broadcast room cards, and in an implementation process, the serial numbers of the live broadcast room cards 301 and live broadcast room cards 302 are extracted by extracting the effective live broadcast room cards, and obtained as the serial numbers of the live broadcast room cards.
The number of live broadcast room cards for previewing live broadcast content is not limited, live broadcast room cards can be provided, and multiple live broadcast room cards can be provided, and certainly, in consideration of the performance of a live broadcast system (the live broadcast system needs to process a large amount of video data streams), the number of selected live broadcast room cards is not too large, so that excessive system resources are prevented from being consumed, the number of selected live broadcast room cards is not too small, and the live broadcast content required by a user cannot be previewed.
In step S130, the live content of the corresponding live broadcast room is obtained according to each th live broadcast room card serial number for playing, where the live content is a video data stream provided by the anchor client.
In the live broadcast system, live broadcast room cards are displayed in a live broadcast room list page of the play terminal, each live broadcast room card has a corresponding live broadcast room card serial number, the play terminal acquires a corresponding player and live broadcast content from the server through the live broadcast room card serial number, namely, in the server, the live broadcast room card serial number is correlated with the player, and meanwhile, the live broadcast room card serial number is also correlated with the address of the live broadcast content. For example, attribute information of a live broadcast room card is acquired according to a live broadcast room card serial number, and a corresponding player and live broadcast content are acquired from a server according to the attribute information, wherein the attribute information includes but is not limited to a main broadcast name, a live broadcast room name, a live broadcast content name and a tag.
In embodiments, in the process of playing the live content, the playing display range is the live broadcast room card range corresponding to the th live broadcast room card serial number, specifically, the tag of the th live broadcast room card is set to video or flash, and the live content is played through the window formed by the th live broadcast room card.
In the embodiment, the live content can be previewed in real time through the live room card when the user does not enter the live room, the live content can be completely played on the live room card corresponding to the live room card number of , specifically, the live content is a video data stream acquired in real time by the main broadcast terminal, that is, the previewing of the live content is the same as the video data stream acquired by the main broadcast terminal, and certainly, -specified delay exists due to signal transmission.
The step S130 includes a step S131, obtaining a corresponding player and a playing address of the live content according to the th live broadcast card serial number, and playing the live content at the playing address through the player.
According to the live broadcast content preview method, the th live broadcast room card serial number to be subjected to live broadcast content preview is determined through the effective live broadcast room card in the visible area, the corresponding live broadcast content is obtained through the th live broadcast room card serial number to be played, so that a user can comprehensively know the live broadcast content of a plurality of live broadcast rooms in a page during browsing a live broadcast room list webpage, and the preview efficiency and the comprehensiveness of the preview content are improved.
In embodiments, the step of obtaining the effective live broadcast room cards displayed in the visual area in the live broadcast room list page comprises the steps of obtaining DOM elements corresponding to the live broadcast room cards displayed in the visual area in the live broadcast room list page, and obtaining the effective live broadcast room cards displayed in the visual area according to the DOM elements.
The DOM (Document Object Model) element determines the content of the live broadcast card, for example, if the DOM element is a picture, the content of the live broadcast card is a picture, and if the DOM element is a combination of a picture and a character, the content of the live broadcast card is a combination of a picture and a character. The number of effective live broadcast room cards in the visible area is related to the size and the display proportion of the browser window, the larger the browser window is, the larger the number of live broadcast room cards can be displayed, and the larger the proportion of the browser window is, the smaller the number of live broadcast room cards can be displayed.
In embodiments, the step of obtaining the valid live broadcast room cards displayed in the visual area according to the DOM elements includes monitoring the range of the DOM elements entering the visual area, and determining the live broadcast room cards of which the range of the DOM elements entering the visual area meets the preset requirement as the valid live broadcast room cards.
The method comprises the steps that the range of the DOM elements entering the visible area comprises the step that the DOM element part enters the visible area and the DOM element part completely enters the visible area, the step that the DOM element part enters the visible area comprises the step that the DOM element part enters the visible area in a half range, the step that the DOM element part enters more than half range enters the visible area in a visible area and the step that the DOM element part enters less than half range of enters the visible area in a half range, when the condition is met as long as the DOM element part enters the visible area, the live broadcast room card corresponding to the DOM element part entering the visible area is determined to be the effective live broadcast room card, when the condition is met as long as the DOM element part enters the visible area completely, the live broadcast room card corresponding to the DOM element part entering the visible area completely is determined to be the effective live broadcast room card.
In embodiments, the step of determining the th live broadcast room card number to be subjected to live broadcast content preview according to the effective live broadcast room cards includes setting the effective live broadcast room cards at specified positions as the th live broadcast room cards to be subjected to live broadcast content preview, and obtaining corresponding th live broadcast room card numbers, wherein the specified positions can select the effective live broadcast room cards close to the center position of the visible area to be the th live broadcast room cards to be subjected to live broadcast content preview according to human visual habits, and certainly, the effective live broadcast room cards at several positions can be randomly specified to be the th live broadcast room cards to be subjected to live broadcast content preview according to the arrangement sequence of the effective live broadcast room cards.
For example, as shown in fig. 3, the live room cards displayed on the mobile phone interface are live room cards 303, live room cards 304, live room cards 305, and live room cards 306, and the live room cards 303 and the live room cards 304 near the center of the visible area are detected as th live room cards for live content preview, and of course, the live room cards 303, the live room cards 304, the live room cards 305, and the live room cards 306 may be arranged in a vertical and horizontal queue, and the active live room cards 303 at the position of the column in the row and the active live room cards 304 at the second column in the row are designated as the th live room cards for live content preview.
In embodiments, the step of determining the live broadcast card number to be subjected to live broadcast content preview according to the valid live broadcast card comprises the steps of randomly extracting a preset number of live broadcast cards from the valid live broadcast cards to be set as live broadcast cards to be subjected to live broadcast content preview, and acquiring the corresponding live broadcast card number, wherein the valid live broadcast cards have corresponding live broadcast card numbers, and the preset number can be set as required by extracting from the valid live broadcast card number.
For example, as shown in fig. 3, 6 live view cards, live view cards 301, live view cards 302, live view cards 303, live view cards 304, live view cards 305, and live view cards 306 are displayed in the visible area in the live view list page of the mobile browser, the effective live view cards are the live view cards 303, live view cards 304, live view cards 305, and live view cards 306, and two cards are randomly extracted from the serial numbers of the live view cards 303, live view cards 304, live view cards 305, and live view cards 306 as live view content preview cards, for example, the serial numbers of the live view cards 303 and live view cards 306 are extracted as th live view card serial numbers.
In embodiments, the step of obtaining live broadcast content of a corresponding live broadcast room according to each live broadcast room card serial number for playing includes obtaining a corresponding player and a playing address of the live broadcast content according to the live broadcast room card serial number, obtaining live broadcast content in the playing address, and playing the live broadcast content through the player.
The playing address of the live broadcast content can be cached in the playing terminal in advance, the playing terminal searches the playing address of the live broadcast content locally according to the th live broadcast room card serial number and obtains the video data stream from the server according to the playing address, of course, the playing address of the live broadcast content is stored in the server, the playing terminal sends a playing request comprising attribute information corresponding to the th live broadcast room card serial number to the server, the server searches the playing address of the live broadcast content according to the attribute information, obtains the video data stream in the playing address and sends the video data stream to the playing terminal.
In embodiments, the live broadcast content preview method further includes the steps of obtaining an effective live broadcast room card displayed in a visual area in the live broadcast room list page when a scrolling operation for the live broadcast room list page is monitored, so as to obtain and play live broadcast content of a live broadcast room to be subjected to live broadcast content preview in an updated visual area, and obtaining a second live broadcast room card serial number in which live broadcast content preview is currently performed in a front visual area when a scrolling operation for the live broadcast room list page is monitored, and stopping playing live broadcast content of a corresponding live broadcast room according to the second live broadcast room card serial number.
The live broadcast content preview method comprises the steps that a front visual area is a visual area displayed in a live broadcast room list page before scrolling occurs, a live broadcast room card serial number for live broadcast content preview in the front visual area is a second live broadcast room card serial number, the second live broadcast room card serial number for live broadcast content preview is stored locally and deleted after live broadcast content is stopped.
In specific embodiments, a user enters a live broadcast room list page, a playing terminal 100 displays a visual area in the live broadcast room list page, the playing terminal acquires DOM elements corresponding to live broadcast room cards displayed in the visual area in the live broadcast room list page, monitors the range of the DOM elements entering the visual area, determines live broadcast room cards of which the range of the DOM elements entering the visual area meets preset requirements as valid live broadcast room cards, determines a live broadcast room card serial number to be subjected to live broadcast content preview according to the valid live broadcast room cards in a random extraction or position designation mode, and determines whether the corresponding player and the live broadcast address of live broadcast content are acquired according to the live broadcast room card serial number, the live broadcast content in the play address is played through the player, the live broadcast content is a video data stream provided by a main broadcast client, and the user can know whether the live broadcast content to enter the live broadcast room without entering the live broadcast room, so that the live broadcast content preview efficiency of the user is improved.
Fig. 2 is a block diagram showing the structure of a kinds of live content previewing apparatuses according to an exemplary embodiment of , referring to fig. 3, the live content previewing apparatuses include a valid card acquisition module 210, a preview card calculation module 220 and a play module 230.
And the valid card acquisition module 210 is configured to acquire valid live room cards shown in the visual area in the live room list page.
And the preview card operation module 220 is configured to execute th live broadcast room card serial number for determining live broadcast content preview according to the effective live broadcast room card.
And the playing module 230 is configured to execute the step of obtaining the corresponding live broadcast content in the live broadcast room according to each th live broadcast room card serial number for playing, wherein the live broadcast content is a video data stream provided by the anchor client.
As shown in fig. 2, the playback terminal 100 includes a live content preview device, the playback terminal 100 obtains live content from the server 200 according to the th live room card number, and the live content of the server 200 is a video data stream uploaded by the anchor client 300.
In embodiments, the live content preview apparatus further includes a play stop module 240 configured to execute the step of obtaining an effective live room card shown in a visible area in the live room list page when the scrolling operation for the live room list page is monitored, so as to obtain and play live content in a live room to be subjected to live content preview in an updated visible area, and when the scrolling operation for the live room list page is monitored, obtain a second live room card number in the previous visible area, where live content preview is being performed, and stop playing live content in a corresponding live room according to the second live room card number.
In embodiments, the valid card obtaining module 210 includes a DOM element obtaining unit configured to perform obtaining of DOM elements corresponding to live view cards shown in a visual area in a live view list page, and a valid live view card obtaining unit configured to perform obtaining of valid live view cards displayed in the visual area according to the DOM elements.
In embodiments, the valid live broadcast room card acquiring unit includes a state monitoring subunit configured to monitor a range in which the DOM element enters the visual area, and a valid live broadcast room card determining subunit configured to determine a live broadcast room card in which the range in which the DOM element enters the visual area meets a preset requirement as a valid live broadcast room card.
In embodiments, the preview card operation module 220 includes a card specification unit configured to set the valid live broadcast card at a specified position as the th live broadcast card to be subjected to live broadcast content preview, and obtain the corresponding th live broadcast card number.
In embodiments, the preview card calculation module 220 includes a card random extraction unit configured to randomly extract th live broadcast cards, which are set as live broadcast cards to be previewed, from the valid live broadcast cards, and obtain corresponding th live broadcast card serial numbers.
In embodiments, the playing module 230 includes an address lookup unit configured to perform obtaining of a playing address of a corresponding player and live content according to the live slot card number, a live content obtaining unit configured to perform obtaining of live content in the playing address, and a playing unit configured to perform playing of the live content through the player.
In embodiments, the live content preview apparatus further includes a scrolling operation monitoring module configured to execute the step of obtaining an effective live room card shown in a visible area in the live room list page when the scrolling operation for the live room list page is monitored, so as to obtain and play live content of a live room to be subjected to live content preview in an updated visible area, and a second scrolling operation monitoring module configured to execute the step of obtaining a second live room card number in the front visible area during the monitoring of the scrolling operation for the live room list page, and stop playing live content of a corresponding live room according to the second live room card number.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 4 is an internal block diagram of a computer device, which may be a terminal, according to exemplary embodiments, which may be as shown in FIG. 4, including a processor, a memory, a network interface, a display screen, and an input device, connected via a system bus, wherein the processor of the computer device is configured to provide computing and control capabilities, the memory of the computer device includes a non-volatile storage medium, an internal memory, the non-volatile storage medium storing an operating system and a computer program, the internal memory providing an environment for the operating system and the computer program to run in the non-volatile storage medium, the network interface of the computer device is configured to communicate with an external terminal via a network connection, the computer program is executed by the processor to implement content preview methods, the display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer overlaid on the display screen, may be a key, a trackball, or a touch pad provided on a housing of the computer device, may be a keyboard, a mouse, an external mouse, or the like.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the disclosed aspects and does not constitute a limitation on the computing device to which the disclosed aspects apply, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In embodiments, there are provided live content preview electronic devices, comprising a memory having stored therein a computer program and a processor that when executed implements the computer program:
obtaining an effective live broadcast room card displayed in a visual area in a live broadcast room list page;
determining th live broadcast room card serial number to be subjected to live broadcast content preview according to the effective live broadcast room card;
and acquiring the live broadcast content of the corresponding live broadcast room according to the th live broadcast room card serial number for playing, wherein the live broadcast content is a video data stream provided by a main broadcast client.
In embodiments, the processor, when executing the computer program, further performs the steps of obtaining an effective live broadcast room card shown in a visual area in the live broadcast room list page when monitoring a scrolling operation for the live broadcast room list page, to obtain and play live broadcast content of a live broadcast room to be subjected to live broadcast content preview in the updated visual area, and when monitoring a scrolling operation for the live broadcast room list page, obtains a second live broadcast room card number in the previous visual area where live broadcast content preview is being performed, and stops playing live broadcast content of a corresponding live broadcast room according to the second live broadcast room card number.
In embodiments, computer readable storage media are provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
obtaining an effective live broadcast room card displayed in a visual area in a live broadcast room list page;
determining th live broadcast room card serial number to be subjected to live broadcast content preview according to the effective live broadcast room card;
and acquiring the live broadcast content of the corresponding live broadcast room according to the th live broadcast room card serial number for playing, wherein the live broadcast content is a video data stream provided by a main broadcast client.
In embodiments, the computer program when executed by the processor further implements the steps of obtaining an effective live broadcast room card shown in a visual area in the live broadcast room list page when a scrolling operation for the live broadcast room list page is monitored, so as to obtain and play live broadcast content of a live broadcast room to be subjected to live broadcast content preview in the updated visual area, obtaining a second live broadcast room card number in the previous visual area when the scrolling operation for the live broadcast room list page is monitored, and stopping playing live broadcast content of a corresponding live broadcast room according to the second live broadcast room card number.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored in a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided by the present disclosure may include non-volatile and/or volatile memory.
This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the -like principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (10)

1, live content preview method, comprising:
obtaining an effective live broadcast room card displayed in a visual area in a live broadcast room list page;
determining th live broadcast room card serial number to be subjected to live broadcast content preview according to the effective live broadcast room card;
and acquiring the live broadcast content of the corresponding live broadcast room according to the th live broadcast room card serial number for playing, wherein the live broadcast content is a video data stream provided by a main broadcast client.
2. The live content preview method of claim 1, wherein the step of obtaining an active live room card presented in a viewable area in a live room listing page comprises:
acquiring DOM elements corresponding to all live broadcast room cards displayed in a visual area in a live broadcast room list page;
and acquiring an effective live broadcast room card displayed in a visual area according to the DOM element.
3. The method of claim 2, wherein the step of obtaining a valid live view card from the DOM element for display in the viewable area comprises:
monitoring the DOM element to enter the range of the visible area;
and determining the live broadcast room card of which the range of the DOM element entering the visual area meets the preset requirement as an effective live broadcast room card.
4. The live content preview method of claim 1, wherein the step of determining th live room card serial number to be previewed of live content according to the valid live room card comprises:
and setting the effective live room card at the specified position as an th live room card to be subjected to live content preview, and acquiring a corresponding th live room card serial number.
5. The live content preview method according to claim 1, wherein the step of determining a card number of a live room to be subjected to live content preview according to the valid live room card includes:
randomly extracting preset number of live broadcast room cards from the effective live broadcast room cards, setting the preset number of live broadcast room cards as th live broadcast room cards to be subjected to live broadcast content preview, and acquiring corresponding th live broadcast room card serial numbers.
6. The live content preview method according to claim 1, wherein the step of obtaining live content of a corresponding live room according to each live room card number for playing comprises:
acquiring playing addresses of a corresponding player and live broadcast content according to the th live broadcast room card serial number;
acquiring live broadcast content in the play address;
and playing the live broadcast content through the player.
7. The live content preview method of claim 1, further comprising:
when the scrolling operation aiming at the live broadcast room list page is monitored, executing the step of acquiring the effective live broadcast room card displayed in the visual area in the live broadcast room list page so as to acquire and play the live broadcast content of the live broadcast room to be subjected to live broadcast content preview in the updated visual area;
when the scrolling operation aiming at the live broadcast room list page is monitored, a second live broadcast room card serial number for live broadcast content preview in the front visual area is obtained, and the live broadcast content of the corresponding live broadcast room is stopped playing according to the second live broadcast room card serial number.
8, live content preview device, comprising:
the valid card acquisition module is configured to acquire valid live broadcast room cards displayed in a visual area in a live broadcast room list page;
the preview card operation module is configured to execute th live broadcast room card serial number for determining live broadcast content preview according to the effective live broadcast room card;
and the playing module is configured to execute the step of obtaining the corresponding live broadcast content in the live broadcast room according to the th live broadcast room card serial number for playing, wherein the live broadcast content is a video data stream provided by the anchor client.
An live content preview electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live content preview method of any of claims 1-7 as claimed in .
10, storage medium having instructions that, when executed by a processor of a live content preview electronic device, enable the live content preview electronic device to perform the live content preview method of any of claims 1-7, .
CN201911045004.0A 2019-10-30 2019-10-30 Live content preview method and device Active CN110740339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911045004.0A CN110740339B (en) 2019-10-30 2019-10-30 Live content preview method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911045004.0A CN110740339B (en) 2019-10-30 2019-10-30 Live content preview method and device

Publications (2)

Publication Number Publication Date
CN110740339A true CN110740339A (en) 2020-01-31
CN110740339B CN110740339B (en) 2022-11-11

Family

ID=69271917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911045004.0A Active CN110740339B (en) 2019-10-30 2019-10-30 Live content preview method and device

Country Status (1)

Country Link
CN (1) CN110740339B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327917A (en) * 2020-03-09 2020-06-23 北京达佳互联信息技术有限公司 Live content preview method, device, equipment and storage medium
CN113055750A (en) * 2021-03-08 2021-06-29 广州繁星互娱信息科技有限公司 Live broadcast method, device, terminal and storage medium
CN113727165A (en) * 2020-05-26 2021-11-30 百度在线网络技术(北京)有限公司 Video live broadcast method and device, electronic equipment and storage medium
CN114205680A (en) * 2021-12-01 2022-03-18 广州方硅信息技术有限公司 Video cover display method and device, equipment, medium and product thereof
CN115052168A (en) * 2022-05-31 2022-09-13 北京达佳互联信息技术有限公司 Label obtaining method, device, server and storage medium
WO2022247547A1 (en) * 2021-05-28 2022-12-01 北京字节跳动网络技术有限公司 Virtual live broadcast room display method and apparatus, client, server, and medium
WO2023088442A1 (en) * 2021-11-22 2023-05-25 北京字跳网络技术有限公司 Live streaming preview method and apparatus, and device, program product and medium
EP4152757A4 (en) * 2020-06-10 2023-11-22 Beijing Bytedance Network Technology Co., Ltd. Video playback method and apparatus, storage medium, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2747438A2 (en) * 2012-12-18 2014-06-25 Krea Icerik Hizmetleri Ve Produksiyon Anonim Sirketi Live preview method and system via electronic program guide
CN104539977A (en) * 2014-12-17 2015-04-22 广州酷狗计算机科技有限公司 Live broadcast previewing method and device
CN104869429A (en) * 2015-05-19 2015-08-26 乐视致新电子科技(天津)有限公司 Video previewing method and apparatus
CN105828163A (en) * 2016-04-19 2016-08-03 乐视控股(北京)有限公司 Video preview method and device
CN106998477A (en) * 2017-04-05 2017-08-01 腾讯科技(深圳)有限公司 The front cover display methods and device of live video

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2747438A2 (en) * 2012-12-18 2014-06-25 Krea Icerik Hizmetleri Ve Produksiyon Anonim Sirketi Live preview method and system via electronic program guide
CN104539977A (en) * 2014-12-17 2015-04-22 广州酷狗计算机科技有限公司 Live broadcast previewing method and device
CN104869429A (en) * 2015-05-19 2015-08-26 乐视致新电子科技(天津)有限公司 Video previewing method and apparatus
CN105828163A (en) * 2016-04-19 2016-08-03 乐视控股(北京)有限公司 Video preview method and device
CN106998477A (en) * 2017-04-05 2017-08-01 腾讯科技(深圳)有限公司 The front cover display methods and device of live video

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327917A (en) * 2020-03-09 2020-06-23 北京达佳互联信息技术有限公司 Live content preview method, device, equipment and storage medium
CN113727165A (en) * 2020-05-26 2021-11-30 百度在线网络技术(北京)有限公司 Video live broadcast method and device, electronic equipment and storage medium
EP4152757A4 (en) * 2020-06-10 2023-11-22 Beijing Bytedance Network Technology Co., Ltd. Video playback method and apparatus, storage medium, and electronic device
CN113055750A (en) * 2021-03-08 2021-06-29 广州繁星互娱信息科技有限公司 Live broadcast method, device, terminal and storage medium
CN113055750B (en) * 2021-03-08 2023-10-13 广州繁星互娱信息科技有限公司 Live broadcast method, live broadcast device, terminal and storage medium
WO2022247547A1 (en) * 2021-05-28 2022-12-01 北京字节跳动网络技术有限公司 Virtual live broadcast room display method and apparatus, client, server, and medium
US11876848B2 (en) 2021-05-28 2024-01-16 Beijing Bytedance Network Technology Co., Ltd. Method and device for displaying a virtual livestream room, client, server and medium
WO2023088442A1 (en) * 2021-11-22 2023-05-25 北京字跳网络技术有限公司 Live streaming preview method and apparatus, and device, program product and medium
CN114205680A (en) * 2021-12-01 2022-03-18 广州方硅信息技术有限公司 Video cover display method and device, equipment, medium and product thereof
CN115052168A (en) * 2022-05-31 2022-09-13 北京达佳互联信息技术有限公司 Label obtaining method, device, server and storage medium
CN115052168B (en) * 2022-05-31 2024-03-19 北京达佳互联信息技术有限公司 Label acquisition method, device, server and storage medium

Also Published As

Publication number Publication date
CN110740339B (en) 2022-11-11

Similar Documents

Publication Publication Date Title
CN110740339A (en) Live content preview method and device
CN110072152B (en) Method and apparatus for identifying and presenting internet-accessible content
US10313726B2 (en) Distributing media content via media channels based on associated content being provided over other media channels
US9992540B2 (en) Metadata system for real-time updates to electronic program guides
US20100268694A1 (en) System and method for sharing web applications
KR20160104661A (en) Methods, systems, and media for presenting supplemental information corresponding to on-demand media content
US20120324043A1 (en) Access to network content
EP2618592A2 (en) TV social network advertising
WO2011163655A2 (en) Systems and methods for dynamic content distribution
JP5084710B2 (en) Advertisement browsing server, method and program
CN104539977A (en) Live broadcast previewing method and device
CN106201246A (en) Page layout processing method and processing device
CN104144357A (en) Video playing method and system
CN101657812A (en) System and method for displaying multimedia events scheduling information
CN112533048B (en) Video playing method, device and equipment
US20170272793A1 (en) Media content recommendation method and device
CN103678497A (en) Method and system for adjusting browse display of search page
CN109120954B (en) Video message pushing method and device, computer equipment and storage medium
CN110913237A (en) Live broadcast control method and device, live broadcast initiating device and storage medium
CN110798701B (en) Video update pushing method and terminal
CN104809120A (en) Information processing method and device
CN113139123A (en) Resource recommendation method, device, server and storage medium
KR20180057619A (en) A notification method for performing push notification to the portable terminal and a notification server
JP3896054B2 (en) Push type content presentation apparatus and method, program, and storage medium
CN103313131A (en) Request equipment, provision equipment, historical record operation system and method

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
GR01 Patent grant
GR01 Patent grant