CN112738633A - 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
CN112738633A
CN112738633A CN202011561556.XA CN202011561556A CN112738633A CN 112738633 A CN112738633 A CN 112738633A CN 202011561556 A CN202011561556 A CN 202011561556A CN 112738633 A CN112738633 A CN 112738633A
Authority
CN
China
Prior art keywords
video
card
playing
player object
playing interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011561556.XA
Other languages
Chinese (zh)
Other versions
CN112738633B (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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream 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, a video playing device, video playing 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 a list card form, and the first video corresponds to a first card in the list card; receiving a video switching operation, wherein the video switching operation is used for indicating that the first video is switched into a second video, and the second video corresponds to a second card in the list cards; displaying a transition picture in a video playing interface based on video switching operation, wherein the transition picture is obtained by splicing the first card and the second card, and the first video and the second video are in the playing process; and responding to the end of the video switching operation, and playing the second video in the video playing interface. According to the scheme, two video resources are simultaneously played in the transition picture, the fluency when different video playing sources are switched is effectively linked, and the experience feeling when a user watches 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 video playing.
Background
Nowadays, internet is rapidly developed, more and more users watch live broadcasts or videos by using mobile phones, display of playing sources in a list form is also appeared in the market, and users only need to slide up and down to switch different playing sources to watch different contents, wherein the playing sources can be live broadcasts or videos.
In the related technology, a user is currently in a state of watching a first playing source, when watching 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 pausing and not playing; and after the sliding operation is finished, the second playing source is played 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 linked 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 has poor viewing experience.
Disclosure of Invention
The embodiment of the application provides a video playing method, a video playing device, video playing equipment and a readable storage medium, and the fluency of playing connection of a player is effectively improved. The technical scheme is as follows:
in one aspect, a method for video playing is provided, where the method includes:
playing a first video in a video playing interface, wherein the video playing interface plays the video in a list card form, and the first video corresponds to a first card in the list card;
receiving a video switching operation, wherein the video switching operation is used for indicating that the first video is switched to 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 obtained by splicing the first card and the second card, and the first video and the second video are in the playing process;
and responding to the end of the video switching operation, and playing the second video in the video playing interface.
In an optional embodiment, the method further comprises:
and in the process of displaying the transition picture, responding to that a first area occupied by the first card in the video playing interface is smaller than a second area occupied by the second card in the video playing interface, and switching from a first audio of the first video to a second audio of the second video for playing.
In an optional embodiment, the displaying a transition picture 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 playing the second video based on a second player object in the video playing interface;
displaying the transition picture based on the first video and the second video in playing.
In an optional embodiment, the first video corresponds to a first video resource, and the second video corresponds to a second video resource;
the playing the first video based on a first player object and the playing the second video based on a second player object in the video playing interface includes:
in the video playing interface, the first video resource is loaded through the first player object, and the first video is played;
and loading the second video resource through the second player object, and playing the second video.
In an optional 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 to play the first video includes:
responding to a first area occupied by the first card in the video playing interface and 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 to play the second video includes:
and in response to that the first area occupied by the first card in the video playing interface is larger than the second area occupied by the second card in the video playing interface, loading the second video resource through the preloaded player object, and playing the second video.
In an optional 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 to play the first video includes:
responding to a first area occupied by the first card in the video playing interface and 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 to play the second video includes:
and in response to that a first area occupied by the first card in the video playing interface is smaller than a 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 optional embodiment, the method further comprises:
and in response to the second card being completely displayed in the video playing interface, deleting the first video resource from the preloaded player object.
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:
determining the second video corresponding to the second card based on the video switching operation.
In another aspect, an apparatus for video playback is provided, the apparatus comprising:
the playing module is used for playing a first video in a video playing interface, the video playing interface plays the video in a list card form, and the first video corresponds to a first card in the list card;
a receiving module, 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 card;
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 obtained by splicing the first card and the second card, and the first video and the second video are in the playing process;
the playing module is further configured to play the second video in the video playing interface in response to the end of the video switching operation.
In another aspect, a computer device is provided, which includes a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method for video playback as described in any of the embodiments of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and loaded and executed by the processor to implement the method for video playback as described in any 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 brought by the technical scheme provided by the embodiment of the application at least comprise:
and displaying a transition picture on 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 when the video switching operation is finished, a second video is played on the video playing interface when the first card and the second card are both in the process of playing video contents. The fluency when different video playing sources are switched is effectively linked, the video content corresponding to the second video does not need to be watched when 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 in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a method of providing video playback in accordance with an exemplary embodiment of the present application;
FIG. 3 is a schematic view of a video playing interface provided based on the embodiment shown in FIG. 2;
FIG. 4 is a flow chart of a method of video playback provided by another exemplary embodiment of the present application;
FIG. 5 is a flow chart of a method of video playback provided by another exemplary embodiment of the present application;
FIG. 6 is a flow chart of a method of video playback provided by another exemplary embodiment of the present application;
fig. 7 is a block diagram of an apparatus for video playback according to 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
To make the objects, technical solutions and advantages of the present application more clear, 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 by an exemplary embodiment of the present application, as shown in fig. 1, 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.
Optionally, an application program for providing video content viewing is installed in the terminal 110, and a target account is logged in the application program, and a user performs a video switching 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 live content or small video contents. Optionally, the terminal 110 receives a video switching operation of the user on the video playing interface to generate a video switching signal, and sends the video switching signal to the server 120 through the communication network 130.
Optionally, the video switching operation may be implemented as: and triggering the clicking/long-pressing operation of the video playing interface, and carrying out sliding operation by connecting the clicking/long-pressing 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 the switching direction of the video switching operation through a preset judgment logic, and determining a second video to be preloaded according to a currently played first video 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 a second video from the server 120, and plays a 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 first 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 terminal 110 may be implemented as a mobile terminal such as a mobile phone, a tablet computer, a wearable device, a portable laptop computer, and the like, which is not limited in the embodiments of the present application.
The server 120 may be implemented as one server, or may be implemented as a server cluster formed by a plurality of servers, and the server 120 may be implemented as a physical server, or may be implemented as a cloud server.
With reference to the foregoing implementation environment, a method for playing a video in an embodiment of the present application is described, and fig. 2 is a flowchart of a method for providing video playing in an exemplary embodiment of the present application, which is described by taking the method as an example and applied to a terminal, 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 a list card form, and the first video corresponds to a first card in the list card.
Optionally, the video playing interface is an interface corresponding to a video playing function of an application program, and the application program may be at least one of a live application program, a small video application program, a social application program, and the like, which is not limited in this embodiment of the present application.
The video playing interface plays videos in a list card mode, and the list card is used for bearing a frame structure corresponding to the videos to be played. The first video corresponds to a first card in the list card, that is, the first card is used to carry playing of the first video in the form of a card, and in some embodiments, the first card is also used to carry information related to the first video, such as: the first video and the related information are played and displayed after being rendered based on the first card. The related information of the first video can be displayed on the first video in an overlapping manner or can 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 its entirety at a single time, i.e., the current video playback interface displays the first card in its entirety.
In some embodiments, the first video corresponds to the first video resource, and the terminal plays the first video based on the first video resource acquired from the server. Optionally, the application program includes a first player object, and the first video resource is loaded by the first player object, so as to implement playing of the first video, in some embodiments, the first player object is a current player object, and the application program further includes a second player object, which is a preloaded player object and is used for preloading the video resource. In some embodiments, when a first video is normally played in a current video playing interface and a switching operation for the video is not received, the preloaded player object is in an idle state and is not loaded for a 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 preloaded player object loads the next video resource of the first video.
In some embodiments, the server is configured to control an arrangement order of videos displayed in the video playing interface of the terminal, so as to determine a video switching direction according to an operation of controlling video switching received by the terminal, and send, by the server, a video resource of a corresponding next playing video to the terminal based on the video switching direction.
Step 202, receiving a video switching operation, where the video switching operation is used to instruct to switch the first video to the second video, and the second video corresponds to a second card in the list cards.
In some embodiments, the video switching operation is to trigger a sliding operation on the first card, illustratively, the sliding operation includes an upward sliding operation, a downward sliding operation, a leftward sliding operation, and a rightward sliding operation, wherein the video resource to be preloaded is determined based on a sliding direction of the sliding operation. Optionally, the video switching operation is applied to a first area of a first video display on the first card; or the video switching operation is acted 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 is not limited in the embodiment of the present application. Illustratively, the upward sliding operation is used for instructing to preload the last video of the currently played first video, the downward sliding operation is used for instructing to preload the next video of the currently played first video, the leftward sliding operation is used for instructing to preload the video recommended by the system, and the rightward sliding operation is used for instructing to preload the video issued by the account logged in by the current application program. And 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 above-mentioned relation between the preloaded video and the sliding direction is only an illustrative example, and the relation between the preloaded video and the sliding direction is not limited in the embodiments of the present application.
The video switching operation comprises three parts of starting, sliding and ending, wherein the starting part is used for indicating a node for starting triggering the video switching operation on the first card by a user, such as: the user finger touches the terminal display screen, such as: and touching the corresponding area of the first card. The slide section is used to indicate a process for sliding on the first card to switch between videos, such as: after a user touches the terminal display screen with a finger, the user presses the screen to perform upward sliding operation without putting the screen, so that switching between a first video and a next video is triggered. The ending part is used for indicating that the user ends the touch operation on the first card, so that the process of switching between videos is completed, such as: the user finger slides upwards to switch the first video into 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.
It should be noted that the touch operation of the finger may be implemented as a sliding operation of a mouse, a scroll wheel control operation of the mouse, and the like, and the embodiment of the present application does not limit a specific implementation manner of the operation.
In some embodiments, the second video is predicted based on a beginning portion of the video switching operation; or, the second video obtained by switching is determined according to the sliding direction based on the sliding part of the video switching operation.
When the second video is predicted based on the starting part of the video switching operation, the second video is predicted according to the sliding habit of the user, illustratively, the historical sliding operation record of the user is obtained, and the sliding direction in the video switching operation at this time is predicted according to the sliding operation which occupies a larger part in the historical sliding operation record. Such as: in the history slide operation record, if 70% of the slide operations are the upward slide operations, the second video is predicted with the upward slide operations as the prediction result (that is, the second video is a video switched after the upward slide operations).
And when the second video is determined by the sliding part based on the video switching operation, the switching direction of the video is determined directly according to the sliding direction corresponding to the sliding part, and the second video corresponding to the switching direction is determined based on the arrangement sequence of the videos. Illustratively, the terminal sends a video switching signal to the server based on the sliding direction, wherein the video switching signal includes the sliding direction (e.g., the terminal indicates the sliding direction to the server as the downward sliding direction) or a switching control indication (e.g., the terminal indicates the server to play the next video of the current video based on the arrangement sequence based on the sliding direction).
It should be noted that, in the sliding portion of the video switching operation, in the process of controlling the first video to be switched 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 have a stage of being 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 the first card and the 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 sliding switching process, 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 diagram when switching videos, where a transition picture is displayed based on a first video and a second video being played. Taking an application scene that a user watches live broadcasting in an application program as an example, the live broadcasting of the anchor a is watched in the video playing interface 300 in a list card form, when the user performs a video switching operation on a first card 302 corresponding to the anchor a in the video playing interface 300, the video playing interface 300 is switched from the first card 302 to a second card 304 corresponding to the anchor B, so that a transition picture is displayed in the video playing interface 300, the transition picture includes the first card 302 during the live broadcasting of the anchor a and the second card 304 during the live broadcasting of the anchor B, the first card 302 is used for bearing video content during the live broadcasting of the anchor a, and the second card 304 is used for bearing video content during the live broadcasting of the anchor B. 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 area size occupied by a first card corresponding to the first video and a second card corresponding to the second video on the video playing interface in real time.
And responding to a first area occupied by the first card in the video playing interface and a second area smaller than (or equal to) the second card in the video playing interface, and switching from the first audio of the first video to the second audio of the second video for playing. And otherwise, responding to that the first area of the first card in the video playing interface is larger than (or equal to) the second area of the second card in the video playing interface, and playing the first audio corresponding to the first video. That is, when the video playing interface simultaneously includes the first card corresponding to the first video and the second card corresponding to the second video, the size of the area occupied by the first card and the second card in the video playing interface is 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 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, playing the first audio of the first video.
In the above example, the comparison between the card granularity and the video granularity is used for illustration, and the comparison granularity for determining the audio playing is not limited in the embodiment of the present application.
In some embodiments, according to the video switching operation, a transition picture is displayed on a video playing interface, and optionally, the size of a display area of a corresponding card in the transition picture is detected by a terminal; 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 size of the display area corresponding to the first card and the second card in the transition picture by the array.
In some embodiments, a first video is played based on a first player object and a second video is played based on a second player object in the video playing interface, and a transition picture is displayed based on the first video and the second video in playing.
Illustratively, taking a first player object as a current player object and a second player object as a preloaded player object as an example, when a first area occupied by a first card in a video playing interface is greater than (or equal to) a second area occupied by a second card in the video playing interface, a first video resource and a first audio content corresponding to a first video are played by the first player object, it is noted that, at this time, after the second player object receives a video switching operation, a second video resource and a second audio resource corresponding to a second video are loaded, and the second audio content is subjected to mute processing, that is, when a display area of the first card is greater than (or equal to) a display area of the second card, the first video and the second video are played simultaneously, but only the first video plays the corresponding first audio content, while the second video can only play the silent video content.
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, and 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, it is worth noting that, at this time, after the first player object receives the video switching operation, the first player object loads the first video resource and the first audio resource corresponding to the first video and performs mute processing on the first audio content, that is, 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 played simultaneously, but only the second video plays the corresponding second audio content, while the first video can only play the silent 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 this embodiment of the application.
And step 204, responding to the end of the video switching operation, and playing a second video in the video playing interface.
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 is set aiming at the video which is completely played in the video playing interface or the video with larger display proportion in the transition picture.
To sum up, 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 the video playing interface, the transition picture is obtained by splicing the first card and the second card, and both the first card and the second card are in the process of playing the video content, in the transition picture, only the video with the larger proportion area plays the corresponding audio content, and the other video with the smaller proportion area is in the 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 does not need to be watched when 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 a video according to another exemplary embodiment of the present application, which is described by taking as an example that the method is applied to a terminal, and as shown in fig. 4, the method includes:
step 401, playing a first video in a video playing interface, where the video playing interface plays the video in a list card form, and the first video corresponds to a first card in the list card.
The video playing interface plays videos in a list card mode, and the list card is used for bearing a frame structure corresponding to the videos to be played. The first video corresponds to a first card in the list card, that is, the first card is used for bearing 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 the second video, and the second video corresponds to a second card in the list cards.
In some embodiments, the video switching operation is to trigger a sliding operation on the first card, illustratively, the sliding operation includes an upward sliding operation, a downward sliding operation, a leftward sliding operation, and a rightward sliding operation, wherein the video resource to be preloaded is determined based on a sliding direction of the sliding operation.
In step 403, switching is performed 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 that the finger of the user controls the first video to be switched to the second video, the first video and the second video are simultaneously displayed in the video playing interface, namely, when the sliding switching is carried out 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.
In step 404, a first video is played based on the first player object and a second video is played 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 the 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, and the second video corresponds to a second video resource, so that in the video playing interface, the first video resource is loaded through the first player object to play the first video, and the second video resource is loaded through the second player object to play the second video.
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 cases:
firstly, responding to a first area occupied by a first card in a video playing interface and a second area larger than (or equal to) the second card in the video playing interface, loading a first video resource through a current player object, and playing a first video; loading a second video resource through the preloaded player object, and playing a second video;
that is, 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 transferred into the current player object for load play; and transmitting the view object and the data object of the second video into the preloaded player object for loading and playing.
Secondly, responding to a first area occupied by the first card in the video playing interface and a second area smaller than (or equal to) 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 region being smaller than (or equal to) the second region, the view object and the data object of the first video are transferred into the preloaded player object for loaded play; 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 playing.
In some embodiments, the first video and the second video are played by the first player object and the second player object, respectively, that is, both the first video and the second video are in the process of playing, and the transition picture is displayed based on the playing first video and the playing second video.
And step 406, responding to the end of the video switching operation, and playing the second video in the video playing interface.
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 is set aiming at the video which is completely played in the video playing interface or the video with larger display proportion in the transition picture.
To sum up, the method for playing a video provided by the embodiment of the present application displays a transition picture on a video playing interface based on a video switching operation, 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 proportion area plays corresponding audio content, and another video with a smaller proportion area is in silent 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 does not need to be watched when 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 a video according to another exemplary embodiment of the present application, which is described by taking as an example that the method is applied to a server corresponding to an ios system, and as shown in fig. 5, the method includes:
in 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 prepper, CurPlayer is a video that is completely played in the video playing interface, or a player object that displays a video setting with a larger proportion in the transition picture, and prepper is a player object that displays a video setting with a smaller proportion 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 size of a display area corresponding to the first card and the second card when video switching is performed subsequently.
Step 502, load big card view and player data source data.
When a user is in a video playing interface, the current video playing interface is playing a first video, and a terminal loads a first view object and a first playing data source resource corresponding to the first video.
Step 503, store to the array.
And loading a first view object and a first play data source resource of a first card corresponding to the first video by the CurPlayer, adding the first view object into the ShowCell in a first array, and adding the first play data source resource into the ShowModel in the first array, wherein the first array is used for caching resource data corresponding to the current video.
Step 504, touch slide card.
The terminal receives video sliding operation on the first card and displays a transition picture, the video switching operation is used for indicating that the first video is switched into a second video, and the second video corresponds to a second card in the list cards; the video sliding operation may be implemented as one of an upward slide, a downward slide, a leftward slide, or a downward slide.
Step 505, the scroll is recalled.
After the terminal receives the video sliding operation on the first card, the terminal starts the callback scrolling logic to process the first card and the second card, and please refer to steps 506 to 512 for the specific steps of the callback scrolling logic.
Step 506, determining the current playing data and the pre-loading 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 and a second play data source resource corresponding to a second video in the video play interface; and adding the second view object to the PreCell in the second array, and adding the second play data source resource to the PreModel 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:
the first method comprises the following steps: 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 the current playing resource and determining the second video as the preloaded playing resource; the current player, namely CurPlayer, loads a first video resource corresponding to the first card; the preloading player, that is, the preplay, loads the second video resource corresponding to the second card, and it is noted that both the first card and the second card are in the playing process.
And the second method comprises the following steps: 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 the current playing resource, and determining the first video as the preloaded playing resource; the current player, namely CurPlayer, loads a second video resource corresponding to the second card; the preloading player, that is, the preplay, 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.
Step 507, add the data cache 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 PreCell, and the second play data source resource is added to the precode. 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 the ShowCell, adding the second playing data source resource into the ShowCell, adding the first view resource into the PreCell, and adding the first playing data source resource into the premode.
In 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 picture is greater than (or equal to) the second area corresponding to the second card, the CurPlayer loads the first playback data source resource in the ShowModel; the preplay loads the second play data source resource in the PreModel. 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 playing data source resource in the ShowModel; preplay loads the first play data source asset in the PreModel.
Step 509, release the player resource and load the data according to the new address.
In some embodiments, when a first region corresponding to a first card in the transition picture is greater than (or equal to) a second region corresponding to a second card, the play data resource in CurPlayer is not the first play data source resource, and when the play data resource in prep player is not the second play data resource, the video resources in CurPlayer and prep player are released, CurPlayer reloads the video resource of the first card according to the first play data source corresponding to the first video, and prep player reloads the video resource of the second card according to the second play data source corresponding to the second video.
Step 510, multiplexing the existing player to play the video stream.
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 prep player is the second play data resource, the current player is multiplexed to play the corresponding video resource. 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 playing data resource in the CurPlayer is the second playing data source resource, and the playing data resource in the prepper is the first playing data resource, the current player is multiplexed to play the corresponding video resource.
In step 511, the player with the large area plays the sound and the small mute.
In the above steps 506 to 510, the transition picture is determined based on the video sliding operation, the size of the area occupied by the video in the transition picture is determined, and the audio corresponding to the video is determined to be played. Illustratively, when a first area corresponding to a first card in the transition picture is greater than (or equal to) a second area corresponding to a second card, the first card and the second card are in a playing state at the same time, and only the video content corresponding to the first card has sound, while the second card is in a mute state.
Step 512, load the new network data.
In this step, a second view object and a second play data source resource corresponding to the second video appearing in the transition picture are loaded.
Step 513, callback data setup.
After the terminal receives the video sliding operation on the first card, the callback data setting is started, and the first card and the second card are processed, specifically, see steps 515 to 517.
In step 514, the current player renders the object — ShowCell.
And judging whether the video which is completely displayed on the video playing interface is loaded in the CurPlayer of the current player or not, or judging whether the view object corresponding to the video which occupies a larger area on the video playing interface is loaded. For example, when a first area corresponding to a first card in the transition picture is greater than (or equal to) a second area corresponding to a second card, it is determined whether the CurPlayer contains a first view object corresponding to the first card in the ShowCell.
Step 515, no processing is done.
In some embodiments, when a first region corresponding to a first card in the transition picture is greater than (or equal to) a second region corresponding to a second card, a first view object corresponding to the first card is cached in the ShowCell, a second view object corresponding to the second card is cached in the PreCell, and the ShowCell and the PreCell perform corresponding rendering on the corresponding view objects without performing other processing.
And step 516, deleting the original player image and adding again.
In some embodiments, when a first region corresponding to a first card in the transition picture is greater than (or equal to) a second region corresponding to a second card, a first view object corresponding to the first card is not cached in the ShowCell, a 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 the transition picture is played, rendering processing is correspondingly performed.
To sum up, 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 the video playing interface, the transition picture is obtained by splicing the first card and the second card, and both the first card and the second card are in the process of playing the video content, in the transition picture, only the video with the larger proportion area plays the corresponding audio content, and the other video with the smaller proportion area is in the 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 does not need to be watched when 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 video playing method according to another exemplary embodiment of the present application, which is described by taking as an example that the method is applied to a server corresponding to an Android system, and as shown in fig. 6, the method includes:
step 601, initializing a current player object and a preloaded player object.
This step is the same as the above step 501 process, and is not described here again.
Step 602, load the large card view and play the data source data.
This step is the same as the above step 502, and is not described here again.
Step 603, store to the array.
This step is the same as the above step 503, and is not described here again.
Step 604, touch the slide card.
This step is the same as the above step 504, and is not described here again.
At step 605, the scroll is recalled.
After the terminal receives the video sliding operation on the first card, the terminal starts the callback scrolling logic, and processes the first card and the second card, referring to steps 606 to 610 for specific steps of the callback scrolling logic.
Step 606, pre-judging the sliding action.
This step is the same as the process of identifying the video switching operation in step 202, and is not described herein again.
In this embodiment, a sensor may be set in the application terminal, the sensor collects a sliding track generated within a preset time period, the sliding direction of the video switching operation of the user is determined according to the initial sliding point and the end sliding point of the user, and a video that is about to appear according to the sliding direction is determined as a preloaded video.
Step 607, add the data cache to the corresponding object.
And 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 to ShowPragment for caching, and adds the second view object to PrePragment for caching.
In step 608, it is determined whether the player object contains a data address.
In some embodiments, when a first area corresponding to a first card in the transition picture is greater than (or equal to) a second area corresponding to a second card, it is determined whether the CurPlayer includes a first video resource corresponding to a first video, and whether the preparer includes a second video resource corresponding to a 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 a first area corresponding to a first card in the transition picture is greater than (or equal to) a second area corresponding to a second card, the CurPlayer loads a first video resource corresponding to the first card for playing, and the prep player loads a second video resource corresponding to the second card for playing, but performs mute processing on the second video resource.
In some embodiments, when a first area corresponding to a first card in the transition picture is smaller than (or equal to) a second area corresponding to a second card, the CurPlayer loads a second video resource corresponding to the second card for playing, and the prepper loads a first video resource corresponding to the first card for playing, but performs mute processing on the first video resource.
And step 610, switching audio playing according to the size of the sliding area.
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 the smaller area occupied on the video playing interface, and only plays the audio content of the video with the larger area.
Step 611, load network new data.
This step is the same as the step 512 process described above, and is not described here again.
Step 612, callback data setup.
This step is the same as the above step 513, and is not described herein again.
In step 613, the current player renders the object Fragment.
This step is the same as the above step 514, and is not described here again.
Step 614, do not process.
This step is the same as the above step 515 process and will not be described here.
Step 615, the new playback resources are reinitialized.
When the current player CurPlayer does not cache the video resource corresponding to the video with the larger occupied area in the video playing interface, initializing the video resource in the CurPlayer, and reloading the video resource corresponding to the video with the larger occupied area for playing.
To sum up, 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 the video playing interface, the transition picture is obtained by splicing the first card and the second card, and both the first card and the second card are in the process of playing the video content, in the transition picture, only the video with the larger proportion area plays the corresponding audio content, and the other video with the smaller proportion area is in the 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 does not need to be watched when 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 a video playing apparatus according to an exemplary embodiment of the present application, where 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 list card form, 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 card;
a display module 703, 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 respond to the end of the video switching operation, and play the second video in the video playing interface.
In an alternative embodiment, as shown in fig. 8, the apparatus further comprises:
a switching module 704, configured to switch, in a process of displaying the transition picture, from a first audio of the first video to a second audio of the second video for playing in response to that a first area occupied by the first card in the video playing interface is smaller than a second area occupied by the second card in the video playing interface.
In an optional 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 playing the second video based on a second player object in the video playing interface; displaying the transition picture based on the first video and the second video in playing.
In an optional embodiment, the first video corresponds to a first video resource, and the second video corresponds to a second video resource;
the playing module 701 is further configured to load the first video resource through the first player object in the video playing interface, and play the first video; and loading the second video resource through the second player object, and playing the second video.
In an optional 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;
a first playing unit 705, configured to respond to that a first area occupied by the first card in the video playing interface is larger than a second area occupied by the second card in the video playing interface, load the first video resource through the current player object, and play the first video.
A second playing unit 706, configured to load the second video resource through the preloaded player object and play the second video in response to that a first area occupied by the first card in the video playing interface is larger than a second area occupied by the second card in the video playing interface.
In an optional 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 load the first video resource through the preloaded player object in response to that a first area occupied by the first card in the video playing interface is smaller than a second area occupied by the second card in the video playing interface, and play the first video.
The second playing unit 706 loads the second video resource through the current player object to play the second video in response to that the first area occupied by the first card in the video playing interface is smaller than the second area occupied by the second card in the video playing interface.
In an alternative embodiment, as shown in fig. 8, the apparatus further comprises:
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 configured to determine the second video corresponding to the second card based on the video switching operation.
To sum up, the video playing apparatus provided in this embodiment of the present application displays, based on a video switching operation, a transition picture 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 proportion area plays corresponding audio content, and another video with a smaller proportion area is in silent 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 does not need to be watched when 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: the video playing apparatus provided in the foregoing embodiment is only illustrated by dividing the functional modules, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the video playing apparatus provided in the above embodiments and the method embodiment of the video playing source belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment and are not described herein again.
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 method comprises the following steps:
the server 120 includes a Central Processing Unit (CPU) 901, a system Memory 904 including a Random Access Memory (RAM) 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 also includes a basic Input/Output System (I/O) 906, which facilitates the transfer of information between 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, etc. for user input of information. Wherein a display 908 and an input device 909 are connected to the central processing unit 901 through an input-output controller 910 connected 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, 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, mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or Compact disk Read Only Memory (CD-ROM) drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. 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), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory devices, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. 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, the server 120 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 120 may be connected to the network 912 through the network interface unit 911 connected to the system bus 905, or the network interface unit 911 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.
Embodiments of the present application further provide a computer device, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for playing back a video provided by the above method embodiments.
Embodiments of the present application further provide a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored on the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the method for playing back a video provided by the foregoing method embodiments.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits 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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method of video playback, the method comprising:
playing a first video in a video playing interface, wherein the video playing interface plays the video in a list card form, and the first video corresponds to a first card in the list card;
receiving a video switching operation, wherein the video switching operation is used for indicating that the first video is switched to 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 obtained by splicing the first card and the second card, and the first video and the second video are in the playing process;
and responding to the end of the video switching operation, and playing the second video in the video playing interface.
2. The method of claim 1, further comprising:
and in the process of displaying the transition picture, responding to that a first area occupied by the first card in the video playing interface is smaller than a second area occupied by the second card in the video playing interface, and switching from a first audio of the first video to a second audio of the second video for playing.
3. The method according to claim 1, wherein the displaying a transition picture in the video playing 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 a first player object and playing the second video based on a second player object in the video playing interface;
displaying the transition picture based on the first video and the second video in playing.
4. The method of claim 3, 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 a first player object and the playing the second video based on a second player object in the video playing interface includes:
in the video playing interface, the first video resource is loaded through the first player object, and the first video is played;
and loading the second video resource through the second player object, and playing the second video.
5. The method of claim 4, 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 to play the first video includes:
responding to a first area occupied by the first card in the video playing interface and 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 to play the second video includes:
and in response to that the first area occupied by the first card in the video playing interface is larger than the second area occupied by the second card in the video playing interface, loading the second video resource through the preloaded player object, and playing the second video.
6. The method of claim 4, 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 to play the first video includes:
responding to a first area occupied by the first card in the video playing interface and 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 to play the second video includes:
and in response to that a first area occupied by the first card in the video playing interface is smaller than a 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.
7. The method of claim 6, further comprising:
and in response to the second card being completely displayed in the video playing interface, deleting the first video resource from the preloaded player object.
8. The method according to any one of claims 3 to 7, wherein before playing the first video based on a first player object and playing the second video based on a second player object in the video playing interface, the method further comprises:
determining the second video corresponding to the second card based on the video switching operation.
9. An apparatus for video playback, the apparatus comprising:
the playing module is used for playing a first video in a video playing interface, the video playing interface plays the video in a list card form, and the first video corresponds to a first card in the list card;
a receiving module, 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 card;
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 obtained by splicing the first card and the second card, and the first video and the second video are in the playing process;
the playing module is further configured to play the second video in the video playing interface in response to the end of the video switching operation.
10. The apparatus of claim 9, further comprising:
and the switching module is used for responding to that a first area occupied by the first card in the video playing interface is smaller than a second area occupied by the second card in the video playing interface in the process of displaying the transition picture, and switching a first audio of the first video to play a second audio of the second video.
11. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, the at least one instruction being loaded and executed by the processor to implement the method of video playback as claimed in any of claims 1 to 8.
12. A computer-readable storage medium having stored thereon at least one instruction which is loaded and executed by a processor to implement the method of video playback as claimed in any of claims 1 to 8.
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 true CN112738633A (en) 2021-04-30
CN112738633B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727172A (en) * 2021-09-01 2021-11-30 北京字跳网络技术有限公司 Video cache playing method and device, electronic equipment and storage medium
CN114025218A (en) * 2021-09-14 2022-02-08 百果园技术(新加坡)有限公司 Card type video interaction 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
WO2023051330A1 (en) * 2021-09-30 2023-04-06 北京字跳网络技术有限公司 Display control method and apparatus, and device and storage medium
CN115190321B (en) * 2022-05-13 2024-06-04 广州博冠信息科技有限公司 Live broadcast room switching method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120131458A1 (en) * 2010-11-19 2012-05-24 Tivo Inc. Flick to Send or Display Content
CN106534939A (en) * 2016-10-09 2017-03-22 北京金山安全软件有限公司 Multi-video preview method and device and electronic equipment
CN106572374A (en) * 2015-10-09 2017-04-19 中国电信股份有限公司 Multi-video playing control method and terminal
CN108235086A (en) * 2017-12-18 2018-06-29 广州华多网络科技有限公司 Video playing control method, device and corresponding terminal
CN108259975A (en) * 2018-02-01 2018-07-06 广州市百果园信息技术有限公司 Video broadcasting method, storage medium and terminal
CN110456978A (en) * 2019-08-13 2019-11-15 青度互娱(重庆)科技有限公司 A kind of method of toch control for touching terminal, system, terminal and medium
CN110933496A (en) * 2019-12-10 2020-03-27 Oppo广东移动通信有限公司 Image data frame insertion processing method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120131458A1 (en) * 2010-11-19 2012-05-24 Tivo Inc. Flick to Send or Display Content
CN106572374A (en) * 2015-10-09 2017-04-19 中国电信股份有限公司 Multi-video playing control method and terminal
CN106534939A (en) * 2016-10-09 2017-03-22 北京金山安全软件有限公司 Multi-video preview method and device and electronic equipment
CN108235086A (en) * 2017-12-18 2018-06-29 广州华多网络科技有限公司 Video playing control method, device and corresponding terminal
CN108259975A (en) * 2018-02-01 2018-07-06 广州市百果园信息技术有限公司 Video broadcasting method, storage medium and terminal
CN110456978A (en) * 2019-08-13 2019-11-15 青度互娱(重庆)科技有限公司 A kind of method of toch control for touching terminal, system, terminal and medium
CN110933496A (en) * 2019-12-10 2020-03-27 Oppo广东移动通信有限公司 Image data frame insertion processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙昊;: "新媒体时代下新闻类短视频的传播探析――以抖音为例" *

Cited By (8)

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

Also Published As

Publication number Publication date
CN112738633B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN109640188B (en) Video preview method and device, electronic equipment and computer readable storage medium
CN112738633B (en) Video playing method, device, equipment and readable storage medium
US11636881B2 (en) User interface for video content
US20160345052A1 (en) Method and device for previewing video files
CN108495185B (en) Video title generation method and device
US8763041B2 (en) Enhancing video content with extrinsic data
US10009664B2 (en) Providing extrinsic data for video content
CN108566561B (en) Video playing method, device and storage medium
US20210160577A1 (en) Method for playing video, electronic device and storage medium
CN111372115B (en) Application program access method and device and communication system
CN110597612B (en) Intelligent equipment task management method and device
CN104796795A (en) Video content publishing method and device
CN113424553A (en) Techniques for facilitating playback of interactive media items in response to user selections
CN103442299A (en) Display method for playing records and electronic equipment
JP7058795B2 (en) Video processing methods, devices, terminals and storage media
KR101770094B1 (en) Method and system for providing video content based on image
CN109462777B (en) Video heat updating method, device, terminal and storage medium
CN113556568B (en) Cloud application running method, system, device and storage medium
CN112169319B (en) Application program starting method, device, equipment and storage medium
CN105005612A (en) Music file acquisition method and mobile terminal
CN110798521B (en) File sharing method and device, electronic equipment and storage medium
CN103631872A (en) Method for playing multimedia files and electronic terminal
CN115278346A (en) Method for sending comments and receiving comments in live broadcast room and related equipment
CA3124540A1 (en) Systems and methods for storing and delivering content assets
CN112148917B (en) Media play control method, device and system and computer readable 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