CN113395566B - Video playing method and device, electronic equipment and computer readable storage medium - Google Patents
Video playing method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN113395566B CN113395566B CN202110638434.4A CN202110638434A CN113395566B CN 113395566 B CN113395566 B CN 113395566B CN 202110638434 A CN202110638434 A CN 202110638434A CN 113395566 B CN113395566 B CN 113395566B
- Authority
- CN
- China
- Prior art keywords
- target
- video
- transparency
- target image
- display
- 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.)
- Active
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/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
- H04N21/4318—Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
-
- 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/439—Processing of audio elementary streams
- H04N21/4396—Processing of audio elementary streams by muting the audio signal
-
- 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/47—End-user applications
- H04N21/485—End-user interface for client configuration
-
- 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/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure relates to a video playing method, a video playing device, electronic equipment and a computer readable storage medium, and belongs to the technical field of multimedia. By the video playing method provided by the embodiment of the application, the display of the target image and the playing of the target video can be realized at the same position of the target page, a user can view the target image associated with the target page in the target page and also can view the target video without page switching operation, and the efficiency of man-machine interaction is improved. In addition, before the target video is played, the display of the target image is kept until the display of the target image meets the preset condition, and the exposure effect of the target image is ensured.
Description
Technical Field
The present disclosure relates to the field of multimedia technologies, and in particular, to a video playing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of network technology, more and more users can play and relax by watching live broadcasting, and for manufacturers, when some festivals come, live broadcasting is prepared for the festivals. In order to advertise the live broadcast, manufacturers often make advertising videos corresponding to the live broadcast, so as to hope to attract users to watch the live broadcast. In addition, it is also desirable for the manufacturer to advertise itself by this live broadcast.
In the correlation technique, in order to advertise itself and this live broadcast at the same time, manufacturers often make advertisement posters and advertisement videos of this live broadcast, and the advertisement posters display their own related information. In the process of propaganda, the propaganda poster and the propaganda video are often arranged under different pages, for example, the propaganda poster is arranged on a starting page of the live broadcast application, and the propaganda video is arranged in a main page of the live broadcast application. In this case, the user needs to perform a page switching operation to view the promotional video and the promotional poster, which results in low efficiency of human-computer interaction.
Disclosure of Invention
The disclosure provides a video playing method, a video playing device and a video playing system, which are used for improving the efficiency of human-computer interaction. The technical scheme of the disclosure is as follows:
in one aspect, a video playing method is provided, including:
displaying a target page, wherein a target image is displayed in a preset area of the target page;
switching the target image displayed in the preset area into a target video in response to the display of the target image meeting a preset condition, wherein the target video and the target image are both associated with the target page;
and playing the target video in the preset area.
In some embodiments, the preset conditions include:
the display duration of the target image reaches a reference duration; or
And receiving a trigger operation on the target image before the display time length of the target image reaches a reference time length.
In some embodiments, a play control is displayed on the target image, and the receiving of the trigger operation on the target image includes:
and responding to the triggering operation of the playing control, and receiving the triggering operation of the target image.
In some embodiments, before the target video is played in the preset area, the method further includes:
displaying the target video in the preset area with a first transparency;
and controlling the target video to change from the first transparency to a second transparency, wherein the first transparency is lower than the second transparency.
In some embodiments, after the target video is played in the preset area, the method further includes:
and responding to the completion of the playing of the target video, and resuming the display of the target image in the preset area.
In some embodiments, before resuming the display of the target image in the preset area, the method further includes:
and controlling the target video to change from second transparency to first transparency, wherein the first transparency is lower than the second transparency.
In some embodiments, said controlling said target video to change from said first transparency to a second transparency or said controlling said target video to change from a second transparency to a first transparency comprises:
and controlling the target video to change from the first transparency to the second transparency or controlling the target video to change from the second transparency to the first transparency within a preset time interval.
In some embodiments, the displaying the target page further comprises:
and displaying a target popup on the target page, wherein the target popup is used for getting the virtual resource.
In some embodiments, the switching the target image displayed in the preset area to the target video in response to the display of the target image satisfying a preset condition includes:
and after the target pop-up window is closed, responding to that the display of the target image meets a preset condition, and switching the target image displayed in the preset area into the target video.
In some embodiments, the playing the target video in the preset area includes:
and playing each frame of image of the target video in the preset area, and adjusting the playing volume of the target video to be zero.
In some embodiments, the displaying a mute control on the target video, and the adjusting the play volume of the target video to zero includes:
and responding to the trigger operation of the mute control, and adjusting the playing volume of the target video to be zero.
In some embodiments, after the adjusting the playback volume of the target video to zero, the method further comprises:
and responding to the re-triggering operation of the mute control, and recovering the playing volume of the target video.
In one aspect, a video playing apparatus is provided, including:
the target page display unit is configured to display a target page, and a target image is displayed in a preset area of the target page;
a video display unit configured to perform switching of the target image displayed in the preset area to a target video in response to display of the target image satisfying a preset condition, the target video and the target image both being associated with the target page;
a video playing unit configured to perform playing of the target video in the preset area.
In some embodiments, the preset conditions include:
the display duration of the target image reaches a reference duration; or
And receiving a trigger operation on the target image before the display duration of the target image reaches the reference duration.
In some embodiments, a play control is displayed on the target image, and the apparatus further comprises:
and the operation receiving control is configured to execute a triggering operation responding to the playing control and receive the triggering operation of the target image.
In some embodiments, the apparatus further comprises:
a transparency adjustment unit configured to perform display of the target video at a first transparency in the preset region; and controlling the target video to change from the first transparency to a second transparency, wherein the first transparency is lower than the second transparency.
In some embodiments, the video display unit is further configured to perform resuming display of the target image in the preset area in response to completion of playing of the target video.
In some embodiments, the apparatus further comprises:
a transparency adjustment unit configured to perform control of the target video to change from a second transparency to a first transparency, the first transparency being lower than the second transparency.
In some embodiments, the transparency adjustment unit is configured to perform controlling the target video to change from the first transparency to the second transparency or controlling the target video to change from the second transparency to the first transparency within a preset time interval.
In some embodiments, the target page display unit is configured to perform displaying a target popup on the target page, the target popup being used for drawing a virtual resource.
In some embodiments, the video display unit is further configured to perform, after the target pop-up window is closed, in response to that display of the target image satisfies a preset condition, switching the target image displayed in the preset area to the target video.
In some embodiments, the video playing unit is configured to play each frame image of the target video in the preset area, and adjust a playing volume of the target video to zero.
In some embodiments, a mute control is displayed on the target video, and the video playing unit is configured to perform a trigger operation on the mute control to adjust a playing volume of the target video to zero.
In some embodiments, the video playing unit is further configured to perform a re-triggering operation on the mute control to restore the playing volume of the target video.
In one aspect, an electronic device is provided, including:
one or more processors;
a memory for storing the processor executable program code;
wherein the processor is configured to execute the program code to implement the above video playing method.
In one aspect, a computer-readable storage medium is provided that includes instructions. The 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 described above.
In one aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the video playback method described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
by the video playing method provided by the embodiment of the application, the display of the target image and the playing of the target video can be realized at the same position of the target page, a user can view the target image associated with the target page in the target page and also view the target video, page switching operation is not needed, and the efficiency of man-machine interaction is improved. In addition, before the target video is played, the display of the target image is kept until the display of the target image meets the preset condition, and the exposure effect of the target image is ensured.
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 implementation environment of a video playing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a video playback method according to an example embodiment.
Fig. 3 is a flow chart illustrating a video playback method according to an example embodiment.
FIG. 4 is a schematic diagram of an interface shown in accordance with an exemplary embodiment.
FIG. 5 is a schematic diagram of an interface shown in accordance with an exemplary embodiment.
Fig. 6 is a flow chart illustrating a video playback method according to an example embodiment.
Fig. 7 is a block diagram illustrating a video playback device in accordance with an exemplary embodiment.
Fig. 8 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, 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 foregoing 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 other sequences than those illustrated or 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.
The user information referred to in the present application may be information authorized by the user or sufficiently authorized by each party.
In some embodiments, the electronic device provided in the embodiments of the present application is implemented as a terminal, and an implementation environment formed by the terminal and a server is described below.
Fig. 1 is a schematic diagram of an implementation environment of a video playing method according to an embodiment of the present application, and referring to fig. 1, the implementation environment may include a terminal 101 and a server 102.
The terminal 101 may be at least one of a smartphone, a smart watch, a desktop computer, a laptop portable computer, and the like. An application program supporting video viewing may be installed and run on the terminal 101, and a user may log in the application program through the terminal 101 and view a video through the application program.
The terminal 101 may be generally referred to as one of a plurality of terminals, and the embodiment is only illustrated by the terminal 101. Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals 101 may be only a few, or the number of the terminals 101 may be tens or hundreds, or more, and the number of the terminals 101 and the type of the device are not limited in the embodiment of the present application. The terminal 101 may be connected to the server 102 through a wireless network or a wired network.
The server 102 may be at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server 102 may be used to transcode and transfer live video streams.
In some embodiments, the number of the servers 102 may be more or less, and the embodiments of the present application do not limit this. Of course, the server 102 may also include other functional servers to provide more comprehensive and diverse services.
After the application scenarios provided in the embodiment of the present application are introduced, the technical solution of the embodiment of the present application will be introduced below with reference to the above implementation scenarios, it should be noted that a terminal in the following description process is also the terminal 101 in the above implementation environment, and a server is also the server 102 in the above implementation environment.
The video playing method provided by the embodiment of the application can be applied to the scene of reserved live broadcasting, such as the scene of reserved live broadcasting at a late meeting, the scene of reserved live broadcasting at a sports event, or the scene of reserved live broadcasting at a release meeting.
In a scene of reserving live broadcasting of an evening party, a manufacturer can make a target video and a target image of the live broadcasting of the evening party, wherein the target video is a propaganda video of the live broadcasting of the evening party, the target image is a propaganda poster of the evening party, and in some embodiments, the target image is also called a head chart or a main chart. A manufacturer can adopt the video playing method provided by the embodiment of the present application to simultaneously realize display of a target image and a target video in a target page, where the target page is also a publicity page that is live in the evening party, and the page can be displayed after a target operation of a user is detected or automatically displayed after an application is started, and the embodiment of the present application is not limited thereto. In the embodiment of the application, when the electronic device displays the target page, the target image can be displayed in the target page first, the identifier of the organization party live in the evening party is displayed in the target image, and the user can know the related information of the organization party in the evening party by looking up the target image. In order to ensure that the user has sufficient time to view the target image, namely, to ensure that the organizer of the live broadcasting at the evening is fully exposed, the electronic equipment ensures that the target image is displayed on the target page for a fixed time, and then plays the target video. In some embodiments, the user can also view the evening live through the target page when the time of the evening live is reached. In this case, too, in order to ensure that the organizer of the evening live broadcast is sufficiently exposed, the electronic device can maintain the display of the target image before playing the target live broadcast.
In a scenario where a live broadcast of a sporting event is reserved, a manufacturer can make a target video and a target image of the live broadcast of the sporting event, where the target video is a promotional video of the live broadcast of the sporting event, and the target image is a promotional poster of the evening. A manufacturer can adopt the video playing method provided in the embodiment of the present application to simultaneously display a target image and a target video in a target page, where the target page is also a publicity page of the live sports event, and the page can be displayed after detecting a target operation of a user or automatically displayed after starting an application, which is not limited in the embodiment of the present application. In the embodiment of the application, when the electronic device displays the target page, the target image can be displayed in the target page first, the identifier of the organization party of the live broadcast of the sports event is displayed in the target image, and the user can know the related information of the organization party of the live broadcast of the sports event by looking up the target image. In order to ensure that the user has sufficient time to view the target image, i.e., ensure that the organization side of the live sporting event is fully exposed, the electronic device ensures that the target image is displayed on the target page for a fixed period of time, and then plays the target video. In some embodiments, when the time for the live sporting event is reached, the user is also able to view the live sporting event through the target page. In this case, too, the electronic device can maintain the display of the target image before playing the target live broadcast in order to ensure that the organization side of the live broadcast of the sporting event is sufficiently exposed.
In a scene of a reserved release meeting live broadcast, a manufacturer can make a target video and a target image of the release meeting live broadcast, wherein the target video is a propaganda video of the release meeting live broadcast, the target image is a propaganda poster of the evening meeting, and in some embodiments, the target image is also called a head chart or a main chart. A manufacturer can adopt the video playing method provided in the embodiment of the present application to simultaneously display a target image and a target video in a target page, where the target page is also a publicity page that should be live in a publishing party, and the page can be displayed after detecting a target operation of a user or automatically displayed after starting an application, which is not limited in the embodiment of the present application. In the embodiment of the application, when the electronic device displays the target page, the target image can be displayed in the target page first, the identifier of the organization party of which the release is live broadcast is displayed in the target image, and a user can know the related information of the organization party of which the release is live broadcast by looking up the target image. In order to ensure that the user has sufficient time to view the target image, that is, to ensure that the organization party who releases the live broadcast is fully exposed, the electronic device ensures that the target image is displayed on the target page for a fixed period of time, and then plays the target video. In some embodiments, when the time arrives for the posting to be live, the user can also view the posting live through the target page. In this case, also in order to ensure that the organization side that distributes live broadcasts is sufficiently exposed, the electronic device can maintain the display of the target image before playing the target live broadcast.
In addition, the video playing method provided by the embodiment of the application can be applied to scenes of reserved live broadcasting, short videos or live broadcasting.
For example, a plurality of target images are displayed on the target page, and the plurality of target images are displayed on the target page in a single-column or double-column manner. In response to a drag operation on the target page, different target images can be displayed on the target page. In this scenario, the target image is a cover of the target video, and if the target video is the short video, the target image is also a cover of the short video. If the target video is a live video, the target image is a cover of the live video. The association between the target image and the target video and the target page means that if the target page is a page with a specific theme, for example, a page with a theme of food, the target image is an image of food, and the target video is a video of food.
After the implementation environment and the application scenario of the embodiment of the present application are introduced, a video playing method provided by the embodiment of the present application is described below.
Fig. 2 is a flowchart illustrating a video playing method according to an exemplary embodiment, and as shown in fig. 2, for example, the video playing method is applied to an electronic device, and includes the following steps.
In step S201, a target page is displayed, and a target image is displayed in a preset area of the target page.
The target page may be a web page or an interface of an application program, which is not limited in this embodiment of the present application.
In step S202, in response to that the display of the target image satisfies a preset condition, the target image displayed in the preset area is switched to a target video, and both the target video and the target image are associated with a target page.
Wherein the target image is an image produced by a technician, and in some embodiments, the target image is a target live promotional image. Or the target image is an image corresponding to the target video.
In step S203, the target video is played in a preset area.
In some embodiments, the target video is a video used to promote a target live broadcast; or the target video is a video corresponding to the target image.
By the video playing method provided by the embodiment of the application, the display of the target image and the playing of the target video can be realized at the same position of the target page, a user can view the target image associated with the target page in the target page and also can view the target video without page switching operation, and the efficiency of man-machine interaction is improved. In addition, before the target video is played, the display of the target image is kept until the display of the target image meets the preset condition, and the exposure effect of the target image is ensured.
In some embodiments, the preset conditions include:
the display duration of the target image reaches the reference duration. Or
And receiving a trigger operation on the target image before the display duration of the target image reaches the reference duration.
In some embodiments, a play control is displayed on the target image, and receiving a trigger operation on the target image includes:
and responding to the triggering operation of the playing control, and receiving the triggering operation of the target image.
In some embodiments, before the target video is played in the preset area, the method further includes:
and displaying the target video in a preset area at a first transparency.
And controlling the target video to change from the first transparency to the second transparency, wherein the first transparency is lower than the second transparency.
In some embodiments, after the target video is played in the preset area, the method further includes:
and responding to the completion of the playing of the target video, and resuming the display of the target image in the preset area.
In some embodiments, before resuming to display the target image in the preset area, the method further comprises:
and controlling the target video to change from the second transparency to the first transparency, wherein the first transparency is lower than the second transparency.
In some embodiments, changing the control target video from the first transparency to the second transparency or changing the control target video from the second transparency to the first transparency comprises:
and within the preset time interval, the control target video is changed from the first transparency to the second transparency, or the control target video is changed from the second transparency to the first transparency.
In some embodiments, displaying the target page further comprises:
and displaying a target popup on the target page, wherein the target popup is used for getting the virtual resource.
In some embodiments, in response to the display of the target image satisfying a preset condition, switching the target image displayed in a preset area to a target video includes:
and after the target pop-up window is closed, responding to that the display of the target image meets a preset condition, and switching the target image displayed in a preset area into a target video.
In some embodiments, playing the target video in the preset area includes:
and playing each frame of image of the target video in a preset area, and adjusting the playing volume of the target video to be zero.
In some embodiments, the mute control is displayed on the target video, and the adjusting the play volume of the target video to zero includes:
and responding to the triggering operation of the mute control, and adjusting the playing volume of the target video to be zero.
In some embodiments, after adjusting the playback volume of the target video to zero, the method further comprises:
and responding to the re-triggering operation of the mute control, and restoring the playing volume of the target video.
The foregoing steps S201 to S203 are simple descriptions of the video playing method provided in the embodiment of the present application, and the video playing method provided in the embodiment of the present application will be described in detail below with reference to some examples, taking an example in which the video playing method is applied to an electronic device, with reference to fig. 3, where the method includes:
in step S301, a target page is displayed, and a target image is displayed in a preset area of the target page.
In the reserved live broadcast scene, the target page is used for reserving the target live broadcast. The target image is an image made by technicians, and live broadcast information of target live broadcast is displayed in the target image and is used for propagandizing the target live broadcast. In some embodiments, the live information includes at least one of: the live broadcasting time of the target live broadcasting, the name of an organizer of the target live broadcasting and the live broadcasting brief introduction of the target live broadcasting. If the live broadcast information comprises the live broadcast time of the target live broadcast, the live broadcast time of the target live broadcast is displayed in the target image, and a user can determine the live broadcast time of the target live broadcast by checking the target image; if the live broadcast information comprises the name of the target live broadcast, the name of the target live broadcast is displayed in the target image, and a user can determine the name of the target live broadcast by looking up the target image; if the live broadcast information comprises the name of the organization party of the target live broadcast, the name of the organization party of the target live broadcast is displayed in the target image, a user can know the organization party of the target live broadcast by checking the target image, and for the organization party of the target live broadcast, the user can obtain exposure through the target image. If the live broadcast information comprises the live broadcast brief introduction of the target live broadcast, the live broadcast brief introduction of the target live broadcast is displayed in the target image, a user can quickly know the live broadcast content of the target live broadcast by checking the live broadcast brief introduction of the target live broadcast, and the efficiency is high. In some embodiments, the live broadcast information may include, in addition to the live broadcast time of the target live broadcast, the name of the organizer of the target live broadcast, and the live broadcast profile of the target live broadcast, participants of the target live broadcast, such as anchor information and venue information of the target live broadcast, which are not limited in this embodiment of the application. The preset area is set by a technician according to actual conditions. Under the scene of watching short videos or live broadcasting, the target page is a short video or live broadcasting display page, and the target image is a short video or live broadcasting cover page. In some embodiments, a plurality of preset regions exist in the target page, the plurality of regions are distributed in the target page in a double-row manner, one target image is displayed in one preset region, and the plurality of target images are distributed in the target page in the double-row manner, so that a user can view more abundant information in the target page.
If the application scene of the video playing method is reserved live broadcasting, the electronic device can implement the step S301 by the following implementation manner.
In some embodiments, in response to a click operation on the live advertisement page, the electronic device displays a target page, and a preset area of the target page displays a target image. The live advertisement page carries a hyperlink, and the hyperlink points to a target page, and in some embodiments, the live advertisement page may be displayed in a web page or in an interface of an application program, for example, in a start interface of the application program.
In the implementation mode, the user can control the electronic equipment to display the target page by directly clicking the live propaganda page, the target image can be quickly viewed through the target page, and the efficiency of man-machine interaction is high.
In order to more clearly explain the video playing method provided by the embodiment of the present application, a method for reserving a target live broadcast through a target page described in the above embodiment is explained below.
In some embodiments, a live broadcast reservation control is displayed on the target page, the live broadcast reservation control is used for reserving the target live broadcast, and a user can reserve the target live broadcast by clicking the live broadcast reservation control. Referring to fig. 4, the electronic device displays a target page 401, and a live reservation control 402 is displayed on the target page 401. That is, in response to the click operation of the live broadcast reservation control, the electronic device obtains reservation information of the target live broadcast, where the reservation information includes live broadcast time of the target live broadcast and a name of the target live broadcast, and the electronic device can store the reservation information of the target live broadcast. And responding to the time reaching the live broadcasting time of the target live broadcasting or a certain time point before the time reaching the live broadcasting time of the target live broadcasting, displaying the reservation information by the electronic equipment, and enabling the user to know the related information of the target live broadcasting by checking the reservation information and go to the live broadcasting time of the target live broadcasting before the start time of the target live broadcasting. That is, the electronic device creates a target event in the operating system, where the target event is an event that reminds the user to watch the target live broadcast, and the trigger time of the target event is the live broadcast time of the target live broadcast or a time point before the time reaches the live broadcast time of the target live broadcast. And responding to the time reaching the trigger time of the target event, triggering the target event by the electronic equipment, and displaying reservation information of the target live broadcast.
In the embodiment, the electronic equipment can directly acquire the reservation information of the target live broadcast after detecting the clicking operation on the live broadcast reservation control, and automatically remind a user to watch the target live broadcast before the target live broadcast starts, so that the efficiency of man-machine interaction is improved.
In some embodiments, the reservation information of the target live broadcast carries a live broadcast room address of the target live broadcast, and the electronic device displays the reservation information in response to the time reaching the live broadcast time of the target live broadcast or a time point before the time reaching the live broadcast time of the target live broadcast. And responding to the click operation of the address of the live broadcasting room of the target live broadcasting, skipping by the electronic equipment based on the address of the live broadcasting room, displaying the live broadcasting room of the target live broadcasting, and enabling a user to watch the target live broadcasting in the live broadcasting room.
Under the implementation mode, the electronic equipment can display the address of the live broadcast room of the target live broadcast, a user can directly enter the live broadcast room of the target live broadcast by clicking the address of the live broadcast room, the address of the live broadcast room of the target live broadcast does not need to be manually searched, and the efficiency of man-machine interaction is high.
In some embodiments, if the user sets that popup display is allowed, the reservation information of the target live broadcast carries a live broadcast room address of the target live broadcast, and the electronic device can display the reservation information of the target live broadcast in a popup mode. And responding to the time reaching the live broadcasting time of the target live broadcasting or a certain time point before the time reaching the live broadcasting time of the target live broadcasting, and displaying an appointment popup window by the electronic equipment, wherein the appointment information is displayed in the appointment popup window. And responding to the click operation of the reserved popup window, the electronic equipment skips based on the address of the live broadcasting room of the target live broadcasting, displays the live broadcasting room of the target live broadcasting, and a user can watch the target live broadcasting in the live broadcasting room.
In this embodiment, the electronic device can display the reservation information of the target live broadcast in a form of a popup window, the form of the popup window is more striking, and a user can more clearly view the reservation information of the target live broadcast.
The user can reserve a target live broadcast in any one of the above manners, which is not limited in the embodiment of the present application.
In some embodiments, in response to a click operation on a live sharing icon displayed in the social application, the electronic device displays a target page, wherein the live sharing icon carries a link of the target page. In some embodiments, the live sharing icon is shared among users, for example, the a user sends the live sharing icon to the B user through a social application program, and the B user can control the electronic device to display the target page after clicking the live sharing icon.
After the method of reserving a target live broadcast through a target page is introduced, a function control displayed on a target image is described below.
In some embodiments, if an image sharing control is displayed on a target image, in response to a trigger operation on the image sharing control, an image sharing page is displayed on an electronic device, and the image sharing page is used for sharing the target image, where the trigger operation on the image sharing control refers to a click operation on the image sharing control, and the click operation includes a click operation of a finger on a touch screen and a click operation on the image sharing control through an external device. For example, referring to fig. 4, a target image 403 is displayed on the target page 401, and an image sharing control 4031 is displayed on the target image 403.
In the embodiment, when the user wants to share the target image, the user only needs to click the image sharing control, and does not need to share the target image after screenshot or storage, so that the human-computer interaction efficiency is high.
For example, in response to a click operation on the image sharing control, the electronic device displays an image sharing page, in which a plurality of user avatars are displayed. And responding to the clicking operation of the target user head portrait in the plurality of user head portraits, and sending the target image to the account corresponding to the target user head portrait by the electronic equipment. In some embodiments, a plurality of application icons are further displayed in the image sharing page, and in response to a click operation on a target application icon in the plurality of application icons, the electronic device displays a sharing target selection page, where the sharing target selection page is a sharing target selection page of the target application corresponding to the target application icon, and a plurality of user avatars of the target application are displayed in the sharing target selection page. And responding to the clicking operation of the head portrait of the target user in the plurality of user head portraits, and sending the target image to the account corresponding to the head portrait of the target user by the electronic equipment.
If the application scene of the video playing method is to watch a short video or watch a live broadcast, the electronic device can implement step S301 through the following implementation manner.
In some embodiments, the electronic device displays a target page, the target page having a plurality of preset regions, and each preset region displaying a target image.
The preset area is also an area that is set by a technician according to an actual situation, and in some embodiments, the setting of the preset area is also called typesetting. In a scene of watching the short video, the target page is a display page of the short video, and the target image is a cover corresponding to the short video. Under the scene of watching live broadcast, the target page is a live broadcast display page, and the target image is a cover page corresponding to the live broadcast.
Of course, in different application scenarios, various embodiments may be combined at will, and this is not limited in this embodiment of the present application.
In step S302, in response to the display of the target image satisfying the preset condition, the target image displayed in the preset area is switched to the target video, and both the target video and the target image are associated with the target page.
In some embodiments, if the application scene of the video playing method is reserved live broadcasting, the target image is used for displaying live broadcasting information of the target live broadcasting. The target video and the target image are associated with the target page, that is, if the target page is a page for reserving the target live broadcast, the target image displays related information of the target live broadcast, and the target video is a preview video corresponding to the target live broadcast, that is, a propaganda video with the target video as the target live broadcast. The target video is a preview video corresponding to the target live broadcast, that is, the target video is content for introducing the target live broadcast, and in some embodiments, the target video is a video produced by an organizer of the target live broadcast. If the application scene of the video playing method is to watch the short video, the target video is also the short video. If the application scene of the video playing method is live watching, the target video is also the live video.
In some embodiments, the preset conditions include: the display duration of the target image reaches the reference duration; or receiving the trigger operation of the target image before the display time length of the target image reaches the reference time length.
The reference time length is set by a technician according to actual needs, for example, set to 3s or 5s, and the like, which is not limited in the embodiment of the present application. In some embodiments, in response to the display duration of the target image reaching the reference duration, the electronic device plays the target video in a preset area, where the preset area is a display area of the target image.
In some embodiments, in response to the display duration of the target image reaching the reference duration, the electronic device switches the target image displayed in the preset area to the target video.
Under the implementation mode, the electronic equipment can directly play the target video on the display area of the target image, and the playing of the target video does not occupy other positions of the target page, so that the screen effect is improved. Meanwhile, the target video is played after the display duration of the target image reaches the reference duration, so that the target image can be displayed on the target page for a certain time, and the target image can be fully exposed.
For example, in response to the display duration of the target image reaching the reference duration, the electronic device displays the target video in the preset area at the first transparency, where displaying the target video at the first transparency means displaying a first frame of the target video at the first transparency. The electronic equipment controls the target video to change from a first transparency to a second transparency, wherein the first transparency is lower than the second transparency, and the higher the transparency is, the higher the definition of the video is; the lower the transparency, the lower the clarity of the video, for example, in CSS3 (Cascading Style Sheets Level 3) technology, the transparency ranges from 0 to 1, and when the transparency is 0, it means complete transparency; when the transparency is 1, it means complete opacity. In some embodiments, the first transparency corresponds to fully transparent and the second transparency corresponds to fully opaque.
In some embodiments, the target video is stored in the server, and in response to the display duration of the target image reaching the reference duration, the electronic device sends a video acquisition request to the server, where the video acquisition request carries an identifier of the target video. In response to receiving the video acquisition request, the server acquires the identification of the target video from the video acquisition request. And the server acquires the target video from the correspondingly maintained video database based on the identification of the target video and sends the target video to the electronic equipment. The electronic device receives a target video.
In some embodiments, when the electronic device control target video changes from the first transparency to the second transparency, a conversion time may also be defined, that is, the electronic device control target video changes from the first transparency to the second transparency within a preset time interval, where the preset time interval is set by a technician according to actual needs, for example, set to 0.5S, 1S, or 1.5S, and the like, which is not limited in this embodiment of the application. In some embodiments, this way of displaying the target video is also referred to as fade-in (fade), the code for fade-in is as follows:
the keyframes are key frames, such as the first frame of the target video, the options is transparency, and the animation is animation, and in this embodiment, the animation is fadeIn.
In some embodiments, in response to the display duration of the target image reaching the reference duration, the electronic device displays a play window on the target page. In response to a play instruction for the target video, the electronic device plays the target video in the play window, where the play instruction may be automatically triggered after the play window is displayed, or triggered by a play operation of a user on the target video, where the play operation of the user on the target video refers to a click operation of the user on a video play control in the play window, or a click operation of the user on a target key on the electronic device, where the target key is a key for controlling the play of the target video. In some embodiments, the play window is a play window of a player in which the target page is embedded.
In this embodiment, the electronic device can display the play window on the target page when the display duration of the target image reaches the reference duration, and the user can control the playing of the target video by himself, so that the autonomy of the user is improved.
After the method for playing the target video on the target page by the electronic device is introduced, the product performance of the electronic device when playing the target video is described below.
In some embodiments, if a video sharing control is displayed on the target video, in response to a trigger operation of the video sharing control, the electronic device displays a video sharing page, where the video sharing page is used for sharing the target video. For example, referring to fig. 5, the electronic device plays a target video 502 on a target page 501, and a video sharing control 5021 is displayed on the target video 502.
In the embodiment, when the user wants to share the target video, the user only needs to click the video sharing control, and does not need to share the target video after screenshot or storage, so that the efficiency of man-machine interaction is high.
For example, in response to a click operation on the video sharing control, the electronic device displays a video sharing page in which a plurality of user avatars are displayed. And responding to the clicking operation of the head portrait of the target user in the plurality of user head portraits, and sending the target video to the account corresponding to the head portrait of the target user by the electronic equipment. In some embodiments, a plurality of application icons are further displayed in the video sharing page, and in response to a click operation on a target application icon in the plurality of application icons, the electronic device displays a sharing target selection page, where the sharing target selection page is a sharing target selection page of a target application corresponding to the target application icon, and a plurality of user avatars of the target application are displayed in the sharing target selection page. And responding to the clicking operation of the head portrait of the target user in the plurality of user head portraits, and sending the target video to the account corresponding to the head portrait of the target user by the electronic equipment.
The following description of step S303 is referred to for a related description of the target video.
In this embodiment, if the user wants to directly view the target video, the user can click the play control displayed on the target image, so that the efficiency of human-computer interaction is high.
Additional functionality provided on the target page 401 will be described below in conjunction with FIG. 4.
Referring to fig. 4, taking as an example that the video playing method provided in the embodiment of the present application is applied to a scene of reserving live broadcasting of a late conference, the target page 401 further includes an activity time indication area 404, and active nodes and time of each node are displayed on the activity time indication area 404, where an activity refers to an activity corresponding to live broadcasting of the late conference, and is used to attract a user to watch live broadcasting of the late conference. Goal page 401 also includes a reward presentation area 405, where a reward available for participation in the event is displayed in reward presentation area 405, the reward being automatically triggered when the user reaches certain conditions. In some embodiments, each of the reward presentation areas 405 also displays a corresponding acquisition condition, and the user can determine whether he or she can acquire a reward by viewing the acquisition condition. The target page 401 further includes a voting area 406, and the avatar of the anchor to be voted, the name, the introduction, and the current vote number of each anchor are displayed in the voting area 406. In some embodiments, a voting control is displayed behind the head portrait of each anchor, and a user can vote for the corresponding anchor through clicking operation on the voting control. In some embodiments, the organizer of the target live broadcast sets a rule that the N anchor with the highest vote count can be parameterized into the target live broadcast so as to attract users to vote for the anchor, where N is a positive integer. In some embodiments, a focus control is displayed behind the avatar of the anchor, the focus control being used to focus on the anchor. In addition, the target page 401 further includes a ticket number display area 407, the votes display area 407 displays a voteable number 4071 and a ticket number increasing control 4072 of the user, in response to a click operation on the ticket number increasing control 4072, the electronic device displays a ticket number increasing page, a plurality of ticket number increasing tasks are displayed in the ticket number increasing page, and the user can obtain the voteable number by completing the ticket number increasing tasks.
In step S303, the target video is played in a preset area.
In some embodiments, each frame image of the target video is played in a preset area, and the playing volume of the target video is adjusted to zero.
For example, a mute control is displayed on the target video, and in response to a trigger operation on the mute control, the electronic device adjusts the play volume of the target video to zero.
In this embodiment, if the user wants to mute the target video, the user only needs to click the mute control, and the efficiency of human-computer interaction is high.
On the basis of the embodiment, in response to the re-triggering operation of the mute control, the electronic device restores the playing volume of the target video.
In this embodiment, when the user wants to restore the volume of the target video, the user only needs to click the mute control again, and the efficiency of human-computer interaction is high.
Alternatively, after step S303, the electronic device can also perform step S304 described below.
In step S304, in response to the target video playing being finished, the target image is resumed to be displayed in the preset area.
In some embodiments, in response to the target video being played, the electronic device controls the target video to change from the second transparency to the first transparency, and the first transparency is lower than the second transparency. The electronic device resumes displaying the target image. In some embodiments, the first transparency corresponds to fully transparent and the second transparency corresponds to fully opaque.
In this embodiment, after the target video is played, the electronic device can control the transparency of the target video to change, and then resume the display of the target image, that is, the target video can be cancelled to be displayed in a fade-out manner, and after the target video is cancelled to be displayed, the display of the target image is resumed, so that manual operation by a user is not required, and the efficiency of human-computer interaction is high.
In some embodiments, when the electronic device control target video changes from the second transparency to the first transparency, a conversion time may also be defined, that is, the electronic device control target video changes from the second transparency to the first transparency within a preset time interval, where the preset time interval is set by a technician according to actual needs, for example, set to 0.5S, 1S, or 1.5S, and the like, which is not limited in this embodiment of the application. In some embodiments, this way of displaying the target video is also referred to as fading (fade), and the code for fading is as follows:
in some embodiments, a play control is displayed on the target image, and in response to a trigger operation on the play control, the electronic device plays the target video again on the target page.
In this embodiment, after the target video is played, if the user wants to watch the target video again, the user directly clicks the playing control on the target image, and the efficiency of human-computer interaction is high.
By the video playing method provided by the embodiment of the application, the display of the target image and the playing of the target video can be realized at the same position of the target page, a user can view the target image associated with the target page in the target page and also view the target video, page switching operation is not needed, and the efficiency of man-machine interaction is improved. In addition, before the target video is played, the display of the target image is kept until the display of the target image meets the preset condition, and the exposure effect of the target image is ensured.
In addition to the above steps S301 to S304, an embodiment of the present application further provides another video playing method, taking an example that the video playing method is applied to an electronic device, with reference to fig. 6, the method includes:
in step S601, a target popup is displayed on the target page, and the target popup is used to retrieve the virtual resource.
The display method of the target page belongs to the same inventive concept as the step S301, and the implementation process refers to the related description of the step S301, which is not repeated again.
Optionally, the virtual resource is a carrier or a combined carrier with economic value, for example, one or more of an electronic red envelope, a coupon, a membership card, and a gift package, which is not limited in this embodiment of the present application. In some embodiments, the target pop is also referred to as a red pack pop.
In this embodiment, the user can be attracted to log in the target page by displaying the target popup, and the access amount of the target page is increased, thereby increasing the reservation number of the target live broadcast, the short video, and the watching amount of the target live broadcast.
In some embodiments, after step S601, the electronic device can perform both step S602 and step S603, which is not limited in this application.
In step S602, after the target pop-up window is closed, the target image displayed in the preset area is switched to the target video in response to the display of the target image satisfying the preset condition.
In some embodiments, after the target pop-up window is closed, in response to that the display of the target image meets a preset condition, the electronic device switches the target image displayed in the preset area to the target video after the target duration.
The target duration is set by a technician according to an actual situation, for example, set to 1s, 2s, or 3s, and the like, which is not limited in the embodiment of the present application.
That is, after the target pop-up window is cancelled, even if the display of the target image meets the preset condition, the electronic device does not immediately play the target video, but only plays the target video after the target duration, so that the user is ensured to have sufficient time to view the target image, and the exposure effect on the target image is ensured.
In some embodiments, a resource getting control is displayed on the target pop-up window, and in response to a triggering operation on the resource getting control, the electronic device displays a resource getting page in the target pop-up window, where the type and the number of the virtual resources that are got by the account are displayed in the resource getting page. And displaying a closing control in the target popup, and in response to the triggering operation of the closing control, canceling the display of the target popup by the electronic equipment, wherein the canceling display is also the closing of the target popup. And when the target pop-up window is closed, responding to that the display of the target image meets the preset condition, and switching the target image displayed in the preset area into the target video by the electronic equipment after the target duration.
In the embodiment, after the user gets the virtual resource through the target popup, the target popup can be closed by closing the control, and the efficiency of human-computer interaction is high.
In some embodiments, the closing control is displayed in the target popup, and in response to a trigger operation for closing the closing control, the electronic device cancels display of the target popup, that is, closes the target popup. And when the target pop-up window is closed, responding to that the display of the target image meets the preset condition, and switching the target image displayed in the preset area into the target video by the electronic equipment after the target duration.
In this embodiment, if the user does not want to get the virtual resource, the user can directly click the closing control to close the target popup window, and the efficiency of human-computer interaction is high.
In some embodiments, in response to that the display time of the target pop-up window reaches the reference time length, the electronic device cancels the display of the target pop-up window, namely, closes the target pop-up window. And when the target pop-up window is closed, responding to that the display of the target image meets the preset condition, and switching the target image displayed in the preset area into the target video by the electronic equipment after the target duration.
Under the embodiment, the target popup window can be automatically closed after being displayed for a period of time, manual operation of a user is not needed, and the efficiency of human-computer interaction is high.
It should be noted that, in the above description, an implementation manner of switching a target image displayed in a preset area to a target video in response to that display of the target image meets a preset condition belongs to the same inventive concept as that of the step S302, and for an implementation process, reference is made to the related description of the step S302, which is not described again here.
In step S603, in response to the display of the target image satisfying the preset condition, the target image displayed in the preset area is not switched to the target video.
That is, if the electronic device displays the target popup on the target page, even if the display of the target image meets the preset condition, the electronic device may not display the target video on the target page, because the target popup attracts the user's sight, and even if the target video is played, the user may not pay attention to the content of the target video.
In step S604, the target video is played in a preset area.
It should be noted that, in the above three embodiments, the method for playing the target video after the target duration by the electronic device belongs to the same inventive concept as that of the step S303, and the implementation process refers to the related description of the step S303, which is not described herein again.
Through the steps S601-S604, the display of the target image and the playing of the target video can be realized at the same position of the target page, a user can check the live broadcast information of the target live broadcast in the target page and also can watch the target video without page switching operation, and the efficiency of man-machine interaction is improved. In addition, if a target popup for retrieving the virtual resource is displayed on the target page, the target video is not played during the display period of the target popup. When the target pop-up window is cancelled to be displayed, the target video cannot be directly played, and the display of the target image can be kept before the target video is played, so that the exposure effect of the target image is ensured.
Fig. 7 is a block diagram illustrating a video playback device in accordance with an exemplary embodiment. Referring to fig. 7, the apparatus includes: a target page display unit 701, a video display unit 702, and a video playback unit 703.
And a target page display unit 701 configured to perform displaying a target page, a preset region of which is displayed with a target image.
A video display unit 702 configured to perform switching of a target image displayed in a preset area to a target video in response to display of the target image satisfying a preset condition, the target video and the target image each being associated with a target page.
A video playing unit 703 configured to perform playing of the target video in a preset area.
In some embodiments, the preset conditions include:
the display duration of the target image reaches the reference duration. Or
And receiving a trigger operation on the target image before the display duration of the target image reaches the reference duration.
In some embodiments, a play control is displayed on the target image, and the apparatus further comprises:
and the operation receiving control is configured to execute the triggering operation of the target image in response to the triggering operation of the playing control.
In some embodiments, the apparatus further comprises:
and a transparency adjusting unit configured to perform display of the target video at a first transparency in a preset region. And controlling the target video to change from the first transparency to the second transparency, wherein the first transparency is lower than the second transparency.
In some embodiments, the video display unit 702 is further configured to perform resuming display of the target image in the preset area in response to the target video being played out.
In some embodiments, the apparatus further comprises:
and the transparency adjusting unit is configured to execute the control of the target video to change from the second transparency to the first transparency, and the first transparency is lower than the second transparency.
In some embodiments, the transparency adjustment unit is configured to perform the control of the target video from the first transparency to the second transparency or the control of the target video from the second transparency to the first transparency within the preset time interval.
In some embodiments, the target page displaying unit 701 is configured to perform displaying a target popup on the target page, where the target popup is used for retrieving the virtual resource.
In some embodiments, the video display unit 702 is further configured to perform switching the target image displayed in the preset area to the target video in response to the display of the target image satisfying a preset condition after the target pop-up window is closed.
In some embodiments, the video playing unit 703 is configured to perform playing each frame image of the target video in a preset area, and adjust the playing volume of the target video to zero.
In some embodiments, a mute control is displayed on the target video, and the video playing unit 703 is configured to perform, in response to a triggering operation on the mute control, adjusting the playing volume of the target video to zero.
In some embodiments, the video playing unit 703 is further configured to perform a re-triggering operation on the mute control to restore the playing volume of the target video.
With regard to the apparatus in the above 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 described in detail here.
By the video playing method provided by the embodiment of the application, the display of the target image and the playing of the target video can be realized at the same position of the target page, a user can view the target image associated with the target page in the target page and also view the target video, page switching operation is not needed, and the efficiency of man-machine interaction is improved. In addition, before the target video is played, the display of the target image is kept until the display of the target image meets the preset condition, and the exposure effect of the target image is ensured.
In the embodiment of the present application, the electronic device may be implemented as a terminal, and the following describes a structure of the terminal:
fig. 8 is a block diagram illustrating a terminal, according to an example embodiment, the terminal 800 may be a terminal used by a user. The terminal 800 may be: at least one of a smartphone, a smartwatch, a desktop computer, a laptop computer, and a laptop portable computer. The terminal 800 may also be referred to as a user equipment, portable terminal, laptop terminal, desktop terminal, or the like, among other names.
In general, the terminal 800 includes: a processor 801 and a memory 802.
In some embodiments, the terminal 800 may further include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to the peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display 805, a camera assembly 806, audio circuitry 807, a positioning assembly 808, and a power supply 8013.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 805 is used to display a UI (User Interface). The UI may include images, text, icons, videos, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to capture touch signals on or above the surface of the display 805. The touch signal may be input to the processor 801 as a control signal for processing. At this point, the display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 805 may be one, providing a front panel of the terminal 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a foldable design; in still other embodiments, the display 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even further, the display 805 may be configured as a non-rectangular irregular image, i.e., a shaped screen. The Display 805 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp and can be used for light compensation under different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is used to locate the current geographic Location of the terminal 800 for navigation or LBS (Location Based Service). The Positioning component 808 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
In some embodiments, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 801 may control the display 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. The processor 801 may implement the following functions according to the data collected by the gyro sensor 812: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side frames of terminal 800 and/or underneath display 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side of terminal 800. When a physical button or a vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the vendor Logo.
The optical sensor 815 is used to collect ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the display 805 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display 805 is adjusted down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically disposed on a front panel of the terminal 800. The proximity sensor 816 is used to collect a distance between the user and the front surface of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 is gradually reduced, the display 805 is controlled by the processor 801 to switch from a bright screen state to a dark screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, the display 805 is controlled by the processor 801 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of terminal 800, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, there is also provided a computer readable storage medium comprising instructions, e.g., a memory comprising instructions, executable by the processor 801 of the terminal 800 to perform the video playing method described above. Alternatively, the storage medium may be a non-transitory storage medium, such as a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a processor of an electronic device to implement the video playback method described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application 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 application is limited only by the appended claims.
Claims (24)
1. A video playback method, comprising:
displaying a target page, wherein a preset area of the target page displays a target image, the target page is used for reserving a target live broadcast, and the target image is used for advertising the target live broadcast;
responding to the situation that the display of the target image meets a preset condition, switching the target image displayed in the preset area into a target video, wherein the target video and the target image are both associated with the target page, the target video is a propaganda video of the target live broadcast, and the preset condition comprises that the display duration of the target image reaches a reference duration; or receiving a trigger operation on the target image before the display duration of the target image reaches a reference duration;
and playing the target video in the preset area.
2. The video playing method according to claim 1, wherein a playing control is displayed on the target image, and the receiving of the trigger operation on the target image includes:
and responding to the trigger operation of the playing control, and receiving the trigger operation of the target image.
3. The video playing method according to claim 1, wherein before the target video is played in the preset area, the method further comprises:
displaying the target video in the preset area with a first transparency;
and controlling the target video to change from the first transparency to a second transparency, wherein the first transparency is lower than the second transparency.
4. The video playing method according to claim 1, wherein after the target video is played in the preset area, the method further comprises:
and responding to the completion of the playing of the target video, and resuming the display of the target image in the preset area.
5. The video playback method according to claim 4, wherein before resuming the display of the target image in the preset area, the method further comprises:
and controlling the target video to change from second transparency to first transparency, wherein the first transparency is lower than the second transparency.
6. The video playing method according to claim 3 or 5, wherein the controlling the target video to change from the first transparency to the second transparency or the controlling the target video to change from the second transparency to the first transparency comprises:
and controlling the target video to change from the first transparency to the second transparency or controlling the target video to change from the second transparency to the first transparency within a preset time interval.
7. The video playing method according to claim 1, wherein said displaying the target page further comprises:
and displaying a target popup on the target page, wherein the target popup is used for getting the virtual resource.
8. The video playing method according to claim 7, wherein the switching the target image displayed in the preset area to the target video in response to the display of the target image satisfying a preset condition comprises:
and after the target pop-up window is closed, responding to that the display of the target image meets a preset condition, and switching the target image displayed in the preset area into the target video.
9. The video playing method according to claim 1, wherein said playing the target video in the preset area comprises:
and playing each frame image of the target video in the preset area, and adjusting the playing volume of the target video to be zero.
10. The method of claim 9, wherein a mute control is displayed on the target video, and adjusting the playback volume of the target video to zero comprises:
and responding to the trigger operation of the mute control, and adjusting the playing volume of the target video to be zero.
11. The video playback method according to claim 10, wherein after the adjusting the playback volume of the target video to zero, the method further comprises:
and responding to the re-triggering operation of the mute control, and recovering the playing volume of the target video.
12. A video playback apparatus, comprising:
the target page display unit is configured to display a target page, a target image is displayed in a preset area of the target page, the target page is used for reserving target live broadcast, and the target image is used for publicizing the target live broadcast;
a video display unit configured to perform switching of the target image displayed in the preset area to a target video in response to the display of the target image satisfying a preset condition, the target video and the target image both being associated with the target page, the target video being a promotional video of the target live broadcast, the preset condition including that a display duration of the target image reaches a reference duration; or receiving a trigger operation on the target image before the display duration of the target image reaches a reference duration;
a video playing unit configured to perform playing of the target video in the preset area.
13. The video playback device of claim 12, wherein a playback control is displayed on the target image, the device further comprising:
and the operation receiving control is configured to execute the triggering operation of the target image in response to the triggering operation of the playing control.
14. The video playback device of claim 12, wherein the device further comprises:
a transparency adjustment unit configured to perform display of the target video at a first transparency in the preset region; and controlling the target video to change from the first transparency to a second transparency, wherein the first transparency is lower than the second transparency.
15. The video playback device according to claim 12, wherein the video display unit is further configured to resume displaying the target image in the preset area in response to completion of playback of the target video.
16. The video playback device of claim 15, wherein the device further comprises:
a transparency adjustment unit configured to perform control of the target video to change from a second transparency to a first transparency, the first transparency being lower than the second transparency.
17. The video playback device according to claim 14 or 16, wherein the transparency adjustment unit is configured to perform controlling the target video to change from the first transparency to the second transparency or controlling the target video to change from the second transparency to the first transparency within a preset time interval.
18. The video playback device according to claim 12, wherein the target page display unit is configured to perform displaying a target popup on the target page, the target popup being used for retrieving a virtual resource.
19. The video playback device of claim 18, wherein the video display unit is further configured to switch the target image displayed in the preset area to the target video in response to the display of the target image satisfying a preset condition after the target pop-up window is closed.
20. The video playback device according to claim 12, wherein the video playback unit is configured to perform playback of each frame image of the target video in the preset area, and adjust playback volume of the target video to zero.
21. The video playback device according to claim 20, wherein a mute control is displayed on the target video, and the video playback unit is configured to perform adjustment of a playback volume of the target video to zero in response to a trigger operation on the mute control.
22. The video playback device according to claim 21, wherein the video playback unit is further configured to resume the playback volume of the target video in response to a re-triggering operation of the mute control.
23. 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 one of claims 1 to 11.
24. A computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the video playback method of any of claims 1 to 11.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110638434.4A CN113395566B (en) | 2021-06-08 | 2021-06-08 | Video playing method and device, electronic equipment and computer readable storage medium |
PCT/CN2021/133016 WO2022257367A1 (en) | 2021-06-08 | 2021-11-25 | Video playing method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110638434.4A CN113395566B (en) | 2021-06-08 | 2021-06-08 | Video playing method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113395566A CN113395566A (en) | 2021-09-14 |
CN113395566B true CN113395566B (en) | 2023-02-21 |
Family
ID=77618542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110638434.4A Active CN113395566B (en) | 2021-06-08 | 2021-06-08 | Video playing method and device, electronic equipment and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113395566B (en) |
WO (1) | WO2022257367A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113395566B (en) * | 2021-06-08 | 2023-02-21 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and computer readable storage medium |
CN113949697B (en) * | 2021-09-24 | 2023-05-09 | 北京达佳互联信息技术有限公司 | Data distribution method, device, electronic equipment and storage medium |
CN113946246A (en) * | 2021-10-08 | 2022-01-18 | 北京达佳互联信息技术有限公司 | Page processing method and device, electronic equipment and computer readable storage medium |
CN115914723B (en) * | 2022-12-26 | 2024-09-24 | 广州方硅信息技术有限公司 | Live broadcasting room service popup window display method, device, system, medium and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106998477A (en) * | 2017-04-05 | 2017-08-01 | 腾讯科技(深圳)有限公司 | The front cover display methods and device of live video |
CN108900918A (en) * | 2018-08-17 | 2018-11-27 | 深圳市茁壮网络股份有限公司 | A kind of VOD method, client and electronic equipment |
CN110324696A (en) * | 2019-07-12 | 2019-10-11 | 广州华多网络科技有限公司 | Method of river diversion, device, computer equipment and the storage medium of live broadcast service |
CN110688527A (en) * | 2019-09-27 | 2020-01-14 | 北京达佳互联信息技术有限公司 | Video recommendation method and device, storage medium and electronic equipment |
CN112272302A (en) * | 2020-09-17 | 2021-01-26 | 北京达佳互联信息技术有限公司 | Multimedia resource display method, device, system and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103634686A (en) * | 2013-12-19 | 2014-03-12 | 北京奇艺世纪科技有限公司 | Method and device for previewing video |
CN104918095A (en) * | 2015-05-19 | 2015-09-16 | 乐视致新电子科技(天津)有限公司 | Multimedia stream data preview display method and device |
CN105338368B (en) * | 2015-11-02 | 2019-03-15 | 腾讯科技(北京)有限公司 | A kind of method, apparatus and system of the live stream turning point multicast data of video |
CN105872812A (en) * | 2016-04-19 | 2016-08-17 | 乐视控股(北京)有限公司 | Method and system for generating dynamic program list |
CN106231437A (en) * | 2016-07-25 | 2016-12-14 | 深圳Tcl新技术有限公司 | Video frequency program previewing method and device |
CN106375826A (en) * | 2016-08-25 | 2017-02-01 | 合网络技术(北京)有限公司 | Video playing method and device |
CN115016692A (en) * | 2018-03-01 | 2022-09-06 | 华为技术有限公司 | Information display method, graphical user interface and terminal |
CN113395566B (en) * | 2021-06-08 | 2023-02-21 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and computer readable storage medium |
-
2021
- 2021-06-08 CN CN202110638434.4A patent/CN113395566B/en active Active
- 2021-11-25 WO PCT/CN2021/133016 patent/WO2022257367A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106998477A (en) * | 2017-04-05 | 2017-08-01 | 腾讯科技(深圳)有限公司 | The front cover display methods and device of live video |
CN108900918A (en) * | 2018-08-17 | 2018-11-27 | 深圳市茁壮网络股份有限公司 | A kind of VOD method, client and electronic equipment |
CN110324696A (en) * | 2019-07-12 | 2019-10-11 | 广州华多网络科技有限公司 | Method of river diversion, device, computer equipment and the storage medium of live broadcast service |
CN110688527A (en) * | 2019-09-27 | 2020-01-14 | 北京达佳互联信息技术有限公司 | Video recommendation method and device, storage medium and electronic equipment |
CN112272302A (en) * | 2020-09-17 | 2021-01-26 | 北京达佳互联信息技术有限公司 | Multimedia resource display method, device, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113395566A (en) | 2021-09-14 |
WO2022257367A1 (en) | 2022-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109600678B (en) | Information display method, device and system, server, terminal and storage medium | |
CN109982102B (en) | Interface display method and system for live broadcast room, live broadcast server and anchor terminal | |
CN109660855B (en) | Sticker display method, device, terminal and storage medium | |
CN113395566B (en) | Video playing method and device, electronic equipment and computer readable storage medium | |
CN110278464B (en) | Method and device for displaying list | |
CN112929687A (en) | Interaction method, device and equipment based on live video and storage medium | |
CN111327953B (en) | Live broadcast voting method and device and storage medium | |
CN109729372B (en) | Live broadcast room switching method, device, terminal, server and storage medium | |
CN109167937B (en) | Video distribution method, device, terminal and storage medium | |
US20220191557A1 (en) | Method for displaying interaction data and electronic device | |
CN113490010B (en) | Interaction method, device and equipment based on live video and storage medium | |
CN109451343A (en) | Video sharing method, apparatus, terminal and storage medium | |
CN112118477B (en) | Virtual gift display method, device, equipment and storage medium | |
CN111901658B (en) | Comment information display method and device, terminal and storage medium | |
CN111464830B (en) | Method, device, system, equipment and storage medium for image display | |
CN111327916B (en) | Live broadcast management method, device and equipment based on geographic object and storage medium | |
CN112258241A (en) | Page display method, device, terminal and storage medium | |
CN113411680B (en) | Multimedia resource playing method, device, terminal and storage medium | |
CN110533585B (en) | Image face changing method, device, system, equipment and storage medium | |
CN113204672B (en) | Resource display method, device, computer equipment and medium | |
CN108897597B (en) | Method and device for guiding configuration of live broadcast template | |
CN110418152B (en) | Method and device for carrying out live broadcast prompt | |
CN108900925B (en) | Method and device for setting live broadcast template | |
CN112004134B (en) | Multimedia data display method, device, equipment and storage medium | |
CN114116053A (en) | Resource display method and device, computer equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |