CN113286157A - Video playing method and device, electronic equipment and storage medium - Google Patents
Video playing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113286157A CN113286157A CN202110368436.6A CN202110368436A CN113286157A CN 113286157 A CN113286157 A CN 113286157A CN 202110368436 A CN202110368436 A CN 202110368436A CN 113286157 A CN113286157 A CN 113286157A
- Authority
- CN
- China
- Prior art keywords
- data
- target
- page
- player
- playing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
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 a video playing method, device, electronic device and storage medium, applied to an electronic device, including: if the video data corresponding to the target virtual space is detected to contain the current live broadcast data and the target fragment data, a target player is created; wherein the target segment data is acquired based on live data of a history period of the target virtual space. And calling the target player to play the target fragment data on a first preset playing page, and calling the live broadcast player to play the current live broadcast data on a second preset playing page in a mute manner. The first preset playing page is located on the upper layer of the second preset playing page. According to the embodiment of the application, the client can present the target segment data to the user through the two independent players, and meanwhile, a cushion is made for the subsequent seamless switching from the playing of the target segment data to the playing of the current live data, so that the application is simple and convenient, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a video playing method and apparatus, an electronic device, and a storage medium.
Background
At present, the application of video on demand and live broadcast from internet multimedia by mobile terminals is more and more extensive, and with the continuous development of mobile internet technology, the speed of a mobile network is also greatly improved, so that people can use more and more mobile video scenes. Meanwhile, the mobile video is more and more popular with people due to the characteristics of convenience and quickness, and especially, people watch video on demand/live broadcast contents in free time or even fragmented time on duty and off duty, so that interesting video programs can be watched by fully utilizing the trivial time.
In the related art, live video is used as an important content medium, and more short video platforms present the live video as a content form to users. However, since the live video is different from the short video, because the content of the short video does not change once the short video is released, and the live content changes all the time because the live content is real-time, it is a difficult problem in the current technology how to capture the wonderful moment of the live and present the content to the user in time.
Disclosure of Invention
The present disclosure provides a video playing method, device, electronic device and storage medium, and the technical scheme of the present disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a video playing method applied to an electronic device, including:
if the video data corresponding to the target virtual space is detected to contain the current live broadcast data and the target fragment data, a target player is created; wherein the target segment data is obtained based on live broadcast data of a historical period of the target virtual space;
calling a target player to play target fragment data on a first preset playing page;
calling a live broadcast player to play the current live broadcast data on a second preset playing page in a mute way;
the first preset playing page is located on the upper layer of the second preset playing page.
In some possible embodiments, the method further comprises:
if the page jump instruction is detected, closing the first preset playing page, and jumping to a second preset playing page;
playing the current live broadcast data on a second preset playing page in a sound mode by using a live broadcast player;
the target player is released.
In some possible embodiments, if the page jump instruction is detected, closing the first preset playing page includes:
and if the target fragment data is detected to be played completely, closing the first preset playing page.
In some possible embodiments, the first preset playing page includes a page jump control, and if a page jump instruction is detected, closing the first preset playing page includes:
and if a page jump instruction triggered based on the page jump control is detected, closing the first preset playing page.
In some possible embodiments, the method further comprises:
and if a page exit instruction or an application hiding instruction is detected, stopping playing of the target fragment data and releasing the target player.
In some possible embodiments, the video data further includes a first play address and a second play address;
invoking the target player to play the target clip data on the first preset play page comprises:
acquiring a first play address, and calling a target player to play target fragment data on a first preset play page through the first play address;
invoking the live broadcast player to play the current live broadcast data on the second preset playing page in a mute mode comprises the following steps:
and acquiring a second play address, and calling the live broadcast player to play the current live broadcast data on a second preset play page in a mute manner through the second play address.
In some possible embodiments, the method further comprises:
acquiring current live broadcast data and at least one fragment data;
determining deleting condition information;
determining target fragment data from the at least one fragment data according to the deletion condition information;
and obtaining video data according to the current live broadcast data and the target fragment data.
In some possible embodiments, the target segment data is obtained from live data of a historical period based on the interactive operation information of the target virtual space.
In some possible embodiments, the method further comprises:
acquiring live broadcast data of a historical time period of a target virtual space and interactive operation information corresponding to the live broadcast data of the historical time period;
target segment data is determined from live data of a history 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 apparatus including:
the player creating module is configured to create a target player if the video data corresponding to the target virtual space is detected to contain current live broadcast data and target fragment data; wherein the target segment data is obtained based on live broadcast data of a historical period of the target virtual space;
the first playing module is configured to execute calling of a target player to play the target fragment data on a first preset playing page;
the second playing module is configured to execute calling of the live player to play the current live data on a second preset playing page in a mute mode;
the first preset playing page is located on the upper layer of the second preset playing page.
In some possible embodiments, the apparatus further comprises:
the page jump module is configured to close the first preset playing page and jump to a second preset playing page if the page jump instruction is detected;
a second playing module configured to perform audio playing of the current live data on a second preset playing page by using the live player;
a player release module configured to perform releasing the target player.
In some possible embodiments, the page jump module is configured to perform:
and if the target fragment data is detected to be played completely, closing the first preset playing page.
In some possible embodiments, the first preset playback page includes a page jump control, and the page jump module is configured to perform:
and if a page jump instruction triggered based on the page jump control is detected, closing the first preset playing page.
In some possible embodiments, the player release module is configured to perform:
and if a page exit instruction or an application hiding instruction is detected, stopping playing of the target fragment data and releasing the target player.
In some possible embodiments, the video data further includes a first play address and a second play address;
a first playback module configured to perform:
acquiring a first play address, and calling a target player to play target fragment data on a first preset play page through the first play address;
a second playback module configured to perform:
and acquiring a second play address, and calling the live broadcast player to play the current live broadcast data on a second preset play page in a mute manner through the second play address.
In some possible embodiments, the apparatus further comprises:
a data acquisition module configured to perform acquisition of current live data and at least one section data;
a condition information determination module configured to perform determining deletion condition information;
a target segment determining module configured to perform determining target segment data from at least one segment data according to the deletion condition information;
and the video data acquisition module is configured to obtain video data according to the current live broadcast data and the target fragment data.
In some possible embodiments, the target segment data is obtained from live data of a historical period based on the interactive operation information of the target virtual space.
In some possible embodiments, the apparatus further comprises:
the historical data acquisition module is configured to execute acquisition of live broadcast data of a historical time period of the target virtual space and interactive operation information corresponding to the live broadcast data of the historical time period;
and the target segment determining module is configured to determine target segment data from the live broadcast data in 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 apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any one of the first aspect as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of the first aspects of the embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the computer device to perform the method of any one of the first aspects of embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
if the video data corresponding to the target virtual space is detected to contain the current live broadcast data and the target fragment data, a target player is created; wherein the target segment data is acquired based on live data of a history period of the target virtual space. And calling the target player to play the target fragment data on a first preset playing page, and calling the live broadcast player to play the current live broadcast data on a second preset playing page in a mute manner. The first preset playing page is located on the upper layer of the second preset playing page. According to the embodiment of the application, the client can present the target segment data to the user through the two independent players, and meanwhile, a cushion is made for the subsequent seamless switching from the playing of the target segment data to the playing of the current live data, so that the application is simple and convenient, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram illustrating an application environment in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating a method of video playback in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of determining video data in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram illustrating a player hierarchy according to an exemplary embodiment;
FIG. 5 is a flow diagram illustrating a method of video playback in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a video playback device in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating an electronic device for video playback in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment of a video playing method according to an exemplary embodiment, and as shown in fig. 1, the application environment may include a server 01 and an electronic device 02.
In some possible embodiments, the server 01 may be a server that feeds back video data to the electronic device 02 based on video identification information included in a video data request after receiving the video data request sent by the electronic device 02. Optionally, the server may include an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), and a big data and artificial intelligence platform.
In some possible embodiments, if it is detected that video data corresponding to the target virtual space includes current live broadcast data and target segment data, the electronic device 02 may create a target player, where the target segment data is obtained based on live broadcast data of a history period of the target virtual space. Subsequently, the electronic device 02 may call the target player to play the target segment data on a first preset play page, and call the live player to play the current live data on a second preset play page in a mute manner, where the first preset play page is located on an upper layer of the second preset play page. The electronic device may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and other types of electronic devices. The software running on the electronic device may be an application program, an applet, or the like. Alternatively, the operating system running on the electronic device may include, but is not limited to, an android system, an IOS system, linux, windows, Unix, and the like.
In some possible embodiments, the electronic device 02 and the server 01 may be connected through a wired link or a wireless link.
Fig. 2 is a flowchart illustrating a video playing method according to an exemplary embodiment, and as shown in fig. 2, the video playing method may be applied to an electronic device, and may also be applied to other node devices, and includes the following steps:
in step S201, if it is detected that video data corresponding to the target virtual space includes current live data and target segment data, a target player is created; wherein the target segment data is acquired based on live data of a history period of the target virtual space.
In the embodiment of the present disclosure, the target virtual space in step S201 may be any video website or a target live broadcast room on a video platform.
In some possible embodiments, before step S201, that is, before detecting whether the video data corresponding to the target virtual space contains the current live data and the target segment data, the electronic device may send a video data request to a video website or a server of the video platform, where the video data request contains 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 from the video data request, and then feed back the video data corresponding to the target virtual space to the electronic device.
Specifically, a user can open an application corresponding to a video website or a video platform through the electronic device, optionally, when the electronic device detects that a live list page in the application corresponding to the video website or the video platform is displayed on an interface of the electronic device, identification information of a plurality of virtual spaces (live rooms) displayed on the live list page can be acquired, and a video data request is sent to the server based on the identification information, wherein the video data request corresponds to the virtual spaces one to one. Optionally, when the electronic device detects a pull-down refresh command, identification information of a plurality of virtual spaces (live rooms) displayed on a live list page may be acquired, and a video data request is sent to the server based on the identification information, where the video data request and the virtual spaces are in one-to-one correspondence.
In the embodiment of the present disclosure, the target fragment data may be any artificially defined fragment data, such as highlight fragment data, or fragment data including a certain object.
In the embodiment of the present disclosure, taking target segment data as highlight segment data as an example, in some possible embodiments, the target segment data may be obtained based on live broadcast data interception in a history period of the target virtual space. For example, when the server receives a video data request, a target live broadcast room corresponding to the video data request has been live broadcast for 2 hours, and the target section data may be data of a live broadcast section within 1 minute from the previous 30 minutes to the previous 29 minutes of the target live broadcast room.
In some possible embodiments, when the server determines that the target virtual space does not have corresponding target segment data, the video data fed back by the server only includes current live data. If the server determines that the corresponding target segment data exists in the target virtual space, the video data fed back by the server may include current live data and target segment data.
In some possible embodiments, the target segment data may be determined by the server based on live data of historical periods of the target virtual space.
Alternatively, the target segment data may be artificially intercepted by a staff member of the video platform based on the live broadcast data of the historical period of the target virtual space. How the fragment data is the target fragment data may be determined by a worker based on experience.
Optionally, in order to enable the determined target segment data to be liked by the user, and enable a user who subsequently views the target segment data to be attracted and remain in the target virtual space to continue to view the current live video, the server may determine the target segment data from the live data in the history period based on the interactive operation information of the target virtual space.
In this embodiment of the disclosure, the interactive operation information of the target virtual space may include one or more of the number of users watching the target virtual space at a historical time, the number of users agreeing to watch the target virtual space, and the number of users enjoying the target virtual space. And the live broadcast data corresponding to each timestamp in the historical time period has the corresponding user watching number, user approval number and user appreciation number. The server can determine the target segment data from the live broadcast data in the historical time period according to one or more of the number of watching users, the number of approval users and the number of appreciation users of the live broadcast data corresponding to each timestamp.
In the embodiment of the present disclosure, before determining the target segment data from the live data in the historical period based on the interactive operation information of the target virtual space, the server may first obtain the interactive operation information of the target virtual space. The server obtains the interactive operation information of the target virtual space only under the authorization of the user.
Optionally, the server may carry an identification algorithm of the target segment data, and when the identification algorithm detects that the number of viewers of a certain segment data exceeds a preset number of viewers, the number of user likes exceeds a preset number of likes, and/or the number of user rewards exceeds a preset number of rewards, the server may determine the segment data as the target segment data. Therefore, the server objectively measures the user's likeness to the target segment data through one or more of the number of watching people, the user approval number and the user appreciation number, and provides certain data support for determining the target segment data, so that the method is more objective and scientific.
Optionally, the server may further include a target segment data recognition model, 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 the training video data and the target segment data marked in each training video data are input into the target segment data recognition model to be trained, and the target segment data recognition model is updated in parameters by using predicted target segment data output by the target segment data recognition model and actually marked target segment data until the target segment data recognition model is trained. Then, the target fragment data identification model can identify the target fragment data of the video of the target virtual space.
In some possible embodiments, the video data fed back by the server may include current live data and a target clip data. However, in actual operation, the server may determine a plurality of section data from the live data of the history 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 a server and an electronic device and the utilization rate of communication transmission resources, the server may determine a target fragment data from a plurality of fragment data before feeding back video data. Alternatively, the deletion condition information may be determined before the server determines one target fragment data from the plurality of fragment data.
In some possible embodiments, the deletion condition information may be related to a duration of the fragment data. For example, the deletion condition information may be duration information less than 1 minute and greater than 30 seconds, and if 2 fragment data pieces are determined, the duration of the fragment data piece a is 1 minute and 30 seconds, and the duration of the fragment data piece B is 50 seconds. The server may determine the fragment data B as the target fragment data.
In some possible embodiments, the deletion condition information may be related to the number of viewers of the clip data. For example, the deletion condition information may be comparison information in which the number of viewers is the largest among the plurality of clip data. If 2 clip data are determined, the number of viewers (average or peak) of the clip data a is 10000 persons, and the number of viewers (average or peak) of the clip data B is 10500 persons. The server may determine the fragment data B as the target fragment data.
In some possible embodiments, the deletion condition information may be related to an approval number of the segment data, or related to a reward number of the segment data, or may be related to other information, and optionally, the deletion condition information may be preset, and specific examples are not described herein again.
In other possible embodiments, the server requests feedback based on the video data is initial video data, which may include current live data and clip data intercepted by multiple servers. In the embodiment of the present disclosure, the electronic device may determine, based on the initial video data, current live data and target segment data, so as to obtain video data. Fig. 3 is a flow chart illustrating a method of determining video data according to an exemplary embodiment, as shown in fig. 3, including the steps of:
in step S301, current live data and at least one clip data are acquired.
In some possible embodiments, the electronic device receives initial video data fed back by the server, and may parse the initial video data to obtain current live data and a plurality of segment data.
In step S303, the deletion condition information is determined.
In some possible embodiments, the electronic device may determine deletion condition information from the storage area, wherein the deletion condition information may be preset. Alternatively, the deletion condition information may be associated with the duration of the fragment data. Alternatively, the deletion condition information may be related to the number of viewers of the clip data.
In step S305, target fragment data is determined from at least one fragment data according to the deletion condition information.
In some possible embodiments, each fragment data may carry attribute information associated with the deletion condition information. For example, if the deletion condition information is related to the time length of the segment data, each segment data may carry its own time length information, and if the deletion condition information is related to the number of viewers of the segment data, each segment data may carry its own number of viewers. In this way, the electronic device can determine target fragment data from the plurality of fragment data according to the deletion condition information and the attribute information carried by each fragment data.
In step S307, video data is obtained from the current live data and the target section data.
In the embodiment of the present disclosure, the electronic device may determine the current live data and the target section data as video data. In this way, the server can hand over part of the operation to the electronic equipment side for operation, and certain work of the server is reduced, so that the server can vacate more resources to concentrate on the determination of the fragment data and the feedback of the video data.
In the above-described steps of S301 to S307, the electronic device determines target fragment data from at least one fragment data based on the attribute information of each fragment data. In some possible embodiments, the electronic device may further determine personalization information of each user from among user personalization data obtained by a personalization survey of the users with the consent of the users, and determine one target clip data from at least one clip data based on the personalization information of the user. Meanwhile, if the electronic device does not have the personalized information of the user, a target fragment data can be determined for the user according to the attribute information and the deletion condition information of the fragment data.
In the embodiment of the present disclosure, the video data fed back by the server may include only the current live data, and there is no plurality of fragment data or target fragment data. Therefore, we can understand that a live player playing the current live data is necessarily used, and a player playing the target clip data is used only with a certain probability. Therefore, in order to save resources of the electronic device, the target player may be created when the presence of the target clip data is detected.
In other possible embodiments, the video data corresponding to the target virtual space requested by the server to feed back based on the video data may not include the target segment data or a plurality of segment data, but may include live data of a historical period of the target virtual space and interaction operation information corresponding to the live data of the historical period, in addition to the current live data. The interactive operation information of the target virtual space may include one or more of the number of users watching the target virtual space at a historical time, the number of users praise, and the number of users appreciate. Optionally, the live data corresponding to each timestamp in the history period has the corresponding number of watching users, the number of praise users and the number of reward users.
When the electronic device analyzes the video data to obtain the live broadcast data in the historical time period and the interactive operation information corresponding to the live broadcast data in the historical time period, the target segment data can be determined from the live broadcast data in the historical time period based on the interactive operation information.
Alternatively, the electronic device may determine at least one segment data from the live data in the history period directly according to the interactive operation information, and then determine a target segment data from the at least one segment data according to the deletion condition information.
Optionally, the electronic device may determine a target segment data from the live broadcast data in the history period based on the interactive operation information and the deletion condition information at the same time.
The above embodiments are only given as examples in the present disclosure, and do not limit the contents of the examples in the present disclosure. In addition, 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 server obtains the interactive operation information of the target virtual space only under the authorization of the user.
In this way, the server can transfer the operation of determining the target fragment data to the electronic device side for execution, so that the operation of the server is reduced, and the server can vacate more resources to be concentrated on interaction with the electronic device to which the video publisher belongs and feedback of the video data.
In step S203, the target player is called to play the target clip data on the first preset play page.
In the embodiment of the present disclosure, the video data further includes a first play address and a second play address, where the first play address corresponds to the target segment data, and the second play address corresponds to the current live data.
In some possible embodiments, the electronic device may obtain a first play address, and invoke the target player to play the target clip data on a first preset play page through the first play address.
In the embodiment of the present disclosure, the target clip data is played with sound.
In step S205, the live player is invoked to play the current live data on a second preset playing page in a mute manner, where the first preset playing page is located on an upper layer of the second preset playing page.
In some possible embodiments, the electronic device may obtain the second play address, and invoke the live player to play the current live data in a mute manner on the second preset play page through the second play address.
Specifically, after the electronic device obtains the video data, the electronic device may parse the video data to obtain current live broadcast data, target segment data, a first live broadcast address, and a second live broadcast address. Then, the electronic device may request the target segment data by using the first play address and call the target player to play the target segment data, and meanwhile, the electronic device may request the current live broadcast data by using the second play address and call the live broadcast player to play the current live broadcast data in a mute manner.
Optionally, the second play address may include play addresses corresponding to a plurality of video formats, and before selecting which play address, the electronic device may determine the video format of the pair of the electronic device. For example, if the electronic device is a device corresponding to the IOS system, the electronic device selects a play address corresponding to the HLS format in the second play address. The HLS format is a format for HTTP-based adaptive bitrate streaming protocol presentation.
Fig. 4 is a schematic diagram of a player hierarchy according to an exemplary embodiment, as shown in fig. 4, the player hierarchy includes a first preset playing page 401 corresponding to a target player and a second preset playing page 402 corresponding to a live player, where the first preset playing page is located at an upper layer of the second preset playing page, or the first preset playing page covers the second preset playing page.
In some optional embodiments, both the first preset playing page and the second preset playing page may be displayed on a display screen of the electronic device in a full screen manner, and the second preset playing page is invisible to a user's naked eye due to the blockage of the first preset playing page.
In other possible embodiments, the first preset playing page may not be displayed in a full screen on the display screen of the electronic device, and the second preset playing page may be displayed in a full screen on the display screen of the electronic device, so that the user may see a part of the second preset playing page while seeing the first preset playing page with naked eyes.
Therefore, according to the embodiment of the disclosure, the client can present the target segment data to the user through the two independent players, and simultaneously, a cushion is made for the subsequent seamless switching from the playing of the target segment data to the playing of the current live data, so that the method and the device are simple and convenient. Further, when the target virtual space is opened by the user, the target virtual space with the target segment data (highlight segment data) can firstly present the target segment data obtained through scientific and reasonable deletion, so that the interest of the user in watching the live broadcast can be greatly improved.
In this disclosure, when target segment data is audibly played on a first preset playing page of an upper layer by using a target live broadcaster, and current live data is silently played on a second preset playing page of a lower layer by using the target live broadcaster, if a page jump instruction is detected, the electronic device may be as shown in fig. 5, where fig. 5 is a flowchart of a video playing method according to an exemplary embodiment, and includes the following steps:
in step S207, if the page jump instruction is detected, the first preset playing page is closed, and the second preset playing page is jumped to.
In some possible embodiments, the page jump instruction may be a jump actively triggered after the completion of the playing of the target segment data, and in this case, when the electronic device detects that the playing of the target segment data is completed, the electronic device may close the first preset playing page and jump to the second preset playing page.
So, detect the target section data broadcast and finish when electronic equipment, just can be natural smooth jump to the second and predetermine the broadcast page, guaranteed to the at utmost that the highlight section data broadcast finishes after, can the direct broadcast data at present, natural transition need not to wait for, can improve user experience.
In other possible embodiments, the first preset playing page may include a page jump control, and when the electronic device detects a page jump instruction triggered based on the page jump control, the electronic device may close the first preset playing page and jump to the second preset playing page.
Therefore, the user selection right is given through the provided page jump control, so that the user can select to directly jump to a second preset playing page through the page jump control under the condition that the user does not want to watch the target segment data, the fact that the highlight segment data are played completely is guaranteed to the greatest extent, the current live broadcast data can be directly played, natural transition is achieved, waiting is not needed, and user experience can be improved.
In step S209, the live data is audibly played on a second preset play page using the live player.
In the embodiment of the present disclosure, after the first preset playing page is closed, the electronic device may directly jump to the second preset playing page, and at this time, the electronic device may directly transfer the live player to the second preset playing page, but may play the current live data audibly.
In step S211, the target player is released.
Since the target player is not needed, the target player can be released in consideration of the utilization of the resources of the electronic device, that is, the electronic device does not support the target player by using one thread any more. Therefore, all views related to highlight data playing can be cleared at once at the moment of not playing highlight data to the maximum extent, and the performance of the electronic equipment is improved to the maximum extent, particularly for the electronic equipment with a lower end. Meanwhile, the user can continue to watch the current live broadcast data, so that the real-time property of watching the content by the user can be ensured.
In the embodiment of the present disclosure, if a page exit instruction or an application hiding instruction is detected, the electronic device may stop playing the target clip data, and release the target player.
The page exit instruction is triggered when the electronic device detects that a user actively exits the target virtual space through a virtual control on some pages or an entity control of the electronic device. The application hiding instruction refers to a trigger when the electronic device detects that a user actively exits the video website or the application of the video platform through a virtual control on some pages or an entity control of the electronic device.
Assuming that the electronic device detects a page exit instruction or applies a hidden instruction when calling a target player to play target clip data on a first preset playing page, the target player can be directly released, all views related to highlight clip data playing are cleared immediately, performance of the electronic device is improved to the maximum extent, and particularly the electronic device with a lower configuration end is provided.
In summary, the video website or the video platform side flexibly adjusts the weight of each index in the algorithm by understanding the fineness of the live broadcast content, so that the generated highlight data has higher quality, the watching duration of the user is increased by the high-quality content, and the pursuit of the platform for the high-quality content can be improved while more users are brought to the platform. For the user, the live broadcast content seen by the user can better meet the requirement of high quality and high color accuracy, so that the experience and the feeling of the user are improved.
Further, due to the application of the video playing method related to the embodiment of the disclosure, after the user experiences the manner that the wonderful live broadcast information of the virtual live broadcast room is presented in the front of the user in a short video manner, the user can better experience the intuitiveness and the high efficiency of watching live broadcast video in the manner, so that the user can be prompted to open other virtual live broadcast rooms more interestingly and watch wonderful segments of other virtual live broadcast rooms, the overall click rate of the virtual live broadcast room is further improved, and more high-quality contents are output to the user.
Fig. 6 is a block diagram illustrating a video playback device according to an example embodiment. Referring to fig. 6, the apparatus includes a player creation module 601, a first play module 602, and a second play module 603.
A player creating module 601 configured to create a target player if it is detected that video data corresponding to a target virtual space includes current live data and target segment data; wherein the target segment data is obtained based on live broadcast data of a historical period of the target virtual space;
a first playing module 602 configured to execute calling a target player to play the target clip data on a first preset playing page;
a second playing module 603 configured to execute invoking a live player to play the current live data on a second preset playing page in a mute manner;
the first preset playing page is located on the upper layer of the second preset playing page.
In some possible embodiments, the apparatus further comprises:
the page jump module is configured to close the first preset playing page and jump to a second preset playing page if the page jump instruction is detected;
a second playing module configured to perform audio playing of the current live data on a second preset playing page by using the live player;
a player release module configured to perform releasing the target player.
In some possible embodiments, the page jump module is configured to perform:
and if the target fragment data is detected to be played completely, closing the first preset playing page.
In some possible embodiments, the first preset playback page includes a page jump control, and the page jump module is configured to perform:
and if a page jump instruction triggered based on the page jump control is detected, closing the first preset playing page.
In some possible embodiments, the player release module is configured to perform:
and if a page exit instruction or an application hiding instruction is detected, stopping playing of the target fragment data and releasing the target player.
In some possible embodiments, the video data further includes a first play address and a second play address;
a first playback module configured to perform:
acquiring a first play address, and calling a target player to play target fragment data on a first preset play page through the first play address;
a second playback module configured to perform:
and acquiring a second play address, and calling the live broadcast player to play the current live broadcast data on a second preset play page in a mute manner through the second play address.
In some possible embodiments, the apparatus further comprises:
a data acquisition module configured to perform acquisition of current live data and at least one section data;
a condition information determination module configured to perform determining deletion condition information;
a target segment determining module configured to perform determining target segment data from at least one segment data according to the deletion condition information;
and the video data acquisition module is configured to obtain video data according to the current live broadcast data and the target fragment data.
In some possible embodiments, the target segment data is obtained from live data of a historical period based on the interactive operation information of the target virtual space.
In some possible embodiments, the apparatus further comprises:
the historical data acquisition module is configured to execute acquisition of live broadcast data of a historical time period of the target virtual space and interactive operation information corresponding to the live broadcast data of the historical time period;
and the target segment determining module is configured to determine target segment data from the live broadcast data in the historical period based on the interactive operation information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an electronic device 700 for video playback in accordance with an example 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, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a video playback method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the video playing method as in the embodiments of the present disclosure.
In an exemplary embodiment, there is also provided a computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a video playing method in an embodiment of the present disclosure.
In an exemplary embodiment, there is also provided a computer program product including a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, so that the computer device performs the video playback method of the embodiments of the present disclosure.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A video playing method is applied to electronic equipment and comprises the following steps:
if the video data corresponding to the target virtual space is detected to contain the current live broadcast data and the target fragment data, a target player is created; wherein the target segment data is acquired based on live data of a historical period of the target virtual space;
calling the target player to play the target fragment data on a first preset playing page;
calling a live broadcast player to play the current live broadcast data on a second preset playing page in a mute way;
the first preset playing page is located on the upper layer of the second preset playing page.
2. The video playback method of claim 1, wherein the method further comprises:
if a page jump instruction is detected, closing the first preset playing page, and jumping to the second preset playing page;
utilizing the live broadcast player to play the current live broadcast data on the second preset playing page in a sound mode;
and releasing the target player.
3. The video playing method according to claim 2, wherein the closing the first preset playing page if the page jump instruction is detected comprises:
and if the target fragment data is detected to be played completely, closing the first preset playing page.
4. The video playing method according to claim 2, wherein the first preset playing page includes a page jump control, and the closing the first preset playing page if the page jump instruction is detected includes:
and if the page jump instruction triggered based on the page jump control is detected, closing the first preset playing page.
5. The video playback method of claim 1, wherein the method further comprises:
and if a page exit instruction or an application hiding instruction is detected, stopping playing the target fragment data and releasing the target player.
6. The video playback method according to any one of claims 1 to 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 clip data on a first preset play page includes:
acquiring the first playing address, and calling the target player to play the target fragment data on a first preset playing page through the first playing address;
the invoking of the live broadcast player to play the current live broadcast data in a mute manner on a second preset play page includes:
and acquiring the second playing address, and calling the live broadcast player to play the current live broadcast data on a second preset playing page in a mute manner through the second playing address.
7. A video playing device is applied to electronic equipment and comprises:
the player creating module is configured to create a target player if the video data corresponding to the target virtual space is detected to contain current live broadcast data and target fragment data; wherein the target segment data is acquired based on live data of a historical period of the target virtual space;
a first playing module configured to execute calling the target player to play the target clip data on a first preset playing page;
the second playing module is configured to execute calling of a live player to play the current live data on a second preset playing page in a mute manner;
the first preset playing page is located on the upper layer of the second preset playing page.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video playback method of any of claims 1 to 6.
9. A 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 video playback method of any of claims 1-6.
10. A computer program product, characterized in that the computer program product comprises a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the computer device to perform the video playback method according to any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110368436.6A CN113286157A (en) | 2021-04-06 | 2021-04-06 | Video playing method and device, electronic equipment and storage medium |
PCT/CN2021/138422 WO2022213661A1 (en) | 2021-04-06 | 2021-12-15 | Video playback method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 |
---|---|
CN113286157A true CN113286157A (en) | 2021-08-20 |
Family
ID=77276235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110368436.6A Pending CN113286157A (en) | 2021-04-06 | 2021-04-06 | Video playing method and device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113286157A (en) |
WO (1) | WO2022213661A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114040243A (en) * | 2021-11-04 | 2022-02-11 | 上海哔哩哔哩科技有限公司 | Live broadcast room video playing method and device |
CN114286184A (en) * | 2021-12-15 | 2022-04-05 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN115103218A (en) * | 2022-06-16 | 2022-09-23 | 广州市百果园网络科技有限公司 | Data stream recovery method, device, apparatus, and medium |
WO2022213661A1 (en) * | 2021-04-06 | 2022-10-13 | 北京达佳互联信息技术有限公司 | Video playback method and apparatus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554550A (en) * | 2015-12-08 | 2016-05-04 | 腾讯科技(北京)有限公司 | Video playing method and device |
US20190069047A1 (en) * | 2017-08-25 | 2019-02-28 | Volley Media, Llc | Methods and systems for sharing live stream media content |
CN109660817A (en) * | 2018-12-28 | 2019-04-19 | 广州华多网络科技有限公司 | Net cast method, apparatus and system |
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 |
CN112333460A (en) * | 2020-11-02 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Live broadcast management method and device, computer and readable storage medium |
Family Cites Families (4)
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 |
CN109862388A (en) * | 2019-04-02 | 2019-06-07 | 网宿科技股份有限公司 | Generation method, device, server and the storage medium of the live video collection of choice specimens |
CN113286157A (en) * | 2021-04-06 | 2021-08-20 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
-
2021
- 2021-04-06 CN CN202110368436.6A patent/CN113286157A/en active Pending
- 2021-12-15 WO PCT/CN2021/138422 patent/WO2022213661A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554550A (en) * | 2015-12-08 | 2016-05-04 | 腾讯科技(北京)有限公司 | Video playing method and device |
US20190069047A1 (en) * | 2017-08-25 | 2019-02-28 | Volley Media, Llc | Methods and systems for sharing live stream media content |
CN109660817A (en) * | 2018-12-28 | 2019-04-19 | 广州华多网络科技有限公司 | Net cast method, apparatus and system |
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 |
CN112333460A (en) * | 2020-11-02 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Live broadcast management method and device, computer and readable storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022213661A1 (en) * | 2021-04-06 | 2022-10-13 | 北京达佳互联信息技术有限公司 | Video playback method and apparatus |
CN114040243A (en) * | 2021-11-04 | 2022-02-11 | 上海哔哩哔哩科技有限公司 | Live broadcast room video playing method and device |
WO2023077799A1 (en) * | 2021-11-04 | 2023-05-11 | 上海哔哩哔哩科技有限公司 | Method and apparatus for playing back video in live broadcast room |
CN114040243B (en) * | 2021-11-04 | 2023-08-04 | 上海哔哩哔哩科技有限公司 | Live broadcasting room video playing method and device |
CN114286184A (en) * | 2021-12-15 | 2022-04-05 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN114286184B (en) * | 2021-12-15 | 2023-11-28 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN115103218A (en) * | 2022-06-16 | 2022-09-23 | 广州市百果园网络科技有限公司 | Data stream recovery method, device, apparatus, and medium |
CN115103218B (en) * | 2022-06-16 | 2023-09-19 | 广州市百果园网络科技有限公司 | Data stream recovery method and device, equipment and medium thereof |
Also Published As
Publication number | Publication date |
---|---|
WO2022213661A1 (en) | 2022-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10595071B2 (en) | Media information delivery method and system, terminal, server, and storage medium | |
CN113286157A (en) | Video playing method and device, electronic equipment and storage medium | |
US10080966B2 (en) | System and method for experiencing advertised interactive applications | |
CN106878820B (en) | Live broadcast interaction method and device | |
US11962858B2 (en) | Video playback method, video playback terminal, and non-volatile computer-readable storage medium | |
US20160316233A1 (en) | System and method for inserting, delivering and tracking advertisements in a media program | |
US9473548B1 (en) | Latency reduction in streamed content consumption | |
US11202117B2 (en) | Methods for personalized 360 video delivery | |
CN113709508B (en) | Associated object adding method and device, electronic equipment and storage medium | |
US12047615B2 (en) | Methods and systems for dynamic routing of content using a static playlist manifest | |
CN112423081B (en) | Video data processing method, device and equipment and readable storage medium | |
CN108769816B (en) | Video playing method, device and storage medium | |
CN113596520B (en) | Video playing control method and device and electronic equipment | |
CN112492347A (en) | Method for processing information flow and displaying bullet screen information and information flow processing system | |
CN113468374A (en) | Target display method and device, electronic equipment and storage medium | |
WO2023279745A1 (en) | Interaction method and apparatus based on playback object | |
CN111581434A (en) | Video service providing method, video service providing device, electronic equipment and storage medium | |
WO2019018066A1 (en) | Automatic annotation of audio-video sequences | |
CN112492324A (en) | Data processing method and system | |
CN112312145A (en) | Access server, burst traffic caching method, system, computer device and readable storage medium | |
US10424273B2 (en) | Methods, systems, and media for presenting interstitial animations | |
CN106790369B (en) | Multimedia application interface decorating method and device | |
CN114449301B (en) | Item sending method, item sending device, electronic equipment and computer-readable storage medium | |
CN114025184A (en) | Video live broadcast method and electronic equipment | |
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 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |