[go: up one dir, main page]

CN110267090B - Video playing control method and device, electronic equipment and storage medium - Google Patents

Video playing control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110267090B
CN110267090B CN201910651947.1A CN201910651947A CN110267090B CN 110267090 B CN110267090 B CN 110267090B CN 201910651947 A CN201910651947 A CN 201910651947A CN 110267090 B CN110267090 B CN 110267090B
Authority
CN
China
Prior art keywords
touch event
list page
touch
event
currently
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
CN201910651947.1A
Other languages
Chinese (zh)
Other versions
CN110267090A (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.)
Beijing ByteDance Network Technology 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 CN201910651947.1A priority Critical patent/CN110267090B/en
Publication of CN110267090A publication Critical patent/CN110267090A/en
Application granted granted Critical
Publication of CN110267090B publication Critical patent/CN110267090B/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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • 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
    • 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
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a method and a device for controlling video playing, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a touch event on a list page, wherein the list page is used for displaying a plurality of video playing windows; and if the list page is currently in automatic scrolling, shielding the currently acquired touch event. The technical scheme of the embodiment of the disclosure can prevent the list page from being interrupted in the automatic scrolling process so as to ensure that the video to be played is in a proper position on the screen.

Description

Video playing control method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer software, in particular to a method and a device for controlling video playing, electronic equipment and a storage medium.
Background
With the popularization of intelligent terminals, application software (APP) with various functions is gradually increased, and the functions of the APP are also in continuous upgrade and update. In the prior art, in some scenes of a video playing process, a playlist needs to be automatically scrolled in a direction of a target list item to be played, for example, when a previous list item is played, the playlist needs to be automatically scrolled upwards to play a next list item at a reasonable position, and in the previous list item playing process, when a user clicks some other list item, the playlist needs to be automatically scrolled to the clicked list item, so as to ensure that a playing area of the target list item is completely visible or at a specified position.
In the prior art, in the process of automatically scrolling a target list item of a playlist to a target position to be played, if a user touches the screen again, the playlist stops automatically scrolling, and instead, the user slides, a position where the playlist is finally parked may be different from the target position, so that the target list item finally deviates from the target position and does not scroll to a proper position of the screen.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for controlling video playback, so as to ensure that a list item to be played is in a proper position on a screen.
Additional features and advantages of the disclosed embodiments will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosed embodiments.
In a first aspect, an embodiment of the present disclosure provides a method for controlling video playing, including:
acquiring a touch event on a list page, wherein the list page is used for displaying a plurality of video playing windows;
and if the list page is currently in automatic scrolling, shielding the currently acquired touch event.
In a second aspect, an embodiment of the present disclosure further provides a control device for video playing, including:
the device comprises a touch event acquisition unit, a display unit and a display unit, wherein the touch event acquisition unit is used for acquiring touch events on a list page, and the list page is used for displaying a plurality of video playing windows;
and the scroll state processing unit is used for shielding the currently acquired touch event if the list page is currently in automatic scroll.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the instructions of the method of any one of the first aspects.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method according to any one of the first aspect.
The technical scheme provided by the embodiment of the disclosure has the beneficial technical effects that:
according to the embodiment of the disclosure, after the touch event on the list page is acquired, if the list page is determined to be currently in automatic scrolling, the touch event is shielded, so that the list page is not interrupted in the automatic scrolling process, and the video to be played is ensured to be in the proper position of the screen.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments of the present disclosure will be briefly described below, and it is obvious that the drawings in the following description are only a part of the embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present disclosure and the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for controlling video playing according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another control method for video playing according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a scenario of multiple touch events according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a control device for video playing according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another control device for video playing provided in the embodiment of the present disclosure;
FIG. 6 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the embodiments of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments, but not all embodiments, of the embodiments of the present disclosure. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present disclosure, belong to the protection scope of the embodiments of the present disclosure.
It should be noted that the terms "system" and "network" are often used interchangeably in the embodiments of the present disclosure. Reference to "and/or" in embodiments of the present disclosure is intended to "include any and all combinations of one or more of the associated listed items. The terms "first", "second", and the like in the description and claims of the present disclosure and in the drawings are used for distinguishing between different objects and not for limiting a particular order.
It should also be noted that, in the embodiments of the present disclosure, each of the following embodiments may be executed alone, or may be executed in combination with each other, and the embodiments of the present disclosure are not limited specifically.
The names of messages or information exchanged between 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.
The technical solutions of the embodiments of the present disclosure are further described by the following detailed description in conjunction with the accompanying drawings.
Fig. 1 shows a flowchart of a control method for video playing provided by an embodiment of the present disclosure, and this embodiment is applicable to a case where a list page is used to automatically play videos, for example, the method may be used to play multiple videos immersive through the list page. The method may be executed by a control device configured in a terminal for video playing, as shown in fig. 1, the method for controlling video playing according to this embodiment includes:
in step S110, a touch event on the list page is acquired.
Wherein the list page is used for displaying a plurality of video playing windows. And one list item is used for displaying a video playing window and playing the corresponding video when the user selects the list item, or determining that the list item automatically plays the corresponding video by adopting a set mechanism.
The touch event on the list page may be of various types, such as a finger-down event on the list page, a finger-slide event on the list page, a touch-end event on the list page, and a cancel event.
In step S120, if the list page is currently in automatic scrolling, the currently acquired touch event is masked.
I.e., a touch event during automatic scrolling of the list page, is unresponsive so that the list page continues to scroll without interruption so that the list page stops where the scrolling is expected to stop to ensure that the video to be played is in the proper position on the screen.
In this embodiment, after the touch event on the list page is acquired, if it is determined that the list page is currently in the automatic scrolling, the touch event is masked. The technical scheme of the embodiment can ensure that the list page is not interrupted in the automatic scrolling process so as to ensure that the video to be played is in the proper position of the screen.
On the basis of the above embodiments, if the list page is not currently in the auto-scroll, the touch event processing method includes various methods, for example, the touch event may be directly responded to, or other methods may also be adopted, for example, a shielded touch event sequence may be recorded in the auto-scroll process of the list page, and the currently acquired touch event may be responded to according to the recorded result. As shown in fig. 2, the method for controlling video playing according to this embodiment includes:
in step S210, a touch event on the list page is acquired.
In step S220, if the list page is currently in automatic scrolling, the currently acquired touch event is masked.
The steps S210 to S220 are the same as the steps S110 to S120 in the previous embodiment, and are not described herein again.
In step S230, the sequence of masked touch events is recorded during the auto-scroll of the list page.
It should be noted that, in step S230, the masked touch event sequence is recorded during the automatic scrolling process of the list page, and various methods may be adopted, for example, the type of the received touch event may be sequentially recorded during the automatic scrolling process of the list page, and for example, the first masked touch event and the last masked touch event may be recorded during the automatic scrolling process of the list page.
If the masked touch event sequence is recorded in the latter manner, that is, the first masked touch event and the last masked touch event are recorded, it is determined that there are no masked touch events when both records are null values; if the first masked touch event is a touch start event and the last masked touch event is a touch end event, determining that the complete touch event sequence is masked; if the first masked touch event does not belong to a touch start event or the last masked touch event does not belong to a touch end event, it may be determined that the sequence of masked touch events does not belong to the complete sequence of touch events.
If the masked touch event sequence is recorded in the former way, that is, the types of the received touch events are recorded in sequence in the automatic scrolling process of the list page, on one hand, the recorded data size is large, and on the other hand, information search is required when the information is determined according to the recorded result, and the overall efficiency is not as good as the way of recording the first masked touch event and the last masked touch event.
In step S240, if the list page is not currently in the auto-scroll, a response is made to the currently acquired touch event according to the recorded result.
For example, if it is determined that there is no masked touch event according to the recorded result, a currently acquired touch event is responded.
That is, no touch event occurs during the scrolling phase, and touch events occurring thereafter are not affected, so that subsequent acquired touch events can be responded to normally as normal.
For another example, if it is determined that the complete touch event sequence is masked according to the recorded result, the currently acquired touch event is responded, and the recorded result is reset to the touch event that is not masked.
That is, a complete touch event occurs during the scrolling phase, and a touch event occurring behind it is not affected, so that a touch event acquired behind it can be responded to normally in a conventional manner. In order to record the masked touch event sequence in the next automatic scrolling stage conveniently, the recorded result needs to be reset, and the recorded result is reset to be the touch event which is not masked, for example, if a recording mode of sequentially recording the types of the received touch events is adopted, the recording is cleared and reset is performed; if the recording mode of recording the first masked touch event and the last masked touch event is adopted, the first masked touch event and the last masked touch event are set as null values.
For another example, if it is determined that the last masked touch event does not belong to the touch end event according to the recorded result and the currently acquired touch event belongs to the touch end event, the currently acquired touch event is responded, and the recorded result is reset as the unmasked touch event.
That is, if the touch sequence is not completed in the scroll phase, the scroll is automatically stopped before the touch end event, and the touch end event occurs after the scroll is stopped, the touch end event is responded, and the subsequent touch event is not affected from then on, so that, similar to the above reason, it is necessary to reset the result of this recording in order to record the masked touch event sequence in the next auto scroll phase.
For another example, if it is determined that the last masked touch event does not belong to the touch end event and the currently acquired touch event does not belong to the touch end event according to the recorded result, the currently acquired touch event is masked.
That is, the touch sequence is not finished in the scrolling stage, the sliding event continues to occur after the automatic scrolling is stopped, and at this time, the sliding event is responded, on one hand, because a part is shielded in the front, the starting time of slicing the event may be earlier than that when the automatic scrolling is finished, and the distance of the response may not match with the distance of the actual sliding operation; on the other hand, due to inertia, the sliding speed at the end of the automatic scrolling is already large, and the speed is in a state from static to suddenly large, and the picture is likely to jump.
To avoid the above problem, the auto-scroll is continuously masked and then the sliding event is continuously generated until the touch end event occurs, the touch end event is responded as it is, and the recorded result is reset to the touch event that is not masked.
In an embodiment, the responding to the currently acquired touch event refers to responding according to the intention of the touch event, for example, if the touch event is a sliding event, the list page is controlled to scroll according to the sliding direction and speed, and for example, if the touch event is a touch end event or a cancel event, the list page is controlled to stop scrolling.
In an embodiment, a complete sequence of touch events may include, in sequence, a touch start event, one or more slide events, and a touch end event or cancel event. The determining that the complete sequence of touch events is masked based on the recorded results may be that the recorded results indicate that the masked sequence of touch events is the complete sequence of touch events that meets the requirements.
Based on the above embodiment, the shielded touch event sequence is recorded in the automatic scrolling process of the list page, and after the touch event on the list page is acquired, if the list page is not currently in automatic scrolling, the currently acquired touch event is responded according to the recorded result to process the touch event after the automatic scrolling is finished. Since the touch event in the automatic scrolling process of the list page is ignored in step S220, if the automatic scrolling is finished and the normal processing of the touch event is directly resumed, a picture may jump. According to the technical scheme of the embodiment, the various situations that the list page is not in the automatic scrolling currently are correspondingly processed, so that the phenomenon that the picture jumps when the touch event is processed after the automatic scrolling is finished can be avoided.
Further, if it is determined that the list page is currently in the automatic scrolling ending state, the last masked touch event is determined to belong to the touch ending event according to the recorded result, and the masked touch event sequence does not belong to the complete touch event sequence, a response to one touch ending event is added, so that the influence on the processing of the next touch event can be avoided.
It should be noted that the specific technical solution of the embodiment of the present disclosure is not limited to the operating system type and the component type adopted by the list page, and further implementation details of the technical solution may be adaptively set according to the operating system type to which the method is applied and the component type adopted by the list page.
Wherein the operation in response to the touch event can process the touch event in a default manner of the looping view component parent class.
In an embodiment, the touch event on the list page may be a touch event on the list page itself, or may be a sub-view (hereinafter referred to as a sub-instance) of the list page, for example, a touch event on a list item. Generally, if the former is the former, the event is intercepted and processed by the user; if the latter, the touch event is distributed to the corresponding sub-view.
If the list page is currently in automatic scrolling, touch events on the list page are not distinguished, and as long as the touch events on the list page are intercepted, the touch events are ignored and are not processed, so that the scrolling period of the list page is absolutely not interrupted by any touch event on the list page. However, if the list page is not currently in the automatic scrolling, default interception processing of a parent class is adopted, and if the default interception processing of the parent class is adopted to intercept the touch event, the touch event is processed.
That is, if the list page is not currently in the automatic scrolling and the touch event is a touch event to a sub-instance of the list page, the touch event is issued to the sub-instance for processing.
It should be noted that the specific implementation details of the technical solution are different according to the operating system and the components used by the list page of the application scenario. The specific method is described below by taking an example in which the list page is instantiated as a subclass of a RecycleView component.
And instantiating the list page into an instance of a subclass inheriting a RecycleView component, and responding to a trigger command of a user by rewriting an onInterceptTouchent function and an onTouchent function of the subclass.
The logic for the specific response of the list page to a touch event is: acquiring a touch event on the list page, when the current state of the list page is an automatic scrolling state, directly returning true to an onInterceptTouchent function and an onTouchent function, and otherwise calling the onInterceptTouchent function and the onTouchent function of a parent component (namely a RecycleView component) to realize normal response to the touch event. The onInterceptTouchent function returns true, the processing of the list page on the event is shielded, and the subsequent event is received by the onTouchent function; the ontouchavent function directly returns true to consume the trigger event, but does not actually perform any processing, so that the list page ignores user sliding during automatic scrolling, and resumes normal processing of the touch event of the user after the automatic scrolling is finished.
When normal processing of the touch event of the user is resumed, since the touch event in the scrolling process is ignored before that, if the normal processing of the touch event is resumed directly after the automatic scrolling is finished, a screen may jump. Fig. 3 is a schematic view of a plurality of touch events according to an embodiment of the present disclosure, and various shielded scenes of the embodiment are shown in fig. 3, where D represents a touch start event, for example, a finger press instruction, M represents a slide event, for example, a finger slide instruction, U represents a touch end event, for example, a finger lift instruction, and C represents a cancel event. For example, line segment 2, D- > M … M- > U/CD represents a sequence of touch events [ finger down, finger slide …, finger off/cancel ]. The black line segments 1-6 represent the time periods for which the list page automatically scrolls.
Wherein, the processing logic of the onInterceptTouchent function comprises: if the current event is in automatic rolling, directly returning to intercept the event; otherwise, default processing of the parent class is adopted.
Wherein, the processing logic of the ontouchvent function comprises:
if the touch event is currently in automatic scrolling, updating the marking variable and ignoring the touch event; otherwise, if the current state is not in automatic scrolling, the following conditions are divided:
(1) if it is scene 1 or scene 3 (no event is ignored at this time), default processing of the parent class is adopted.
(2) If scenario 2 (where the complete event sequence is ignored), default handling of the parent class is employed, while the flag variable is reset.
(3) If it is scene 4 or scene 5 (at this time, the current touch event sequence is not yet ended): if the type of the current touch event is a trigger ending instruction, a canceling instruction is reissued, and the mark is reset at the same time; otherwise, the touch event is directly ignored.
Wherein the processing logic at the end of auto-scroll comprises: if the scene 6 is detected (the second half of the touch event sequence is ignored), a cancel event is reissued.
In this embodiment, after a touch event on a list page is acquired, when it is determined that the current state of the list page is an auto-scroll state, the touch event is masked, and if the list page is not currently in the auto-scroll, the processing is performed on a case-by-case basis when the default interception processing of the parent class is adopted as intercepting the touch event, so that the occurrence of screen jumping during the processing of the touch event after the auto-scroll is finished can be avoided.
As an implementation of the methods shown in the above figures, the present application provides an embodiment of a control apparatus for video playback, which corresponds to the method embodiments shown in fig. 1, fig. 2, and fig. 3, and which is particularly applicable to various electronic devices. As shown in fig. 4, the control apparatus for video playing according to the present embodiment includes a touch event acquiring unit 410 and a scroll state processing unit 420.
Wherein the touch event acquiring unit 410 is configured to acquire a touch event on a list page, wherein the list page is used for displaying a plurality of video playing windows.
The scroll state processing unit 420 is configured to mask a currently acquired touch event if the list page is currently in auto-scroll.
Further, the device is used for an android operating system; the device is used for instantiating the list page into an instance of the circular view component subclass, and controlling video playing through the instance.
The control device for video playing provided by the embodiment can execute the control method for video playing provided by the embodiment of the method disclosed by the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 5 is a schematic structural diagram of another control apparatus for video playing provided in an embodiment of the present disclosure, which may be combined with the foregoing embodiments, and as shown in fig. 5, the control apparatus for video playing described in this embodiment includes a touch event acquiring unit 510, a scroll state processing unit 520, an information recording unit 530, and a non-scroll state processing unit 540.
The touch event acquiring unit 510 is configured to acquire a touch event on a list page, wherein the list page is used for displaying a plurality of video playing windows;
the scroll state processing unit 520 is configured to mask a currently acquired touch event if the list page is currently in auto-scroll.
The information recording unit 530 is configured to record a masked sequence of touch events during the auto-scroll of the list page;
the non-scroll state processing unit 540 is configured to, after acquiring a touch event on a list page, respond to the currently acquired touch event according to the recorded result if the list page is not currently in auto-scroll.
Further, the non-scroll state processing unit 540 is configured to respond to the currently acquired touch event if it is determined that there is no masked touch event according to the recorded result;
and if the complete touch event sequence is determined to be shielded according to the recorded result, responding to the currently acquired touch event, and resetting the recorded result to be the unmasked touch event.
Alternatively, the non-scroll state processing unit 540 is configured to respond to the currently acquired touch event and reset the recorded result to be the unmasked touch event if it is determined that the last masked touch event does not belong to the touch end event and the currently acquired touch event belongs to the touch end event according to the recorded result.
The non-scroll state processing unit 540 is configured to mask the currently acquired touch event if it is determined that the last masked touch event does not belong to the touch end event and the currently acquired touch event does not belong to the touch end event according to the recorded result.
Further, the apparatus further includes an integrity processing unit (not shown in fig. 5), configured to, if it is determined that the list page is currently at the end of the auto-scroll, determine that the last masked touch event belongs to a touch end event according to the recorded result, and the sequence of masked touch events does not belong to the complete sequence of touch events, add a response to the touch end event.
Further, the information recording unit 530 is configured to record a first masked touch event and a last masked touch event during the automatic scrolling of the list page.
Further, the apparatus can be used in an android operating system, and the apparatus is configured to instantiate the list page as an instance of a circular view component subclass, through which control of video playback is performed.
Further, the non-scroll state processing unit 540 responding to the currently acquired touch event includes processing the currently acquired touch event in a default manner of the rotation view component parent class.
Further, the non-scroll state processing unit 540 is configured to, if the list page is not currently in automatic scroll and the currently acquired touch event is a touch event for a sub-instance of the list page, issue the currently acquired touch event to the sub-instance for processing.
The control device for video playing provided by the embodiment can execute the control method for video playing provided by the embodiment of the method disclosed by the invention, and has corresponding functional modules and beneficial effects of the execution method.
Referring now to FIG. 6, a block diagram of an electronic device 600 suitable for use in 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. 6 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.
As shown in fig. 6, 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, etc.; 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. 6 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 embodied on a computer readable medium, the computer program comprising 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 may be installed from the storage means 608, or may be 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 described above in the embodiments of the present disclosure may 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 disclosed embodiments, 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 disclosed embodiments, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, 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.
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:
acquiring a touch event on a list page, wherein the list page is used for displaying a plurality of video playing windows;
and if the list page is currently in automatic scrolling, shielding the currently acquired touch event.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including 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 units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
According to one or more embodiments of the present disclosure, the method for controlling video playing further includes recording a sequence of touch events and neglecting of the touch events during the automatic scrolling of the list page;
if the list page is not in automatic scrolling currently, the touch event is processed as follows:
responding to the touch event if no touch event is identified to be ignored according to the recording result;
if the complete touch event sequence is identified to be ignored according to the recording result, responding to the touch event and resetting the record of the touch event sequence;
if the current touch event sequence is not finished according to the recording result, and the touch event is a touch finishing event, reissuing a cancel event and resetting a mark; and if the current touch event sequence is determined not to be ended according to the marking variable and the touch event is not a touch ending event, ignoring the touch event.
According to one or more embodiments of the present disclosure, the method for controlling video playback further includes recording a sequence of masked touch events during auto-scrolling of the list page;
the method further includes responding to the currently acquired touch event according to the recorded result if the list page is not currently in automatic scrolling after the touch event on the list page is acquired.
According to one or more embodiments of the present disclosure, in the method for controlling video playback, responding to the currently acquired touch event according to the recorded result includes:
if the touch event which is not shielded is determined according to the recorded result, responding to the currently acquired touch event;
and if the complete touch event sequence is determined to be shielded according to the recorded result, responding to the currently acquired touch event, and resetting the recorded result to be the unmasked touch event.
According to one or more embodiments of the present disclosure, in the method for controlling video playback, responding to the currently acquired touch event according to the recorded result includes:
and if the last shielded touch event is determined not to belong to the touch end event according to the recorded result and the currently acquired touch event belongs to the touch end event, responding to the currently acquired touch event and resetting the recorded result to be the unmasked touch event.
According to one or more embodiments of the present disclosure, in the method for controlling video playback, responding to the currently acquired touch event according to the recorded result includes:
and if the last shielded touch event is determined not to belong to the touch end event according to the recorded result and the currently acquired touch event does not belong to the touch end event, shielding the currently acquired touch event.
According to one or more embodiments of the present disclosure, the method for controlling video playback further includes: and if the list page is determined to be currently in the automatic scrolling ending state, determining that the last shielded touch event belongs to the touch ending event according to the recorded result, and the shielded touch event sequence does not belong to the complete touch event sequence, and increasing response to one touch ending event.
According to one or more embodiments of the present disclosure, in the method for controlling video playback, recording a sequence of masked touch events during auto-scrolling of the list page includes: recording a first masked touch event and a last masked touch event during the automatic scrolling of the list page.
According to one or more embodiments of the disclosure, the control method of video playing is used for an android operating system;
the control method of video playing is used for instantiating the list page into an instance of the circular view component subclass, and controlling video playing through the instance.
According to one or more embodiments of the present disclosure, in the method for controlling video playing, responding to the currently acquired touch event includes processing the currently acquired touch event in a default manner of the parent class of the circulation view component.
According to one or more embodiments of the present disclosure, the method for controlling video playback further includes:
and if the list page is not in automatic scrolling currently and the currently acquired touch event is a touch event for the subinstance of the list page, issuing the currently acquired touch event to the subinstance for processing.
According to one or more embodiments of the present disclosure, the control apparatus for video playback further includes an information recording unit and a non-scroll state processing unit;
wherein the information recording unit is used for recording the shielded touch event sequence in the automatic scrolling process of the list page;
the non-scroll state processing unit is used for responding to the currently acquired touch event according to the recorded result if the list page is not in automatic scroll currently after the touch event on the list page is acquired.
According to one or more embodiments of the present disclosure, in the control device for video playback, the non-scroll state processing unit is configured to: and if the touch event which is not shielded is determined according to the recorded result, responding to the currently acquired touch event.
According to one or more embodiments of the present disclosure, in the control device for video playback, the non-scroll state processing unit is configured to: and if the complete touch event sequence is determined to be shielded according to the recorded result, responding to the currently acquired touch event, and resetting the recorded result to be the unmasked touch event.
According to one or more embodiments of the present disclosure, in the control device for video playback, the non-scroll state processing unit is configured to: and if the last shielded touch event is determined not to belong to the touch end event according to the recorded result and the currently acquired touch event belongs to the touch end event, responding to the currently acquired touch event and resetting the recorded result to be the unmasked touch event.
According to one or more embodiments of the present disclosure, in the control device for video playback, the non-scroll state processing unit is configured to: and if the last shielded touch event is determined not to belong to the touch end event according to the recorded result and the currently acquired touch event does not belong to the touch end event, shielding the currently acquired touch event.
According to one or more embodiments of the present disclosure, the control apparatus for video playback further includes an integrity processing unit configured to, if it is determined that the list page is currently at the end of the auto-scroll, determine that the last masked touch event belongs to a touch end event according to the recorded result, and the sequence of masked touch events does not belong to the complete sequence of touch events, increase a response to one touch end event.
According to one or more embodiments of the present disclosure, in the control apparatus for video playback, the information recording unit is configured to: recording a first masked touch event and a last masked touch event during the automatic scrolling of the list page.
According to one or more embodiments of the disclosure, the control device for video playing is used for an android operating system;
the device is used for instantiating the list page into an instance of the circular view component subclass, and controlling video playing through the instance.
According to one or more embodiments of the present disclosure, in the control device for video playback, the non-scroll state processing unit, in response to the currently acquired touch event, includes processing the currently acquired touch event in a default manner of the looping view component parent class.
According to one or more embodiments of the present disclosure, in the control device for video playing, the non-scroll state processing unit is configured to, if the list page is not currently in automatic scroll and the currently acquired touch event is a touch event for a subinstance of the list page, send the currently acquired touch event to the subinstance for processing.
The foregoing description is only a preferred embodiment of the disclosed embodiments 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 in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the scope of the present disclosure. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (12)

1. A method for controlling video playback, comprising:
acquiring a touch event on a list page, wherein the list page is used for displaying a plurality of video playing windows;
if the list page is currently in automatic scrolling, shielding the currently acquired touch event;
recording a sequence of masked touch events during automatic scrolling of the list page;
the method further includes responding to the currently acquired touch event according to the recorded result if the list page is not currently in automatic scrolling after the touch event on the list page is acquired.
2. The method of claim 1, wherein responding to the currently acquired touch event based on the recorded results comprises:
if the touch event which is not shielded is determined according to the recorded result, responding to the currently acquired touch event;
and if the complete touch event sequence is determined to be shielded according to the recorded result, responding to the currently acquired touch event, and resetting the recorded result to be the unmasked touch event.
3. The method of claim 1, wherein responding to the currently acquired touch event based on the recorded results comprises:
and if the last shielded touch event is determined not to belong to the touch end event according to the recorded result and the currently acquired touch event belongs to the touch end event, responding to the currently acquired touch event and resetting the recorded result to be the unmasked touch event.
4. The method of claim 1, wherein responding to the currently acquired touch event based on the recorded results comprises:
and if the last shielded touch event is determined not to belong to the touch end event according to the recorded result and the currently acquired touch event does not belong to the touch end event, shielding the currently acquired touch event.
5. The method of claim 1, further comprising:
and if the list page is determined to be currently in the automatic scrolling ending state, determining that the last shielded touch event belongs to the touch ending event according to the recorded result, and the shielded touch event sequence does not belong to the complete touch event sequence, and increasing response to one touch ending event.
6. The method of claim 1, wherein recording the sequence of masked touch events during the auto-scroll of the list page comprises: recording a first masked touch event and a last masked touch event during the automatic scrolling of the list page.
7. The method according to any one of claims 1-6, wherein:
the method is used for an android operating system;
and instantiating the list page into an instance of a circular view component subclass, and controlling video playing through the instance.
8. The method of claim 7, wherein responding to the currently captured touch event comprises processing the currently captured touch event in a default manner of the rotating view component parent.
9. The method of claim 7, further comprising:
and if the list page is not in automatic scrolling currently and the currently acquired touch event is a touch event for the subinstance of the list page, issuing the currently acquired touch event to the subinstance for processing.
10. An apparatus for controlling video playback, the apparatus comprising:
the device comprises a touch event acquisition unit, a display unit and a display unit, wherein the touch event acquisition unit is used for acquiring touch events on a list page, and the list page is used for displaying a plurality of video playing windows;
the scroll state processing unit is used for shielding the currently acquired touch event if the list page is currently in automatic scroll;
an information recording unit, configured to record a masked sequence of touch events during auto-scrolling of the list page;
and the non-rolling state processing unit is used for responding to the currently acquired touch event according to the recorded result if the list page is not in automatic rolling at present after the touch event on the list page is acquired.
11. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
instructions which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1-9.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
CN201910651947.1A 2019-07-18 2019-07-18 Video playing control method and device, electronic equipment and storage medium Active CN110267090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910651947.1A CN110267090B (en) 2019-07-18 2019-07-18 Video playing control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910651947.1A CN110267090B (en) 2019-07-18 2019-07-18 Video playing control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110267090A CN110267090A (en) 2019-09-20
CN110267090B true CN110267090B (en) 2021-09-17

Family

ID=67926976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910651947.1A Active CN110267090B (en) 2019-07-18 2019-07-18 Video playing control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110267090B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008071196A2 (en) * 2006-12-15 2008-06-19 Bang & Olufsen A/S A touch sensitive device
CN103984502A (en) * 2014-05-30 2014-08-13 天津三星通信技术研究有限公司 Method for capturing screen content and portable terminal
CN105892871A (en) * 2016-03-31 2016-08-24 维沃移动通信有限公司 Method for scrolling page and electronic equipment
CN106547465A (en) * 2016-10-14 2017-03-29 青岛海信移动通信技术股份有限公司 A kind of fast operating method and mobile terminal of mobile terminal
CN107707764A (en) * 2017-10-20 2018-02-16 维沃移动通信有限公司 The control method and mobile terminal of a kind of application
CN108388393A (en) * 2018-01-02 2018-08-10 阿里巴巴集团控股有限公司 Mobile terminal clicks recognition methods and the device of event

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7333092B2 (en) * 2002-02-25 2008-02-19 Apple Computer, Inc. Touch pad for handheld device
CN108021259B (en) * 2016-11-03 2021-03-30 华为技术有限公司 False touch prevention method and electronic equipment
CN106681554B (en) * 2016-12-16 2019-09-06 Oppo广东移动通信有限公司 A control method, device and mobile terminal for a touch screen of a mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008071196A2 (en) * 2006-12-15 2008-06-19 Bang & Olufsen A/S A touch sensitive device
CN103984502A (en) * 2014-05-30 2014-08-13 天津三星通信技术研究有限公司 Method for capturing screen content and portable terminal
CN105892871A (en) * 2016-03-31 2016-08-24 维沃移动通信有限公司 Method for scrolling page and electronic equipment
CN106547465A (en) * 2016-10-14 2017-03-29 青岛海信移动通信技术股份有限公司 A kind of fast operating method and mobile terminal of mobile terminal
CN107707764A (en) * 2017-10-20 2018-02-16 维沃移动通信有限公司 The control method and mobile terminal of a kind of application
CN108388393A (en) * 2018-01-02 2018-08-10 阿里巴巴集团控股有限公司 Mobile terminal clicks recognition methods and the device of event

Also Published As

Publication number Publication date
CN110267090A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN112261226A (en) Horizontal screen interaction method, device, electronic device and storage medium
CN110401877B (en) Video playing control method and device, electronic equipment and storage medium
US20250016420A1 (en) Information replay method and apparatus, electronic device, computer storage medium, and product
CN111510760A (en) Video information display method and device, storage medium and electronic equipment
US12316903B2 (en) Video playback control method and apparatus, electronic device and storage medium
US12284424B2 (en) Video-based information displaying method and apparatus, device and medium
US12050638B2 (en) Multimedia playing method and device
CN109582893A (en) A kind of page display position jump method, device, terminal device and storage medium
CN115474086B (en) Playback control method, device, electronic device and storage medium
US20240281116A1 (en) Interaction method and apparatus, device, computer-readable storage medium and product
CN109600656A (en) A kind of video list display methods, device, terminal device and storage medium
US20220004581A1 (en) Comment content display method, apparatus and device, and storage medium
WO2024060943A1 (en) Comment information publishing method and apparatus, electronic device, and storage medium
WO2022227931A1 (en) Screen recording interaction method and apparatus, and electronic device and computer-readable storage medium
CN111459598A (en) Information display method and device, electronic equipment and storage medium
CN109600655A (en) Method, applications client and the electronic equipment that barrage is shown in applications client
AU2023319516A1 (en) Control method and apparatus for media content, and electronic device and storage medium
CN115269084A (en) Target function display method, device, equipment, readable storage medium and product
JP7490084B2 (en) Message detail screen display method, device and electronic device
CN110267088B (en) Video playing control method and device, electronic equipment and storage medium
US20250200271A1 (en) Method and device for prompting
CN119201303A (en) Page display method, device, equipment and storage medium
EP4343581A1 (en) Information processing method and apparatus, and device
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
CN110267090B (en) Video playing control method and device, electronic equipment and storage medium

Legal Events

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