CN108235086B - Video playing control method and device and corresponding terminal - Google Patents

Video playing control method and device and corresponding terminal Download PDF

Info

Publication number
CN108235086B
CN108235086B CN201711366702.1A CN201711366702A CN108235086B CN 108235086 B CN108235086 B CN 108235086B CN 201711366702 A CN201711366702 A CN 201711366702A CN 108235086 B CN108235086 B CN 108235086B
Authority
CN
China
Prior art keywords
video
card
target video
playing
sliding
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
CN201711366702.1A
Other languages
Chinese (zh)
Other versions
CN108235086A (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 Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201711366702.1A priority Critical patent/CN108235086B/en
Publication of CN108235086A publication Critical patent/CN108235086A/en
Application granted granted Critical
Publication of CN108235086B publication Critical patent/CN108235086B/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/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/47202End-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 requesting content on demand, e.g. video on demand
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request
    • 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/482End-user interface for program selection
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The invention relates to the field of software application, in particular to a video playing control method, a video playing control device and a corresponding terminal, wherein the method comprises the following steps: configuring a transversely sliding video component in a vertically sliding list control; acquiring video data, and displaying content pictures of videos corresponding to the video data in a card contained in the video component; when any card of the video assembly is in a preset position, determining that a video corresponding to the card is a target video; and playing the target video. According to the invention, the list control of the content page of the display client and the video component for displaying the video are independently controlled, so that the logic of video playing control is better realized, and the watching experience of a user is improved.

Description

Video playing control method and device and corresponding terminal
Technical Field
The invention relates to the field of software application, in particular to a video playing control method and device and a corresponding terminal.
Background
With the development of internet and multimedia technology, videos have become a way for people to record life and entertainment, wherein short videos are popular among users, the short videos are presented in a form of visual sense and auditory sense, and character sounds or character expressions are processed, so that the video displayed objects are more interesting and vivid, the users can quickly focus on the client through the intuitive presentation of the short videos in the client, the staying time of the users at the client is prolonged, the interests of the users in the client are increased, however, how to present the short videos in the client ensures that the playing control logic of the short videos is more humanized, the users can intuitively and conveniently focus on the short videos, and the problem faced by the development and operation needs of the client at present is solved.
Disclosure of Invention
The invention provides a video playing control method and device, which independently control a list control of a content page of a display client and a video component for displaying a video and better realize the logic of video playing control.
Another object of the present invention is to provide a terminal for implementing the video playing control method.
In order to realize the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a video playing control method, including:
configuring a transversely sliding video component in a vertically sliding list control;
acquiring video data, and displaying content pictures of videos corresponding to the video data in a card contained in the video component;
when any card of the video assembly is in a preset position, determining that a video corresponding to the card is a target video;
and playing the target video.
Further, before playing the target video, the method further includes:
acquiring the current network state of a terminal;
preloading the target video when the network state of the terminal is in WI-FI connection;
and when the network state of the terminal is in mobile network connection, loading the target video after receiving a play control instruction of a user.
Preferably, the video assembly comprises a preset number of cards, and each card is provided with a serial number; the preloading the target video when the network state of the terminal is in the WI-FI connection comprises the following steps:
when the network state of the terminal is in WI-FI connection, preloading the target video and preloading videos corresponding to a preset number of other cards after the card number corresponding to the target video; the method comprises the steps of pre-loading 20% of target videos, 10% of videos of a 1 st card after the number of the card corresponding to the pre-loaded target videos and 5% of videos of a 2 nd card after the number of the card corresponding to the pre-loaded target videos.
Specifically, after configuring the transversely-sliding video component in the vertically-sliding list control, the method further includes:
acquiring sliding operation of a user on a video assembly;
when the transverse sliding displacement of the sliding operation is larger than the longitudinal sliding displacement, the video assembly is slid to switch the card of the video assembly;
and when the longitudinal sliding displacement of the sliding operation is larger than the transverse sliding displacement, sliding the list component to switch the content of the display interface.
Further, the playing the target video comprises;
and muting the default setting of the target video, and playing the target video in a mute manner.
Further, after the target video is played, the method further includes:
monitoring the sliding state of a video component, and stopping loading and playing the target video when a card corresponding to the target video slides to exceed a preset proportion of a preset position;
when other cards of the video assembly slide to a preset position, determining that the video of the card is the target video, and loading and playing the target video.
Further, configuring a horizontally sliding video component in the vertically sliding list control includes:
configuring a transversely sliding video assembly at the top of the vertically sliding list control;
after the target video is played, the method further comprises:
and monitoring the sliding offset of the list control in the vertical downward direction, and stopping playing the target video when the sliding offset of the list component in the vertical downward direction is larger than the preset proportion of the height of the video component.
Further, after the target video is played, the method further includes:
stopping playing the target video, and recording the breakpoint position of the target video when the target video stops playing before the target video is not played;
outputting a preset target video playing stopping interface and a breakpoint playing guide button on the card of the target video;
and after the user clicks the breakpoint playing guide button, starting to play the target video from the breakpoint position of the target video.
In a second aspect, the present invention provides a video playback control apparatus, the apparatus storing a plurality of instructions adapted to be loaded by a processor and to perform:
configuring a transversely sliding video component in a vertically sliding list control;
acquiring video data, and displaying content pictures of videos corresponding to the video data in a card contained in the video component;
when any card of the video assembly is in a preset position, determining that a video corresponding to the card is a target video;
and playing the target video.
In a third aspect, the present invention provides a terminal, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs configured to perform the video playback control method of any of the first aspects.
Compared with the prior art, the invention has the following advantages:
according to the invention, the transversely sliding video assembly is configured in the vertically sliding list control, then the content picture of the video corresponding to the acquired video data is displayed in the cards contained in the video assembly, when any card is at a preset position, the video corresponding to the card is played, the list control for displaying the content page of the client and the video assembly for displaying the video are independently controlled, the logic of video playing control is better realized, and meanwhile, the list control for displaying the content page of the client and the video assembly for displaying the video are stripped, so that a user can browse other page contents while watching the video, and good visual experience is brought to audiences.
In addition, the sliding operation of the user on the video assembly is obtained, the operation actually required by the user on the video assembly is determined according to the offset of the transverse sliding and the longitudinal sliding, the video assembly is controlled to slide to switch the card of the video assembly or the list assembly is controlled to slide to switch the content of the display interface, and the sliding conflict between the list control and the video assembly is solved.
Moreover, the stopping or playing of the video is determined by the relative position of the card and the preset position, so that the network bandwidth resource is saved, the terminal consumption is reduced, and the terminal operation smoothness is improved; and meanwhile, when the terminal is in WI-FI connection, the target video and the video corresponding to the other card after the card number corresponding to the target video is preloaded, so that when the target video is played or other videos are played in a switching mode, a video picture can be rendered more quickly.
It is to be understood that the foregoing general description of the advantages of the present invention is provided for illustration and description, and that various other advantages of the invention will be apparent to those skilled in the art from this disclosure.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a video playback control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating one embodiment of a list control and video component according to the present invention;
FIG. 3 is a schematic diagram illustrating one embodiment of a list control, a video component, and a predetermined location on the list control according to the present invention;
FIG. 4 is a schematic diagram of a video playback control apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a terminal portion structure provided in an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, or operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations, or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It will be appreciated by those skilled in the art that the terms "application," "application program," "application software," and the like, as used herein, are intended to refer to a computer software product electronically-adapted to be electronically-constructed, from a collection of computer instructions and associated data resources, in accordance with the principles of the present invention. Unless otherwise specified, such nomenclature is not itself limited by the programming language class, level, or operating system or platform upon which it depends. Of course, such concepts are not limited to any type of terminal.
It should be understood by those skilled in the art that the user interface and the display interface referred to in the present invention generally refer to a display interface capable of being used to send the control instruction to the intelligent terminal, and for example, may be an option (or a button, added by the application program, the same applies hereinafter) in a setup page of an Android/IOS/Windows Phone system, an option in a notification bar or an interaction page called from a desktop, or an option in a page constructed by an active component of the application program.
In an embodiment, the present invention provides a video playing control method, which is executed by a client running on a terminal, as shown in fig. 1, and includes:
s100: a video component that slides horizontally is configured in a list control that slides vertically.
Displaying the page content of the client by using a list control capable of vertically sliding on the user interface of the client, as shown in fig. 2, a solid line box represents a vertically sliding list control 21, the vertical direction is the up-down direction of the user interface of the client, and the page content information of the client is displayed by vertically sliding on the user interface of the client; further, in this embodiment, one or more video components that slide horizontally are configured in a list control that slides vertically, a dashed box in fig. 2 represents the video component 22 that slides horizontally, correspondingly, the horizontal direction is a direction perpendicular to the vertical direction, the list control incompletely displays the video component, that is, all content information on the video component is not simultaneously displayed on the list control, and the page content information of the client is displayed in a horizontally expanded manner by configuring the video component that slides horizontally in the list control that slides vertically.
S200: and acquiring video data, and displaying content pictures of videos corresponding to the video data in cards contained in the video component.
The video component of this embodiment includes a certain number of cards, as shown in fig. 2, a solid line box in the video component 22 represents the card 23, and in this embodiment, the video component 22 includes 3 cards 23, and in this embodiment, preferably, when the client starts, requests the server to acquire video data, specifically, the video data includes a cover page picture of a video, and after the video data is acquired, content pictures of the video are displayed in the cards 23 of the video component 22, that is, each card 23 corresponds to one video, and each card 23 displays a cover page picture of a corresponding video.
Further, the client receives an instruction for updating the video data, and when the instruction for updating the video data is triggered, the client requests the server for new video data so that a content picture of a video corresponding to the new video data is displayed in the card.
S300: when any card of the video assembly is in a preset position, determining that the video corresponding to the card is the target video.
A default position (i.e., the preset position) is set on the display interface of the client, when any card 23 in the video component 22 is located at the preset position, it is determined that the video corresponding to the card is the target video, as shown in fig. 3, the thick dashed line box represents the preset position, a preset position 30 is set on the display interface of the client, and when any card of the video component is located in the thick dashed line box, preferably, when a preset proportion of the area of the card, such as 90% of the area of the card, is located in the thick dashed line box, it is determined that the video corresponding to the card is the target video.
S400: and playing the target video.
After the target video is determined, separating an audio stream and an image stream from a video file stream of the pulled target video, respectively decoding the audio stream and the image stream, directly rendering a decoded video frame into the card, transmitting the decoded audio frame to audio output equipment, then synchronously controlling time stamps of rendering of the video frame and playing of the audio frame, and playing the target video in the card.
In the embodiment, the transversely sliding video component is configured in the vertically sliding list control, then the content picture of the video corresponding to the acquired video data is displayed in the card contained in the video component, when any card is positioned at a preset position, the video corresponding to the card is played, the list control for displaying the content page of the client and the video component for displaying the video are independently controlled, the logic of video playing control is better realized, meanwhile, the list control for displaying the content page of the client and the video component for displaying the video are stripped, a user can browse other page contents while watching the video, and good visual experience is brought to audiences.
In an embodiment of the present invention, before playing the target video, the method further includes:
acquiring the current network state of a terminal;
preloading the target video when the network state of the terminal is in WI-FI connection;
and when the network state of the terminal is in mobile network connection, loading the target video after receiving a play control instruction of a user.
In this embodiment, before playing a target video, a current network state of a terminal operating a client is acquired, when the network state of the terminal is in WI-FI connection, a video file stream of the target video is requested to be pulled from a server, and then the target video is preloaded at the client so as to be capable of being played quickly. In addition, when the network state of the terminal is in mobile network connection, the video file stream of the target video is requested to be pulled from the server after the playing control instruction of the user is received, specifically, the video on each card is provided with a playing button, the user clicks the playing button to trigger the playing control instruction, and then the target video is played after the client loads the target video.
Further, in the above embodiment, the video component includes a preset number of cards, and each card is provided with a number, as shown in fig. 3, the video component 22 includes 3 cards 23, and the numbers are a, b, and c, respectively. When the network state of the terminal is in WI-FI connection, not only the target video is preloaded, but also videos corresponding to other cards after the card number corresponding to the target video is preloaded; the method comprises the steps of pre-loading 20% of target videos, 10% of videos of a 1 st card after the number of the card corresponding to the pre-loaded target videos and 5% of videos of a 2 nd card after the number of the card corresponding to the pre-loaded target videos. In this embodiment, the target video is determined to be the video corresponding to the card a, and when the network state of the terminal is in WI-FI connection, 20% of the video of the card a is preloaded, 10% of the video of the card b is preloaded, and 5% of the video of the card c is preloaded; in addition, if the target video is determined to be the video corresponding to the card b, 20% of the video of the card b is preloaded, and 10% of the video of the card c is preloaded, so that when the target video is played or other videos are switched to be played, a video screen can be rendered more quickly.
In another embodiment of the present invention, the method further comprises:
acquiring sliding operation of a user on a video assembly;
when the transverse sliding displacement of the sliding operation is larger than the longitudinal sliding displacement, the video assembly is slid to switch the card of the video assembly;
and when the longitudinal sliding displacement of the sliding operation is larger than the transverse sliding displacement, sliding the list component to switch the content of the display interface.
The embodiment of the invention is characterized in that a transversely sliding video assembly is added in a vertically sliding list control, sliding conflict exists in a video assembly area, so that the video assembly area cannot vertically slide. When the transverse sliding displacement of the sliding operation is larger than the longitudinal sliding displacement, the video assembly is slid to switch the card of the video assembly; and when the longitudinal sliding displacement of the sliding operation is larger than the transverse sliding displacement, sliding the list component to switch the content of the display interface. Specifically, the sliding operation of the user on the display interface of the client side has a starting coordinate point (x1, y1) and an ending coordinate point (x2, y2), wherein x represents an abscissa, y represents an ordinate, | x1-x2| represents a transverse sliding displacement amount, | y1-y2| represents a longitudinal sliding displacement amount, and the same is true of the operation in the sliding component area, when | x1-x2| > | y1-y2| is determined, the video component is slid at the moment to switch the cards of the video component; when y1-y2| > | x1-x2| determines that the user wants to slide up and down to browse other page content in the list component at that time, the list control is slid to switch the content of the display interface at that time, and the sliding conflict in the video component is solved.
Preferably, in an embodiment of the present invention, the playing the target video includes;
and muting the default setting of the target video, and playing the target video in a mute manner.
In the embodiment of the invention, after the target video is determined, the audio stream and the image stream are separated from the video file stream of the pulled target video and are respectively decoded, the decoded video frame is directly rendered into the card, the decoded audio frame is transmitted to the audio output equipment but is set to be mute by default, then the time stamps for rendering the video frame and playing the audio frame are synchronously controlled, the target video is played in the card, and the user is prevented from being obtrusive, so that the user experience is improved.
Further, another embodiment of the present invention, after playing the target video, further includes:
monitoring the sliding state of the video component, and stopping loading and playing the current target video when the card corresponding to the target video slides to exceed the preset proportion of the preset position;
when other cards of the video assembly slide to a preset position, determining that the video of the card is the target video, and loading and playing the target video.
In this embodiment, after the target video is played, the client continuously monitors the sliding state of the video component, and when the user slides the video component and the card corresponding to the target video slides to exceed a preset ratio, for example, 1/2, the loading and playing of the current target video are stopped, for example, when the playing of the video of the card a is not finished, the user slides the video component to slide the card a to exceed a half of the preset position, which is equivalent to that the half of the area of the card a is not in the preset position, and at this time, the request for the video data of the card a from the server is stopped, and the playing of the video of the card a is stopped at the same time.
Further, when the user slides the video component, the user often wants to switch to watch videos corresponding to other cards, and when other cards of the video component slide to a preset position, the video of the card is determined to be the target video and the target video is loaded and played. For example, when the card b slides to a preset position, preferably when 90% of the area of the card b slides to the preset position, determining that the video of the card b is the target video, and then loading and playing the video corresponding to the card b. The stop or play of the video is determined by the relative position of the card and the preset position, so that the network bandwidth resource is saved, the consumption of the terminal is reduced, and the operation smoothness of the terminal is improved.
Further, in the foregoing embodiment, the configuring a horizontally sliding video component in a vertically sliding list control includes:
configuring a transversely sliding video assembly at the top of the vertically sliding list control;
after the target video is played, the method further comprises:
and monitoring the sliding offset of the list control in the vertical downward direction, and stopping playing the target video when the sliding offset of the list component in the vertical downward direction is larger than the preset proportion of the height of the video component.
In this embodiment, the transversely sliding video component is arranged at the top of the vertically sliding list control, and when a user starts to enter the client, the video component can enter the sight of the user at the first time, so that the user can watch videos in the video component at the first time. And after the target video is played, if a user wants to browse other page contents on the list control, the user can browse the other page contents on the list control by sliding downwards, the client continuously monitors the sliding offset of the vertical direction of the list component, when the sliding offset of the vertical direction of the list component is larger than the preset ratio of the height of the video component, such as 1/2, the target video is stopped to be played, at the moment, the area of the video component 1/2 is not displayed on the user interface of the client, at the moment, the user is determined to want to slide downwards the list control to browse the other page contents, at the moment, the target video which is being played is stopped to be played, and the video data is stopped to be requested to the server, so that network bandwidth resources are saved, the consumption of the terminal is reduced, and the smoothness of terminal operation is improved.
Further, in the embodiment of the present invention, after playing the target video, the method further includes:
stopping playing the target video, and recording the breakpoint position of the target video when the target video stops playing before the target video is not played;
outputting a preset target video playing stopping interface and a breakpoint playing guide button on the card of the target video;
and after the user clicks the breakpoint playing guide button, starting to play the target video from the breakpoint position of the target video.
After the target video is played, no matter what operation is performed, the target video is stopped from being played, when the target video is stopped from being played before the target video is not played, the breakpoint position of the target video is recorded, namely the timestamp for stopping playing the target video is recorded, and a preset target video stopping playing interface and a breakpoint playing guide button are output on a card of the target video, wherein in one implementation mode, the target video stopping playing interface is a content picture corresponding to video data which is obtained at the beginning, namely a cover of the video; in another embodiment, the playing stop interface of the target video is an image frame when the target video stops playing; in this embodiment, the breakpoint playing button is the same as the play start button, and after the user clicks the breakpoint playing guidance button, the target video starts to be played from the breakpoint position of the target video, so that the user continues to watch the target video.
In one embodiment, the present invention provides a video playback control apparatus, the apparatus storing a plurality of instructions, the instructions being adapted to be loaded by a processor and to execute a video playback control method, comprising:
configuring a transversely sliding video component in a vertically sliding list control;
acquiring video data, and displaying content pictures of each video in each card of the video component;
when any card of the video assembly is in a preset position, determining that the video of the card is a target video;
and playing the target video.
For convenience of description, the video playback control apparatus is divided into functional module architectures, as shown in fig. 4, including:
the configuration module 100: a video component for configuring a horizontal slide in a vertically sliding list control.
Displaying the page content of the client by using a list control capable of vertically sliding on the user interface of the client, as shown in fig. 2, a solid line box represents a vertically sliding list control 21, the vertical direction is the up-down direction of the user interface of the client, and the page content information of the client is displayed by vertically sliding on the user interface of the client; further, in this embodiment, the configuration module 100 configures (one) laterally sliding video component in a vertically sliding list control, a dashed box in fig. 2 represents the laterally sliding video component 22, correspondingly, the lateral direction is a direction perpendicular to the vertical direction, the list control incompletely displays the video component, that is, all content information on the video component is not simultaneously displayed on the list control, and the laterally sliding video component is configured in the vertically sliding list control to laterally expand and display the page content information of the client.
The display module 200: the video component is used for acquiring video data and displaying content pictures of videos corresponding to the video data in cards contained in the video component.
In this embodiment, the video component includes a certain number of cards, as shown in fig. 2, a solid line box in the video component 22 represents the card 23, and in this embodiment, the video component 22 includes 3 cards 23, and in this embodiment, preferably when the client is started, the display module 200 requests the server to acquire video data, specifically, the video data includes a cover page picture of a video, and after the video data is acquired, content pictures of the video are displayed in the cards 23 of the video component 22, that is, each card 23 corresponds to one video, and each card 23 displays a cover page picture of the corresponding video.
The determination module 300: the method and the device are used for determining that the video corresponding to any card of the video assembly is the target video when the card is located at the preset position.
A default position (i.e., the preset position) is set on the display interface of the client, when any card 23 in the video component 22 is located at the preset position, the determining module 300 determines that the video corresponding to the card is the target video, as shown in fig. 3, the thick dashed line box represents the preset position, the preset position 30 is set on the display interface of the client, and when any card of the video component is located in the thick dashed line box, preferably, when a preset proportion of the area of the card, such as 90% of the area of the card, is located in the thick dashed line box, the video corresponding to the card is determined to be the target video.
The playing module 400: for playing the target video.
After the determination module 300 determines the target video, the playing module 400 separates an audio stream and an image stream from the video file stream of the pulled target video, decodes the audio stream and the image stream, renders the decoded video frame directly into the card, transmits the decoded audio frame to the audio output device, and then synchronously controls the rendering of the video frame and the time stamp of the audio frame playing to play the target video in the card.
In another embodiment, the present invention further provides a terminal for implementing a video playing control method, as shown in fig. 5, which is a block diagram of a partial structure of the terminal provided in the embodiment of the present invention, and for convenience of description, only parts related to the embodiment of the present invention are shown, and details of the technology are not disclosed, please refer to the method part in the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
referring to fig. 5, the handset includes: a baseband processing module 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, a processor 580, and a power supply 590. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The baseband processing module 510 may be used to synthesize a baseband signal to be transmitted or decode a received baseband signal. Specifically, the audio signal is compiled into a baseband code for transmission when being transmitted; upon reception, the received baseband code is interpreted as an audio signal. Meanwhile, the system is also responsible for compiling address information (mobile phone numbers, website addresses), text information (short message texts and website texts) and picture information (multimedia messages).
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user on or near the touch panel 531 (for example, operations of the user on or near the touch panel 531 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 5 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The handset also includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 580 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
According to the invention, the transversely sliding video assembly is configured in the vertically sliding list control, then the content picture of the video corresponding to the acquired video data is displayed in the cards contained in the video assembly, when any card is at a preset position, the video corresponding to the card is played, the list control for displaying the content page of the client and the video assembly for displaying the video are independently controlled, the logic of video playing control is better realized, and meanwhile, the list control for displaying the content page of the client and the video assembly for displaying the video are stripped, so that a user can browse other page contents while watching the video, and good visual experience is brought to audiences.
In addition, the sliding operation of the user on the video assembly is obtained, the operation actually required by the user on the video assembly is determined according to the offset of the transverse sliding and the longitudinal sliding, the video assembly is controlled to slide to switch the card of the video assembly or the list assembly is controlled to slide to switch the content of the display interface, and the sliding conflict between the list control and the video assembly is solved.
Moreover, the stopping or playing of the video is determined by the relative position of the card and the preset position, so that the network bandwidth resource is saved, the terminal consumption is reduced, and the terminal operation smoothness is improved; and meanwhile, when the terminal is in WI-FI connection, the target video and the video corresponding to the other card after the card number corresponding to the target video is preloaded, so that when the target video is played or other videos are played in a switching mode, a video picture can be rendered more quickly.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A video playback control method, comprising:
configuring a transversely sliding video assembly at the top of the vertically sliding list control; the vertically sliding list control is used for displaying the page content of the client; the list control does not fully display all cards contained by the video component;
acquiring video data, and displaying content pictures of videos corresponding to the video data in a card contained in the video component;
setting a preset position on a display interface of a client, and determining that a video corresponding to any card of a video assembly is a target video when the card is at the preset position;
acquiring the current network state of the terminal, and preloading a preset percentage of the target video and preset percentages of videos corresponding to other cards of a preset number respectively after preloading card numbers corresponding to the target video when the network state of the terminal is in WI-FI connection; the video assembly comprises a preset number of cards, and each card is provided with a serial number; when the ordering is carried out based on the card numbers, the preset percentage of the corresponding preloaded video is smaller after the ordering is carried out;
playing the target video;
monitoring the sliding state of the video component, and stopping loading and playing the current target video when the card corresponding to the target video slides to exceed the preset proportion of the preset position; when other cards of the video assembly slide to a preset position, determining that the video of the card is a target video and loading and playing the target video;
and monitoring the sliding offset of the list control in the vertical downward direction, and stopping playing the target video when the sliding offset of the list control in the vertical downward direction is larger than the preset proportion of the height of the video component.
2. The method of claim 1, wherein before playing the target video, further comprising:
and when the network state of the terminal is in mobile network connection, loading the target video after receiving a play control instruction of a user.
3. The method of claim 1, wherein the preloading the target video comprises:
20% of the preloaded target video, 10% of the video of the 1 st card after the card number corresponding to the preloaded target video and 5% of the video of the 2 nd card after the card number corresponding to the preloaded target video.
4. The method of claim 1, wherein after configuring the horizontally-sliding video component on top of the vertically-sliding list control, further comprising:
acquiring sliding operation of a user on a video assembly;
when the transverse sliding displacement of the sliding operation is larger than the longitudinal sliding displacement, the video assembly is slid to switch the card of the video assembly;
and when the longitudinal sliding displacement of the sliding operation is larger than the transverse sliding displacement, sliding the list control to switch the content of the display interface.
5. The method of claim 1, wherein said playing said target video comprises;
and muting the default setting of the target video, and playing the target video in a mute manner.
6. The method of claim 1, wherein after playing the target video, further comprising:
stopping playing the target video, and recording the breakpoint position of the target video when the target video stops playing before the target video is not played;
outputting a preset target video playing stopping interface and a breakpoint playing guide button on the card of the target video;
and after the user clicks the breakpoint playing guide button, starting to play the target video from the breakpoint position of the target video.
7. A video playback control apparatus, wherein the apparatus stores a plurality of instructions adapted to be loaded and executed by a processor to:
configuring a transversely sliding video assembly at the top of the vertically sliding list control; the vertically sliding list control is used for displaying the page content of the client; the list control does not fully display all cards contained by the video component;
acquiring video data, and displaying content pictures of videos corresponding to the video data in a card contained in the video component;
setting a preset position on a display interface of a client, and determining that a video corresponding to any card of a video assembly is a target video when the card is at the preset position;
acquiring the current network state of the terminal, and preloading a preset percentage of the target video and preset percentages of videos corresponding to other cards of a preset number respectively after preloading card numbers corresponding to the target video when the network state of the terminal is in WI-FI connection; the video assembly comprises a preset number of cards, and each card is provided with a serial number; when the ordering is carried out based on the card numbers, the preset percentage of the corresponding preloaded video is smaller after the ordering is carried out;
playing the target video;
monitoring the sliding state of the video component, and stopping loading and playing the current target video when the card corresponding to the target video slides to exceed the preset proportion of the preset position; when other cards of the video assembly slide to a preset position, determining that the video of the card is a target video and loading and playing the target video;
and monitoring the sliding offset of the list control in the vertical downward direction, and stopping playing the target video when the sliding offset of the list control in the vertical downward direction is larger than the preset proportion of the height of the video component.
8. A terminal, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: executing the video playback control method according to any of claims 1 to 6.
CN201711366702.1A 2017-12-18 2017-12-18 Video playing control method and device and corresponding terminal Active CN108235086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711366702.1A CN108235086B (en) 2017-12-18 2017-12-18 Video playing control method and device and corresponding terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711366702.1A CN108235086B (en) 2017-12-18 2017-12-18 Video playing control method and device and corresponding terminal

Publications (2)

Publication Number Publication Date
CN108235086A CN108235086A (en) 2018-06-29
CN108235086B true CN108235086B (en) 2021-08-20

Family

ID=62649789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711366702.1A Active CN108235086B (en) 2017-12-18 2017-12-18 Video playing control method and device and corresponding terminal

Country Status (1)

Country Link
CN (1) CN108235086B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040672B (en) * 2018-07-16 2020-12-04 北京奇虎科技有限公司 Video playing method and device
CN108881998A (en) * 2018-08-13 2018-11-23 北京搜狐新动力信息技术有限公司 A kind of video broadcasting method and device
CN109246468B (en) * 2018-08-23 2021-02-26 深圳点猫科技有限公司 Video list switching method, device and storage medium based on education system
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads
CN109600643A (en) * 2018-12-21 2019-04-09 广州酷狗计算机科技有限公司 Video providing method, playback method, device and storage medium
CN109640188B (en) * 2018-12-28 2020-02-07 北京微播视界科技有限公司 Video preview method and device, electronic equipment and computer readable storage medium
CN109756785B (en) * 2019-01-16 2022-05-20 上海哔哩哔哩科技有限公司 Video switching playing method and device and storage medium
CN109889880B (en) * 2019-04-11 2021-02-12 北京字节跳动网络技术有限公司 Information display method, device, equipment and storage medium for concerned user
CN110262736B (en) * 2019-06-20 2021-09-17 北京字节跳动网络技术有限公司 Data table creating method and device
CN110913257A (en) * 2019-11-29 2020-03-24 广州市百果园信息技术有限公司 Video data playing method, device, equipment and storage medium
CN111432265B (en) * 2020-03-31 2021-08-31 腾讯科技(深圳)有限公司 Method for processing video pictures, related device and storage medium
CN111770384A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Video switching method and device, electronic equipment and storage medium
CN111966440A (en) * 2020-08-27 2020-11-20 广州华多网络科技有限公司 Display control method and device of information flow interface, terminal and storage medium
CN112291602B (en) * 2020-10-29 2023-04-07 连尚(新昌)网络科技有限公司 Video playing method, electronic equipment and storage medium
CN112738633B (en) * 2020-12-25 2023-06-23 广州繁星互娱信息科技有限公司 Video playing method, device, equipment and readable storage medium
CN113902609B (en) * 2021-03-17 2022-06-10 广州市保伦电子有限公司 Method and device for smoothly rendering control animation based on OpenGL embedded device
CN114780002A (en) * 2022-04-19 2022-07-22 北京悦学帮网络技术有限公司 Audio file marking method, audio file playing method, audio file marking device, audio file playing device and electronic equipment
CN116628374A (en) * 2023-07-19 2023-08-22 共道网络科技有限公司 Display method and device of browser interface, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347214A (en) * 2013-06-29 2013-10-09 深圳市龙视传媒有限公司 Television program information display method, device and mobile terminal
CN103458203A (en) * 2012-06-05 2013-12-18 联想(北京)有限公司 Terminal device and video display control method
CN105898610A (en) * 2015-10-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Automatic video list playing method and device
CN106303664A (en) * 2016-10-13 2017-01-04 合信息技术(北京)有限公司 Video broadcasting method and device
CN106331740A (en) * 2016-09-20 2017-01-11 广州华多网络科技有限公司 Live streaming room switching method, device and system of mobile client
CN106657657A (en) * 2016-12-30 2017-05-10 广州华多网络科技有限公司 Mobile terminal and video browsing method and system for mobile terminal
JP2017107549A (en) * 2016-11-02 2017-06-15 株式会社リコー Program, method, information processing apparatus, and video display system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9071798B2 (en) * 2013-06-17 2015-06-30 Spotify Ab System and method for switching between media streams for non-adjacent channels while providing a seamless user experience
CN103618919B (en) * 2013-11-19 2017-09-05 深圳Tcl新技术有限公司 The method and apparatus that Web TV loads video
CN103686414B (en) * 2013-12-19 2018-08-07 北京奇艺世纪科技有限公司 Internet video playback method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458203A (en) * 2012-06-05 2013-12-18 联想(北京)有限公司 Terminal device and video display control method
CN103347214A (en) * 2013-06-29 2013-10-09 深圳市龙视传媒有限公司 Television program information display method, device and mobile terminal
CN105898610A (en) * 2015-10-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Automatic video list playing method and device
CN106331740A (en) * 2016-09-20 2017-01-11 广州华多网络科技有限公司 Live streaming room switching method, device and system of mobile client
CN106303664A (en) * 2016-10-13 2017-01-04 合信息技术(北京)有限公司 Video broadcasting method and device
JP2017107549A (en) * 2016-11-02 2017-06-15 株式会社リコー Program, method, information processing apparatus, and video display system
CN106657657A (en) * 2016-12-30 2017-05-10 广州华多网络科技有限公司 Mobile terminal and video browsing method and system for mobile terminal

Also Published As

Publication number Publication date
CN108235086A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108235086B (en) Video playing control method and device and corresponding terminal
CN107948740B (en) Video playing control method, device and terminal
CN108055569B (en) Live broadcast room barrage sending method and device and corresponding terminal
JP7062092B2 (en) Display control method and terminal
CN111294638B (en) Method, device, terminal and storage medium for realizing video interaction
WO2016066092A1 (en) Multimedia playing controlling method and device, and storage medium
US9720567B2 (en) Multitasking and full screen menu contexts
WO2018157812A1 (en) Method and apparatus for implementing video branch selection and playback
CN110784771B (en) Video sharing method and electronic equipment
WO2020211683A1 (en) Method for controlling multiple screens and terminal
US20210352040A1 (en) Message sending method and terminal device
CN108334272B (en) Control method and mobile terminal
US20140282204A1 (en) Key input method and apparatus using random number in virtual keyboard
CN110659098B (en) Data updating method and device, terminal equipment and storage medium
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
CN109830248B (en) Audio recording method and terminal equipment
CN111124207B (en) Multimedia file playing method and electronic equipment
WO2021175143A1 (en) Picture acquisition method and electronic device
AU2014266178A1 (en) Method and apparatus for using electronic device
CN110597478A (en) Audio output method and electronic equipment
CN107948756B (en) Video synthesis control method and device and corresponding terminal
CN111049977B (en) Alarm clock reminding method and electronic equipment
CN110888854A (en) Content sharing method and electronic equipment
EP4125274A1 (en) Method and apparatus for playing videos
CN110851106A (en) Audio output method and electronic equipment

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180629

Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000030

Denomination of invention: Video playing control method, device and corresponding terminal

License type: Common License

Record date: 20210125

GR01 Patent grant
GR01 Patent grant