CN112738633B - Video playing method, device, equipment and readable storage medium - Google Patents

Video playing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112738633B
CN112738633B CN202011561556.XA CN202011561556A CN112738633B CN 112738633 B CN112738633 B CN 112738633B CN 202011561556 A CN202011561556 A CN 202011561556A CN 112738633 B CN112738633 B CN 112738633B
Authority
CN
China
Prior art keywords
video
playing
card
player object
resource
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
Application number
CN202011561556.XA
Other languages
Chinese (zh)
Other versions
CN112738633A (en
Inventor
吴四军
陈金源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Fanxing Huyu IT Co Ltd
Original Assignee
Guangzhou Fanxing Huyu IT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Fanxing Huyu IT Co Ltd filed Critical Guangzhou Fanxing Huyu IT Co Ltd
Priority to CN202011561556.XA priority Critical patent/CN112738633B/en
Publication of CN112738633A publication Critical patent/CN112738633A/en
Application granted granted Critical
Publication of CN112738633B publication Critical patent/CN112738633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4622Retrieving content or additional data from different sources, e.g. from a broadcast channel and the Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip

Landscapes

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

Abstract

The application discloses a video playing method, device and equipment and a readable storage medium, and relates to the technical field of multimedia. The method comprises the following steps: playing a first video in a video playing interface, wherein the video playing interface plays the video in the form of list cards, and the first video corresponds to a first card in the list cards; receiving video switching operation, wherein the video switching operation is used for indicating to switch the first video into a second video, and the second video corresponds to a second card in the list card; displaying a transition picture in a video playing interface based on video switching operation, wherein the transition picture is spliced by the first card and the second card, and the first video and the second video are in the playing process; and playing the second video in the video playing interface in response to the video switching operation ending. According to the scheme, two video resources are played simultaneously in the transition picture, the fluency in switching different video playing sources is effectively linked, and the experience of a user in watching videos is improved.

Description

Video playing method, device, equipment and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of multimedia, in particular to a method, a device, equipment and a readable storage medium for playing video.
Background
Nowadays, the internet is developed rapidly, more and more users watch live broadcast or video by using a mobile phone, more play sources are displayed in a list form on the market, and the users only need to switch different play sources up and down in a sliding manner to watch different contents, wherein the play sources can be realized as live broadcast or video.
In the related art, when a user views a second playing source through a sliding screen, only the first playing source is played in an interface, and the second playing source is in a state of being paused and not played; and after the sliding operation is finished, playing the second playing source only when the second playing source is completely displayed in the interface.
In the above scheme, the first playing source and the second playing source cannot be effectively connected to the playing source to continue playing in the switching process, and then, when the second playing source is played after the sliding operation is finished, a process of waiting for pulling the playing source to the background server is generated, so that the user viewing experience is poor.
Disclosure of Invention
The embodiment of the application provides a video playing method, device and equipment and a readable storage medium, which effectively improve the fluency of playing connection of a player. The technical scheme is as follows:
In one aspect, a method for playing video is provided, the method comprising:
playing a first video in a video playing interface, wherein the video playing interface plays videos in the form of list cards, and the first video corresponds to a first card in the list cards;
receiving a video switching operation, wherein the video switching operation is used for indicating to switch the first video into a second video, and the second video corresponds to a second card in the list cards;
displaying a transition picture in the video playing interface based on the video switching operation, wherein the transition picture is spliced by the first card and the second card, and the first video and the second video are in the playing process;
and responding to the video switching operation, and playing the second video in the video playing interface.
In an alternative embodiment, the method further comprises:
and in the process of displaying the transition picture, switching the first audio of the first video to play the second audio of the second video in response to the first area occupied by the first card in the video playing interface being smaller than the second area occupied by the second card in the video playing interface.
In an optional embodiment, the displaying a transition screen in the video playing interface based on the video switching operation includes:
switching between the first card and the second card based on the video switching operation;
playing the first video based on a first player object and the second video based on a second player object in the video playing interface;
and displaying the transition picture based on the first video and the second video in play.
In an alternative embodiment, the first video corresponds to a first video asset and the second video corresponds to a second video asset;
the playing the first video based on a first player object and the second video based on a second player object in the video playing interface comprises:
in the video playing interface, loading the first video resource through the first player object, and playing the first video;
and loading the second video resource through the second player object, and playing the second video.
In an alternative embodiment, the first player object is one of a current player object and a preloaded player object, and the second player object is the other of the current player object and the preloaded player object;
The loading the first video resource through the first player object, playing the first video, includes:
responding to a first area occupied by the first card in the video playing interface, which is larger than a second area occupied by the second card in the video playing interface, loading the first video resource through the current player object, and playing the first video;
the loading the second video resource through the second player object, playing the second video, includes:
and responding to the first area occupied by the first card in the video playing interface, which is larger than the second area occupied by the second card in the video playing interface, loading the second video resource through the pre-loaded player object, and playing the second video.
In an alternative embodiment, the first player object is one of a current player object and a preloaded player object, and the second player object is the other of the current player object and the preloaded player object;
the loading the first video resource through the first player object, playing the first video, includes:
Responding to a first area occupied by the first card in the video playing interface, which is smaller than a second area occupied by the second card in the video playing interface, loading the first video resource through the preloaded player object, and playing the first video;
the loading the second video resource through the second player object, playing the second video, includes:
and responding to the first area occupied by the first card in the video playing interface, which is smaller than the second area occupied by the second card in the video playing interface, loading the second video resource through the current player object, and playing the second video.
In an alternative embodiment, the method further comprises:
and deleting the first video resource from the preloaded player object in response to the second card being displayed in its entirety in the video playing interface.
In an optional embodiment, before playing the first video based on the first player object and playing the second video based on the second player object in the video playing interface, the method further includes:
And determining the second video corresponding to the second card based on the video switching operation.
In another aspect, there is provided an apparatus for video playback, the apparatus comprising:
the playing module is used for playing a first video in a video playing interface, wherein the video playing interface plays the video in the form of list cards, and the first video corresponds to a first card in the list cards;
the receiving module is used for receiving video switching operation, wherein the video switching operation is used for indicating to switch the first video into a second video, and the second video corresponds to a second card in the list cards;
the display module is used for displaying a transition picture in the video playing interface based on the video switching operation, the transition picture is spliced by the first card and the second card, and the first video and the second video are in the playing process;
and the playing module is further used for responding to the ending of the video switching operation and playing the second video in the video playing interface.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, where the at least one instruction, the at least one program, the set of codes, or the set of instructions are loaded and executed by the processor to implement a method for video playback as in any one of the embodiments of the present application.
In another aspect, a computer readable storage medium is provided, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored, where the at least one instruction, the at least one program, the set of codes, or the set of instructions are loaded and executed by the processor to implement a method for video playback as in any one of the embodiments of the present application.
In another aspect, a computer program product is provided which, when run on a computer, causes the computer to perform the method of video playback as described in any of the embodiments of the present application.
The beneficial effects that technical scheme that this application embodiment provided include at least:
based on the video switching operation, a transition picture is displayed on the video playing interface, the transition picture is obtained by splicing a first card and a second card, the first card and the second card are both in the process of playing video content, and when the video switching operation is finished, a second video is played on the video playing interface. The fluency when different video playing sources are switched is effectively linked, the video content corresponding to the second video is not required to be watched until the second video is completely switched to the interface, and the experience feeling when the user watches the video is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a method of providing video playback in accordance with an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a video playback interface provided in accordance with the embodiment shown in FIG. 2;
FIG. 4 is a flowchart of a method of video playback provided in another exemplary embodiment of the present application;
FIG. 5 is a flowchart of a method of video playback provided in another exemplary embodiment of the present application;
FIG. 6 is a flowchart of a method of video playback provided in another exemplary embodiment of the present application;
FIG. 7 is a block diagram of an apparatus for video playback provided in an exemplary embodiment of the present application;
fig. 8 is a block diagram of an apparatus for video playback according to another exemplary embodiment of the present application;
Fig. 9 is a block diagram of a server according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment provided in an exemplary embodiment of the present application, where the implementation environment includes a terminal 110 and a server 120, and the terminal 110 and the server 120 are connected through a communication network 130 as shown in fig. 1.
Optionally, an application program for providing video content for watching is installed in the terminal 110, a target account is logged in the application program, and a user switches video operation on a video playing interface in the application program through the target account, so as to view different video contents, where the video contents may be implemented as live broadcast contents or may be implemented as small video contents. Optionally, the terminal 110 receives a video switching operation performed by a user on the video playing interface, generates a video switching signal, and sends the video switching signal to the server 120 through the communication network 130.
Alternatively, the video switching operation may be implemented as: triggering a click/long press operation on the video playing interface so as to link the click/long press operation to perform a sliding operation, wherein the sliding direction comprises upward sliding, downward sliding, leftward sliding or rightward sliding. When a user performs video switching operation on a video playing interface, determining a switching direction of the video switching operation through preset judging logic, and determining a second video to be preloaded according to a first video currently played based on the switching direction of the video switching operation, wherein the second video can be a previous video of the first video or a next video of the first video. When the video switching operation is triggered and the sliding direction is identified, the terminal 110 obtains a second video resource corresponding to the second video from the server 120, and plays the card corresponding to the second video in the video playing interface.
Optionally, after receiving the video switching signal sent by the terminal 110, the server 120 determines a first video currently played in the terminal, determines a second video corresponding to the switching direction based on the first video and the switching direction indicated by the video switching signal, and sends the second video resource to the terminal 110 for playing.
It should be noted that, the above-mentioned terminal 110 may be implemented as a mobile terminal such as a mobile phone, a tablet computer, a wearable device, a portable laptop, etc., which is not limited in this embodiment.
The server 120 may be implemented as one server or as a server cluster formed by a plurality of servers, and the server 120 may be implemented as a physical server or as a cloud server.
In connection with the above implementation environment, the method for playing video according to the embodiment of the present application will be described, and fig. 2 is a flowchart of a method for providing video playing according to an exemplary embodiment of the present application, where the method is applied to a terminal, and as shown in fig. 2, the method includes:
step 201, playing a first video in a video playing interface, where the video playing interface plays the video in the form of list cards, and the first video corresponds to a first card in the list cards.
Optionally, the video playing interface is an interface corresponding to a video playing function of an application program, where the application program may be at least one of a live broadcast application program, a small video application program, a social application program, and the like, and the embodiment of the present application is not limited to this.
The video playing interface plays videos in the form of list cards, and the list cards are used for bearing a frame structure for playing the corresponding videos. The first card in the first video correspondence list card is used for carrying the playing of the first video in the form of a card, and in some embodiments, the first card is further used for carrying information related to the first video, such as: theme names, introduction contents, comment display areas and the like, and the first video and related information are played and displayed after being rendered based on the first card. The related information of the first video may be displayed superimposed on the first video, or may be displayed in parallel with the first video.
The first video is a video played in a video playing interface of the current application program. In some embodiments, the video playback interface displays a single card in full at a time, i.e., the current video playback interface displays the first card in full.
In some embodiments, the first video corresponds to a first video resource, and the terminal plays the first video based on the first video resource obtained from the server. Optionally, the application program includes a first player object, and the first video resource is loaded through the first player object, so as to play the first video, and in some embodiments, the first player object is a current player object, and the application program further includes a second player object, where the second player object is a preloaded player object, and is used for preloading the video resource. In some embodiments, when the first video is normally played in the current video playing interface and the switching operation for the video is not received, the preloaded player object is in an idle state and is not loaded for the video resource; or when the first video is normally played in the current video playing interface and the switching operation for the video is not received, the pre-loading player object loads the next video resource of the first video.
In some embodiments, the server is configured to control an arrangement sequence of videos displayed in a video playing interface of the terminal, so that a direction of video switching is determined according to an operation of controlling video switching received by the terminal, and a corresponding video resource of a next playing video is sent to the terminal by the server based on the direction of video switching.
Step 202, receiving a video switching operation, where the video switching operation is used to instruct to switch the first video to a second video, and the second video corresponds to a second card in the list cards.
In some embodiments, the video switching operation is a sliding operation on the first card, illustratively comprising an up-sliding operation, a down-sliding operation, a left-sliding operation, and a right-sliding operation, wherein the video asset that needs to be preloaded is determined based on the sliding direction of the sliding operation. Optionally, the video switching operation acts on a first region of a first video display on a first card; or, the video switching operation acts on the display area of other display contents (such as comment display contents, theme display contents, brief introduction display contents and the like) on the first card; or, the video switching operation acts on any position on the first card, and the triggering position of the video switching operation in the embodiment of the application is not limited. Illustratively, the up-slide operation is used for indicating to preload the last video of the first video currently played, the down-slide operation is used for indicating to preload the next video of the first video currently played, the left-slide operation is used for indicating to preload the video recommended by the system, and the right-slide operation is used for indicating to preload the video published by the account of the current application program login. The preloaded video is the video which is completely displayed in the video playing interface when the sliding operation in the direction is finished. It should be noted that the relationship between the preloaded video and the sliding direction is merely an illustrative example, and the embodiment of the present application does not limit the relationship between the preloaded video and the sliding direction.
The video switching operation comprises a start part, a sliding part and an end part, wherein the start part is used for representing a node for starting triggering the video switching operation on the first card by a user, such as: the user finger touches on the terminal display screen, such as: the touch is in an area corresponding to the first card. The slide section is used to represent a process for sliding on the first card to switch between videos, such as: after the finger of the user touches the terminal display screen, the screen is pressed to not be put down to perform upward sliding operation, so that switching between the first video and the next video is triggered, and in the sliding process, the card moves along with the sliding of the finger, namely, the first card slides upwards along with the sliding of the finger of the user, so that the next video is displayed. The ending part is used for indicating that the user ends the touch operation on the first card, so as to complete the process of switching between videos, such as: after the user slides the finger upwards to switch the first video to the next video, the sliding operation is finished, the finger leaves the screen, the next video is played in the terminal display screen, and the first card corresponding to the first video is slid out of the screen.
Note that, the above-mentioned touch operation by the finger may be implemented as a sliding operation of the mouse, a wheel control operation of the mouse, or the like, and the specific implementation manner of the operation is not limited in the embodiments of the present application.
In some embodiments, the second video is predicted based on a beginning portion of the video switching operation; alternatively, the second video switched is determined according to the sliding direction based on the sliding portion of the video switching operation.
When predicting the second video based on the beginning part of the video switching operation, the second video is predicted according to the sliding habit of the user, and schematically, a historical sliding operation record of the user is obtained, and the sliding direction in the video switching operation is predicted according to the sliding operation which occupies a relatively large area in the historical sliding operation record. Such as: in the history of the sliding operation, 70% of the sliding operations are upward sliding operations, and then the second video is predicted with the upward sliding operation as a prediction result (i.e., the second video is a video switched after the upward sliding operation).
And when the second video is determined based on the sliding part of the video switching operation, determining the switching direction of the video directly according to the sliding direction corresponding to the sliding part, and determining the second video corresponding to the switching direction based on the arrangement sequence of the video. Illustratively, the terminal sends a video switching signal to the server based on the sliding direction, wherein the video switching signal includes a sliding direction (for example, the terminal indicates to the server that the sliding direction is a downward sliding direction), or a switching control indication (for example, the terminal indicates to the server based on the sliding direction that the next video of the current video is played based on the arrangement order).
It should be noted that, in the sliding portion of the video switching operation, in the process of controlling the first video to switch to the second video by the finger of the user, the first video and the second video are simultaneously displayed in the video playing interface, that is, when the sliding switching is performed between the first card and the second card according to the video switching operation, the first card and the second card are simultaneously displayed in the video playing interface.
Step 203, displaying a transition picture in the video playing interface based on the video switching operation, wherein the transition picture is obtained by splicing a first card and a second card, and the first video and the second video are in the playing process.
In some embodiments, the application program includes a first player object and a second player object, and in the process of sliding switching, when the first card and the second card are simultaneously displayed in the video playing interface, the first video is played through the first player object, and the second video is played through the second player object, so that the first video and the second video are simultaneously played in the video playing interface.
Referring to fig. 3 specifically, fig. 3 shows an interface schematic diagram when switching videos. Taking an example of an application scenario that a user watches live broadcast in an application program, watching live broadcast of a host broadcast A in a video playing interface 300 in the form of list cards, when the user performs video switching operation on a first card 302 corresponding to the host broadcast A in the video playing interface 300, the video playing interface 300 switches from the first card 302 to a second card 304 corresponding to the host broadcast B, so that a transition picture is displayed in the video playing interface 300, where the transition picture includes the first card 302 when the host broadcast A is live broadcast and the second card 304 when the host broadcast B is live broadcast, the first card 302 is used for bearing video content when the host broadcast A is live broadcast, and the second card 304 is used for bearing video content when the host broadcast B is live broadcast. After the video switching operation is finished, the live video of the anchor B is played in the video playing interface 300, that is, the second card 304 corresponding to the anchor B is completely displayed in the video playing interface 300.
And in the process of displaying the transition picture, acquiring the size of the area occupied by the first card corresponding to the first video and the second card corresponding to the second video in the video playing interface in real time.
And responding to the first area occupied by the first card in the video playing interface, which is smaller than (or equal to) the second area occupied by the second card in the video playing interface, and switching from the first audio of the first video to playing the second audio of the second video. And otherwise, in response to the first area occupied by the first card in the video playing interface being larger than (or equal to) the second area occupied by the second card in the video playing interface, playing the first audio corresponding to the first video. That is, when the video playing interface includes the first card corresponding to the first video and the second card corresponding to the second video, the sizes of the areas occupied by the first card and the second card in the video playing interface are compared, and the audio content corresponding to the video with the larger area occupied by the card in the video playing interface is played.
In the above embodiments, the playing of the audio is described by taking the comparison result of the areas occupied by the first card and the second card in the video playing interface as an example, and in some embodiments, the playing of the audio may also be determined by the comparison result of the sizes of the display areas of the first video and the second video in the video playing interface. Illustratively, when the display size of the first video in the video playing interface is smaller than (or equal to) the display size of the second video in the video playing interface, playing the second audio of the second video; and playing the first audio of the first video when the display size of the first video in the video playing interface is larger than (or equal to) the display size of the second video in the video playing interface.
In the above examples, the comparison of the card granularity and the video granularity is illustrated, and the embodiment of the present application does not limit the comparison granularity for determining the audio play.
In some embodiments, according to the video switching operation, a transition screen is displayed on the video playing interface, and optionally, the terminal detects the size of the display area of the corresponding card in the transition screen; or adding the video content and the audio content corresponding to the first video and the second video in the transition picture to the array, and caching the display area sizes corresponding to the first card and the second card in the transition picture by the array.
In some embodiments, a first video is played in a video playback interface based on a first player object and a second video is played based on a second player object, and a transition picture is displayed based on the first video and the second video being played.
Illustratively, taking the first player object as a current player object, taking the second player object as a preloaded player object for example for carrying out or explaining, when the first area occupied by the first card in the video playing interface is larger than (or equal to) the second area occupied by the second card in the video playing interface, playing the first video resource and the first audio content corresponding to the first video by the first player object, and notably, after receiving the video switching operation, loading the second video resource and the second audio resource corresponding to the second video by the second player object at this moment, and carrying out mute processing on the second audio content, namely, playing the first video and the second video simultaneously when the display area of the first card is larger than (or equal to) the display area of the second card, but only playing the corresponding first audio content by the first video and only playing the mute video content by the second video.
And along with the execution of the sliding operation, the first area occupied by the first card in the video playing interface is gradually reduced, the second area occupied by the second card in the video playing interface is gradually increased, when the first area occupied by the first card in the video playing interface is smaller than (or equal to) the second area occupied by the second card in the video playing interface, the second video resource and the second audio content corresponding to the second video are played by the first player object, and it is worth noting that at the moment, the first player object loads the first video resource and the first audio resource corresponding to the first video after receiving the video switching operation, and performs mute processing on the first audio content, namely, when the display area of the first card is smaller than (or equal to) the display area of the second card, the first video and the second video are simultaneously played, but only the second audio content corresponding to the second video is played, and the first video only plays the mute video content.
It should be noted that the first player object may also be implemented as a preloaded player object, and the second player object may also be implemented as a current player object, which is not limited in the embodiment of the present application.
And step 204, playing the second video in the video playing interface in response to the video switching operation ending.
And after the video switching operation is finished, the video playing interface completely displays a second card corresponding to the second video, and loads a second video resource corresponding to the second video to the current player object for playing. The current player object is a player object which aims at the video which is completely played in the video playing interface or is set by displaying a relatively large video in a transition picture.
In summary, in the video playing method shown in the embodiment of the present application, based on the video switching operation, a transition picture is displayed on a video playing interface, where the transition picture is obtained by splicing a first card and a second card, and both the first card and the second card are in a process of playing video content, and in the transition picture, only a video with a larger occupied area plays a corresponding audio content, and another video with a smaller occupied area is in mute playing; and when the video switching operation is finished, playing the audio content corresponding to the second video on the video playing interface. The fluency when different video playing sources are switched is effectively linked, the video content corresponding to the second video is not required to be watched until the second video is completely switched to the interface, and the experience feeling when the user watches the video is improved.
In another alternative embodiment, fig. 4 is a flowchart of a method for playing video according to another exemplary embodiment of the present application, and the method is applied to a terminal for illustration, as shown in fig. 4, and includes:
step 401, playing a first video in a video playing interface, where the video playing interface plays the video in the form of list cards, and the first video corresponds to a first card in the list cards.
The video playing interface plays videos in the form of list cards, and the list cards are used for bearing a frame structure for playing the corresponding videos. The first video corresponds to a first card in the list card, that is, the first card is used for carrying the playing of the first video in the form of a card.
The first video is a video played in a video playing interface of the current application program.
Step 402, receiving a video switching operation, where the video switching operation is used to instruct to switch the first video to a second video, and the second video corresponds to a second card in the list cards.
In some embodiments, the video switching operation is a sliding operation on the first card, illustratively comprising an up-sliding operation, a down-sliding operation, a left-sliding operation, and a right-sliding operation, wherein the video asset that needs to be preloaded is determined based on the sliding direction of the sliding operation.
Step 403, switching between the first card and the second card based on the video switching operation.
In the sliding part of the video switching operation, in the process of controlling the first video to switch to the second video by the finger of the user, the first video and the second video are simultaneously displayed in the video playing interface, namely, when the sliding switching is performed between the first card and the second card according to the video switching operation, the first card and the second card have the stage of being simultaneously displayed in the video playing interface.
Step 404, playing a first video based on the first player object and a second video based on the second player object in the video playing interface.
In some embodiments, the second video corresponding to the second card is determined based on a video switching operation before the second video is played based on the second player. Optionally, based on a switching direction corresponding to the video switching operation, a second video corresponding to the switching direction is determined.
In some embodiments, the first video corresponds to a first video resource, the second video corresponds to a second video resource, and in the video playing interface, the first video is played by loading the first video resource through the first player object, and the second video is played by loading the second video resource through the second player object.
In some embodiments, the first player object is one of a current player object and a preloaded player object, and the second player object is the other of the current player object and the preloaded player object. The playing of the first video and the second video includes the following:
firstly, responding to a first area occupied by a first card in a video playing interface, wherein the first area is larger than (or equal to) a second area occupied by a second card in the video playing interface, and loading a first video resource through a current player object to play a first video; loading a second video resource through a preloaded player object, and playing the second video;
namely, in response to the first area being greater than (or equal to) the second area, the view object and the data object of the first video are transmitted into the current player object to be loaded and played; and transmitting the view object and the data object of the second video into a preloaded player object for loading and playing.
Secondly, responding to a first area occupied by the first card in the video playing interface, which is smaller than (or equal to) a second area occupied by the second card in the video playing interface, loading a first video resource through a preloaded player object, and playing the first video; and loading a second video resource through the current player object, and playing the second video.
That is, in response to the first area being smaller than (or equal to) the second area, the view object and the data object of the first video are transferred into the preloaded player object for loaded playing; and transmitting the view object and the data object of the second video into the current player object for loading and playing.
Step 405, displaying a transition picture based on the first video and the second video in play.
In some embodiments, the first video and the second video are played through the first player object and the second player object, respectively, i.e., the first video and the second video are both in the process of playing, and the transition picture is displayed based on the first video in play and the second video in play.
And step 406, playing the second video in the video playing interface in response to the video switching operation ending.
And after the video switching operation is finished, the video playing interface completely displays a second card corresponding to the second video, and loads a second video resource corresponding to the second video to the current player object for playing. The current player object is a player object which aims at the video which is completely played in the video playing interface or is set by displaying a relatively large video in a transition picture.
In summary, according to the video playing method provided by the embodiment of the present application, based on the video switching operation, a transition picture is displayed on a video playing interface, where the transition picture is obtained by splicing a first card and a second card, and both the first card and the second card are in a process of playing video content, and in the transition picture, only a video with a larger occupied area plays a corresponding audio content, and another video with a smaller occupied area is in mute playing; and when the video switching operation is finished, playing the audio content corresponding to the second video on the video playing interface. The fluency when different video playing sources are switched is effectively linked, the video content corresponding to the second video is not required to be watched until the second video is completely switched to the interface, and the experience feeling when the user watches the video is improved.
In another alternative embodiment, fig. 5 is a flowchart of a method for playing video according to another exemplary embodiment of the present application, and the method is applied to a server corresponding to an ios system, and as shown in fig. 5, the method includes:
step 501, two player objects are initialized.
In this embodiment, the current player object is set to CurPlayer, the preloaded player object is set to PrePlayer, curPlayer to be a player object for the video that is completely played in the video playing interface, or a player object that is set to display a relatively large video in the transition picture, and the PrePlayer is set to be a player object that is set to display a relatively small video in the transition picture.
Before a user enters a video playing interface, initializing the PrePlayer and the CurPlayer, and loading video resources corresponding to the first card or the second card in a corresponding player object according to the display area sizes corresponding to the first card and the second card when video switching is carried out subsequently.
Step 502, loading a large card view and player data source data.
When a user is positioned on a video playing interface, the current video playing interface plays a first video, and the terminal loads a first view object and a first playing data source resource corresponding to the first video.
Step 503, store to array.
The method comprises the steps of loading a first view object and a first play data source resource of a first card corresponding to a first video by a CurPlayer, adding the first view object into a ShowCell in a first array, adding the first play data source resource into a ShowModel in the first array, and caching resource data corresponding to the current video by the first array.
Step 504, touch slide card.
The terminal receives video sliding operation on the first card, displays a transition picture, and the video switching operation is used for indicating to switch the first video into a second video, wherein the second video corresponds to a second card in the list cards; the video sliding operation may be implemented as one of sliding up, sliding down, sliding left, or sliding down.
In step 505, callback scrolling.
After receiving the video sliding operation on the first card, the terminal starts the callback rolling logic to process the first card and the second card, and the step of the callback rolling logic is referred to as step 506 to step 512.
And step 506, determining the current playing data and the preloaded data according to the comparison of the current card display area.
In this embodiment, based on the transition picture, the terminal determines a second view object corresponding to a second video in the video playing interface and a second playing data source resource; and adding the second view object to the pre cell in the second array, and adding the second play data source resource to the pre model in the second array, wherein the second array is used for caching resource data corresponding to the preloaded video.
The display area size in the transition screen includes the following cases:
first kind: when the first area occupied by the first card is larger than (or equal to) the second area occupied by the second card, determining the first video as a current playing resource, and determining the second video as a preloaded playing resource; the current player, namely CurPlayer, loads a first video resource corresponding to the first card; the preloaded player, that is, the pre-player loads the second video resource corresponding to the second card, and it is noted that the first card and the second card are both in the playing process.
Second kind: when the first area occupied by the first card is smaller than (or equal to) the second area occupied by the second card, determining the second video as a current playing resource, and determining the first video as a preloaded playing resource; the current player, namely CurPlayer, loads a second video resource corresponding to the second card; the preloaded player, that is, the pre-player loads the first video resource corresponding to the first card, and it is noted that both the first card and the second card are in the playing process.
In step 507, the data cache is added to the corresponding object.
In some embodiments, when the first area occupied by the first card is greater than (or equal to) the second area occupied by the second card, the first view object cache is added to the ShowCell, the first play data source resource is added to the ShowModel, the second view resource is added to the pre-cell, and the second play data source resource is added to the pre-model. Or when the first area occupied by the first card is smaller than (or equal to) the second area occupied by the second card, adding the second view object cache into a ShowCell, adding the second play data source resource into a ShowModel, adding the first view resource into a pre-cell, and adding the first play data source resource into the pre-model.
Step 508, it is determined whether the player object contains a data address.
In some embodiments, if the first area corresponding to the first card in the transition frame is greater than (or equal to) the second area corresponding to the second card, the CurPlayer loads the first play data source resource in the ShowModel; the preplay loads the second play data source resource in the premdel. Or when the first area corresponding to the first card in the transition picture is smaller than (or equal to) the second area corresponding to the second card, the CurPlayer loads the second play data source resource in the ShowModel; the preplay loads the first play data source resource in the premdel.
Step 509, releasing the player resource, and loading the data according to the new address.
In some embodiments, when the first area corresponding to the first card in the transition picture is greater than (or equal to) the second area corresponding to the second card, the play data resource in the CurPlayer is not the first play data source resource, and when the play data resource in the preplay is not the second play data resource, the video resources in the CurPlayer and the preplay are released, the CurPlayer reloads the video resource of the first card according to the first play data source corresponding to the first video, and the preplay reloads the video resource of the second card according to the second play data source corresponding to the second video.
Step 510, multiplexing the video stream played by the existing player.
In some embodiments, when the first area corresponding to the first card in the transition picture is greater than (or equal to) the second area corresponding to the second card, the play data resource in the CurPlayer is the first play data source resource, and the play data resource in the preplay is the second play data resource, and then the corresponding video resource is played by the current player. Or when the first area corresponding to the first card in the transition picture is smaller than (or equal to) the second area corresponding to the second card, the play data resource in the CurPlayer is the second play data resource, and the play data resource in the PrePlayer is the first play data resource, and the corresponding video resource is played by the current player in a multiplexing mode.
In step 511, the player with the larger corresponding area plays the sound, and the silence is small.
In the above steps 506 to 510, the transition frame is determined based on the video sliding operation, the size of the region occupied by the video in the transition frame is determined, and the audio corresponding to the video is determined to be played. The first card and the second card are simultaneously in a playing state when the first area corresponding to the first card is larger than (or equal to) the second area corresponding to the second card in the transition picture, and only the video content corresponding to the first card has sound, while the second card is in a mute state.
Step 512, load network new data.
And loading a second view object corresponding to the second video appearing in the transition picture and a second play data source resource.
In step 513, the data settings are recalled.
After receiving the video sliding operation on the first card, the terminal starts the callback data setting, and processes the first card and the second card, and the specific steps refer to step 515 to step 517.
At step 514, the current player renders the object= ShowCell.
Judging whether a video which is completely displayed on a video playing interface or a view object corresponding to a video with a larger occupied area on the video playing interface is loaded in the current player CurPlayer. For example, when the first area corresponding to the first card in the transition picture is greater than (or equal to) the second area corresponding to the second card, it is determined whether the CurPlayer includes the first view object corresponding to the first card in the ShowCell.
Step 515, no processing is done.
In some embodiments, when the first area corresponding to the first card in the transition picture is greater than (or equal to) the second area corresponding to the second card, the first view object corresponding to the first card is cached in the ShowCell, the second view object corresponding to the second card is cached in the PreCell, and the view objects corresponding to the ShowCell and PreCell are rendered correspondingly, without other processing.
Step 516, delete the original player image and add again.
In some embodiments, when the first area corresponding to the first card in the transition picture is greater than (or equal to) the second area corresponding to the second card, the first view object corresponding to the first card is not cached in the ShowCell, the second view object corresponding to the second card is not cached in the PreCell, the ShowCell deletes the originally cached view object and adds the first view object in a cache manner, and the PreCell deletes the originally cached view object and adds the second view object in a cache manner, and when playing, rendering processing is correspondingly performed.
In summary, in the video playing method shown in the embodiment of the present application, based on the video switching operation, a transition picture is displayed on a video playing interface, where the transition picture is obtained by splicing a first card and a second card, and both the first card and the second card are in a process of playing video content, and in the transition picture, only a video with a larger occupied area plays a corresponding audio content, and another video with a smaller occupied area is in mute playing; and when the video switching operation is finished, playing the audio content corresponding to the second video on the video playing interface. The fluency when different video playing sources are switched is effectively linked, the video content corresponding to the second video is not required to be watched until the second video is completely switched to the interface, and the experience feeling when the user watches the video is improved.
In another alternative embodiment. Fig. 6 is a flowchart of a method for playing video according to another exemplary embodiment of the present application, and the method is applied to a server corresponding to an Android system for example, as shown in fig. 6, and includes:
step 601, initializing a current player object and preloading the player object.
This step is the same as the above step 501 and will not be described here again.
Step 602, loading a large card view and playing data source data.
This step is the same as the step 502 described above, and will not be described again here.
Step 603, store to array.
This step is the same as the procedure of step 503 described above and will not be described here again.
Step 604, touch slide card.
This step is the same as the step 504 described above and will not be described again here.
Step 605, callback scroll.
After receiving the video sliding operation on the first card, the terminal starts the callback rolling logic to process the first card and the second card, and the step of the callback rolling logic is referred to as step 606 to step 610.
Step 606, pre-judging the sliding motion.
This step is the same as the process of identifying the video switching operation in step 202, and will not be described here.
In this embodiment, a sensor may be set in the application terminal, and a sliding track generated in a preset time period is collected through the sensor, a sliding direction of a video switching operation of a user is determined according to a start sliding point and an end sliding point of the user, and a video which is about to appear according to the sliding direction is determined as a preloaded video.
In step 607, the data cache is added to the corresponding object.
The terminal acquires a first view object corresponding to the first video and a second view object corresponding to the second video, adds the first view object into ShowPragment for caching, and adds the second view object into PrePragment for caching.
In step 608, it is determined whether the player object contains a data address.
In some embodiments, when the first area corresponding to the first card in the transition picture is greater than (or equal to) the second area corresponding to the second card, it is determined whether the CurPlayer includes a first video resource corresponding to the first video, and the preplay includes a second video resource corresponding to the second video.
In step 609, the current player object plays the picture and sound, and the preloaded player object only plays the sound.
In some embodiments, when the first area corresponding to the first card is greater than (or equal to) the second area corresponding to the second card in the transition screen, the CurPlayer loads the first video resource corresponding to the first card for playing, and the PrePlayer loads the second video resource corresponding to the second card for playing, but performs mute processing on the second video resource.
In some embodiments, when the first area corresponding to the first card in the transition picture is smaller than (or equal to) the second area corresponding to the second card, the CurPlayer loads the second video resource corresponding to the second card to play, and the PrePlayer loads the first video resource corresponding to the first card to play, but performs mute processing on the first video resource.
Step 610, switching audio playing according to the size of the sliding region.
Based on the video sliding operation, the terminal acquires the sizes of the areas occupied by the first card and the second card in the transition picture in real time, performs mute processing on the video with smaller area occupied by the video playing interface, and only plays the audio content of the video with larger area occupied.
Step 611, loading network new data.
This step is the same as the step 512 described above and will not be described again here.
And step 612, callback data setting.
This step is the same as step 513 described above and will not be described again here.
In step 613, the current player renders an object= Fragment.
This step is the same as the step 514 described above and will not be described again here.
Step 614, no processing is performed.
This step is the same as the step 515 procedure described above and will not be described again here.
Step 615, reinitializes the new play resource.
When the video resources corresponding to the large-area video occupied in the video playing interface are not cached in the current player CurPlayer, initializing the video resources in the CurPlayer, and reloading the video resources corresponding to the large-area video occupied for playing.
In summary, in the video playing method shown in the embodiment of the present application, based on the video switching operation, a transition picture is displayed on a video playing interface, where the transition picture is obtained by splicing a first card and a second card, and both the first card and the second card are in a process of playing video content, and in the transition picture, only a video with a larger occupied area plays a corresponding audio content, and another video with a smaller occupied area is in mute playing; and when the video switching operation is finished, playing the audio content corresponding to the second video on the video playing interface. The fluency when different video playing sources are switched is effectively linked, the video content corresponding to the second video is not required to be watched until the second video is completely switched to the interface, and the experience feeling when the user watches the video is improved.
Fig. 7 is a block diagram of an apparatus for video playing according to an exemplary embodiment of the present application, and as shown in fig. 7, the apparatus includes: a playing module 701, a receiving module 702, and a display module 703;
The playing module 701 is configured to play a first video in a video playing interface, where the video playing interface plays the video in a form of a list card, and the first video corresponds to a first card in the list card;
a receiving module 702, configured to receive a video switching operation, where the video switching operation is used to instruct to switch the first video to a second video, and the second video corresponds to a second card in the list cards;
the display module 703 is configured to display a transition picture in the video playing interface based on the video switching operation, where the transition picture is obtained by splicing the first card and the second card, and the first video and the second video are in a playing process;
the playing module 701 is further configured to play the second video in the video playing interface in response to the video switching operation ending.
In an alternative embodiment, as shown in fig. 8, the apparatus further includes:
and the switching module 704 is configured to switch, in the process of displaying the transition screen, from the first audio of the first video to playing the second audio of the second video in response to the first area occupied by the first card in the video playing interface being smaller than the second area occupied by the second card in the video playing interface.
In an alternative embodiment, the display module 703 is further configured to switch between the first card and the second card based on the video switching operation; playing the first video based on a first player object and the second video based on a second player object in the video playing interface; and displaying the transition picture based on the first video and the second video in play.
In an alternative embodiment, the first video corresponds to a first video asset and the second video corresponds to a second video asset;
the playing module 701 is further configured to load, in the video playing interface, the first video resource through the first player object, and play the first video; and loading the second video resource through the second player object, and playing the second video.
In an alternative embodiment, the first player object is one of a current player object and a preloaded player object, and the second player object is the other of the current player object and the preloaded player object;
the playing module 701, as shown in fig. 8, further includes a first playing unit 705 and a second playing unit 706;
And the first playing unit 705 is configured to respond to the first area occupied by the first card in the video playing interface being greater than the second area occupied by the second card in the video playing interface, and load the first video resource through the current player object, so as to play the first video.
And the second playing unit 706 is configured to respond to the first area occupied by the first card in the video playing interface being greater than the second area occupied by the second card in the video playing interface, load the second video resource through the preloaded player object, and play the second video.
In an alternative embodiment, the first player object is one of a current player object and a preloaded player object, and the second player object is the other of the current player object and the preloaded player object;
the first playing unit 705 is further configured to respond to a first area occupied by the first card in the video playing interface being smaller than a second area occupied by the second card in the video playing interface, load the first video resource through the preloaded player object, and play the first video.
The second playing unit 706, in response to the first area occupied by the first card in the video playing interface being smaller than the second area occupied by the second card in the video playing interface, loads the second video resource through the current player object, and plays the second video.
In an alternative embodiment, as shown in fig. 8, the apparatus further comprises:
and a deleting module 707, configured to delete the first video resource from the preloaded player object in response to the second card being completely displayed in the video playing interface.
In an alternative embodiment, as shown in fig. 8, the apparatus further comprises:
a determining module 708 is configured to determine the second video corresponding to the second card based on the video switching operation.
In summary, according to the video playing device provided by the embodiment of the present application, based on the video switching operation, a transition picture is displayed on a video playing interface, where the transition picture is obtained by splicing a first card and a second card, and both the first card and the second card are in a process of playing video content, and in the transition picture, only a video with a larger occupied area plays a corresponding audio content, and another video with a smaller occupied area is in mute playing; and when the video switching operation is finished, playing the audio content corresponding to the second video on the video playing interface. The fluency when different video playing sources are switched is effectively linked, the video content corresponding to the second video is not required to be watched until the second video is completely switched to the interface, and the experience feeling when the user watches the video is improved.
It should be noted that: in the video playing device provided in the above embodiment, only the division of the above functional modules is used for illustration, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for playing video provided in the above embodiment and the method embodiment of the video playing source belong to the same concept, and the specific implementation process is detailed in the method embodiment, which is not repeated here.
Fig. 9 shows a schematic structural diagram of a server according to an exemplary embodiment of the present application. The server may be the server shown in fig. 1. Specifically, the present invention relates to a method for manufacturing a semiconductor device.
The server 120 includes a central processing unit (CPU, central Processing Unit) 901, a system Memory 904 including a random access Memory (RAM, random Access Memory) 902 and a Read Only Memory (ROM) 903, and a system bus 905 connecting the system Memory 904 and the central processing unit 901. The server 120 further includes a basic input/output system (I/O system, input Output System) 906, which facilitates the transfer of information between the various devices within the computer, and a mass storage device 907 for storing an operating system 913, application programs 914, and other program modules 915.
The basic input/output system 906 includes a display 908 for displaying information and an input device 909, such as a mouse, keyboard, or the like, for user input of information. Wherein both the display 908 and the input device 909 are coupled to the central processing unit 901 via an input output controller 910 coupled to the system bus 905. The basic input/output system 906 may also include an input/output controller 910 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 910 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer-readable media provide non-volatile storage for the server 120. That is, the mass storage device 907 may include a computer readable medium (not shown) such as a hard disk or compact disc read only memory (CD-ROM, compact Disc Read Only Memory) drive.
Computer readable media may include computer storage media and communication media without loss of generality. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, erasable programmable read-only memory (EPROM, erasable Programmable Read Only Memory), electrically erasable programmable read-only memory (EEPROM, electrically Erasable Programmable Read Only Memory), flash memory or other solid state memory devices, CD-ROM, digital versatile disks (DVD, digital Versatile Disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that computer storage media are not limited to the ones described above. The system memory 904 and mass storage device 907 described above may be collectively referred to as memory.
According to various embodiments of the present application, server 120 may also operate by being connected to remote computers on a network, such as the Internet. That is, the server 120 may be connected to the network 912 through a network interface unit 911 coupled to the system bus 905, or other types of networks or remote computer systems (not shown) may be connected using the network interface unit 911.
The memory also includes one or more programs, one or more programs stored in the memory and configured to be executed by the CPU.
Embodiments of the present application also provide a computer device, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for playing video provided by the above method embodiments.
Embodiments of the present application also provide a computer readable storage medium having at least one instruction, at least one program, a code set, or an instruction set stored thereon, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method for video playback provided by the above method embodiments.
Alternatively, the computer-readable storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), solid state disk (SSD, solid State Drives), or optical disk, etc. The random access memory may include resistive random access memory (ReRAM, resistance Random Access Memory) and dynamic random access memory (DRAM, dynamic Random Access Memory), among others. The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.

Claims (9)

1. A method of video playback, the method comprising:
A first video resource and first audio content in a first video are played in a video playing interface by using a first player object, the video playing interface plays the video in the form of list cards, the first video corresponds to the first card in the list cards, and the first player object is used for playing the video displayed in the video playing interface;
receiving a video switching operation, wherein the video switching operation is used for indicating to switch the first video into a second video, the second video corresponds to a second card in the list cards, the second video is played by using a second player object, and the second player object is used for preloading video resources;
predicting the second video based on the beginning portion of the video switching operation and a sliding habit, determining a second video asset and a second audio content within the second player object; when the first player object plays the first video and the video switching operation is not received, the second player object is in an idle state and is not preloaded for the video resource;
displaying a transition picture in the video playing interface based on the video switching operation, wherein the transition picture is spliced by the first card and the second card, and the first video and the second video are in the playing process;
In the process of displaying the transition picture, playing the first video resource, the first audio content and the second video resource in response to the first area occupied by the first card in the video playing interface being larger than or equal to the second area occupied by the second card in the video playing interface, and carrying out mute processing on the second audio content;
in the process of displaying the transition picture, responding to the fact that the first area is smaller than the second area, simultaneously playing the first video resource and the second video resource by the first player object, synchronously playing the second audio content according to the playing process of the second video resource, and muting the first audio content;
and responding to the video switching operation, completely displaying the second video resource in the video playing interface, and playing the second audio content.
2. The method of claim 1, wherein displaying a transition screen in the video playback interface based on the video switching operation comprises:
switching between the first card and the second card based on the video switching operation;
Playing the first video based on the first player object and the second video based on the second player object in the video playing interface;
and displaying the transition picture based on the first video and the second video in play.
3. The method of claim 2, wherein the first video corresponds to a first video asset and the second video corresponds to a second video asset;
the playing the first video based on the first player object and the second video based on the second player object in the video playing interface comprises:
in the video playing interface, loading the first video resource through the first player object, and playing the first video;
and loading the second video resource through the second player object, and playing the second video.
4. A method according to claim 3, wherein the first player object is one of a current player object and a preloaded player object, and the second player object is the other of the current player object and the preloaded player object;
The loading the first video resource through the first player object, playing the first video, includes:
responding to a first area occupied by the first card in the video playing interface, which is larger than a second area occupied by the second card in the video playing interface, loading the first video resource through the current player object, and playing the first video;
the loading the second video resource through the second player object, playing the second video, includes:
and responding to the first area occupied by the first card in the video playing interface, which is larger than the second area occupied by the second card in the video playing interface, loading the second video resource through the pre-loaded player object, and playing the second video.
5. A method according to claim 3, wherein the first player object is one of a current player object and a preloaded player object, and the second player object is the other of the current player object and the preloaded player object;
the loading the first video resource through the first player object, playing the first video, includes:
Responding to a first area occupied by the first card in the video playing interface, which is smaller than a second area occupied by the second card in the video playing interface, loading the first video resource through the preloaded player object, and playing the first video;
the loading the second video resource through the second player object, playing the second video, includes:
and responding to the first area occupied by the first card in the video playing interface, which is smaller than the second area occupied by the second card in the video playing interface, loading the second video resource through the current player object, and playing the second video.
6. The method of claim 5, wherein the method further comprises:
and deleting the first video resource from the preloaded player object in response to the second card being displayed in its entirety in the video playing interface.
7. An apparatus for video playback, the apparatus comprising:
the playing module is used for playing a first video resource and first audio content in a first video by using a first player object in a video playing interface, wherein the video playing interface plays the video in the form of list cards, the first video corresponds to the first card in the list cards, and the first player object is used for playing the video displayed in the video playing interface;
The receiving module is used for receiving video switching operation, the video switching operation is used for indicating to switch the first video into a second video, the second video corresponds to a second card in the list cards, the second video is played by using a second player object, and the second player object is used for preloading video resources;
a determining module, configured to predict the second video based on a beginning portion of the video switching operation and a sliding habit, and determine a second video resource and a second audio content in the second player object; when the first player object plays the first video and the video switching operation is not received, the second player object is in an idle state and is not preloaded for the video resource;
the display module is used for displaying a transition picture in the video playing interface based on the video switching operation, the transition picture is spliced by the first card and the second card, and the first video and the second video are in the playing process;
the switching module is used for responding to the fact that a first area occupied by the first card in the video playing interface is larger than or equal to a second area occupied by the second card in the video playing interface in the process of displaying the transition picture, playing the first video resource, the first audio content and the second video resource, and carrying out mute processing on the second audio content; in the process of displaying the transition picture, responding to the fact that the first area is smaller than the second area, simultaneously playing the first video resource and the second video resource by the first player object, synchronously playing the second audio content according to the playing process of the second video resource, and muting the first audio content;
And the playing module is further used for completely displaying the second video resource in the video playing interface and playing the second audio content in response to the ending of the video switching operation.
8. A computer device comprising a processor and a memory having stored therein at least one instruction that is loaded and executed by the processor to implement the method of video playback as claimed in any one of claims 1 to 6.
9. A computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the method of video playback as claimed in any one of claims 1 to 6.
CN202011561556.XA 2020-12-25 2020-12-25 Video playing method, device, equipment and readable storage medium Active CN112738633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561556.XA CN112738633B (en) 2020-12-25 2020-12-25 Video playing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561556.XA CN112738633B (en) 2020-12-25 2020-12-25 Video playing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112738633A CN112738633A (en) 2021-04-30
CN112738633B true CN112738633B (en) 2023-06-23

Family

ID=75616023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561556.XA Active CN112738633B (en) 2020-12-25 2020-12-25 Video playing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112738633B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727172B (en) * 2021-09-01 2023-02-28 北京字跳网络技术有限公司 Video cache playing method and device, electronic equipment and storage medium
CN114025218B (en) * 2021-09-14 2024-04-02 百果园技术(新加坡)有限公司 Card type video interaction method, device, equipment and storage medium
CN113923499B (en) * 2021-09-30 2023-06-02 北京字跳网络技术有限公司 Display control method, device, equipment and storage medium
CN115190321A (en) * 2022-05-13 2022-10-14 广州博冠信息科技有限公司 Switching method and device of live broadcast room and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456978A (en) * 2019-08-13 2019-11-15 青度互娱(重庆)科技有限公司 A kind of method of toch control for touching terminal, system, terminal and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10303357B2 (en) * 2010-11-19 2019-05-28 TIVO SOLUTIONS lNC. Flick to send or display content
CN106572374B (en) * 2015-10-09 2019-08-13 中国电信股份有限公司 More video playing control methods and terminal
CN106534939B (en) * 2016-10-09 2019-07-05 北京金山安全软件有限公司 Multi-video preview method and device and electronic equipment
CN108235086B (en) * 2017-12-18 2021-08-20 广州华多网络科技有限公司 Video playing control method and device and corresponding terminal
CN108259975B (en) * 2018-02-01 2020-11-06 广州市百果园信息技术有限公司 Video playing method, storage medium and terminal
CN110933496B (en) * 2019-12-10 2021-07-23 Oppo广东移动通信有限公司 Image data frame insertion processing method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456978A (en) * 2019-08-13 2019-11-15 青度互娱(重庆)科技有限公司 A kind of method of toch control for touching terminal, system, terminal and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙昊 ; .新媒体时代下新闻类短视频的传播探析――以抖音为例.视听.2020,(第08期),全文. *

Also Published As

Publication number Publication date
CN112738633A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112738633B (en) Video playing method, device, equipment and readable storage medium
CN109640188B (en) Video preview method and device, electronic equipment and computer readable storage medium
CN107172454B (en) Video recommendation method, medium, device and computing equipment
CN111565334B (en) Live broadcast playback method, device, terminal, server and storage medium
CN110933482B (en) Video loading method and device, computer readable storage medium and computer equipment
US20160345052A1 (en) Method and device for previewing video files
CN107181803B (en) Method and device for playing video
CN111372115B (en) Application program access method and device and communication system
CN110597612B (en) Intelligent equipment task management method and device
CN113424553A (en) Techniques for facilitating playback of interactive media items in response to user selections
CN113727170A (en) Video interaction method, device, equipment and medium
JP7058795B2 (en) Video processing methods, devices, terminals and storage media
CN109462777B (en) Video heat updating method, device, terminal and storage medium
CN113556568B (en) Cloud application running method, system, device and storage medium
KR101700040B1 (en) Method and system for providing video content based on image
CN114201705A (en) Video processing method and device, electronic equipment and storage medium
CN112169319B (en) Application program starting method, device, equipment and storage medium
CN113923472A (en) Video content analysis method and device, electronic equipment and storage medium
CN110798521B (en) File sharing method and device, electronic equipment and storage medium
CN113096218A (en) Dynamic image playing method, device, storage medium and computer equipment
CN112437352B (en) Video merging and playing method and device
CN112584255B (en) Method and device for playing streaming media data, computer equipment and storage medium
US11956482B2 (en) Systems and methods for storing and delivering content assets
KR20190032100A (en) Method and apparatus for providing advertisement image
CN113766321A (en) Video playing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant