WO2022213661A1 - Video playback method and apparatus - Google Patents

Video playback method and apparatus Download PDF

Info

Publication number
WO2022213661A1
WO2022213661A1 PCT/CN2021/138422 CN2021138422W WO2022213661A1 WO 2022213661 A1 WO2022213661 A1 WO 2022213661A1 CN 2021138422 W CN2021138422 W CN 2021138422W WO 2022213661 A1 WO2022213661 A1 WO 2022213661A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
page
playback
target
preset
Prior art date
Application number
PCT/CN2021/138422
Other languages
French (fr)
Chinese (zh)
Inventor
刘江
黄苏豪
施隽瑶
刘梦宇
黄浩
李笑
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022213661A1 publication Critical patent/WO2022213661A1/en

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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot

Definitions

  • the present disclosure relates to the field of Internet technologies, and in particular, to a video playback method, device, electronic device, and storage medium.
  • mobile terminals are more and more widely used for on-demand and live video from Internet multimedia.
  • speed of mobile network has also been greatly improved, which also makes people use more and more mobile video scenarios. many.
  • mobile video is more and more popular because of its convenience and speed, especially when people watch video-on-demand/live content in their spare time or even in the fragmented time of commuting, so that they can make full use of trivial Time to watch video programs of interest.
  • live video is an important content medium, and more and more short video platforms present it to users as a content form.
  • live video is different from short video, this is because the content of short video will not change after it is released, and because the content of live broadcast is real-time, it is changing all the time. Present content to users in a timely manner.
  • the present disclosure provides a video playback method, device, electronic device, and storage medium.
  • the technical solutions of the present disclosure are as follows:
  • a video playback method is provided, applied to an electronic device, including:
  • a target player In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live data of the historical period of the target virtual space;
  • the first preset play page is located on the upper layer of the second preset play page.
  • the above method further includes:
  • closing the first preset play page includes:
  • the first preset playback page is closed.
  • the first preset play page includes a page jump control, and in response to detecting a page jump instruction, closing the first preset play page includes:
  • the first preset play page is closed.
  • the above method further includes:
  • the playback of the target segment data is stopped, and the target player is released.
  • the video data further includes a first playback address and a second playback address
  • Calling the target player to play the target segment data on the first preset playback page includes:
  • Calling the live broadcast player to play the current live broadcast data on the second preset playback page with mute includes:
  • the above method further includes:
  • Video data is obtained according to the current live broadcast data and the target segment data.
  • the target segment data is obtained from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
  • the method further includes:
  • the target segment data is determined from the live broadcast data of the historical period based on the interactive operation information.
  • a video playback device comprising:
  • the player creation module is configured to create a target player in response to detecting that the video data corresponding to the target virtual space contains the current live broadcast data and the target segment data; wherein, the target segment data is based on the live broadcast of the historical period of the target virtual space data obtained;
  • a first playback module configured to call the target player to play the target segment data on the first preset playback page
  • the second playback module is configured to call the live player to play the current live data in mute on the second preset playback page;
  • the first preset play page is located on the upper layer of the second preset play page.
  • the apparatus further includes:
  • a page jump module configured to close the first preset play page and jump to the second preset play page in response to detecting the page jump instruction
  • the second playback module is configured to use the live player to play the current live data with sound on the second preset playback page
  • the player release module is configured to release the target player.
  • the page jump module is configured to:
  • the first preset playback page is closed.
  • the first preset playback page includes a page jump control, and a page jump module, configured as:
  • the first preset play page is closed.
  • the player release module is configured to:
  • the playback of the target segment data is stopped, and the target player is released.
  • the video data further includes a first playback address and a second playback address
  • the first playback module configured as:
  • the second playback module is configured as:
  • the apparatus further includes:
  • a data acquisition module configured to acquire current live broadcast data and at least one segment data
  • condition information determination module configured to determine deletion condition information
  • a target segment determination module configured to determine target segment data from at least one segment data according to the deletion condition information
  • the video data obtaining module is configured to obtain video data according to the current live broadcast data and the target segment data.
  • the target segment data is acquired from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
  • the apparatus further includes:
  • the historical data acquisition module is configured to acquire the live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period;
  • the target segment determination module is configured to determine the target segment data from the live broadcast data of the historical period based on the interactive operation information.
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the first aspect as described above any of the methods.
  • a non-volatile computer-readable storage medium is provided.
  • the electronic device can execute the embodiments of the present disclosure. The method of any one of the first aspects.
  • a computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the computer device reads and executes the computer program from the readable storage medium
  • a computer program that causes a computer device to perform the method of any one of the first aspects of the embodiments of the present disclosure.
  • a target player In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein the target segment data is obtained based on the live data of the historical period of the target virtual space.
  • the target player is called to play the target segment data on the first preset play page
  • the live broadcast player is called to play the current live data on the second preset play page with mute.
  • the first preset play page is located on the upper layer of the second preset play page.
  • the client can present the target segment data to the user, while paving the way for the subsequent seamless switching from the playback of the target segment data to the playback of the current live data. Convenient.
  • FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment
  • FIG. 2 is a flowchart of a video playback method according to an exemplary embodiment
  • FIG. 3 is a flowchart of a method for determining video data according to an exemplary embodiment
  • FIG. 4 is a schematic diagram of a player hierarchy according to an exemplary embodiment
  • FIG. 5 is a flowchart of a video playback method according to an exemplary embodiment
  • FIG. 6 is a block diagram of a video playback device according to an exemplary embodiment
  • Fig. 7 is a block diagram of an electronic device for video playback according to an exemplary embodiment.
  • FIG. 1 is a schematic diagram of an application environment of a video playback method according to an exemplary embodiment.
  • the application environment may include a server 01 and an electronic device 02 .
  • the server 01 may be a server that feeds back the video data to the electronic device 02 based on the video identification information contained in the video data request after receiving the video data request sent by the electronic device 02 .
  • the server may include an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or may provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, Network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • the above-mentioned electronic device 02 may create a target player in response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, wherein the target segment data is based on the target virtual space The live broadcast data of the historical period is obtained. Subsequently, the electronic device 02 can call the target player to play the target segment data on the first preset play page, and call the live player to play the current live data in mute on the second preset play page, wherein the first preset play page It is located on the upper layer of the second preset playback page.
  • the above-mentioned electronic devices may include, but are not limited to, smart phones, desktop computers, tablet computers, notebook computers, smart speakers, digital assistants, augmented reality (AR)/virtual reality (VR) devices, smart Electronic devices such as wearable devices. It can also be software running on the above-mentioned electronic device, such as an application program, an applet, and the like.
  • the operating system running on the electronic device may include, but is not limited to, the Android system, the IOS system, linux, windows, Unix, and the like.
  • the electronic device 02 and the server 01 may be connected through a wired link, or may be connected through a wireless link.
  • Fig. 2 is a flow chart of a video playback method according to an exemplary embodiment.
  • the video playback method can be applied to electronic devices or other node devices, including the following steps: S201: Response After it is detected that the video data corresponding to the target virtual space contains the current live broadcast data and the target segment data, a target player is created; wherein, the target segment data is obtained based on the live broadcast data of the historical period of the target virtual space; S203: call the target playback The player plays the target segment data on the first preset play page; S205 : Invoke the live player to play the current live data on the second preset play page with mute.
  • step S201 in response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live broadcast data of the historical period of the target virtual space .
  • the target virtual space in step S201 may be any video website or a target live room on a video platform.
  • the electronic device may send a video data request to the video website or the server of the video platform , the video data request contains the identification information of the target virtual space.
  • the server may first parse the video data request, obtain the identification information of the target virtual space therefrom, and then feed back the video data corresponding to the target virtual space to the electronic device.
  • the user can first open the application corresponding to the video website or the video platform through the electronic device.
  • the electronic device detects that the live broadcast list page in the application corresponding to the video website or the video platform is displayed on the electronic device
  • the identification information of multiple virtual spaces (live broadcast rooms) displayed on the live broadcast list page may be obtained, and a video data request may be sent to the server based on the identification information, wherein, There is a one-to-one correspondence between video data requests and virtual spaces.
  • the above-mentioned target segment data may be any kind of segment data defined by humans, such as highlight segment data, or segment data including a certain object.
  • the target segment data may be obtained by intercepting live broadcast data based on the historical period of the target virtual space. For example, when the server receives a video data request, the target live broadcast room corresponding to the video data request has been broadcast live for 2 hours, and the target segment data can be the target live broadcast room from the first 30 minutes to the first 29 minutes. Data of live clips within 1 minute.
  • the video data fed back by the server when the server determines that there is no corresponding target segment data in the target virtual space, the video data fed back by the server only includes the current live broadcast data. In response to the server determining that there is corresponding target segment data in the target virtual space, the video data fed back by the server may include current live broadcast data and target segment data.
  • the target segment data may be determined by the server based on the live broadcast data of the historical period of the target virtual space.
  • the target segment data may be manually intercepted by the staff of the video platform based on the live broadcast data of the historical period of the target virtual space. How the segment data is the target segment data may be determined by the staff based on experience.
  • the server may, based on the target virtual space
  • the interactive operation information of the target segment data is determined from the live broadcast data of the historical period.
  • the above-mentioned interactive operation information of the target virtual space may include one or more of the number of users viewing the target virtual space at historical moments, the number of user likes, and the number of user tips.
  • the live broadcast data corresponding to each timestamp in the historical period has its corresponding number of users watching, the number of user likes, and the number of user tips.
  • the server may determine the target segment data from the live broadcast data in the historical period according to one or more of the number of user viewers, the number of user likes, and the number of user tips owned by the live broadcast data corresponding to each timestamp.
  • the server may first obtain the interactive operation information of the target virtual space before determining the target segment data from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
  • the operation of obtaining the interactive operation information of the target virtual space by the server is only performed under the authorization of the user.
  • the server may carry an identification algorithm for the target segment data, when the identification algorithm detects that the number of users viewing a certain segment of data exceeds the preset number of viewers, the number of user likes exceeds the preset number of likes, and /or the number of user tips exceeds the preset number of tips, the server may determine the segment data as the target segment data. In this way, the server objectively measures the user's liking for the target segment data through one or more of the number of users watching, the number of user likes, and the number of user tips, and provides certain data support for determining the target segment data, which is more objective and scientific. .
  • the server may further include a target segment data recognition model, and before the target segment data recognition model is trained, some training video data and target segment data marked in each training video data may be provided, and Input the training video data and the target segment data marked in each training video data into the target segment data recognition model to be trained, and use the target segment data to identify the predicted target segment data and the actually marked target segment data output by the model. Update the parameters of the target segment data recognition model until the target segment data recognition model is trained. Then, the target segment data identification model can identify the target segment data for the video in the target virtual space.
  • the video data fed back by the server may include current live broadcast data and a target segment data.
  • the server may determine a plurality of segment data from the live broadcast data of the historical period of the target virtual space.
  • the server may determine a target segment data from multiple segment data before feeding back the video data.
  • the deletion condition information may be determined first.
  • the pruning condition information may be related to the duration of the segment data.
  • the deletion condition information can be the duration information of less than 1 minute and greater than 30 seconds. In the case where two pieces of data are determined, the duration of segment data A is 1 minute and 30 seconds, and the duration of segment data B is 50 seconds. Then the server can determine the segment data B as the target segment data.
  • the selection condition information may be related to the number of viewers of the segment data.
  • the deletion condition information may be comparison information with the largest number of viewers among multiple pieces of segment data. When two pieces of segment data are determined, the (average or peak) number of viewers of segment data A is 10,000, and the (average or peak) number of viewers of segment data B is 10,500. Then the server can determine the segment data B as the target segment data.
  • the deletion condition information may be related to the number of likes of the segment data, or the number of tips of the segment data, or may be related to other information. In some embodiments, the deletion condition information may be pre- set.
  • Fig. 3 is a flowchart of a method for determining video data according to an exemplary embodiment. As shown in Fig. 3, the method includes the following steps: S301: Acquire current live broadcast data and at least one segment data; S303: Determine deletion condition information ; S305: Determine target segment data from at least one segment data according to the deletion condition information; S307: Obtain video data according to the current live broadcast data and the target segment data.
  • step S301 current live broadcast data and at least one segment data are acquired.
  • the electronic device receives the initial video data fed back by the server, and can parse the initial video data to obtain the current live broadcast data and multiple segment data.
  • step S303 the deletion condition information is determined.
  • the electronic device may determine the deletion condition information from the storage area, where the deletion condition information may be preset.
  • the pruning condition information may be related to the duration of the segment data.
  • the selection condition information may be related to the number of viewers of the segment data.
  • step S305 target segment data is determined from at least one segment data according to the deletion condition information.
  • each segment data may carry attribute information related to the deletion condition information. For example, in response to the deletion condition information being related to the duration of the segment data, each segment data can carry its own duration information, and in response to the deletion condition information being related to the number of viewers of the segment data, then each segment data can be Carry your own viewership information. In this way, the electronic device can determine the target segment data from the plurality of segment data according to the deletion condition information and the attribute information carried by each segment data.
  • step S307 video data is obtained according to the current live broadcast data and the target segment data.
  • the electronic device may determine the current live broadcast data and the target segment data as video data.
  • the server can hand over some operations to the electronic device to reduce some work of the server, so that the server can free up more resources to focus on the determination of segment data and the feedback of video data.
  • the electronic device determines the target segment data from at least one segment data based on the attribute information of each segment data.
  • the electronic device may also, with the user's consent, determine the personalized information of each user from the user personalized data obtained from the user's personalized survey, and select the personalized information from at least one segment based on the user's personalized information.
  • data identifies a target segment data.
  • a target segment data can be determined for the user according to the attribute information and deletion condition information of the segment data.
  • the video data fed back by the server mentioned above may only include the current live broadcast data, and there is no multiple segment data or target segment data. Therefore, we can understand that the live broadcast player that plays the current live broadcast data is bound to be used, while the player that plays the target segment data is only used with a certain probability. Therefore, in order to save the resources of the electronic device, the target player can be created only when the existence of the target segment data is detected.
  • the video data corresponding to the target virtual space that the server requests for feedback based on the video data may not include the target segment data or multiple segment data, but may include, in addition to the current live broadcast data, also include The live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period.
  • the above-mentioned interactive operation information of the target virtual space may include one or more of the number of users viewing the target virtual space at historical moments, the number of user likes, and the number of users tipped.
  • the live broadcast data corresponding to each timestamp in the historical period has its corresponding number of users watching, the number of user likes, and the number of user tips.
  • the target segment data can be determined from the live broadcast data of the historical period based on the interactive operation information.
  • the electronic device may directly determine at least one segment data from the live broadcast data of the historical period according to the interactive operation information, and then determine one target segment data from the at least one segment data according to the foregoing deletion condition information.
  • the electronic device may determine a target segment data from the live broadcast data of the historical period based on the interactive operation information and the deletion condition information at the same time.
  • the above implementation manners are only the manners listed in the embodiments of the present disclosure, and do not limit the contents of the embodiments of the present disclosure.
  • the interactive operation information of the target virtual space may be obtained before the server feeds back the video data to the electronic device.
  • the operation of obtaining the interactive operation information of the target virtual space by the server is only performed under the authorization of the user.
  • the server can hand over the operation of determining the target segment data to the electronic device, reducing the operation of the server, so that the server can free up more resources to focus on the interaction with the electronic device to which the video publisher belongs and the feedback of the video data. .
  • step S203 the target player is called to play the target segment data on the first preset playback page.
  • the video data further includes a first playback address and a second playback address, wherein the first playback address corresponds to the target segment data, and the second playback address corresponds to the current live broadcast data.
  • the electronic device may acquire the first play address, and call the target player to play the target segment data on the first preset play page through the first play address.
  • the target segment data is played with sound.
  • step S205 the live broadcast player is called to play the current live broadcast data on a second preset play page in mute mode, wherein the first preset play page is located on the upper layer of the second preset play page.
  • the electronic device may acquire the second play address, and call the live broadcast player to play the current live broadcast data on the second preset play page in mute mode through the second play address.
  • the electronic device may parse the video data to obtain the current live broadcast data, target segment data, the first live broadcast address and the second live broadcast address. Then, the electronic device can use the first playback address to request the target segment data, and call the target player to play the target segment data. Play silently.
  • the second playback address may include playback addresses corresponding to multiple video formats.
  • the electronic device may determine the video format to which it is paired. For example, in the case that the electronic device is a device corresponding to the IOS system, the electronic device selects the playback address corresponding to the HLS format in the second playback address.
  • the HLS format is a format presented by an HTTP-based adaptive bitrate streaming media transmission protocol.
  • FIG. 4 is a schematic diagram of a player hierarchy according to an exemplary embodiment. As shown in FIG. 4 , it includes a first preset play page 401 corresponding to a target player, and a second preset play page corresponding to the live player. Page 402, wherein the first preset play page is located on the upper layer of the second preset play page, it can also be said that the first preset play page is overlaid on the second preset play page.
  • both the first preset play page and the second preset play page may be displayed on the display screen of the electronic device in a full-screen format, and the user cannot see the first preset play page with the naked eye due to the blocking of the first preset play page.
  • Two preset play pages may be displayed on the display screen of the electronic device in a full-screen format, and the user cannot see the first preset play page with the naked eye due to the blocking of the first preset play page.
  • the first preset play page is not displayed on the display screen of the electronic device in the form of full screen
  • the second preset play page may be displayed on the display screen of the electronic device in the form of full screen, so, The user's naked eye can see part of the second preset play page while seeing the first preset play page.
  • the embodiment of the present disclosure enables the client to present the target segment data to the user through two mutually independent players, while paving the way for the subsequent seamless switching from the playback of the target segment data to the playback of the current live data. , simple and convenient. Further, since the user opens the target virtual space, the target virtual space with the target segment data (highlight segment data) will first present the target segment data obtained through scientific and rational deletion. The user's interest in watching live broadcasts.
  • the target segment data is played with sound on the first preset playback page of the upper layer by using the target live broadcaster, and the current live broadcast data is played silently on the second preset playback page of the lower layer by using the live broadcaster
  • the electronic device in response to detecting page jump instruction, may be as shown in FIG. 5 , which is a flowchart of a video playback method according to an exemplary embodiment, further comprising the following steps: S507: In response to detecting the page jump instruction , close the first preset play page, and jump to the second preset play page; S509 : use the live broadcast player to play the current live broadcast data with sound on the second preset play page; S5011 : release the target player.
  • step S507 in response to detecting the page jump instruction, the first preset play page is closed, and the second preset play page is jumped.
  • the page jump instruction may be a jump that is actively triggered after the playback of the target segment data.
  • the first preset playback page in response to the electronic device detecting that the playback of the target segment data is completed, the first preset playback page can be closed, and the jump Go to the second preset playback page.
  • the electronic device in response to the electronic device detecting that the playback of the target segment data is completed, it can smoothly jump to the second preset playback page, which ensures to the greatest extent that after the highlight segment data is played, the current live broadcast data can be directly played, and a natural transition can be achieved. , without waiting.
  • the first preset play page may include a page jump control, and in response to the electronic device detecting a page jump instruction triggered based on the page jump control, the first preset play page may be closed, and a jump to The second preset play page.
  • the embodiment of the present disclosure provides the user with the right of choice through the provided page jump control, so that the user can choose to directly jump to the second preset playback page through the page jump control when he does not want to view the target segment data. To the greatest extent, it is ensured that after the highlight data is played, the current live data can be played directly, with a natural transition without waiting.
  • step S509 the current live broadcast data is played with sound on the second preset play page by using the live broadcast player.
  • the electronic device in response to the first preset play page being closed, it is possible to directly jump to the second preset play page, and at this time, the electronic device can directly transfer the live player to the second preset play page, However, the current live data can be played back with sound.
  • step S5011 the target player is released.
  • the target player can be released in consideration of the utilization of the resources of the electronic device, that is, the electronic device no longer supports the target player with a thread. In this way, it can be ensured to the greatest extent that all views related to the playback of the highlight data are immediately cleared when the highlight data is not played, so as to maximize the performance of the electronic device, especially for the electronic device with a relatively low-end configuration.
  • the user can continue to watch the current live broadcast data, thereby ensuring the real-time nature of the content watched by the user.
  • the electronic device in response to detecting a page exit instruction or an application hiding instruction, may stop playing the target segment data and release the target player.
  • the page exit instruction is triggered when the electronic device detects that the user actively exits the target virtual space through virtual controls on some pages or physical controls of the electronic device.
  • the application hiding instruction is triggered when the electronic device detects that the user actively exits the video website or the application of the video platform through the virtual controls on some pages or the physical controls of the electronic device.
  • the electronic device calls the target player to play the target segment data on the first preset playback page, and detects the page exit instruction or the application hiding instruction, it can directly release the target player, and immediately clear and play the highlight segment data. All views related to maximizing the performance of electronic equipment, especially for lower-end electronic equipment.
  • the video website or video platform can flexibly adjust the weight of each indicator in the algorithm by understanding the brilliance of the live broadcast content, so that the generated highlight data has high quality, and the user's viewing time can be increased through high-quality content. While bringing more users to the platform, it can improve the platform's pursuit of high-quality content. For users, the live content they see can be more in line with their needs for high quality and high brilliance, thereby enhancing the user's own experience and feelings.
  • the user can experience this mode of presenting the wonderful live broadcast information of the virtual live broadcast room in the form of short videos in front of his eyes more.
  • the intuitiveness and efficiency of watching live video at the next level enables users to open other virtual live rooms with more interest and watch the highlights of other virtual live rooms, thereby improving the overall click-through rate of the virtual live rooms and allowing more high-quality content to be delivered to users. output.
  • Fig. 6 is a block diagram of a video playback apparatus according to an exemplary embodiment.
  • the apparatus includes a player creation module 601 , a first playback module 602 and a second playback module 603 .
  • the player creation module 601 is configured to create a target player in response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data; wherein, the target segment data is based on the historical period of the target virtual space. obtained from live broadcast data;
  • the first playback module 602 is configured to call the target player to play the target segment data on the first preset playback page
  • the second playback module 603 is configured to call the live player to play the current live data in mute on the second preset playback page;
  • the first preset play page is located on the upper layer of the second preset play page.
  • the apparatus further includes:
  • a page jump module configured to close the first preset play page and jump to the second preset play page in response to detecting the page jump instruction
  • the second playback module is configured to use the live player to play the current live data with sound on the second preset playback page
  • the player release module is configured to release the target player.
  • the page jump module is configured to:
  • the first preset playback page is closed.
  • the first preset playback page includes a page jump control, and a page jump module, configured as:
  • the first preset play page is closed.
  • the player release module is configured to:
  • the playback of the target segment data is stopped, and the target player is released.
  • the video data further includes a first playback address and a second playback address
  • the first playback module configured as:
  • the second playback module is configured as:
  • the apparatus further includes:
  • a data acquisition module configured to acquire current live broadcast data and at least one segment data
  • condition information determination module configured to determine deletion condition information
  • a target segment determination module configured to determine target segment data from at least one segment data according to the deletion condition information
  • the video data obtaining module is configured to obtain video data according to the current live broadcast data and the target segment data.
  • the target segment data is acquired from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
  • the apparatus further includes:
  • the historical data acquisition module is configured to acquire the live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period;
  • the target segment determination module is configured to determine the target segment data from the live broadcast data of the historical period based on the interactive operation information.
  • FIG. 7 is a block diagram of an electronic device 700 for video playback according to an exemplary embodiment.
  • the electronic device may be a server or a terminal device, and its internal structure diagram may be as shown in FIG. 7 .
  • the electronic device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities.
  • the memory of the electronic device includes a non-volatile storage medium and an internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the electronic device is used to communicate with an external terminal through a network connection.
  • the computer program implements a video playback method when executed by the processor.
  • FIG. 7 is only a block diagram of a partial structure related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied.
  • the electronic device may include more than More or fewer components are shown in the figures, either in combination or with different arrangements of components.
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure
  • the video playback method in the example comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure
  • a non-volatile computer-readable storage medium is also provided, which, when the instructions in the computer-readable storage medium are executed by a processor of the electronic device, enables the electronic device to perform the embodiments of the present disclosure
  • the video playback method in is also provided, which, when the instructions in the computer-readable storage medium are executed by a processor of the electronic device, enables the electronic device to perform the embodiments of the present disclosure
  • the video playback method in is also provided, which, when the instructions in the computer-readable storage medium are executed by a processor of the electronic device, enables the electronic device to perform the embodiments of the present disclosure The video playback method in .
  • a computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the computer device reads from the readable storage medium and executes the computer The program enables the computer device to execute the video playback method of the embodiment of the present disclosure.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

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

Abstract

The present disclosure relates to the technical field of Internet, and disclosed are a video playback method and apparatus, an electronic device, and a storage medium. The method is applied to an electronic device, and comprises: creating a target player in response to detecting that video data corresponding to a target virtual space comprises current livestreaming data and target fragment data, wherein the target fragment data is obtained on the basis of livestreaming data of a historical time period of the target virtual space; calling the target player to play the target fragment data on a first preset playback page, and calling a livestreaming player to silently play the current livestreaming data on a second preset playback page.

Description

视频播放方法及装置Video playback method and device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202110368436.6、申请日为2021年04月06日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number of 202110368436.6 and the filing date of April 6, 2021, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is incorporated herein by reference.
技术领域technical field
本公开涉及互联网技术领域,尤其涉及一种视频播放方法、装置、电子设备及存储介质。The present disclosure relates to the field of Internet technologies, and in particular, to a video playback method, device, electronic device, and storage medium.
背景技术Background technique
目前,移动终端从互联网多媒体中点播和直播视频的应用越来越广泛,随着移动互联网技术的不断发展,移动网络速度也得到很大提升,这也使得人们对于移动视频场景的使用越来越多。与此同时,移动视频以其方便、快捷的特点越来越受人们喜爱,尤其是人们在闲暇时间,甚至是在上下班的碎片化时间里观看视频点播/直播内容,这样就可以充分利用琐碎时间观看感兴趣的视频节目。At present, mobile terminals are more and more widely used for on-demand and live video from Internet multimedia. With the continuous development of mobile Internet technology, the speed of mobile network has also been greatly improved, which also makes people use more and more mobile video scenarios. many. At the same time, mobile video is more and more popular because of its convenience and speed, especially when people watch video-on-demand/live content in their spare time or even in the fragmented time of commuting, so that they can make full use of trivial Time to watch video programs of interest.
相关技术中,直播视频作为一种重要的内容介质,越来越多的短视频平台将其作为一种内容形式呈现给用户。但由于直播视频不同于短视频,这是因为短视频一旦发布后内容不会发生任何变化,而直播的内容因为是实时的,无时无刻都在发生着变化,那么,需要抓住直播的精彩瞬间并及时地将内容呈现给用户。In the related art, live video is an important content medium, and more and more short video platforms present it to users as a content form. However, since live video is different from short video, this is because the content of short video will not change after it is released, and because the content of live broadcast is real-time, it is changing all the time. Present content to users in a timely manner.
发明内容SUMMARY OF THE INVENTION
本公开提供一种视频播放方法、装置、电子设备及存储介质,本公开的技术方案如下:The present disclosure provides a video playback method, device, electronic device, and storage medium. The technical solutions of the present disclosure are as follows:
根据本公开实施例的第一方面,提供一种视频播放方法,应用于电子设备,包括:According to a first aspect of the embodiments of the present disclosure, a video playback method is provided, applied to an electronic device, including:
响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,目标片段数据是基于目标虚拟空间的历史时段的直播数据获取的;In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live data of the historical period of the target virtual space;
调用目标播放器在第一预设播放页面上播放目标片段数据;calling the target player to play the target segment data on the first preset playback page;
调用直播播放器在第二预设播放页面上静音播放当前直播数据;Invoke the live player to play the current live data in mute on the second preset playback page;
其中,第一预设播放页面位于第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
在一些实施例中,上述方法还包括:In some embodiments, the above method further includes:
响应于检测到页面跳转指令,关闭第一预设播放页面,跳转至第二预设播放页面;In response to detecting the page jump instruction, close the first preset play page, and jump to the second preset play page;
利用直播播放器在第二预设播放页面上有声播放当前直播数据;Use the live player to play the current live data with sound on the second preset playback page;
释放该目标播放器。Release the target player.
在一些实施例中,响应于检测到页面跳转指令,关闭第一预设播放页面包括:In some embodiments, in response to detecting the page jump instruction, closing the first preset play page includes:
响应于检测到目标片段数据播放完毕,关闭第一预设播放页面。In response to detecting that the playback of the target segment data is completed, the first preset playback page is closed.
在一些实施例中,第一预设播放页面包括页面跳转控件,响应于检测到页面跳转指令,关闭第一预设播放页面包括:In some embodiments, the first preset play page includes a page jump control, and in response to detecting a page jump instruction, closing the first preset play page includes:
响应于检测到基于页面跳转控件触发的页面跳转指令,关闭第一预设播放页面。In response to detecting a page jump instruction triggered based on the page jump control, the first preset play page is closed.
在一些实施例中,上述方法还包括:In some embodiments, the above method further includes:
响应于检测到页面退出指令或者应用隐藏指令,停止目标片段数据的播放,释放目标播放器。In response to detecting the page exit instruction or the application hiding instruction, the playback of the target segment data is stopped, and the target player is released.
在一些实施例中,视频数据中还包括第一播放地址和第二播放地址;In some embodiments, the video data further includes a first playback address and a second playback address;
调用目标播放器在第一预设播放页面上播放目标片段数据包括:Calling the target player to play the target segment data on the first preset playback page includes:
获取第一播放地址,调用目标播放器通过第一播放地址在第一预设播放页面上播放目标片段数据;Obtain the first playback address, and call the target player to play the target segment data on the first preset playback page through the first playback address;
调用直播播放器在第二预设播放页面上静音播放当前直播数据包括:Calling the live broadcast player to play the current live broadcast data on the second preset playback page with mute includes:
获取第二播放地址,调用直播播放器通过第二播放地址在第二预设播放页面上静音播放当前直播数据。Obtain the second playback address, and call the live broadcast player to play the current live broadcast data on the second preset playback page in mute through the second playback address.
在一些实施例中,上述方法还包括:In some embodiments, the above method further includes:
获取当前直播数据和至少一个片段数据;Get the current live broadcast data and at least one segment data;
确定删选条件信息;Determine the deletion condition information;
根据删选条件信息从至少一个片段数据中确定出目标片段数据;Determine target segment data from at least one segment data according to the deletion condition information;
根据当前直播数据和目标片段数据得到视频数据。Video data is obtained according to the current live broadcast data and the target segment data.
在一些实施例中,目标片段数据是基于目标虚拟空间的互动操作信息从历史时段的直播数据 获取的。In some embodiments, the target segment data is obtained from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
在一些实施例中,该方法还包括:In some embodiments, the method further includes:
获取目标虚拟空间的历史时段的直播数据,以及历史时段的直播数据对应的互动操作信息;Obtain the live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period;
基于该互动操作信息从历史时段的直播数据确定出目标片段数据。The target segment data is determined from the live broadcast data of the historical period based on the interactive operation information.
根据本公开实施例的第二方面,提供一种视频播放装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a video playback device, comprising:
播放器创建模块,被配置为响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,目标片段数据是基于目标虚拟空间的历史时段的直播数据获取的;The player creation module is configured to create a target player in response to detecting that the video data corresponding to the target virtual space contains the current live broadcast data and the target segment data; wherein, the target segment data is based on the live broadcast of the historical period of the target virtual space data obtained;
第一播放模块,被配置为调用目标播放器在第一预设播放页面上播放目标片段数据;a first playback module, configured to call the target player to play the target segment data on the first preset playback page;
第二播放模块,被配置为调用直播播放器在第二预设播放页面上静音播放当前直播数据;The second playback module is configured to call the live player to play the current live data in mute on the second preset playback page;
其中,第一预设播放页面位于第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
页面跳转模块,被配置为响应于检测到页面跳转指令,关闭第一预设播放页面,跳转至第二预设播放页面;a page jump module, configured to close the first preset play page and jump to the second preset play page in response to detecting the page jump instruction;
第二播放模块,被配置为利用直播播放器在第二预设播放页面上有声播放当前直播数据;The second playback module is configured to use the live player to play the current live data with sound on the second preset playback page;
播放器释放模块,被配置为释放目标播放器。The player release module is configured to release the target player.
在一些实施例中,页面跳转模块,被配置为:In some embodiments, the page jump module is configured to:
响应于检测到目标片段数据播放完毕,关闭第一预设播放页面。In response to detecting that the playback of the target segment data is completed, the first preset playback page is closed.
在一些实施例中,第一预设播放页面包括页面跳转控件,页面跳转模块,被配置为:In some embodiments, the first preset playback page includes a page jump control, and a page jump module, configured as:
响应于检测到基于页面跳转控件触发的页面跳转指令,关闭第一预设播放页面。In response to detecting a page jump instruction triggered based on the page jump control, the first preset play page is closed.
在一些实施例中,播放器释放模块,被配置为:In some embodiments, the player release module is configured to:
响应于检测到页面退出指令或者应用隐藏指令,停止目标片段数据的播放,释放目标播放器。In response to detecting the page exit instruction or the application hiding instruction, the playback of the target segment data is stopped, and the target player is released.
在一些实施例中,视频数据中还包括第一播放地址和第二播放地址;In some embodiments, the video data further includes a first playback address and a second playback address;
第一播放模块,被配置为:The first playback module, configured as:
获取第一播放地址,调用目标播放器通过第一播放地址在第一预设播放页面上播放目标片段数据;Obtain the first playback address, and call the target player to play the target segment data on the first preset playback page through the first playback address;
第二播放模块,被配置为:The second playback module is configured as:
获取第二播放地址,调用直播播放器通过第二播放地址在第二预设播放页面上静音播放当前直播数据。Obtain the second playback address, and call the live broadcast player to play the current live broadcast data on the second preset playback page in mute through the second playback address.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
数据获取模块,被配置为获取当前直播数据和至少一个片段数据;a data acquisition module, configured to acquire current live broadcast data and at least one segment data;
条件信息确定模块,被配置为确定删选条件信息;a condition information determination module, configured to determine deletion condition information;
目标片段确定模块,被配置为根据删选条件信息从至少一个片段数据中确定出目标片段数据;a target segment determination module, configured to determine target segment data from at least one segment data according to the deletion condition information;
视频数据获取模块,被配置为根据当前直播数据和目标片段数据得到视频数据。The video data obtaining module is configured to obtain video data according to the current live broadcast data and the target segment data.
在一些实施例中,目标片段数据是基于目标虚拟空间的互动操作信息从历史时段的直播数据获取的。In some embodiments, the target segment data is acquired from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
在一些实施例中,该装置还包括:In some embodiments, the apparatus further includes:
历史数据获取模块,被配置为获取目标虚拟空间的历史时段的直播数据,以及历史时段的直播数据对应的互动操作信息;The historical data acquisition module is configured to acquire the live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period;
目标片段确定模块,被配置为基于互动操作信息从历史时段的直播数据确定出目标片段数据。The target segment determination module is configured to determine the target segment data from the live broadcast data of the historical period based on the interactive operation information.
根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令,以实现如上述第一方面中任一项的方法。According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the first aspect as described above any of the methods.
根据本公开实施例的第四方面,提供一种非易失性计算机可读存储介质,当计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例的第一方面中任一项的方法。According to a fourth aspect of the embodiments of the present disclosure, a non-volatile computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the embodiments of the present disclosure. The method of any one of the first aspects.
根据本公开实施例的第五方面,提供一种计算机程序产品,计算机程序产品包括计算机程序,计算机程序存储在可读存储介质中,计算机设备的至少一个处理器从可读存储介质读取并执行计算机程序,使得计算机设备执行本公开实施例的第一方面中任一项的方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, the computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the computer device reads and executes the computer program from the readable storage medium A computer program that causes a computer device to perform the method of any one of the first aspects of the embodiments of the present disclosure.
响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,目标片段数据是基于目标虚拟空间的历史时段的直播数据获取的。调用目标播放器在第一预设播放页面上播放目标片段数据,调用直播播放器在第二预设播放页面上静音播放当前直播数据。其中,第一预设播放页面位于第二预设播放页面的上层。本公开实施例通过两个 彼此独立的播放器,使得客户端能够将目标片段数据呈现给用户的同时,为后续能够从目标片段数据的播放无缝切换至当前直播数据的播放做好铺垫,简单便捷。In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein the target segment data is obtained based on the live data of the historical period of the target virtual space. The target player is called to play the target segment data on the first preset play page, and the live broadcast player is called to play the current live data on the second preset play page with mute. Wherein, the first preset play page is located on the upper layer of the second preset play page. In the embodiment of the present disclosure, through two independent players, the client can present the target segment data to the user, while paving the way for the subsequent seamless switching from the playback of the target segment data to the playback of the current live data. Convenient.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种应用环境的示意图;FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种视频播放方法的流程图;2 is a flowchart of a video playback method according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种确定视频数据方法的流程图;3 is a flowchart of a method for determining video data according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种播放器层级的示意图;4 is a schematic diagram of a player hierarchy according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种视频播放方法的流程图;5 is a flowchart of a video playback method according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种视频播放装置的框图;6 is a block diagram of a video playback device according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种用于视频播放的电子设备的框图。Fig. 7 is a block diagram of an electronic device for video playback according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的第一对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar first objects, and are not necessarily used to describe a specific order or sequence. order. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
请参阅图1,图1是根据一示例性实施例示出的一种视频播放方法的应用环境的示意图,如图1所示,该应用环境可以包括服务器01和电子设备02。Please refer to FIG. 1 , which is a schematic diagram of an application environment of a video playback method according to an exemplary embodiment. As shown in FIG. 1 , the application environment may include a server 01 and an electronic device 02 .
在一些实施例中,服务器01可以是接收到电子设备02发送的视频数据请求后,基于该视频数据请求中包含的视频标识信息反馈给电子设备02视频数据的服务器。在一些实施例中,服务器可以包括是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。In some embodiments, the server 01 may be a server that feeds back the video data to the electronic device 02 based on the video identification information contained in the video data request after receiving the video data request sent by the electronic device 02 . In some embodiments, the server may include an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or may provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, Network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
在一些实施例中,上述的电子设备02响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,可以创建目标播放器,其中,目标片段数据是基于目标虚拟空间的历史时段的直播数据获取的。随后,电子设备02可以调用目标播放器在第一预设播放页面上播放目标片段数据,并调用直播播放器在第二预设播放页面上静音播放当前直播数据,其中,第一预设播放页面位于第二预设播放页面的上层。其中,上述的电子设备可以包括但不限于智能手机、台式计算机、平板电脑、笔记本电脑、智能音箱、数字助理、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、智能可穿戴设备等类型的电子设备。也可以为运行于上述电子设备的软体,例如应用程序、小程序等。在一些实施例中,电子设备上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows、Unix等。In some embodiments, the above-mentioned electronic device 02 may create a target player in response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, wherein the target segment data is based on the target virtual space The live broadcast data of the historical period is obtained. Subsequently, the electronic device 02 can call the target player to play the target segment data on the first preset play page, and call the live player to play the current live data in mute on the second preset play page, wherein the first preset play page It is located on the upper layer of the second preset playback page. Wherein, the above-mentioned electronic devices may include, but are not limited to, smart phones, desktop computers, tablet computers, notebook computers, smart speakers, digital assistants, augmented reality (AR)/virtual reality (VR) devices, smart Electronic devices such as wearable devices. It can also be software running on the above-mentioned electronic device, such as an application program, an applet, and the like. In some embodiments, the operating system running on the electronic device may include, but is not limited to, the Android system, the IOS system, linux, windows, Unix, and the like.
在一些实施例中,电子设备02和服务器01之间可以通过有线链路连接,也可以通过无线链路连接。In some embodiments, the electronic device 02 and the server 01 may be connected through a wired link, or may be connected through a wireless link.
图2是根据一示例性实施例示出的一种视频播放方法的流程图,如图2所示,视频播放方法可以应用于电子设备,也可以应用于其他节点设备,包括以下步骤:S201:响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,目标片段数据是基于目标虚拟空间的历史时段的直播数据获取的;S203:调用目标播放器在第一预设播放页面上播放目标片段数据;S205:调用直播播放器在第二预设播放页面上静音播放当前直播数据。Fig. 2 is a flow chart of a video playback method according to an exemplary embodiment. As shown in Fig. 2, the video playback method can be applied to electronic devices or other node devices, including the following steps: S201: Response After it is detected that the video data corresponding to the target virtual space contains the current live broadcast data and the target segment data, a target player is created; wherein, the target segment data is obtained based on the live broadcast data of the historical period of the target virtual space; S203: call the target playback The player plays the target segment data on the first preset play page; S205 : Invoke the live player to play the current live data on the second preset play page with mute.
在步骤S201中,响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,目标片段数据是基于目标虚拟空间的历史时段的直播数据获取 的。In step S201, in response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live broadcast data of the historical period of the target virtual space .
本公开实施例中,步骤S201中的目标虚拟空间可以是任何视频网站或者视频平台上的目标直播间。In this embodiment of the present disclosure, the target virtual space in step S201 may be any video website or a target live room on a video platform.
在一些实施例中,在步骤S201之前,即在检测到目标虚拟空间对应的视频数据中是否包含有当前直播数据和目标片段数据之前,电子设备可以向视频网站或者视频平台的服务器发送视频数据请求,该视频数据请求中包含有目标虚拟空间的标识信息。对应的,服务器在接收到该视频数据请求后,可以先解析该视频数据请求,从中获取该目标虚拟空间的标识信息,随后向电子设备反馈该目标虚拟空间对应的视频数据。In some embodiments, before step S201, that is, before detecting whether the video data corresponding to the target virtual space contains the current live broadcast data and target segment data, the electronic device may send a video data request to the video website or the server of the video platform , the video data request contains the identification information of the target virtual space. Correspondingly, after receiving the video data request, the server may first parse the video data request, obtain the identification information of the target virtual space therefrom, and then feed back the video data corresponding to the target virtual space to the electronic device.
在一些实施例中,用户通过电子设备可以先打开视频网站或者视频平台对应的应用,在一些实施例中,在电子设备检测到视频网站或者视频平台对应的应用中的直播列表页面显示在电子设备的界面上的情况下,可以获取直播列表页面上显示的多个虚拟空间(直播间)的标识信息,并基于该标识信息向服务器发送视频数据请求,其中,视频数据请求和虚拟空间一一对应。在一些实施例中,响应于电子设备检测到下拉刷新指令,可以获取直播列表页面上显示的多个虚拟空间(直播间)的标识信息,并基于该标识信息向服务器发送视频数据请求,其中,视频数据请求和虚拟空间一一对应。In some embodiments, the user can first open the application corresponding to the video website or the video platform through the electronic device. In some embodiments, when the electronic device detects that the live broadcast list page in the application corresponding to the video website or the video platform is displayed on the electronic device In the case of the interface, you can obtain the identification information of multiple virtual spaces (live rooms) displayed on the live broadcast list page, and send a video data request to the server based on the identification information, wherein the video data request and the virtual space are in one-to-one correspondence . In some embodiments, in response to the electronic device detecting the pull-down refresh instruction, the identification information of multiple virtual spaces (live broadcast rooms) displayed on the live broadcast list page may be obtained, and a video data request may be sent to the server based on the identification information, wherein, There is a one-to-one correspondence between video data requests and virtual spaces.
在一些实施例中,上述的目标片段数据可以是人为定义的任何一种片段数据,比如精彩片段数据,或者是包含某个对象的片段数据。In some embodiments, the above-mentioned target segment data may be any kind of segment data defined by humans, such as highlight segment data, or segment data including a certain object.
在一些实施例中,以目标片段数据为精彩片段数据为例,在一些实施例中,目标片段数据可以是基于该目标虚拟空间的历史时段的直播数据截取获取的。举个例子,在服务器接收到视频数据请求的情况下,该视频数据请求对应的目标直播间已经直播了2个小时,该目标片段数据可以是该目标直播间在前30分钟至前29分钟这1分钟之内的直播片段的数据。In some embodiments, taking the target segment data as highlight segment data as an example, in some embodiments, the target segment data may be obtained by intercepting live broadcast data based on the historical period of the target virtual space. For example, when the server receives a video data request, the target live broadcast room corresponding to the video data request has been broadcast live for 2 hours, and the target segment data can be the target live broadcast room from the first 30 minutes to the first 29 minutes. Data of live clips within 1 minute.
在一些实施例中,当服务器确定该目标虚拟空间不存在对应的目标片段数据的时候,则服务器反馈的视频数据中仅仅包含当前直播数据。响应于服务器确定该目标虚拟空间存在对应的目标片段数据的情况下,则服务器反馈的视频数据中可以包含有当前直播数据和目标片段数据。In some embodiments, when the server determines that there is no corresponding target segment data in the target virtual space, the video data fed back by the server only includes the current live broadcast data. In response to the server determining that there is corresponding target segment data in the target virtual space, the video data fed back by the server may include current live broadcast data and target segment data.
在一些实施例中,目标片段数据可以是服务器基于目标虚拟空间的历史时段的直播数据确定出来的。In some embodiments, the target segment data may be determined by the server based on the live broadcast data of the historical period of the target virtual space.
在一些实施例中,目标片段数据可以是视频平台的工作人员基于目标虚拟空间的历史时段的直播数据人为截取的。如何片段数据为目标片段数据,可以是工作人员基于经验确定的。In some embodiments, the target segment data may be manually intercepted by the staff of the video platform based on the live broadcast data of the historical period of the target virtual space. How the segment data is the target segment data may be determined by the staff based on experience.
在一些实施例中,为了使得确定出的目标片段数据可以获得用户的喜欢,使得后续观看目标片段数据的用户可以被吸引进而留在该目标虚拟空间继续观看当前直播视频,服务器可以基于目标虚拟空间的互动操作信息从历史时段的直播数据确定出该目标片段数据。In some embodiments, in order to enable the determined target segment data to be liked by the user, so that users who subsequently watch the target segment data can be attracted and stay in the target virtual space to continue watching the current live video, the server may, based on the target virtual space The interactive operation information of the target segment data is determined from the live broadcast data of the historical period.
在一些实施例中,上述的目标虚拟空间的互动操作信息可以包括历史时刻的观看该目标虚拟空间的用户观看人数,用户点赞数量和用户打赏数量中的一个或者多个。其中,历史时段中每个时间戳对应的直播数据都有其对应的用户观看人数、用户点赞数量和用户打赏数量。服务器可以根据每个时间戳对应的直播数据拥有的用户观看人数、用户点赞数量和用户打赏数量的一个或者多个从历史时段的直播数据确定出该目标片段数据。In some embodiments, the above-mentioned interactive operation information of the target virtual space may include one or more of the number of users viewing the target virtual space at historical moments, the number of user likes, and the number of user tips. Among them, the live broadcast data corresponding to each timestamp in the historical period has its corresponding number of users watching, the number of user likes, and the number of user tips. The server may determine the target segment data from the live broadcast data in the historical period according to one or more of the number of user viewers, the number of user likes, and the number of user tips owned by the live broadcast data corresponding to each timestamp.
在一些实施例中,服务器在基于目标虚拟空间的互动操作信息从历史时段的直播数据确定出该目标片段数据之前,可以先获取该目标虚拟空间的互动操作信息。其中,服务器获取目标虚拟空间的互动操作信息的操作是在用户授权下才进行的。In some embodiments, the server may first obtain the interactive operation information of the target virtual space before determining the target segment data from the live broadcast data of the historical period based on the interactive operation information of the target virtual space. The operation of obtaining the interactive operation information of the target virtual space by the server is only performed under the authorization of the user.
在一些实施例中,该服务器可以承载有目标片段数据的识别算法,当该识别算法检测到某段片段数据的用户观看人数超过预设观看人数、用户点赞数量超过预设点赞数量、和/或用户打赏数量超过预设打赏数量,服务器就可以将该片段数据确定为目标片段数据。如此,服务器通过用户观看人数,用户点赞数量和用户打赏数量中的一个或者多个客观衡量用户对目标片段数据的喜欢程度,为确定目标片段数据给出一定的数据支撑,更加客观和科学。In some embodiments, the server may carry an identification algorithm for the target segment data, when the identification algorithm detects that the number of users viewing a certain segment of data exceeds the preset number of viewers, the number of user likes exceeds the preset number of likes, and /or the number of user tips exceeds the preset number of tips, the server may determine the segment data as the target segment data. In this way, the server objectively measures the user's liking for the target segment data through one or more of the number of users watching, the number of user likes, and the number of user tips, and provides certain data support for determining the target segment data, which is more objective and scientific. .
在一些实施例中,该服务器还可以包括目标片段数据识别模型,在该目标片段数据识别模型训练好之前,可以提供一些训练视频数据,以及每个训练视频数据中标注出的目标片段数据,并将这些训练视频数据,以及每个训练视频数据中标注出的目标片段数据输入待训练的目标片段数据识别模型,利用目标片段数据识别模型输出的预测的目标片段数据和实际标注出的目标片段数据对目标片段数据识别模型进行参数的更新,直到目标片段数据识别模型被训练完成。随后,该目标片段数据识别模型就可以对目标虚拟空间的视频进行目标片段数据的识别。In some embodiments, the server may further include a target segment data recognition model, and before the target segment data recognition model is trained, some training video data and target segment data marked in each training video data may be provided, and Input the training video data and the target segment data marked in each training video data into the target segment data recognition model to be trained, and use the target segment data to identify the predicted target segment data and the actually marked target segment data output by the model. Update the parameters of the target segment data recognition model until the target segment data recognition model is trained. Then, the target segment data identification model can identify the target segment data for the video in the target virtual space.
在一些实施例中,服务器反馈的视频数据中可以包含有当前直播数据和一个目标片段数据。然而,在实际操作中,服务器可以从目标虚拟空间的历史时段的直播数据中确定出多个片段数据。 本公开实施例中,为了提高服务器,电子设备等硬件资源利用率以及通信传输资源利用率,服务器在反馈视频数据之前,可以从多个片段数据中确定出一个目标片段数据。在一些实施例中,在服务器在从多个片段数据中确定出一个目标片段数据之前,可以先确定删选条件信息。In some embodiments, the video data fed back by the server may include current live broadcast data and a target segment data. However, in actual operation, the server may determine a plurality of segment data from the live broadcast data of the historical period of the target virtual space. In the embodiment of the present disclosure, in order to improve the utilization rate of hardware resources such as servers and electronic devices and the utilization rate of communication transmission resources, the server may determine a target segment data from multiple segment data before feeding back the video data. In some embodiments, before the server determines a target segment data from a plurality of segment data, the deletion condition information may be determined first.
在一些实施例中,删选条件信息可以和片段数据的时长相关。举个例子,删选条件信息可以为小于1分钟且大于30秒的时长信息,在确定出2个片段数据的情况下,其中片段数据A的时长为1分钟30秒,片段数据B的时长为50秒。则服务器可以将片段数据B确定为目标片段数据。In some embodiments, the pruning condition information may be related to the duration of the segment data. For example, the deletion condition information can be the duration information of less than 1 minute and greater than 30 seconds. In the case where two pieces of data are determined, the duration of segment data A is 1 minute and 30 seconds, and the duration of segment data B is 50 seconds. Then the server can determine the segment data B as the target segment data.
在一些实施例中,删选条件信息可以和片段数据的观看人数相关。举个例子,删选条件信息可以是多个片段数据中观看人数最多的比较信息。在确定出2个片段数据的情况下,其中片段数据A的(平均或峰值)观看人数为10000人,片段数据B的(平均或峰值)观看人数为10500人。则服务器可以将片段数据B确定为目标片段数据。In some embodiments, the selection condition information may be related to the number of viewers of the segment data. For example, the deletion condition information may be comparison information with the largest number of viewers among multiple pieces of segment data. When two pieces of segment data are determined, the (average or peak) number of viewers of segment data A is 10,000, and the (average or peak) number of viewers of segment data B is 10,500. Then the server can determine the segment data B as the target segment data.
在一些实施例中,删选条件信息可以和片段数据的点赞数量相关,或者和片段数据的打赏数量相关,又或者可其他信息相关,在一些实施例中,删选条件信息可以是预设的。In some embodiments, the deletion condition information may be related to the number of likes of the segment data, or the number of tips of the segment data, or may be related to other information. In some embodiments, the deletion condition information may be pre- set.
在一些实施例中,服务器基于视频数据请求反馈的是初始视频数据,该初始视频数据可以包括当前直播数据和多个服务器截取的片段数据。本公开实施例中,电子设备可以基于该初始视频数据确定出当前直播数据和目标片段数据,从而得到视频数据。图3是根据一示例性实施例示出的一种确定视频数据方法的流程图,如图3所示,包括以下步骤:S301:获取当前直播数据和至少一个片段数据;S303:确定删选条件信息;S305:根据删选条件信息从至少一个片段数据中确定出目标片段数据;S307:根据当前直播数据和目标片段数据得到视频数据。In some embodiments, what the server requests for feedback based on the video data is initial video data, and the initial video data may include current live broadcast data and segment data intercepted by multiple servers. In this embodiment of the present disclosure, the electronic device may determine current live broadcast data and target segment data based on the initial video data, thereby obtaining video data. Fig. 3 is a flowchart of a method for determining video data according to an exemplary embodiment. As shown in Fig. 3, the method includes the following steps: S301: Acquire current live broadcast data and at least one segment data; S303: Determine deletion condition information ; S305: Determine target segment data from at least one segment data according to the deletion condition information; S307: Obtain video data according to the current live broadcast data and the target segment data.
在步骤S301中,获取当前直播数据和至少一个片段数据。In step S301, current live broadcast data and at least one segment data are acquired.
在一些实施例中,电子设备接收到服务器反馈的初始视频数据,可以对该初始视频数据进行解析,得到当前直播数据和多个片段数据。In some embodiments, the electronic device receives the initial video data fed back by the server, and can parse the initial video data to obtain the current live broadcast data and multiple segment data.
在步骤S303中,确定删选条件信息。In step S303, the deletion condition information is determined.
在一些实施例中,电子设备可以从存储区域确定出删选条件信息,其中,该删选条件信息可以是预设的。在一些实施例中,删选条件信息可以和片段数据的时长相关。在一些实施例中,删选条件信息可以和片段数据的观看人数相关。In some embodiments, the electronic device may determine the deletion condition information from the storage area, where the deletion condition information may be preset. In some embodiments, the pruning condition information may be related to the duration of the segment data. In some embodiments, the selection condition information may be related to the number of viewers of the segment data.
在步骤S305中,根据删选条件信息从至少一个片段数据中确定出目标片段数据。In step S305, target segment data is determined from at least one segment data according to the deletion condition information.
在一些实施例中,每个片段数据可以携带有和删选条件信息相关的属性信息。举个例子,响应于删选条件信息和片段数据的时长相关,则每个片段数据可以携带有自己的时长信息,响应于删选条件信息和片段数据的观看人数相关,则每个片段数据可以携带有自己的观看人数信息。如此,电子设备就可以根据删选条件信息和每个片段数据携带的属性信息从多个片段数据中确定出目标片段数据。In some embodiments, each segment data may carry attribute information related to the deletion condition information. For example, in response to the deletion condition information being related to the duration of the segment data, each segment data can carry its own duration information, and in response to the deletion condition information being related to the number of viewers of the segment data, then each segment data can be Carry your own viewership information. In this way, the electronic device can determine the target segment data from the plurality of segment data according to the deletion condition information and the attribute information carried by each segment data.
在步骤S307中,根据当前直播数据和目标片段数据得到视频数据。In step S307, video data is obtained according to the current live broadcast data and the target segment data.
本公开实施例中,电子设备可以将当前直播数据和目标片段数据确定为视频数据。此种方式下,服务器可以将部分操作移交至电子设备端进行,减少服务器某些工作,使得服务器能够腾出更多资源专注于片段数据的确定以及视频数据的反馈。In this embodiment of the present disclosure, the electronic device may determine the current live broadcast data and the target segment data as video data. In this way, the server can hand over some operations to the electronic device to reduce some work of the server, so that the server can free up more resources to focus on the determination of segment data and the feedback of video data.
上述S301至S307的步骤中,电子设备是基于每个片段数据的属性信息从至少一个片段数据确定出目标片段数据的。在一些实施例中,电子设备还可以在用户的同意下,对于用户的个性化调查得到的用户个性化数据中确定每个用户的个性化信息,并基于该用户的个性化信息从至少一个片段数据确定出一个目标片段数据。同时,在电子设备中没有该用户的个性化信息的情况下,则可以根据片段数据的属性信息和删选条件信息为用户确定一个目标片段数据。In the above steps S301 to S307, the electronic device determines the target segment data from at least one segment data based on the attribute information of each segment data. In some embodiments, the electronic device may also, with the user's consent, determine the personalized information of each user from the user personalized data obtained from the user's personalized survey, and select the personalized information from at least one segment based on the user's personalized information. data identifies a target segment data. At the same time, in the case that the user's personalized information does not exist in the electronic device, a target segment data can be determined for the user according to the attribute information and deletion condition information of the segment data.
在一些实施例中,上文提及服务器反馈的视频数据中可能仅仅包含当前直播数据,并不存在多个片段数据或者目标片段数据。因此,我们可以理解为播放当前直播数据的直播播放器必然会被使用,而播放目标片段数据的播放器只有一定几率被使用到。因此,为了节省电子设备的资源,可以在检测到有目标片段数据的存在的情况下,才创建目标播放器。In some embodiments, the video data fed back by the server mentioned above may only include the current live broadcast data, and there is no multiple segment data or target segment data. Therefore, we can understand that the live broadcast player that plays the current live broadcast data is bound to be used, while the player that plays the target segment data is only used with a certain probability. Therefore, in order to save the resources of the electronic device, the target player can be created only when the existence of the target segment data is detected.
在一些实施例中,服务器基于视频数据请求反馈的目标虚拟空间对应的视频数据中可能不包括目标片段数据或者是多个片段数据,而是除了可以包含有当前直播数据之外,还可以包含有该目标虚拟空间的历史时段的直播数据,以及历史时段的直播数据对应的互动操作信息。其中,上述的目标虚拟空间的互动操作信息可以包括历史时刻的观看该目标虚拟空间的用户观看人数,用户点赞数量和用户打赏数量中的一个或者多个。在一些实施例中,历史时段中每个时间戳对应的直播数据都有其对应的用户观看人数、用户点赞数量和用户打赏数量。In some embodiments, the video data corresponding to the target virtual space that the server requests for feedback based on the video data may not include the target segment data or multiple segment data, but may include, in addition to the current live broadcast data, also include The live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period. The above-mentioned interactive operation information of the target virtual space may include one or more of the number of users viewing the target virtual space at historical moments, the number of user likes, and the number of users tipped. In some embodiments, the live broadcast data corresponding to each timestamp in the historical period has its corresponding number of users watching, the number of user likes, and the number of user tips.
当电子设备从视频数据中解析得到历史时段的直播数据以及历史时段的直播数据对应的互动操作信息,可以基于互动操作信息从历史时段的直播数据确定出目标片段数据。When the electronic device parses and obtains the live broadcast data of the historical period and the interactive operation information corresponding to the live broadcast data of the historical period from the video data, the target segment data can be determined from the live broadcast data of the historical period based on the interactive operation information.
在一些实施例中,电子设备可以直接根据互动操作信息从历史时段的直播数据确定出至少一个片段数据,随后根据上述的删选条件信息从至少一个片段数据中确定出一个目标片段数据。In some embodiments, the electronic device may directly determine at least one segment data from the live broadcast data of the historical period according to the interactive operation information, and then determine one target segment data from the at least one segment data according to the foregoing deletion condition information.
在一些实施例中,电子设备可以同时基于互动操作信息和删选条件信息从历史时段的直播数据中确定出一个目标片段数据。In some embodiments, the electronic device may determine a target segment data from the live broadcast data of the historical period based on the interactive operation information and the deletion condition information at the same time.
以上的实施方式只是本公开实施例中列举的方式,并不对本公开实施例的内容有所限制。并且,本公开实施例中,服务器向电子设备反馈视频数据之前,可以先获取该目标虚拟空间的互动操作信息。其中,服务器获取目标虚拟空间的互动操作信息的操作是在用户授权下才进行的。The above implementation manners are only the manners listed in the embodiments of the present disclosure, and do not limit the contents of the embodiments of the present disclosure. Moreover, in the embodiment of the present disclosure, before the server feeds back the video data to the electronic device, the interactive operation information of the target virtual space may be obtained first. The operation of obtaining the interactive operation information of the target virtual space by the server is only performed under the authorization of the user.
此种方式下,服务器可以将确定目标片段数据的操作移交至电子设备端进行,减少服务器的操作,使得服务器能够腾出更多资源专注于和视频发布者所属电子设备的交互以及视频数据的反馈。In this way, the server can hand over the operation of determining the target segment data to the electronic device, reducing the operation of the server, so that the server can free up more resources to focus on the interaction with the electronic device to which the video publisher belongs and the feedback of the video data. .
在步骤S203中,调用目标播放器在第一预设播放页面上播放目标片段数据。In step S203, the target player is called to play the target segment data on the first preset playback page.
本公开实施例中,视频数据中还包括第一播放地址和第二播放地址,其中,第一播放地址对应于目标片段数据,该第二播放地址对应于当前直播数据。In the embodiment of the present disclosure, the video data further includes a first playback address and a second playback address, wherein the first playback address corresponds to the target segment data, and the second playback address corresponds to the current live broadcast data.
在一些实施例中,电子设备可以获取第一播放地址,并调用目标播放器通过第一播放地址在第一预设播放页面上播放目标片段数据。In some embodiments, the electronic device may acquire the first play address, and call the target player to play the target segment data on the first preset play page through the first play address.
本公开实施例中,目标片段数据是有声播放的。In the embodiment of the present disclosure, the target segment data is played with sound.
在步骤S205中,调用直播播放器在第二预设播放页面上静音播放当前直播数据,其中,第一预设播放页面位于第二预设播放页面的上层。In step S205, the live broadcast player is called to play the current live broadcast data on a second preset play page in mute mode, wherein the first preset play page is located on the upper layer of the second preset play page.
在一些实施例中,电子设备可以获取第二播放地址,并调用直播播放器通过第二播放地址在第二预设播放页面上静音播放当前直播数据。In some embodiments, the electronic device may acquire the second play address, and call the live broadcast player to play the current live broadcast data on the second preset play page in mute mode through the second play address.
在一些实施例中,电子设备获取视频数据后,可以对该视频数据进行解析,得到当前直播数据、目标片段数据、第一直播地址和第二直播地址。接着,电子设备可以利用第一播放地址请求目标片段数据,调用目标播放器对目标片段数据进行播放,同时,电子设备可以利用第二播放地址请求当前直播数据,调用直播播放器对当前直播数据进行静音播放。In some embodiments, after acquiring the video data, the electronic device may parse the video data to obtain the current live broadcast data, target segment data, the first live broadcast address and the second live broadcast address. Then, the electronic device can use the first playback address to request the target segment data, and call the target player to play the target segment data. Play silently.
在一些实施例中,第二播放地址可以包含多个视频格式对应的播放地址,在选取播放地址之前,电子设备可以确定自己配对的视频格式。举个例子,在电子设备为IOS系统对应的设备的情况下,则电子设备选取第二播放地址中HLS格式对应的播放地址。HLS格式是一种基于HTTP的自适应码率流媒体传输协议呈现的格式。In some embodiments, the second playback address may include playback addresses corresponding to multiple video formats. Before selecting the playback address, the electronic device may determine the video format to which it is paired. For example, in the case that the electronic device is a device corresponding to the IOS system, the electronic device selects the playback address corresponding to the HLS format in the second playback address. The HLS format is a format presented by an HTTP-based adaptive bitrate streaming media transmission protocol.
图4是根据一示例性实施例示出的一种播放器层级的示意图,如图4所示,包括目标播放器对应的第一预设播放页面401,以及直播播放器对应的第而预设播放页面402,其中,第一预设播放页面位于第二预设播放页面的上层,也可以说是第一预设播放页面覆盖于第二预设播放页面之上。FIG. 4 is a schematic diagram of a player hierarchy according to an exemplary embodiment. As shown in FIG. 4 , it includes a first preset play page 401 corresponding to a target player, and a second preset play page corresponding to the live player. Page 402, wherein the first preset play page is located on the upper layer of the second preset play page, it can also be said that the first preset play page is overlaid on the second preset play page.
在一些实施例中,第一预设播放页面和第二预设播放页面都可以以全屏的形式展示在电子设备的显示屏上,用户肉眼因为第一预设播放页面的阻挡,是看不见第二预设播放页面的。In some embodiments, both the first preset play page and the second preset play page may be displayed on the display screen of the electronic device in a full-screen format, and the user cannot see the first preset play page with the naked eye due to the blocking of the first preset play page. Two preset play pages.
在一些实施例中,第一预设播放页面不是以全屏的形式展示在电子设备的显示屏上的,而第二预设播放页面可以以全屏的形式展示在电子设备的显示屏上,如此,用户肉眼可以在看见第一预设播放页面的同时,可以看见部分第二预设播放页面。In some embodiments, the first preset play page is not displayed on the display screen of the electronic device in the form of full screen, and the second preset play page may be displayed on the display screen of the electronic device in the form of full screen, so, The user's naked eye can see part of the second preset play page while seeing the first preset play page.
如此,本公开实施例通过两个彼此独立的播放器,使得客户端能够将目标片段数据呈现给用户的同时,为后续能够从目标片段数据的播放无缝切换至当前直播数据的播放做好铺垫,简单便捷。进一步地,由于用户打开该目标虚拟空间,有目标片段数据(精彩片段数据)的目标虚拟空间会首先呈现经过科学合理地删选得到的目标片段数据,因此,本公开实施例可以大幅度地提高用户观看直播的兴趣。In this way, the embodiment of the present disclosure enables the client to present the target segment data to the user through two mutually independent players, while paving the way for the subsequent seamless switching from the playback of the target segment data to the playback of the current live data. , simple and convenient. Further, since the user opens the target virtual space, the target virtual space with the target segment data (highlight segment data) will first present the target segment data obtained through scientific and rational deletion. The user's interest in watching live broadcasts.
在一些实施例中,利用目标直播器在上层的第一预设播放页面有声播放目标片段数据,利用直播器在下层的第二预设播放页面静音播放当前直播数据的情况下,响应于检测到页面跳转指令,则电子设备可以如图5所示,图5是根据一示例性实施例示出的一种视频播放方法的流程图,进一步包括以下步骤:S507:响应于检测到页面跳转指令,关闭第一预设播放页面,跳转至第二预设播放页面;S509:利用直播播放器在第二预设播放页面上有声播放当前直播数据;S5011:释放目标播放器。In some embodiments, the target segment data is played with sound on the first preset playback page of the upper layer by using the target live broadcaster, and the current live broadcast data is played silently on the second preset playback page of the lower layer by using the live broadcaster, in response to detecting page jump instruction, the electronic device may be as shown in FIG. 5 , which is a flowchart of a video playback method according to an exemplary embodiment, further comprising the following steps: S507: In response to detecting the page jump instruction , close the first preset play page, and jump to the second preset play page; S509 : use the live broadcast player to play the current live broadcast data with sound on the second preset play page; S5011 : release the target player.
在步骤S507中,响应于检测到页面跳转指令,关闭第一预设播放页面,跳转至第二预设播放页面。In step S507, in response to detecting the page jump instruction, the first preset play page is closed, and the second preset play page is jumped.
在一些实施例中,页面跳转指令可以是目标片段数据播放完毕主动触发的跳转,该种情况下,响应于电子设备检测到目标片段数据播放完毕,可以关闭第一预设播放页面,跳转至第二预设播放页面。In some embodiments, the page jump instruction may be a jump that is actively triggered after the playback of the target segment data. In this case, in response to the electronic device detecting that the playback of the target segment data is completed, the first preset playback page can be closed, and the jump Go to the second preset playback page.
如此,响应于电子设备检测到目标片段数据播放完毕,就可以自然流畅的跳转至第二预设播放页面,最大程度地保证了精彩片段数据播放完毕之后,可以直接播放当前直播数据,自然过渡,无需等待。In this way, in response to the electronic device detecting that the playback of the target segment data is completed, it can smoothly jump to the second preset playback page, which ensures to the greatest extent that after the highlight segment data is played, the current live broadcast data can be directly played, and a natural transition can be achieved. , without waiting.
在一些实施例中,该第一预设播放页面可以包括页面跳转控件,响应于电子设备检测到基于页面跳转控件触发的页面跳转指令,可以关闭第一预设播放页面,跳转至第二预设播放页面。In some embodiments, the first preset play page may include a page jump control, and in response to the electronic device detecting a page jump instruction triggered based on the page jump control, the first preset play page may be closed, and a jump to The second preset play page.
如此,本公开实施例通过提供的页面跳转控件,给与用户选择权,使得用户在不想观看目标片段数据的情况下,可以选择通过页面跳转控件直接跳转至第二预设播放页面,最大程度地保证了精彩片段数据播放完毕之后,可以直接播放当前直播数据,自然过渡,无需等待。In this way, the embodiment of the present disclosure provides the user with the right of choice through the provided page jump control, so that the user can choose to directly jump to the second preset playback page through the page jump control when he does not want to view the target segment data. To the greatest extent, it is ensured that after the highlight data is played, the current live data can be played directly, with a natural transition without waiting.
在步骤S509中,利用直播播放器在第二预设播放页面上有声播放当前直播数据。In step S509, the current live broadcast data is played with sound on the second preset play page by using the live broadcast player.
在一些实施例中,响应于第一预设播放页面被关闭,可以直接跳转至第二预设播放页面,此时,电子设备可以将直播播放器直接传递到该第二预设播放页面,但可以进行有声播放当前直播数据。In some embodiments, in response to the first preset play page being closed, it is possible to directly jump to the second preset play page, and at this time, the electronic device can directly transfer the live player to the second preset play page, However, the current live data can be played back with sound.
在步骤S5011中,释放目标播放器。In step S5011, the target player is released.
由于已经不需要使用目标播放器,考虑到对电子设备资源的利用,可以将目标播放器进行释放,也就是说电子设备不再利用一个线程支撑目标播放器。如此,可以最大限度保证在不播放精彩片段数据的时刻,立刻清除与精彩片段数据播放有关的所有视图,最大限度提高电子设备的性能表现,尤其是对于配置比较低端的电子设备。同时,用户还可以继续观看当前直播数据,从而可以保证用户观看内容的实时性。Since the target player no longer needs to be used, the target player can be released in consideration of the utilization of the resources of the electronic device, that is, the electronic device no longer supports the target player with a thread. In this way, it can be ensured to the greatest extent that all views related to the playback of the highlight data are immediately cleared when the highlight data is not played, so as to maximize the performance of the electronic device, especially for the electronic device with a relatively low-end configuration. At the same time, the user can continue to watch the current live broadcast data, thereby ensuring the real-time nature of the content watched by the user.
本公开实施例中,响应于检测到页面退出指令或者应用隐藏指令,电子设备可以停止目标片段数据的播放,释放目标播放器。In this embodiment of the present disclosure, in response to detecting a page exit instruction or an application hiding instruction, the electronic device may stop playing the target segment data and release the target player.
其中,页面退出指令是指电子设备检测到用户通过某些页面上的虚拟控件或者电子设备的实体控件主动退出该目标虚拟空间时触发的。应用隐藏指令是指电子设备检测到用户通过某些页面上的虚拟控件或者电子设备的实体控件主动退出该视频网站或者视频平台的应用时触发的。The page exit instruction is triggered when the electronic device detects that the user actively exits the target virtual space through virtual controls on some pages or physical controls of the electronic device. The application hiding instruction is triggered when the electronic device detects that the user actively exits the video website or the application of the video platform through the virtual controls on some pages or the physical controls of the electronic device.
例如,电子设备在调用目标播放器在第一预设播放页面上播放目标片段数据的情况下,检测到页面退出指令或者应用隐藏指令,就可以直接释放目标播放器,立刻清除与精彩片段数据播放有关的所有视图,最大限度提高电子设备的性能表现,尤其是对于配置比较低端的电子设备。For example, when the electronic device calls the target player to play the target segment data on the first preset playback page, and detects the page exit instruction or the application hiding instruction, it can directly release the target player, and immediately clear and play the highlight segment data. All views related to maximizing the performance of electronic equipment, especially for lower-end electronic equipment.
综上,视频网站或者视频平台侧通过对直播内容精彩度的理解,灵活调整算法中各个指标的权重,使得生成的精彩片段数据具有较高的质量,通过高质量的内容增加用户的观看时长,给平台带来更多用户的同时,可以提高平台对高质量内容的追求。对于用户来说,其看见的直播内容可以更符合其高质量高精彩度的需求,从而提升用户自己的体验和感受。To sum up, the video website or video platform can flexibly adjust the weight of each indicator in the algorithm by understanding the brilliance of the live broadcast content, so that the generated highlight data has high quality, and the user's viewing time can be increased through high-quality content. While bringing more users to the platform, it can improve the platform's pursuit of high-quality content. For users, the live content they see can be more in line with their needs for high quality and high brilliance, thereby enhancing the user's own experience and feelings.
进一步地,由于本公开实施例涉及的视频播放方法的应用,可以使得用户在体验过这种将虚拟直播间的精彩直播信息以短视频的方式呈现在眼前的方式后,更加体会到该种模式下观看直播视频的直观性和高效性,促使用户可以更有兴趣地打开其他虚拟直播间,观看其他虚拟直播间的精彩片段,进而提升虚拟直播间整体的点击率,让更多优质内容向用户输出。Further, due to the application of the video playback method involved in the embodiments of the present disclosure, the user can experience this mode of presenting the wonderful live broadcast information of the virtual live broadcast room in the form of short videos in front of his eyes more. The intuitiveness and efficiency of watching live video at the next level enables users to open other virtual live rooms with more interest and watch the highlights of other virtual live rooms, thereby improving the overall click-through rate of the virtual live rooms and allowing more high-quality content to be delivered to users. output.
图6是根据一示例性实施例示出的一种视频播放装置框图。参照图6,该装置包括播放器创建模块601、第一播放模块602和第二播放模块603。Fig. 6 is a block diagram of a video playback apparatus according to an exemplary embodiment. Referring to FIG. 6 , the apparatus includes a player creation module 601 , a first playback module 602 and a second playback module 603 .
播放器创建模块601,被配置为响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,目标片段数据是基于目标虚拟空间的历史时段的直播数据获取的;The player creation module 601 is configured to create a target player in response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data; wherein, the target segment data is based on the historical period of the target virtual space. obtained from live broadcast data;
第一播放模块602,被配置为调用目标播放器在第一预设播放页面上播放目标片段数据;The first playback module 602 is configured to call the target player to play the target segment data on the first preset playback page;
第二播放模块603,被配置为调用直播播放器在第二预设播放页面上静音播放当前直播数据;The second playback module 603 is configured to call the live player to play the current live data in mute on the second preset playback page;
其中,第一预设播放页面位于第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
页面跳转模块,被配置为响应于检测到页面跳转指令,关闭第一预设播放页面,跳转至第二预设播放页面;a page jump module, configured to close the first preset play page and jump to the second preset play page in response to detecting the page jump instruction;
第二播放模块,被配置为利用直播播放器在第二预设播放页面上有声播放当前直播数据;The second playback module is configured to use the live player to play the current live data with sound on the second preset playback page;
播放器释放模块,被配置为释放目标播放器。The player release module is configured to release the target player.
在一些实施例中,页面跳转模块,被配置为:In some embodiments, the page jump module is configured to:
响应于检测到目标片段数据播放完毕,关闭第一预设播放页面。In response to detecting that the playback of the target segment data is completed, the first preset playback page is closed.
在一些实施例中,第一预设播放页面包括页面跳转控件,页面跳转模块,被配置为:In some embodiments, the first preset playback page includes a page jump control, and a page jump module, configured as:
响应于检测到基于页面跳转控件触发的页面跳转指令,关闭第一预设播放页面。In response to detecting a page jump instruction triggered based on the page jump control, the first preset play page is closed.
在一些实施例中,播放器释放模块,被配置为:In some embodiments, the player release module is configured to:
响应于检测到页面退出指令或者应用隐藏指令,停止目标片段数据的播放,释放目标播放器。In response to detecting the page exit instruction or the application hiding instruction, the playback of the target segment data is stopped, and the target player is released.
在一些实施例中,视频数据中还包括第一播放地址和第二播放地址;In some embodiments, the video data further includes a first playback address and a second playback address;
第一播放模块,被配置为:The first playback module, configured as:
获取第一播放地址,调用目标播放器通过第一播放地址在第一预设播放页面上播放目标片段数据;Obtain the first playback address, and call the target player to play the target segment data on the first preset playback page through the first playback address;
第二播放模块,被配置为:The second playback module is configured as:
获取第二播放地址,调用直播播放器通过第二播放地址在第二预设播放页面上静音播放当前直播数据。Obtain the second playback address, and call the live broadcast player to play the current live broadcast data on the second preset playback page in mute through the second playback address.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
数据获取模块,被配置为获取当前直播数据和至少一个片段数据;a data acquisition module, configured to acquire current live broadcast data and at least one segment data;
条件信息确定模块,被配置为确定删选条件信息;a condition information determination module, configured to determine deletion condition information;
目标片段确定模块,被配置为根据删选条件信息从至少一个片段数据中确定出目标片段数据;a target segment determination module, configured to determine target segment data from at least one segment data according to the deletion condition information;
视频数据获取模块,被配置为根据当前直播数据和目标片段数据得到视频数据。The video data obtaining module is configured to obtain video data according to the current live broadcast data and the target segment data.
在一些实施例中,目标片段数据是基于目标虚拟空间的互动操作信息从历史时段的直播数据获取的。In some embodiments, the target segment data is acquired from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
在一些实施例中,该装置还包括:In some embodiments, the apparatus further includes:
历史数据获取模块,被配置为获取目标虚拟空间的历史时段的直播数据,以及历史时段的直播数据对应的互动操作信息;The historical data acquisition module is configured to acquire the live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period;
目标片段确定模块,被配置为基于互动操作信息从历史时段的直播数据确定出目标片段数据。The target segment determination module is configured to determine the target segment data from the live broadcast data of the historical period based on the interactive operation information.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
图7是根据一示例性实施例示出的一种用于视频播放的电子设备700的框图。FIG. 7 is a block diagram of an electronic device 700 for video playback according to an exemplary embodiment.
该电子设备可以是服务器,还可以是终端设备,其内部结构图可以如图7所示。该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种视频播放方法。The electronic device may be a server or a terminal device, and its internal structure diagram may be as shown in FIG. 7 . The electronic device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. The computer program implements a video playback method when executed by the processor.
本领域技术人员可以理解,图7中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的电子设备的限定,电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of a partial structure related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied. The electronic device may include more than More or fewer components are shown in the figures, either in combination or with different arrangements of components.
在示例性实施例中,还提供了一种电子设备,包括:处理器;用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现如本公开实施例中的视频播放方法。In an exemplary embodiment, there is also provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure The video playback method in the example.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,当该计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例中的视频播放方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, which, when the instructions in the computer-readable storage medium are executed by a processor of the electronic device, enables the electronic device to perform the embodiments of the present disclosure The video playback method in .
在示例性实施例中,还提供了一种计算机程序产品,计算机程序产品包括计算机程序,计算机程序存储在可读存储介质中,计算机设备的至少一个处理器从可读存储介质读取并执行计算机程序,使得计算机设备执行本公开实施例的视频播放方法。In an exemplary embodiment, a computer program product is also provided, the computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the computer device reads from the readable storage medium and executes the computer The program enables the computer device to execute the video playback method of the embodiment of the present disclosure.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。All the embodiments of the present disclosure can be implemented independently or in combination with other embodiments, which are all regarded as the protection scope required by the present disclosure.

Claims (21)

  1. 一种视频播放方法,应用于电子设备,包括:A video playback method, applied to an electronic device, includes:
    响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,所述目标片段数据是基于所述目标虚拟空间的历史时段的直播数据获取的;In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live data of the historical period of the target virtual space;
    调用所述目标播放器在第一预设播放页面上播放所述目标片段数据;calling the target player to play the target segment data on the first preset playback page;
    调用直播播放器在第二预设播放页面上静音播放所述当前直播数据;Invoke the live player to play the current live data in mute on the second preset playback page;
    其中,所述第一预设播放页面位于所述第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
  2. 根据权利要求1所述的视频播放方法,还包括:The video playback method according to claim 1, further comprising:
    响应于检测到页面跳转指令,关闭所述第一预设播放页面,跳转至所述第二预设播放页面;In response to detecting a page jump instruction, close the first preset play page, and jump to the second preset play page;
    利用所述直播播放器在所述第二预设播放页面上有声播放所述当前直播数据;Use the live player to play the current live data with sound on the second preset playback page;
    释放所述目标播放器。Release the target player.
  3. 根据权利要求2所述的视频播放方法,其中,所述响应于检测到页面跳转指令,关闭所述第一预设播放页面包括:The video playback method according to claim 2, wherein, in response to detecting a page jump instruction, closing the first preset playback page comprises:
    响应于检测到所述目标片段数据播放完毕,关闭所述第一预设播放页面。In response to detecting that the playback of the target segment data is completed, the first preset playback page is closed.
  4. 根据权利要求2所述的视频播放方法,其中,所述第一预设播放页面包括页面跳转控件,所述响应于检测到页面跳转指令,关闭所述第一预设播放页面包括:The video playback method according to claim 2, wherein the first preset playback page includes a page jump control, and the closing the first preset playback page in response to detecting a page jump instruction comprises:
    响应于检测到基于所述页面跳转控件触发的所述页面跳转指令,关闭所述第一预设播放页面。In response to detecting the page jump instruction triggered based on the page jump control, the first preset play page is closed.
  5. 根据权利要求1所述的视频播放方法,还包括:The video playback method according to claim 1, further comprising:
    响应于检测到页面退出指令或者应用隐藏指令,停止所述目标片段数据的播放,释放所述目标播放器。In response to detecting a page exit instruction or an application hiding instruction, the playback of the target segment data is stopped, and the target player is released.
  6. 根据权利要求1-5任一所述的视频播放方法,其中,所述视频数据中还包括第一播放地址和第二播放地址;The video playback method according to any one of claims 1-5, wherein the video data further includes a first playback address and a second playback address;
    所述调用所述目标播放器在第一预设播放页面上播放所述目标片段数据包括:The invoking the target player to play the target segment data on the first preset playback page includes:
    获取所述第一播放地址,调用所述目标播放器通过所述第一播放地址在第一预设播放页面上播放所述目标片段数据;Obtain the first playback address, and call the target player to play the target segment data on the first preset playback page through the first playback address;
    所述调用直播播放器在第二预设播放页面上静音播放所述当前直播数据包括:The invoking the live broadcast player to play the current live broadcast data muted on the second preset play page includes:
    获取所述第二播放地址,调用所述直播播放器通过所述第二播放地址在第二预设播放页面上静音播放所述当前直播数据。The second playback address is acquired, and the live broadcast player is called to play the current live broadcast data in mute on a second preset playback page through the second playback address.
  7. 根据权利要求1-5任一所述的视频播放方法,还包括:The video playback method according to any one of claims 1-5, further comprising:
    获取所述当前直播数据和至少一个片段数据;obtaining the current live broadcast data and at least one segment data;
    确定删选条件信息;Determine the deletion condition information;
    根据所述删选条件信息从所述至少一个片段数据中确定出所述目标片段数据;Determine the target segment data from the at least one segment data according to the deletion condition information;
    根据所述当前直播数据和所述目标片段数据得到所述视频数据。The video data is obtained according to the current live broadcast data and the target segment data.
  8. 根据权利要求1-5任一所述的视频播放方法,其中,The video playback method according to any one of claims 1-5, wherein,
    所述目标片段数据是基于所述目标虚拟空间的互动操作信息从所述历史时段的直播数据获取的。The target segment data is obtained from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
  9. 根据权利要求8所述的视频播放方法,还包括:The video playback method according to claim 8, further comprising:
    获取所述目标虚拟空间的历史时段的直播数据,以及所述历史时段的直播数据对应的互动操作信息;obtaining the live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period;
    基于所述互动操作信息从所述历史时段的直播数据确定出所述目标片段数据。The target segment data is determined from the live broadcast data of the historical period based on the interactive operation information.
  10. 一种视频播放装置,应用于电子设备,包括:A video playback device, applied to electronic equipment, includes:
    播放器创建模块,被配置为响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,所述目标片段数据是基于所述目标虚拟空间的历史时段的直播数据获取的;The player creation module is configured to create a target player in response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data; wherein the target segment data is based on the target virtual space Obtained from live broadcast data in historical periods;
    第一播放模块,被配置为调用所述目标播放器在第一预设播放页面上播放所述目标片段数据;a first playback module, configured to call the target player to play the target segment data on the first preset playback page;
    第二播放模块,被配置为调用直播播放器在第二预设播放页面上静音播放所述当前直播数据;The second playback module is configured to call the live player to play the current live data in mute on the second preset playback page;
    其中,所述第一预设播放页面位于所述第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
  11. 根据权利要求10所述的视频播放装置,还包括:The video playback device according to claim 10, further comprising:
    页面跳转模块,被配置为响应于检测到页面跳转指令,关闭所述第一预设播放页面,跳转至所述第二预设播放页面;a page jump module, configured to close the first preset play page and jump to the second preset play page in response to detecting a page jump instruction;
    所述第二播放模块,被配置为利用所述直播播放器在所述第二预设播放页面上有声播放所述当前直播数据;The second playback module is configured to use the live player to play the current live data with sound on the second preset playback page;
    播放器释放模块,被配置为释放所述目标播放器。The player release module is configured to release the target player.
  12. 根据权利要求11所述的视频播放装置,其中,所述页面跳转模块,被配置为:The video playback device according to claim 11, wherein the page jumping module is configured as:
    响应于检测到所述目标片段数据播放完毕,关闭所述第一预设播放页面。In response to detecting that the playback of the target segment data is completed, the first preset playback page is closed.
  13. 根据权利要求11所述的视频播放装置,其中,所述第一预设播放页面包括页面跳转控件,所述页面跳转模块,被配置为:The video playback device according to claim 11, wherein the first preset playback page includes a page jump control, and the page jump module is configured as:
    响应于检测到基于所述页面跳转控件触发的所述页面跳转指令,关闭所述第一预设播放页面。In response to detecting the page jump instruction triggered based on the page jump control, the first preset play page is closed.
  14. 根据权利要求10所述的视频播放装置,其中,所述播放器释放模块,被配置为:The video playback device according to claim 10, wherein the player release module is configured to:
    响应于检测到页面退出指令或者应用隐藏指令,停止所述目标片段数据的播放,释放所述目标播放器。In response to detecting a page exit instruction or an application hiding instruction, the playback of the target segment data is stopped, and the target player is released.
  15. 根据权利要求10-14任一所述的视频播放装置,其中,所述视频数据中还包括第一播放地址和第二播放地址;The video playback device according to any one of claims 10-14, wherein the video data further includes a first playback address and a second playback address;
    所述第一播放模块,被配置为:The first playback module is configured as:
    获取所述第一播放地址,调用所述目标播放器通过所述第一播放地址在第一预设播放页面上播放所述目标片段数据;Obtain the first playback address, and call the target player to play the target segment data on the first preset playback page through the first playback address;
    所述第二播放模块,被配置为:The second playback module is configured as:
    获取所述第二播放地址,调用所述直播播放器通过所述第二播放地址在第二预设播放页面上静音播放所述当前直播数据。The second playback address is acquired, and the live broadcast player is called to play the current live broadcast data in mute on a second preset playback page through the second playback address.
  16. 根据权利要求10-14任一所述的视频播放装置,还包括:The video playback device according to any one of claims 10-14, further comprising:
    数据获取模块,被配置为获取所述当前直播数据和至少一个片段数据;a data acquisition module, configured to acquire the current live broadcast data and at least one segment data;
    条件信息确定模块,被配置为确定删选条件信息;a condition information determination module, configured to determine deletion condition information;
    目标片段确定模块,被配置为根据所述删选条件信息从所述至少一个片段数据中确定出所述目标片段数据;a target segment determination module, configured to determine the target segment data from the at least one segment data according to the deletion condition information;
    视频数据获取模块,被配置为根据所述当前直播数据和所述目标片段数据得到所述视频数据。A video data acquisition module is configured to obtain the video data according to the current live broadcast data and the target segment data.
  17. 根据权利要求10-14任一所述的视频播放装置,其中,The video playback device according to any one of claims 10-14, wherein,
    所述目标片段数据是基于所述目标虚拟空间的互动操作信息从所述历史时段的直播数据获取的。The target segment data is obtained from the live broadcast data of the historical period based on the interactive operation information of the target virtual space.
  18. 根据权利要求17所述的视频播放装置,还包括:The video playback device according to claim 17, further comprising:
    历史数据获取模块,被配置为获取所述目标虚拟空间的历史时段的直播数据,以及所述历史时段的直播数据对应的互动操作信息;A historical data acquisition module, configured to acquire the live broadcast data of the historical period of the target virtual space, and the interactive operation information corresponding to the live broadcast data of the historical period;
    所述目标片段确定模块,被配置为基于所述互动操作信息从所述历史时段的直播数据确定出所述目标片段数据。The target segment determination module is configured to determine the target segment data from the live broadcast data of the historical period based on the interactive operation information.
  19. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:wherein the processor is configured to execute the instructions to implement the following steps:
    响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,所述目标片段数据是基于所述目标虚拟空间的历史时段的直播数据获取的;In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live data of the historical period of the target virtual space;
    调用所述目标播放器在第一预设播放页面上播放所述目标片段数据;calling the target player to play the target segment data on the first preset playback page;
    调用直播播放器在第二预设播放页面上静音播放所述当前直播数据;Invoke the live player to play the current live data in mute on the second preset playback page;
    其中,所述第一预设播放页面位于所述第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
  20. 一种非易失性计算机可读存储介质,其中,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下步骤:A non-volatile computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the following steps:
    响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,所述目标片段数据是基于所述目标虚拟空间的历史时段的直播数据获取的;In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live data of the historical period of the target virtual space;
    调用所述目标播放器在第一预设播放页面上播放所述目标片段数据;calling the target player to play the target segment data on the first preset playback page;
    调用直播播放器在第二预设播放页面上静音播放所述当前直播数据;Invoke the live player to play the current live data in mute on the second preset playback page;
    其中,所述第一预设播放页面位于所述第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
  21. 一种计算机程序产品,其中,所述计算机程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,计算机设备的至少一个处理器从所述可读存储介质读取并执行所述计算机程序,使得所述计算机设备执行以下步骤:A computer program product, wherein the computer program product includes a computer program stored in a readable storage medium from which at least one processor of a computer device reads and executes the computer A program that causes the computer device to perform the following steps:
    响应于检测到目标虚拟空间对应的视频数据中包含有当前直播数据和目标片段数据,创建目标播放器;其中,所述目标片段数据是基于所述目标虚拟空间的历史时段的直播数据获取的;In response to detecting that the video data corresponding to the target virtual space contains current live data and target segment data, a target player is created; wherein, the target segment data is obtained based on the live data of the historical period of the target virtual space;
    调用所述目标播放器在第一预设播放页面上播放所述目标片段数据;calling the target player to play the target segment data on the first preset playback page;
    调用直播播放器在第二预设播放页面上静音播放所述当前直播数据;Invoke the live player to play the current live data in mute on the second preset playback page;
    其中,所述第一预设播放页面位于所述第二预设播放页面的上层。Wherein, the first preset play page is located on the upper layer of the second preset play page.
PCT/CN2021/138422 2021-04-06 2021-12-15 Video playback method and apparatus WO2022213661A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110368436.6 2021-04-06
CN202110368436.6A CN113286157A (en) 2021-04-06 2021-04-06 Video playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022213661A1 true WO2022213661A1 (en) 2022-10-13

Family

ID=77276235

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/138422 WO2022213661A1 (en) 2021-04-06 2021-12-15 Video playback method and apparatus

Country Status (2)

Country Link
CN (1) CN113286157A (en)
WO (1) WO2022213661A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113286157A (en) * 2021-04-06 2021-08-20 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium
CN114040243B (en) * 2021-11-04 2023-08-04 上海哔哩哔哩科技有限公司 Live broadcasting room video playing method and device
CN114286184B (en) * 2021-12-15 2023-11-28 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium
CN115103218B (en) * 2022-06-16 2023-09-19 广州市百果园网络科技有限公司 Data stream recovery method and device, equipment and medium thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181967A (en) * 2017-04-01 2017-09-19 北京潘达互娱科技有限公司 A kind of image display method and device
CN108924576A (en) * 2018-07-10 2018-11-30 武汉斗鱼网络科技有限公司 A kind of video labeling method, device, equipment and medium
US20190069047A1 (en) * 2017-08-25 2019-02-28 Volley Media, Llc Methods and systems for sharing live stream media content
CN109862388A (en) * 2019-04-02 2019-06-07 网宿科技股份有限公司 Generation method, device, server and the storage medium of the live video collection of choice specimens
CN111147878A (en) * 2019-12-30 2020-05-12 广州酷狗计算机科技有限公司 Stream pushing method and device in live broadcast and computer storage medium
CN111565334A (en) * 2020-04-30 2020-08-21 广州酷狗计算机科技有限公司 Live broadcast playback method, device, terminal, server and storage medium
CN113286157A (en) * 2021-04-06 2021-08-20 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554550B (en) * 2015-12-08 2018-12-04 腾讯科技(北京)有限公司 Video broadcasting method and device
CN109660817B (en) * 2018-12-28 2021-05-28 广州方硅信息技术有限公司 Video live broadcast method, device and system
CN112333460B (en) * 2020-11-02 2021-10-26 腾讯科技(深圳)有限公司 Live broadcast management method, computer equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181967A (en) * 2017-04-01 2017-09-19 北京潘达互娱科技有限公司 A kind of image display method and device
US20190069047A1 (en) * 2017-08-25 2019-02-28 Volley Media, Llc Methods and systems for sharing live stream media content
CN108924576A (en) * 2018-07-10 2018-11-30 武汉斗鱼网络科技有限公司 A kind of video labeling method, device, equipment and medium
CN109862388A (en) * 2019-04-02 2019-06-07 网宿科技股份有限公司 Generation method, device, server and the storage medium of the live video collection of choice specimens
CN111147878A (en) * 2019-12-30 2020-05-12 广州酷狗计算机科技有限公司 Stream pushing method and device in live broadcast and computer storage medium
CN111565334A (en) * 2020-04-30 2020-08-21 广州酷狗计算机科技有限公司 Live broadcast playback method, device, terminal, server and storage medium
CN113286157A (en) * 2021-04-06 2021-08-20 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113286157A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
WO2022213661A1 (en) Video playback method and apparatus
US11164220B2 (en) Information processing method, server, and computer storage medium
CA2884407C (en) System and method for broadcasting interactive content
AU2022275520B2 (en) Methods and Systems for Determining a Video Player Playback Position
US9686329B2 (en) Method and apparatus for displaying webcast rooms
WO2022193595A1 (en) Object playing method and apparatus
US9473548B1 (en) Latency reduction in streamed content consumption
US11202117B2 (en) Methods for personalized 360 video delivery
US9003452B2 (en) Systems, methods, and apparatus for recording broadband content
US11463741B2 (en) Methods and systems for dynamic routing of content using a static playlist manifest
CA2702191C (en) Systems and methods for managing advertising content corresponding to streaming media content
CN113727130B (en) Message prompting method, system and device for live broadcasting room and computer equipment
US20150172353A1 (en) Method and apparatus for interacting with a media presentation description that describes a summary media presentation and an original media presentation
US11184669B2 (en) Distribution of network traffic for streaming content
US20130254806A1 (en) System and Method for Displaying a Media Program Stream on Mobile Devices
WO2023279745A1 (en) Interaction method and apparatus based on playback object
WO2023284428A1 (en) Live video playback method and apparatus, electronic device, storage medium, and program product
CN112312145B (en) Access server, burst traffic caching method, system, computer device and readable storage medium
CN112492324A (en) Data processing method and system
US20170142172A1 (en) Video Player for Multiple Cameras, Playing System and Playing Method
US20180176631A1 (en) Methods and systems for providing an interactive second screen experience
KR102611253B1 (en) Receiving devices, transmitting devices and data processing methods
US11405698B2 (en) Information processing apparatus, information processing method, and program for presenting reproduced video including service object and adding additional image indicating the service object
US20210160567A1 (en) Method of Merging Multiple Targeted Videos During a Break in a Show
US11882326B2 (en) Computer system and method for broadcasting audiovisual compositions via a video platform

Legal Events

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

Ref document number: 21935877

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 28/11/2023)