CN110519645B - Video content playing method and device, electronic equipment and computer readable medium - Google Patents

Video content playing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN110519645B
CN110519645B CN201910838198.3A CN201910838198A CN110519645B CN 110519645 B CN110519645 B CN 110519645B CN 201910838198 A CN201910838198 A CN 201910838198A CN 110519645 B CN110519645 B CN 110519645B
Authority
CN
China
Prior art keywords
target video
playing
played
playing area
video
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
CN201910838198.3A
Other languages
Chinese (zh)
Other versions
CN110519645A (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910838198.3A priority Critical patent/CN110519645B/en
Publication of CN110519645A publication Critical patent/CN110519645A/en
Application granted granted Critical
Publication of CN110519645B publication Critical patent/CN110519645B/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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47214End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for content reservation or setting reminders; for requesting event notification, e.g. of sport results or stock market
    • 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/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a video content playing method and device, an electronic device and a computer readable medium. Relates to the field of computers. The method comprises the following steps: when an opening instruction of an application program is received, a target video is played in a first playing area of a first screen interface, and the target video has a size matched with the first playing area; when the playing time of the target video reaches a preset playing time threshold, determining a second playing area for playing the target video through a second screen interface; according to the second playing area, the size of the target video is adjusted to be matched with the size of the second playing area; and in a second playing area of the second screen interface, continuing to play the target video from a next video frame of the video frames at the playing time point corresponding to the playing time length in the target video. According to the method and the device, after the preset playing time threshold is reached, the contents of the target video which is not played on the first screen interface are continuously played on the second screen interface.

Description

Video content playing method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for playing video content, an electronic device, and a computer-readable medium.
Background
When a user opens a screen interactive application, the content pushed by the system is generally displayed for several seconds, and then the content enters the home page of the application, and the content pushed by the system is called the content displayed on an open screen interface. The time for displaying the content on the screen-opening interface is limited, and the content disappears after the application program home page is entered, so that the system cannot completely display the complete content to the user, if the user wants to further know the content, no proper way is available for the user to obtain, and the requirement that the user wants to watch the video content which is not played on the screen-opening interface after the screen-opening display time is over cannot be met.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
A first aspect of the present disclosure provides a method for playing video content, including:
when an opening instruction of an application program is received, a target video is played in a first playing area of a first screen interface, and the target video has a size matched with the first playing area;
when the playing time of the target video reaches a preset playing time threshold, determining a second playing area for playing the target video through a second screen interface; wherein the second playback zone of the second screen interface is fixed;
according to the second playing area, the size of the target video is adjusted to be matched with the size of the second playing area;
and in a second playing area of the second screen interface, continuing to play the target video from a next video frame of the video frames at the playing time point corresponding to the playing time length in the target video.
A second aspect of the present disclosure provides a playback apparatus for video content, including:
the first video playing module is used for playing a target video in a first playing area of a first screen interface when receiving a starting instruction of an application program, wherein the target video has a size matched with the first playing area;
the playing area determining module is used for determining a second playing area for playing the target video through the second screen interface when the playing time of the target video reaches a preset playing time threshold; wherein the second playback zone of the second screen interface is fixed;
the size adjusting module is used for adjusting the size of the target video to be matched with the size of the second playing area according to the second playing area;
and the second video playing module is used for continuously playing the target video from the next video frame of the video frames at the playing time point corresponding to the playing time length in the target video in a second playing area of the second screen interface.
A third aspect of the present disclosure provides an electronic device, comprising:
the electronic device comprises a memory and a processor;
the memory has a computer program stored therein;
a processor for performing the method of any of the first aspects when running the computer program.
A fourth aspect of the disclosure provides a computer readable medium having a computer program stored thereon, characterized in that the program, when executed by a processor, performs the method of any of the first aspects.
The technical scheme provided by the disclosure has the following beneficial effects:
according to the method and the device, the target video is played in the first playing area of the first screen interface, when the playing time of the target video reaches the preset playing time threshold, the second playing area for playing the target video through the second screen interface can be determined, the size of the target video is adjusted to be the size matched with the second playing area, and meanwhile the target video is continuously played from the next video frame of the video frame at the playing time point of the playing time, so that the target video which is not played on the first screen interface is continuously played in the second playing area of the second screen interface in a proper size, and the requirement that a user wants to watch the video content which is not played on the screen-open interface after the screen-open display time is over is met.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic diagram illustrating an embodiment of a playing method of video content according to the present disclosure;
fig. 2 is a schematic structural diagram of a playing apparatus for playing video content according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be determined as different devices, modules or units, and are not used for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between a plurality of devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
For better illustration of the solution in the embodiments of the present disclosure, the following first introduces and explains the related technical terms related to the present disclosure:
the terminal screen opening interface refers to an interface displayed by a terminal device to a user before the terminal device opens an application program and enters an application program home page, the display time of the screen opening interface is screen opening time, the screen opening time is limited, the screen opening time is generally preset by the terminal device and can be 3s, 5s, 7s or 10s and the like, advertisement content can be played on the screen opening interface, and the terminal device enters the application program home page after the screen opening time is finished. The video content playing method can continue to play the content which is not played on the screen-opening interface after the screen-opening time is over, and can meet the requirement of a user on watching the content displayed on the complete screen-opening interface.
The video content displayed on the existing screen opening interface disappears after the screen opening time is over, so that the system cannot completely display the complete video content to the user. Meanwhile, if the video content on the screen-opening interface is to be continuously displayed on the application program home page after the screen-opening time is over, namely the linkage between the video stream played on the screen-opening interface and the feed video stream displayed on the application program home page is to be realized, the following problems also exist: 1. the display area of the screen opening interface is generally the full screen, the screen sizes of different terminal devices are different, and when the screen opening interface is transited to the application program home page, the display positions of the video streams on the application program home page are different, so that the video streams displayed on the screen opening interface and the video streams displayed on the application program home page are difficult to overlap and link together. 2. When the video stream played on the screen-opening interface is zoomed to the application program home page, the size of the playing area of the video stream is changed, the effect of the video stream connection during zooming is not consistent or natural, and the consistent playing experience is difficult to create.
The Feed video stream is a video stream formed by video contents published by a plurality of information sources subscribed by a user on a network platform (which can be a server), friends or concerned objects are used as the information sources in a Feed scene, the video contents are the dynamic states (published video contents) of the friends or the concerned objects, other matched users determined according to user figures can also be used as the information sources, the contents from the matched information sources are pushed to the user, and when the friends are enough or the dynamic states published by the friends are frequent enough, the user can continuously receive the video contents.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
Referring to fig. 1, the present disclosure provides a method for playing video content, where the method may be specifically executed by an electronic device, where the electronic device may be a terminal device, and the terminal device may be a desktop device or a mobile terminal, and the method includes:
step S101: and when an opening instruction of the application program is received, playing the target video in a first playing area of the first screen interface, wherein the target video has a size matched with that of the first playing area.
When the terminal equipment receives an opening instruction of an application program input by a user, the target video is played in a first playing area of a first screen interface of the terminal equipment. The opening instruction of the application program input by the user may be a click operation of the user on an application program identifier displayed on the terminal interface, the first screen interface of the terminal device is the above-mentioned screen opening interface, the first playing area may be all areas of the screen opening interface, that is, the target video is played on the first screen interface in a full screen mode, of course, the first playing area may also be a partial area of the screen opening interface, the target video refers to a video that is configured in advance by the terminal device, and the target video played on the first screen interface may be different each time the user opens the application program. The target video may be advertisement content, or may be a video that is sent by the server to the client in a targeted manner based on content that may be of interest to the user, for example, the user may recommend a video related to an appliance to the user in a targeted manner when browsing the appliance recently.
When the target video is played in the first playing area of the first screen interface, the target video has a size matched with the first playing area, that is, the playing size of the target video may be the same as the size of the first playing area, for example, the size of the first playing area and the playing size of the target video are both: x is the number of cm *y cm (length is represented by x) cm Width of y cm ) And x and y are positive integers, and the values of x and y can be set according to the actual size of the first screen interface of the terminal equipment.
Step S102: and when the playing time of the target video reaches a preset playing time threshold, determining a second playing area for playing the target video through a second screen interface, wherein the second playing area of the second screen interface is fixed.
When the target video is played on the first screen interface, when the playing time of the target video reaches the preset playing time threshold, the end of the screen opening time is indicated, the terminal device immediately enters an application program home page, and in order to enable the terminal to continue playing the target video after entering the application program home page, the terminal device needs to determine a second playing area for playing the target video through a second screen interface.
And the second screen interface is the screen interface after the terminal equipment enters the application program home page, and the second playing area is a partial area of the second screen interface. One possible scenario is: the second screen interface may be divided into a plurality of display areas, and each display area may correspondingly display different content, for example, a certain display area is used as the second playing area to play the target video, and other display areas are used to display the video preview information corresponding to the Feed video stream.
Step S103: and according to the second playing area, adjusting the size of the target video to be matched with the second playing area.
After the second playing area is determined, if the target video is to be played continuously in the second playing area of the second screen interface, the original size of the target video, which is matched with the first playing area, needs to be adjusted to the size matched with the second playing area.
In the present disclosure, the first playing area and the second playing area are generally the same type of graphics, for example, all of them are any one of regular polygons, circles, and ellipses, a regular polygon may be specifically a rectangle, and the first playing area and the second playing area may also be different types of graphics, which is not limited to this disclosure.
In this embodiment, if the playing area is a regular polygon, the size of the playing area refers to the length of each side in the playing area; if the playing area is circular or elliptical, the size of the playing area may include the length of the major axis as well as the minor axis.
According to different resizing manners (the specific resizing manner will be described later), what is displayed on the terminal interface may be: gradually scaling the original size of the target video, which is matched with the first playing area, to the size matched with the second playing area, wherein the process is visual for the user, and the target video is located in the second playing area after scaling is finished, which can also be that: and after the terminal equipment enters a second screen interface, popping up the target video with the adjusted size in a second playing area of the second screen interface.
Step S104: and in a second playing area of the second screen interface, continuing to play the target video from a next video frame of the video frames at the playing time point corresponding to the playing time length in the target video.
When the playing time of the target video on the first screen interface reaches the preset playing time threshold, the terminal device determines the video frame at the played time point (namely the end time point of the playing time) corresponding to the playing time in the target video according to the playing time, so that the target video is continuously played from the next frame of the video frame in the second playing area of the second screen interface, and the target video can be continuously played on the second screen interface after the time for playing the target video on the first screen interface is ended.
The following description is made with reference to specific scenarios, and the contents of the above embodiments:
the user clicks the application program, the terminal equipment enters a screen opening interface of the application program, advertisement content is played in a first playing area of the screen opening interface, and the size of the advertisement content is matched with that of the first playing area and is x1 cm *y1 cm (x1 is long, y1 is wide), the total duration of the advertisement content is 10s, the playing duration of the screen opening interface is 3s, when the advertisement content is played to the 3 rd, the terminal device enters the application program home page interface, the terminal device determines a second playing area of the advertisement content on the application program home page, and the size of the second playing area is x2 cm *y2 cm (x2 is long, y2 is wide), the terminal device performs size adjustment according to the size of the first playing area and the size of the second playing area, and the size of the target video is adjusted to be x1 cm *y1 cm Adjusted to x2 cm *y2 cm The size adjustment process is also a process of changing the playing area of the target video, and the target video is located in the second playing area after the adjustment is completed, so that the contents from the 3s th to the 10s th in the target video can be continuously played from the next frame of the video frame corresponding to the 3s moment in the second playing area.
According to the method and the device, the target video is played in the first playing area of the first screen interface, when the playing time of the target video reaches the preset playing time threshold, the second playing area for playing the target video through the second screen interface can be determined, the size of the target video is adjusted to be the size matched with the second playing area, and meanwhile the target video is continuously played from the next video frame of the video frame at the playing time point of the playing time, so that the target video which is not played on the first screen interface is continuously played in the second playing area of the second screen interface in a proper size, and the requirement that a user wants to watch the video content which is not played on the screen-open interface after the screen-open display time is over is met.
Meanwhile, the second playing area for playing the target video on the second screen interface is also fixed, so that uncertainty of a zooming position (namely the second playing area) when terminal devices with different screen sizes zoom the target video can be avoided, and therefore the video stream displayed on the screen-opening interface and the video stream displayed on the application program home page can be well overlapped and linked together, and coherent playing experience is achieved.
Optionally, determining a second play area for playing the target video through the second screen interface includes:
and determining the position of the second playing area according to the coordinate information of each endpoint of the second playing area in the second screen interface.
The first playing area and the second playing area are generally of a regular polygon type, and in this embodiment, the manner of determining the second playing area may be: a rectangular coordinate system is established on the second screen interface, and coordinate information of each endpoint of the second playing area in the second screen interface is determined, so that the position of the second playing area in the second screen interface is determined according to the coordinate information of each endpoint, for example, the second playing area is a rectangular area, the coordinates of four endpoints are (a1, b1), (a2, b2), (a3, b3), and (a4, b4), and the position of the second playing area in the coordinate system can be determined according to the coordinates of the four endpoints, that is, the position of the second playing area in the second screen interface is obtained.
In this embodiment, the second playing area is determined by the coordinate position, so that uncertainty of a scaling position (that is, the second playing area) when terminal devices with different screen sizes scale the target video can be avoided, and thus the video stream displayed on the screen-open interface and the video stream displayed on the application program home page can be well overlapped and linked together, and coherent playing experience can be realized.
Optionally, playing the target video in the first playing area of the first screen interface includes:
playing a target video in a first playing area of a first screen interface through a first player;
the method further comprises the following steps:
when the target video is played in a first playing area of a first screen interface through a first player, the target video is synchronously played in the terminal equipment through a second player, and the target video which is synchronously played has a corresponding playing area in a second screen interface;
when the playing time of the target video reaches a preset playing time threshold, determining a second playing area for playing the target video through a second screen interface, wherein the second playing area comprises:
when the playing time of the target video reaches a preset playing time threshold, determining a video frame at a played time point of the target video played on the first screen interface and a target video frame of the target video played synchronously, wherein the target video frame comprises any one of a video frame at the played time point of the target video played synchronously and a next video frame of the video frame at the played time point of the target video played synchronously;
determining the similarity between the video frame at the played time point and the target video frame;
and if the similarity is greater than the preset similarity threshold, determining a corresponding playing area of the synchronously played target video in the second screen interface as a second playing area.
In this embodiment, the manner of determining the second playing area may be: and determining a second playing area according to the video similarity between the video frame at the played time point in the target video and the video frame after the video frame at the played time point in the target video. The specific implementation mode is as follows:
the terminal equipment plays the target video in the first playing area of the first screen interface through the first player, meanwhile, the terminal equipment synchronously plays the target video in the terminal equipment through the second player, the target video played in the terminal equipment has a corresponding playing area in the second screen interface, at the moment, the terminal equipment displays the content on the first screen interface to the user, the second screen interface is not entered, the target video played in the terminal equipment cannot be played to the user in the corresponding playing area in the second screen interface, and namely the playing of the target video played in the terminal equipment is not perceived by the user.
When the playing time of the target video played by the first player reaches the preset playing time threshold, determining the similarity between the video frame of the target video played by the first player at the played time point and the target video frame of the target video synchronously played inside; in actual operation, there may also be a slight deviation, and when the preset playing duration threshold is reached, the target video frame may also be the next frame of the video frame at the played time point.
If the similarity is greater than the predetermined similarity threshold, it is determined that the playing area corresponding to the target video played synchronously by the second player in the second screen interface is the second playing area, that is, the target video played on the first screen interface can be scaled to the playing area corresponding to the target video played synchronously inside.
In this embodiment, determining the similarity between two video frames may be implemented in at least one of the following manners:
and determining the centroid coordinates respectively corresponding to the two video frames in the similarity algorithm model, and then calculating the cosine similarity of the centroid coordinates of the two video frames.
And determining the similarity between the same designated areas in the two video frames as the similarity between the two video frames, for example, the two video frames have face images in the same designated area, and determining the similarity between the face images in the two video frames as the similarity between the two video frames.
One possible scenario for this embodiment is: when the preset playing time threshold is reached, determining the video frame, such as video frame a, at the played time point of the target video played on the first screen interface by the first player, and at the same time, determining the target video frame of the target video played by the second player in the terminal device, where the target video frame may be video frame a, or may be the next frame with video frame a, such as video frame B, taking a target video frame as a video frame B as an example, a corresponding playing area exists on a second screen interface for an internally played target video, and a similarity between a video frame a played by a first player and a video frame B played by a second player is calculated, where the similarity between two adjacent frames is generally greater than a preset similarity threshold, and then the playing area corresponding to the internally played target video frame on the second screen interface is a second playing area to which the target video played on the first screen interface is to be scaled.
In this embodiment, the second playing area is determined by the similarity between the two video frames, so that uncertainty of a scaling position (i.e., the second playing area) when terminal devices with different screen sizes scale the target video can be avoided, and thus the video stream displayed on the screen-open interface and the video stream displayed on the application home page can be well overlapped and linked together, and a coherent playing experience can be realized.
Optionally, if the target video frame is a video frame next to a video frame of a target video played synchronously at a played time point;
after determining the similarity between the video frame at the played time point and the target video frame, through a second playing area of the second screen interface, before continuing to play the target video from a next video frame of the video frame at the played time point corresponding to the playing duration in the target video, the method further includes:
if the similarity is larger than the preset similarity threshold, according to the target video frame in the target video which is played synchronously, determining the video frame at the position corresponding to the target video frame in the target video which is played through the first player, and determining the video frame at the corresponding position as the next video frame of the video frame at the played time point corresponding to the playing time length in the target video.
In this embodiment, the video frame at the play start position after the target video on the first screen interface is scaled to the second screen interface may also be found based on the similarity between the two video frames, specifically:
if the target video frame is the next video frame of the target video synchronously played by the second player at the played time point, then under the condition that the similarity between the target video frame and the video frame of the target video played by the first player at the played time point is greater than the preset similarity threshold, the video frame at the same position as the target video frame can be found in the target video played by the first player, the video frame at the same position is the next frame of the video frame of the played time point in the target video played by the first player, and therefore the target video is played from the next frame of the video frame at the played time point on the second screen interface.
For example, the video frame at the played time point of the target video played on the first screen interface is video frame a1, the next frame of a1 is a2, the target video frame of the target video played internally is B2, the last frame of B2 is B1, a1 and B1 are video frames at the same position in the target video, and a2 and B2 are video frames at the same position in the target video, and now only a1 and B2 are known, the similarity between a1 and B2 is calculated, and if greater than a predetermined similarity threshold, the video frame B1 at the position corresponding to B2 in the target video played on the first screen interface is found, that is, the next frame of a1 is found, so that the target video is played continuously from B1 on the second screen interface.
In this embodiment, the next frame of the video frame at the played time point on the first screen interface can be found through the similarity between the two video frames, so that the target video is played from the next frame on the second screen interface, and the purpose of seamless connection is achieved.
Optionally, adjusting the size of the target video to a size matched with the second play area according to the second play area includes:
determining a proportionality coefficient between the size of the target video and the size of the second playing area;
and changing the size of the target video played in the first playing area of the first screen interface into the size matched with the second playing area according to the scale coefficient.
In this embodiment, the size adjustment may be performed by:
and determining a proportionality coefficient between the size of the target video and the size of the second playing area, wherein the proportionality coefficient between the first playing area and the second playing area is the proportion of the corresponding side length in the two sizes by taking the first playing area and the second playing area as an example.
According to the proportional coefficient, the size of each side length in the size of the target video played by the first screen interface is directly reduced or enlarged to the size of the corresponding side length in the size matched with the second playing area, namely the size of the corresponding side length in the size matched with the second playing areaThe size of the target video played in the first playing area of the first screen interface can be changed to a size matched with the second playing area. As exemplified above, the size of the target video matches the first playback area as x1 cm *y1 cm (x1 is long, y1 is wide), and the size of the second playback area is x2 cm *y2 cm (x2 is length and y2 is width), the scaling factors between dimensions include: the length ratio is x1 cm :x2 cm The ratio of width is y1 cm :y2 cm The size adjustment is completed by reducing or enlarging x1 to x2 and y1 to y 2.
Optionally, changing the size of the target video played in the first playing area of the first screen interface into a size matched with the second playing area according to the scaling factor includes:
determining the length ratio of each side length in the size of the target video to the corresponding side length in the size of the second playing area according to the proportional coefficient;
determining the scaling factor of each side length according to the length proportion of each side length;
determining the proportion of the scaling speed between the side lengths according to the scaling times;
based on the scale of the scaling speed, respective reduction or enlargement processing is performed for each side length.
In this embodiment, the specific manner of performing the size change based on the scaling factor may be: according to the scaling factor, the length ratio of each side length in the size of the target video to the corresponding side length in the size of the second playing area is determined, so as to determine the scaling factor of each side length, that is, for each side length in the size of the target video, how many times the side length needs to be correspondingly enlarged or reduced can be changed into the corresponding side length in the size of the second playing area.
Because each side length needs to be zoomed at the same time even if the zoom factor is different, the zoom speed between each side length is also different, the zoom speed between each side length needs to be determined based on the zoom factor of each side length, so as to determine the proportion of the zoom speed between each side length, and the proportion of the zoom speed is zoomed, thereby completing the zoom-out processing or the zoom-in processing of each side length.
For example, in the case where the first playback area and the second playback area are both rectangular as described above, the size of the target video is x1 matching the first playback area as described above in the example cm *y1 cm (x1 is long, y1 is wide), and the size of the second playback area is x2 cm *y2 cm (x2 is long and y2 is wide), determined to yield x 2: x1 is 1/k1, y 2: y1 is k2, if 1/k1 is a positive number less than 1, the length needs to be reduced by k1 times, the width needs to be increased by k2 times to adjust the size of the target video to the size of the second playing area, and the ratio of the scaling speed between the length and the width is k 1: k2, the length is reduced and the width is enlarged based on the scaling of the zoom speed. In the following, specific data are exemplified: the first playing area is matched with the size of 1 × 6 (unit: cm), the second playing area 3 × 2 (unit: cm) needs to be enlarged by 3 times to change 1 into 3, and needs to be reduced by 3 times to change 6 into 2, and the scaling speed ratio of each side length is 1: 1.
As described above, the present embodiment has the following effects on the terminal interface: and gradually zooming the size of the target video to a size matched with the second playing area, wherein the zooming process is visual for a user, the target video is positioned in the second playing area of the second screen interface after zooming is finished, and then continuously playing the target video from the next video frame of the video frame at the playing time point corresponding to the playing time length in the second playing area. One possible case is that the process of gradually scaling the size of the target video is presented on the second screen interface, and in the process of gradually scaling the target video, the target video may also be played, that is, the target video is played from the next video frame of the video frame at the playing time point corresponding to the playing time point, which is equivalent to that as long as the target video is scaled to the second playing area of the second screen interface to be played, even if the scaling of the playing area is not completed, the target video may be played in the scaling process, and the target video that has not been played yet is continuously played according to the content of the target video played in the first screen interface and the scaling process after the scaling is completed.
In the embodiment, the target video can be gradually zoomed based on the proportions of different zooming speeds, the effect of the video stream connection in the zooming mode is natural, and the continuous playing experience can be realized.
Optionally, the manner of changing the size of the target video played in the first playing area of the first screen interface into the size matched with the second playing area according to the scaling factor may also be:
adjusting the size of the target video in a certain frame, specifically: and changing the size of the target video played in the first playing area into the size matched with the second playing area when the playing time length corresponds to the next video frame of the video frame at the played time point, so that the playing sizes of the target videos played from the next video frame are the sizes matched with the second playing area. Therefore, after the screen-open playing time of the terminal equipment is over, when the second playing area of the second screen interface of the terminal equipment starts to play the target video from the next video frame, the played target video is the size-adjusted target video.
The present embodiment has the following presentation effects on the terminal interface: and after the terminal equipment enters a second screen interface, popping up the target video with the adjusted size in a second playing area of the second screen interface.
In this embodiment, the size of the target video may be changed at the next video frame of the video frame at the played time point, so that the subsequent target video is played in the changed size.
Fig. 2 is a schematic structural diagram of a playing apparatus for video content according to another embodiment of the disclosure, and as shown in fig. 2, the apparatus according to the embodiment of the disclosure may include:
the first video playing module 201 is configured to play a target video in a first playing area of a first screen interface when receiving a start instruction of an application program, where the target video has a size matched with the first playing area;
the playing area determining module 202 is configured to determine a second playing area for playing the target video through the second screen interface when the playing time of the target video reaches a preset playing time threshold; wherein the second playback zone of the second screen interface is fixed;
a size adjusting module 203, configured to adjust the size of the target video to a size matched with the second playing area according to the second playing area;
the second video playing module 204 is configured to continue to play the target video from a next video frame of the video frames at the played time point corresponding to the playing time length in the target video in a second playing area of the second screen interface.
According to the method and the device, the target video is played in the first playing area of the first screen interface, when the playing time of the target video reaches the preset playing time threshold, the second playing area for playing the target video through the second screen interface can be determined, the size of the target video is adjusted to be the size matched with the second playing area, and meanwhile the target video is continuously played from the next video frame of the video frame at the playing time point of the playing time, so that the target video which is not played on the first screen interface is continuously played in the second playing area of the second screen interface in a proper size, and the requirement that a user wants to watch the video content which is not played on the screen-open interface after the screen-open display time is over is met.
Optionally, when determining the second play area in which the target video is played through the second screen interface, the play area determining module 202 is specifically configured to:
and determining the position of the second playing area according to the coordinate information of each endpoint of the second playing area in the second screen interface.
Optionally, when the first video playing module 201 plays the target video in the first playing area of the first screen interface, it is specifically configured to:
playing a target video in a first playing area of a first screen interface through a first player;
the device also comprises a third video playing module;
a third video playback module configured to:
when the target video is played in a first playing area of a first screen interface through a first player, the target video is synchronously played in the terminal equipment through a second player, and the synchronously played target video has a corresponding playing area in a second screen interface;
the playing area determining module 202 is specifically configured to, when the playing time of the target video reaches the preset playing time threshold, determine that the second playing area of the target video is played through the second screen interface:
when the playing time of the target video reaches a preset playing time threshold, determining a video frame at a played time point of the target video played on the first screen interface and a target video frame of the target video played synchronously, wherein the target video frame comprises any one of a video frame at the played time point of the target video played synchronously and a next video frame of the video frame at the played time point of the target video played synchronously;
determining the similarity between the video frame at the played time point and the target video frame;
and if the similarity is greater than the preset similarity threshold, determining a corresponding playing area of the target video which is played synchronously in the second screen interface as a second playing area.
Optionally, if the target video frame is a video frame next to a video frame of a target video played synchronously at a played time point;
after the playing area determining module 202 determines the similarity between the video frame at the played time point and the target video frame, before the second video playing module 204 continues to play the target video from the next video frame of the video frame at the played time point corresponding to the playing duration in the target video in the second playing area of the second screen interface, the apparatus further includes:
and the determining module is used for determining a video frame at a position corresponding to the target video frame in the target video played by the first player according to the target video frame in the target video played synchronously if the similarity is greater than a preset similarity threshold, and determining the video frame at the corresponding position as a next video frame of the video frame at the played time point corresponding to the playing time length in the target video.
Optionally, when the size of the target video is adjusted to the size matched with the second playing area according to the second playing area, the size adjusting module 203 is specifically configured to:
determining a proportionality coefficient between the size of the target video and the size of the second playing area;
and changing the size of the target video played in the first playing area of the first screen interface into the size matched with the second playing area according to the scale coefficient.
Optionally, the size adjusting module 203 is specifically configured to, when the size of the target video played in the first playing area of the first screen interface is changed to a size matched with the second playing area according to the scaling factor:
determining the length ratio of each side length in the size of the target video to the corresponding side length in the size of the second playing area according to the proportional coefficient;
determining the scaling factor of each side length according to the length proportion of each side length;
determining the proportion of the scaling speed between the side lengths according to the scaling times;
based on the scale of the zoom speed, a corresponding zoom-out or zoom-in process is performed on each side length.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1) 600 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 601 hereinafter, and the memory may include at least one of a Read Only Memory (ROM)602, a Random Access Memory (RAM)603 and a storage device 608 hereinafter, which are specifically shown as follows:
as shown in fig. 3, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or installed from the storage means 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: when an opening instruction of an application program is received, a target video is played in a first playing area of a first screen interface, and the target video has a size matched with the first playing area; when the playing time of the target video reaches a preset playing time threshold, determining a second playing area for playing the target video through a second screen interface; according to the second playing area, the size of the target video is adjusted to be matched with the size of the second playing area; and in a second playing area of the second screen interface, continuing to play the target video from a next video frame of the video frames at the playing time point corresponding to the playing time length in the target video.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module or unit does not in some cases constitute a limitation on the unit itself, and for example, the first video playing module may be further described as a "module that plays the target video in the first playing area of the first screen interface when receiving an opening instruction of the application".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method for playing video content, including:
when an opening instruction of an application program is received, a target video is played in a first playing area of a first screen interface, and the target video has a size matched with the first playing area;
when the playing time of the target video reaches a preset playing time threshold, determining a second playing area for playing the target video through a second screen interface;
according to the second playing area, the size of the target video is adjusted to be matched with the size of the second playing area;
and in a second playing area of the second screen interface, continuing to play the target video from a next video frame of the video frames at the playing time point corresponding to the playing time length in the target video.
Optionally, determining a second playing area for playing the target video through the second screen interface includes:
and determining the position of the second playing area according to the coordinate information of each endpoint of the second playing area in the second screen interface.
Optionally, playing the target video in the first playing area of the first screen interface includes:
playing a target video in a first playing area of a first screen interface through a first player;
the method further comprises the following steps:
when the target video is played in a first playing area of a first screen interface through a first player, the target video is synchronously played in the terminal equipment through a second player, and the synchronously played target video has a corresponding playing area in a second screen interface;
when the playing time of the target video reaches a preset playing time threshold, determining a second playing area for playing the target video through a second screen interface, wherein the second playing area comprises:
when the playing time of the target video reaches a preset playing time threshold, determining a video frame at a played time point of the target video played on the first screen interface and a target video frame of the target video played synchronously, wherein the target video frame comprises any one of a video frame at the played time point of the target video played synchronously and a next video frame of the video frame at the played time point of the target video played synchronously;
determining the similarity between the video frame at the played time point and the target video frame;
and if the similarity is greater than the preset similarity threshold, determining a corresponding playing area of the synchronously played target video in the second screen interface as a second playing area.
Optionally, if the target video frame is a video frame next to a video frame of a target video played synchronously at a played time point;
after the similarity between the video frame at the played time point and the target video frame is determined, through a second playing area of a second screen interface, before the target video is continuously played from a next video frame of the video frame at the played time point in the target video, which corresponds to the playing duration, the method further comprises the following steps:
if the similarity is larger than the preset similarity threshold, according to the target video frame in the target video which is played synchronously, determining the video frame at the position corresponding to the target video frame in the target video which is played through the first player, and determining the video frame at the corresponding position as the next video frame of the video frame at the played time point corresponding to the playing time length in the target video.
Optionally, adjusting the size of the target video to a size matched with the second playing area according to the second playing area includes:
determining a proportionality coefficient between the size of the target video and the size of the second playing area;
and changing the size of the target video played in the first playing area of the first screen interface into the size matched with the second playing area according to the scale coefficient.
Optionally, changing the size of the target video played in the first playing area of the first screen interface into a size matched with the second playing area according to the scaling factor, including:
determining the length ratio of each side length in the size of the target video to the corresponding side length in the size of the second playing area according to the proportional coefficient;
determining the scaling factor of each side length according to the length proportion of each side length;
determining the proportion of the scaling speed between the side lengths according to the scaling times;
based on the scale of the scaling speed, respective reduction or enlargement processing is performed for each side length.
According to one or more embodiments of the present disclosure, there is also provided a playing apparatus of video content, the apparatus including:
the first video playing module is used for playing a target video in a first playing area of a first screen interface when a starting instruction of an application program is received, wherein the target video has a size matched with that of the first playing area;
the playing area determining module is used for determining a second playing area for playing the target video through a second screen interface when the playing time of the target video reaches a preset playing time threshold; wherein the second playback zone of the second screen interface is fixed;
the size adjusting module is used for adjusting the size of the target video to be matched with the size of the second playing area according to the second playing area;
and the second video playing module is used for continuously playing the target video from the next video frame of the video frames at the playing time point corresponding to the playing time length in the target video in a second playing area of the second screen interface.
Optionally, when the playing area determining module determines a second playing area for playing the target video through the second screen interface, the playing area determining module is specifically configured to:
and determining the position of the second playing area according to the coordinate information of each endpoint of the second playing area in the second screen interface.
Optionally, when the first video playing module plays the target video in the first playing area of the first screen interface, the first video playing module is specifically configured to:
playing a target video in a first playing area of a first screen interface through a first player;
the device also comprises a third video playing module;
the third video playing module is further configured to:
when the target video is played in a first playing area of a first screen interface through a first player, the target video is synchronously played in the terminal equipment through a second player, and the target video which is synchronously played has a corresponding playing area in a second screen interface;
the playing area determining module is specifically configured to, when the playing time of the target video reaches the preset playing time threshold, determine a second playing area in which the target video is played through the second screen interface, in a case that:
when the playing time of the target video reaches a preset playing time threshold, determining a video frame at a played time point of the target video played on the first screen interface and a target video frame of the target video played synchronously, wherein the target video frame comprises any one of a video frame at the played time point of the target video played synchronously and a next video frame of the video frame at the played time point of the target video played synchronously;
determining the similarity between the video frame at the played time point and the target video frame;
and if the similarity is greater than the preset similarity threshold, determining a corresponding playing area of the target video which is played synchronously in the second screen interface as a second playing area.
Optionally, if the target video frame is a video frame next to a video frame of a target video played synchronously at a played time point;
after the playing area determining module determines the similarity between the video frame at the played time point and the target video frame, before the second video playing module continues to play the target video from the next video frame of the video frame at the played time point corresponding to the playing duration in the target video through the second playing area of the second screen interface, the apparatus further includes:
and the determining module is used for determining a video frame at a position corresponding to the target video frame in the target video played by the first player according to the target video frame in the target video played synchronously if the similarity is greater than the preset similarity threshold, and determining that the video frame at the corresponding position is a next video frame of the video frame at the played time point corresponding to the playing time length in the target video.
Optionally, when the size of the target video is adjusted to the size matched with the second play area according to the second play area, the size adjustment module is specifically configured to:
determining a proportionality coefficient between the size of the target video and the size of the second playing area;
and changing the size of the target video played in the first playing area of the first screen interface into the size matched with the second playing area according to the scale coefficient.
Optionally, the size adjustment module is specifically configured to, when changing the size of the target video played in the first playing area of the first screen interface into a size matched with the second playing area according to the scaling factor:
determining the length ratio of each side length in the size of the target video to the corresponding side length in the size of the second playing area according to the proportional coefficient;
determining the scaling factor of each side length according to the length proportion of each side length;
determining the scaling speed ratio between the side lengths according to the scaling times;
based on the scale of the scaling speed, respective reduction or enlargement processing is performed for each side length.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the above features or their equivalents is encompassed within the scope of the present disclosure without departing from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (9)

1. A method for playing video content, comprising:
when an opening instruction of an application program is received, a target video is played in a first playing area of a first screen interface, and the target video has a size matched with the first playing area;
when the playing time of the target video reaches a preset playing time threshold, determining a video frame at a played time point of the target video played on the first screen interface and a target video frame of the target video played synchronously, wherein the target video frame comprises any one of a video frame at the played time point of the target video played synchronously and a video frame next to the video frame at the played time point of the target video played synchronously;
determining the similarity between the video frame at the played time point and the target video frame;
if the similarity is larger than a preset similarity threshold, determining that a playing area corresponding to the synchronously played target video in a second screen interface is a second playing area; wherein the second playback area of the second screen interface is fixed;
according to the second playing area, the size of the target video is adjusted to be matched with the size of the second playing area;
in the second playing area of a second screen interface, continuing to play the target video from a next video frame of the video frames at the playing time point corresponding to the playing time length in the target video;
wherein, the playing the target video in the first playing area of the first screen interface includes:
playing the target video in a first playing area of the first screen interface through a first player;
when the target video is played in the first playing area of the first screen interface through the first player, the target video is synchronously played in the terminal equipment through the second player, and the target video which is synchronously played has a corresponding playing area in the second screen interface.
2. The method of claim 1, wherein determining a second playback zone for playing the target video via a second screen interface comprises:
and determining the position of the second playing area according to the coordinate information of each endpoint of the second playing area in the second screen interface.
3. The method of claim 2, wherein if the target video frame is a video frame next to a video frame of the target video played synchronously at the played time point;
after determining the similarity between the video frame at the played time point and the target video frame, before continuing to play the target video from the next video frame of the video frame at the played time point corresponding to the playing duration in the target video through the second playing area of the second screen interface, the method further includes:
if the similarity is larger than a preset similarity threshold, according to a target video frame in the target video which is played synchronously, determining a video frame at a position corresponding to the target video frame in the target video which is played through a first player, and determining that the video frame at the corresponding position is a next video frame of the video frame at the played time point corresponding to the playing time length in the target video.
4. The method according to any one of claims 1 to 3, wherein the resizing the target video to a size matching the second playing area according to the second playing area comprises:
determining a proportionality coefficient between the size of the target video and the size of the second playing area;
and changing the size of the target video played in the first playing area of the first screen interface into the size matched with the second playing area according to the proportional coefficient.
5. The method of claim 4, wherein changing the size of the target video played in the first playing area of the first screen interface to a size matching the second playing area according to the scaling factor comprises:
determining the length ratio of each side length in the size of the target video to the corresponding side length in the size of the second playing area according to the proportional coefficient;
determining the scaling factor of each side length according to the length proportion of each side length;
determining the proportion of the scaling speed between the side lengths according to the scaling times;
and executing corresponding reduction or enlargement processing on each side length based on the proportion of the scaling speed.
6. A playback apparatus for video content, comprising:
the first video playing module is used for playing a target video in a first playing area of a first screen interface when a starting instruction of an application program is received, wherein the target video has a size matched with the first playing area; wherein, the playing the target video in the first playing area of the first screen interface includes: playing the target video in a first playing area of the first screen interface through a first player; when a target video is played in a first playing area of the first screen interface through the first player, the target video is synchronously played in terminal equipment through a second player, and the target video which is synchronously played has a corresponding playing area in a second screen interface;
a playing area determining module, configured to determine a video frame at a played time point of the target video played on the first screen interface and a target video frame of the target video played synchronously when the playing time of the target video reaches a preset playing time threshold, where the target video frame includes any one of a video frame at the played time point of the target video played synchronously and a video frame next to the video frame at the played time point of the target video played synchronously; determining the similarity between the video frame at the played time point and the target video frame; if the similarity is larger than a preset similarity threshold, determining that a corresponding playing area of the synchronously played target video in the second screen interface is a second playing area; wherein the second playback zone of the second screen interface is fixed;
the size adjusting module is used for adjusting the size of the target video to be matched with the size of the second playing area according to the second playing area;
and the second video playing module is used for continuously playing the target video from the next video frame of the video frames at the playing time point corresponding to the playing time length in the target video in the second playing area of the second screen interface.
7. The apparatus according to claim 6, wherein the play area determining module, when determining the second play area in which the target video is played through the second screen interface, is specifically configured to:
and determining the position of the second playing area according to the coordinate information of each endpoint of the second playing area in the second screen interface.
8. An electronic device, comprising:
the electronic device comprises a memory and a processor;
the memory has stored therein a computer program;
the processor, when executing the computer program, is configured to perform the method of any of claims 1-5.
9. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
CN201910838198.3A 2019-09-05 2019-09-05 Video content playing method and device, electronic equipment and computer readable medium Active CN110519645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910838198.3A CN110519645B (en) 2019-09-05 2019-09-05 Video content playing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910838198.3A CN110519645B (en) 2019-09-05 2019-09-05 Video content playing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN110519645A CN110519645A (en) 2019-11-29
CN110519645B true CN110519645B (en) 2022-09-23

Family

ID=68631407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910838198.3A Active CN110519645B (en) 2019-09-05 2019-09-05 Video content playing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN110519645B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111562895B (en) * 2020-03-25 2023-09-22 抖音视界有限公司 Multimedia information display method and device and electronic equipment
CN111797933B (en) * 2020-07-10 2023-07-28 百度在线网络技术(北京)有限公司 Template matching method, device, electronic equipment and storage medium
CN112616075B (en) * 2020-11-30 2023-04-11 当趣网络科技(杭州)有限公司 Pushing processing method and system based on smart television, electronic equipment and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079979B (en) * 2014-07-15 2018-06-05 可牛网络技术(北京)有限公司 Video broadcasting method and system
CN105679213A (en) * 2014-11-18 2016-06-15 中广美意文化传播控股有限公司 Split-screen displaying and playing method of display screen and player
CN106998393B (en) * 2017-05-24 2019-03-05 维沃移动通信有限公司 Video playing control method, mobile terminal and computer readable storage medium
CN107846511A (en) * 2017-10-30 2018-03-27 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for accessing moving advertising
CN108965907B (en) * 2018-07-11 2020-03-13 北京字节跳动网络技术有限公司 Method, device and system for playing video
CN108965980B (en) * 2018-07-20 2021-08-10 腾讯科技(深圳)有限公司 Recommended content display method, device, terminal and storage medium
CN109933386A (en) * 2019-03-28 2019-06-25 努比亚技术有限公司 The starting method, apparatus and computer readable storage medium of picture-in-picture mode

Also Published As

Publication number Publication date
CN110519645A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN112261459B (en) Video processing method and device, electronic equipment and storage medium
CN112259062B (en) Special effect display method and device, electronic equipment and computer readable medium
CN110784754A (en) Video display method and device and electronic equipment
CN110519645B (en) Video content playing method and device, electronic equipment and computer readable medium
CN111899192B (en) Interaction method, interaction device, electronic equipment and computer-readable storage medium
CN110898429B (en) Game scenario display method and device, electronic equipment and storage medium
CN111562895B (en) Multimedia information display method and device and electronic equipment
CN112423084B (en) Display method and device of hotspot list, electronic equipment and storage medium
CN111935544B (en) Interaction method and device and electronic equipment
WO2023088442A1 (en) Live streaming preview method and apparatus, and device, program product and medium
US11785195B2 (en) Method and apparatus for processing three-dimensional video, readable storage medium and electronic device
CN112051961A (en) Virtual interaction method and device, electronic equipment and computer readable storage medium
CN110290398B (en) Video issuing method and device, storage medium and electronic equipment
CN111225288A (en) Method and device for displaying subtitle information and electronic equipment
US20240143649A1 (en) Multimedia information processing method, apparatus, electronic device, and medium
CN110852946A (en) Picture display method and device and electronic equipment
CN114860139A (en) Video playing method, video playing device, electronic equipment, storage medium and program product
CN110022493B (en) Playing progress display method and device, electronic equipment and storage medium
US20240048665A1 (en) Video generation method, video playing method, video generation device, video playing device, electronic apparatus and computer-readable storage medium
CN111338729A (en) Method, device, medium and electronic equipment for playing view
CN114168250A (en) Page display method and device, electronic equipment and storage medium
JP7417733B2 (en) Video playback page display methods, devices, electronic devices and media
WO2023165390A1 (en) Zoom special effect generating method and apparatus, device, and storage medium
EP4207775A1 (en) Method and apparatus for determining object addition mode, electronic device, and medium
CN110769129B (en) Image processing method, image processing device, electronic equipment 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
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

CP01 Change in the name or title of a patent holder