CN110401877B - 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
CN110401877B
CN110401877B CN201910651954.1A CN201910651954A CN110401877B CN 110401877 B CN110401877 B CN 110401877B CN 201910651954 A CN201910651954 A CN 201910651954A CN 110401877 B CN110401877 B CN 110401877B
Authority
CN
China
Prior art keywords
list item
player
display
list
state
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
CN201910651954.1A
Other languages
Chinese (zh)
Other versions
CN110401877A (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 CN201910651954.1A priority Critical patent/CN110401877B/en
Publication of CN110401877A publication Critical patent/CN110401877A/en
Application granted granted Critical
Publication of CN110401877B publication Critical patent/CN110401877B/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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations

Landscapes

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

Abstract

The embodiment of the disclosure discloses a method and a device for controlling video playing, an electronic device and a storage medium, wherein the method comprises the following steps: monitoring the display state of a list item currently in a playing state in a list page, wherein the list page is used for displaying a plurality of video playing windows, and the display state comprises full display, partial display and hidden display; and if the display state is changed into a hidden display state, pausing the player corresponding to the list item. According to the technical scheme of the embodiment of the disclosure, when the display state of the list item currently in the playing state in the monitored list page is changed into the hidden display state, the player corresponding to the list item is paused, so that the pause of the list page during rolling can be relieved.

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 application, in particular to a method and a device for controlling video playing, electronic equipment and a storage medium.
Background
With the popularization of the smart terminal, application software (APP) of various functions is gradually increased, and the functions of the APP are also in continuous upgrade and update.
In the prior art, for an interface in which a list page is used to play a video in an application program, when the list page is scrolled to switch the video, a phenomenon of scrolling pause usually occurs when a currently played list item is scrolled out of a screen.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a method and an apparatus for controlling video playing, an electronic device, and a storage medium, so as to alleviate the pause during scrolling of a list page.
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:
monitoring the display state of a list item currently in a playing state in a list page, wherein the list page is used for displaying a plurality of video playing windows, and the display state comprises full display, partial display and hidden display;
and if the display state is changed into a hidden display state, pausing the player corresponding to the list item.
In a second aspect, an embodiment of the present disclosure further provides a control device for video playing, including:
the display device comprises a state monitoring unit, a display unit and a display unit, wherein the state monitoring unit is used for monitoring the display state of a list item currently in a playing state in a list page, the list page is used for displaying a plurality of video playing windows, and the display state comprises complete display, partial display and hidden display;
and the play pause unit is used for pausing the player corresponding to the list item if the display state is changed into the hidden display state.
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 technical scheme provided by the embodiment, when the display state of the list item currently in the playing state in the list page is monitored to be changed into the hidden display state, the player corresponding to the list item is paused, and therefore before the list page is scrolled, the player does not need to be released, so that the phenomenon that the player is released in the list page scrolling process to cause blocking is avoided, and the list page scrolling process can be smoother.
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 flowchart of another control method for video playing according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another control method for video playing according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a control device for video playing according to an 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 this 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 method for controlling video playing provided by an embodiment of the present disclosure, where the present embodiment is applicable to a case where a video is played using an immersive list page, and the method may be executed by a control device for video playing configured in a terminal, as shown in fig. 1, the method for controlling video playing described in the present embodiment includes:
in step S110, the list item currently in the play state in the list page is monitored for a presentation state.
One list page comprises a plurality of list items, and one list item is used for displaying preview information of one video and playing the corresponding video when a user selects the list item or determining that the list item automatically plays the corresponding video by adopting a set mechanism.
The list page is used for displaying a plurality of video playing windows, and the display state comprises complete display, partial display, hidden display and the like. If all the preview information of the video displayed by the list item is visible, the display state of the list item is called as complete display; if the preview information of the video displayed by the list item is only partially visible, the display state of the list item is called partial display; and if all the preview information of the video displayed by the list item is invisible, the display state of the list item is called as hidden display.
It should be noted that, during the scrolling process of the list page (after the user slides the list page quickly, or the list page automatically scrolls due to the user triggering), the display state of each list page included in the list page may dynamically change, for example, when the list page scrolls upwards, the list items in front of the list page gradually change from full display to partial display and finally to hidden display; the list items behind the list page are gradually displayed from hidden display to partial display to full display, then to partial display and finally to hidden display.
In step S120, if the display state is changed to the hidden display state, the player corresponding to the list item is paused.
In application, if the list item is in a hidden display state, the corresponding video does not need to be played. In one mode, once the list item state is changed into the hidden display state, the player of the video corresponding to the list item is released. However, at this time, the list page may be scrolling, and when the electronic device is in a task of releasing the player, timeliness of scrolling the list item may be affected.
The specific time for releasing the player may be selected in multiple schemes, for example, scheme one further includes, after the player corresponding to the list item is paused, the following steps: and monitoring whether the list page stops rolling or not, and if so, releasing the player which is paused to play.
And in a second scheme, after the player corresponding to the list item is paused, the method further comprises the following steps: and determining a next target list item to be played in the list page, and multiplexing the player which has been paused to play the video corresponding to the target list item.
And in a third scheme, after the player corresponding to the list item is paused, the method further comprises the following steps: and determining whether a player corresponding to a next target list item to be played in the list page is in a playing state, and if so, releasing the player with the playing pause.
For example, the method is for an android operating system, and the method may be implemented by a loop view component (e.g., a RecycleView component) for displaying the list.
The monitoring operation can be realized by adding a monitoring module to the circulation view component for monitoring.
According to the technical scheme provided by the embodiment, when the display state of the list item currently in the playing state in the list page is monitored to be changed into the hidden display state, the player corresponding to the list item is paused, and therefore before the list page is rolled, the player does not need to be released, the phenomenon that the player is jammed due to release in the list page rolling process is avoided, and the list page rolling process can be smoother.
Fig. 2 is a schematic flow chart of another video playing control method provided in the embodiment of the present disclosure, and the embodiment is based on the foregoing embodiment and is optimized. As shown in fig. 2, the method for controlling video playing according to this embodiment includes:
in step S210, the list item currently in the play state in the list page is monitored for a presentation state.
The list page is used for displaying a plurality of video playing windows, and the display state comprises complete display, partial display and hidden display.
This step is the same as step S110 of the above embodiment, and the description of this embodiment is omitted here.
In step S220, if the display state is changed to the hidden display state, the player corresponding to the list item is paused.
This step is the same as step S120 of the above embodiment, and the description of this embodiment is omitted here.
In step S230, it is monitored whether the list page stops scrolling, and if so, the player paused is released.
When the list page stops rolling, on one hand, the triggering event of the boundary needs to be processed at this time, and the processor load of the electronic equipment is small, and on the other hand, when the list page is static, the player is released, and the operation effect of a user cannot be influenced.
According to the technical scheme, when the display state of the list item currently in the playing state in the list page is monitored to be changed into the hidden display state, the player corresponding to the list item is paused and released when the list page stops rolling, the phenomenon that the list page is blocked due to the fact that the player is released in the rolling process is avoided, and the rolling process of the list page can be smoother.
Fig. 3 is a schematic flow chart of another video playing control method provided in the embodiment of the present disclosure, and the embodiment is based on the foregoing embodiment and is optimized. As shown in fig. 3, the method for controlling video playing according to this embodiment includes:
in step S310, the list item currently in the play state in the list page is monitored for a presentation state.
The list page is used for displaying a plurality of video playing windows, and the display state comprises complete display, partial display and hidden display.
This step is the same as step S110 of the above embodiment, and the description of this embodiment is omitted here.
In step S320, if the display state is changed to the hidden display state, the player corresponding to the list item is paused.
This step is the same as step S120 of the above embodiment, and the description of this embodiment is omitted here.
In step S330, a next target list item to be played in the list page is determined, and the video corresponding to the target list item is played by the player whose playing is paused in a multiplexing manner.
Namely, the player resets the playing information to the initialized state, and sets the playing information according to the information of the video corresponding to the target list item, so that the player is directly used for playing the video corresponding to the next target list item to be played, and the release of the player and the new player of the instance is reduced.
According to the technical scheme provided by the embodiment, when the display state of the list item currently in the playing state in the list page is monitored to be changed into the hidden display state, the player corresponding to the list item is paused, after the next target list item to be played in the list page is determined, the video corresponding to the target list item is played by the paused player in a multiplexing mode, the release of the player and the instance new player is reduced, the phenomenon that the pause is caused by the release of the player or the instance new player in the list page rolling process is avoided, and the rolling process of the list page can be smoother.
Fig. 4 is a schematic flow chart of another video playing control method provided in the embodiment of the present disclosure, and the embodiment is based on the foregoing embodiment and is optimized. As shown in fig. 4, the method for controlling video playing according to this embodiment includes:
in step S410, the presentation status of the list item currently in the play status in the list page is monitored.
The list page is used for displaying a plurality of video playing windows, and the display state comprises complete display, partial display and hidden display.
This step is the same as step S110 of the above embodiment, and is not described herein again.
In step S420, if the display state is changed to the hidden display state, the player corresponding to the list item is paused.
This step is the same as step S120 of the above embodiment, and is not described herein again.
In step S430, it is determined whether a player corresponding to a next target list item to be played in the list page is in a playing state, and if so, the player whose playing is paused is released.
According to the technical scheme, when the display state of the list item currently in the playing state in the monitored list page is changed into the hidden display state, the player corresponding to the list item is paused, and when the player corresponding to the next target list item to be played in the list page is determined to be in the playing state, the paused player is released, so that the phenomenon that the video corresponding to the next list item is blocked when the player is released in the list page rolling process is avoided, and the list page rolling process can be smoother.
As an implementation of the methods shown in the above figures, the present application provides an embodiment of a control apparatus for video playback, and fig. 5 illustrates a schematic structural diagram of a control apparatus for video playback provided in this embodiment, where the embodiment of the apparatus corresponds to the embodiments of the methods shown in fig. 1 to 4, and the apparatus may be specifically applied to various electronic devices. As shown in fig. 5, the control device for video playing according to the present embodiment includes a state monitoring unit 510 and a playing pause unit 520.
The status monitoring unit 510 is configured to monitor a display status of a list item currently in a playing status in a list page, where the list page is used to display a plurality of video playing windows, and the display status includes full display, partial display, and hidden display;
the play pause unit 520 is configured to pause the player corresponding to the list item if the presentation state is changed to the hidden presentation state.
In an embodiment, the apparatus may further include a scroll processing unit (not shown in fig. 5), where the scroll processing unit is configured to, after pausing the playing of the player corresponding to the list item, monitor whether the list page stops scrolling, and if so, release the paused player.
In an embodiment, the apparatus may further include a multiplexing playing unit (not shown in fig. 5), where the multiplexing playing unit is configured to, after a player corresponding to the list item is paused, determine a next target list item to be played in the list page, and multiplex the paused player to play a video corresponding to the target list item.
In an embodiment, the apparatus may further include a releasing unit (not shown in fig. 5), where the releasing unit is configured to, after the player corresponding to the list item is paused, determine whether the player corresponding to the target list item to be played next in the list page is in a playing state, and if so, release the paused player.
In one embodiment, the method is implemented by a looping view component for displaying a list; the operation of monitoring comprises listening by adding a listening module to the recurring view component.
In an embodiment, the apparatus is configured to play the plurality of videos immersive through the list page.
The control device for video playing provided by the embodiment can execute the control method for video playing provided by the method embodiment of the present disclosure, and has the 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, the 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, magnetic 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 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 embodiments of this disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the embodiments of the present disclosure, a computer readable signal medium may include 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:
monitoring the display state of a list item currently in a playing state in a list page, wherein the list page is used for displaying a plurality of video playing windows, and the display state comprises full display, partial display and hidden display;
and if the display state is changed into a hidden display state, pausing the player corresponding to the list item.
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 may further include monitoring whether the list page stops scrolling after the player corresponding to the list item is paused, and if so, releasing the paused player.
According to one or more embodiments of the present disclosure, the method for controlling video playing may further include, after the player corresponding to the list item is paused, determining a next target list item to be played in the list page, and multiplexing the paused player to play the video corresponding to the target list item.
According to one or more embodiments of the present disclosure, the method for controlling video playing may further include, after the player corresponding to the list item is paused, determining whether the player corresponding to the next target list item to be played in the list page is in a playing state, and if so, releasing the paused player.
According to one or more embodiments of the present disclosure, the control method of video playing can be used for an android operating system, and the method is realized by a circulation view component (such as a RecycleView component) for displaying a list; the operation of monitoring comprises listening by adding a listening module to the recurring view component.
According to one or more embodiments of the present disclosure, the control method of video playing is used for playing the plurality of videos immersive through the list page.
According to one or more embodiments of the present disclosure, the control apparatus for video playing may further include a scroll processing unit, configured to monitor whether the list page stops scrolling after a player corresponding to the list item is paused, and if so, release the paused player.
According to one or more embodiments of the present disclosure, the control apparatus for video playing may further include a multiplexing playing unit, configured to determine a next target list item to be played in the list page after a player corresponding to the list item is paused, and multiplex the paused player to play a video corresponding to the target list item.
According to one or more embodiments of the present disclosure, the control apparatus for video playing may further include a releasing unit, configured to determine, after the player corresponding to the list item is paused, whether the player corresponding to the target list item to be played next in the list page is in a playing state, and if so, release the paused player.
According to one or more embodiments of the disclosure, the apparatus is implemented by a loop view component for displaying the list, for example, when the method is used in an android operating system, a RecycleView component may be used for implementation; the operation of monitoring comprises listening by adding a listening module to the recurring view component.
According to one or more embodiments of the present disclosure, the control device for video playing is configured to play the plurality of videos immersive through the list page.
The foregoing description is only preferred of the embodiments of the present disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure 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 (8)

1. A method for controlling video playback, comprising:
monitoring the display state of a list item currently in a playing state in a list page, wherein the list page is used for displaying a plurality of video playing windows, and the display state comprises full display, partial display and hidden display;
if the display state is changed into a hidden display state, pausing the player corresponding to the list item;
the method further comprises the following steps after the player corresponding to the list item is paused:
and monitoring whether the list page stops rolling or not, and if so, releasing the player which is paused.
2. The method according to claim 1, further comprising, after pausing the player corresponding to the list item:
and determining a next target list item to be played in the list page, and multiplexing the player with the pause to play the video corresponding to the target list item.
3. The method according to claim 1, further comprising, after pausing the player corresponding to the list item:
and determining whether a player corresponding to a next target list item to be played in the list page is in a playing state, and if so, releasing the player with the playing pause.
4. The method of claim 1, wherein:
the method is implemented by a looping view component for displaying a list;
the operation of monitoring comprises listening by adding a listening module to the recurring view component.
5. An apparatus for controlling video playback, the apparatus comprising:
the display device comprises a state monitoring unit, a display unit and a display unit, wherein the state monitoring unit is used for monitoring the display state of a list item currently in a playing state in a list page, the list page is used for displaying a plurality of video playing windows, and the display state comprises complete display, partial display and hidden display;
the playing pause unit is used for pausing the player corresponding to the list item if the display state is changed into a hidden display state;
the device further comprises a scroll processing unit, wherein the scroll processing unit is configured to monitor whether the list page stops scrolling after the player corresponding to the list item is paused, and if so, release the paused player.
6. The apparatus of claim 5, further comprising a scroll processing unit to:
after a player corresponding to the list item is paused, determining a next target list item to be played in the list page, and multiplexing the paused player to play a video corresponding to the target list item; or
After the player corresponding to the list item is paused, determining whether the player corresponding to the next target list item to be played in the list page is in a playing state, if so, releasing the paused player.
7. 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-4.
8. 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 4.
CN201910651954.1A 2019-07-18 2019-07-18 Video playing control method and device, electronic equipment and storage medium Active CN110401877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910651954.1A CN110401877B (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
CN201910651954.1A CN110401877B (en) 2019-07-18 2019-07-18 Video playing control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110401877A CN110401877A (en) 2019-11-01
CN110401877B true CN110401877B (en) 2023-02-10

Family

ID=68324516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910651954.1A Active CN110401877B (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) CN110401877B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641432A (en) * 2021-08-10 2021-11-12 中国平安人寿保险股份有限公司 Data display method, device, equipment and medium
CN113660532A (en) * 2021-08-11 2021-11-16 海信电子科技(深圳)有限公司 Multi-webpage video playing method and display equipment
CN113949934B (en) * 2021-10-19 2024-03-29 广州方硅信息技术有限公司 Dynamic video content playing control method, device, medium and computer equipment
CN114125560A (en) * 2021-11-23 2022-03-01 北京字节跳动网络技术有限公司 Video playing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837064A (en) * 2015-04-20 2015-08-12 腾讯科技(北京)有限公司 Control method for media player of open-type operation system and media player
CN108984263A (en) * 2018-08-07 2018-12-11 网易传媒科技(北京)有限公司 Image display method and device
CN109194986A (en) * 2018-08-24 2019-01-11 深圳市酷开网络科技有限公司 A kind of resource control method, smart television and storage medium
CN109640188A (en) * 2018-12-28 2019-04-16 北京微播视界科技有限公司 Video previewing method, device, electronic equipment and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471669A (en) * 2000-10-24 2004-01-28 汤姆森许可公司 Method of disseminating advertisements using an embedded media player page
US8122236B2 (en) * 2001-10-24 2012-02-21 Aol Inc. Method of disseminating advertisements using an embedded media player page
TWI486812B (en) * 2012-08-16 2015-06-01 Wistron Corp Method for playing video and video playing electronic system
US10728612B2 (en) * 2015-11-02 2020-07-28 Xandr Inc. Systems and methods for reducing digital video latency
CN107908443A (en) * 2017-10-10 2018-04-13 武汉极意网络科技有限公司 A kind of action listener method, smart machine and storage medium
CN108881998A (en) * 2018-08-13 2018-11-23 北京搜狐新动力信息技术有限公司 A kind of video broadcasting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837064A (en) * 2015-04-20 2015-08-12 腾讯科技(北京)有限公司 Control method for media player of open-type operation system and media player
CN108984263A (en) * 2018-08-07 2018-12-11 网易传媒科技(北京)有限公司 Image display method and device
CN109194986A (en) * 2018-08-24 2019-01-11 深圳市酷开网络科技有限公司 A kind of resource control method, smart television and storage medium
CN109640188A (en) * 2018-12-28 2019-04-16 北京微播视界科技有限公司 Video previewing method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110401877A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN110401877B (en) Video playing control method and device, electronic equipment and storage medium
CN112261226B (en) Horizontal screen interaction method and device, electronic equipment and storage medium
EP4395331A1 (en) Information display method and apparatus, electronic device, and storage medium
CN111338537A (en) Method, apparatus, electronic device, and medium for displaying video
CN111790148B (en) Information interaction method and device in game scene and computer readable medium
US20220394333A1 (en) Video processing method and apparatus, storage medium, and electronic device
US20240211116A1 (en) Screen recording interaction method and apparatus, and electronic device and computer-readable storage medium
CN109618216B (en) Method, device and equipment for displaying video loading state identification and storage medium
US20230421857A1 (en) Video-based information displaying method and apparatus, device and medium
CN110267088B (en) Video playing control method and device, electronic equipment and storage medium
CN109714626B (en) Information interaction method and device, electronic equipment and computer readable storage medium
CN113596584B (en) Video playing method, device and storage medium
CN115113790A (en) Interaction method, interaction device, electronic equipment and storage medium
CN110611847B (en) Video preview method and device, storage medium and electronic equipment
US20230137492A1 (en) Landscape interaction method and apparatus, electronic device, and storage medium
US20230276079A1 (en) Live streaming room page jump method and apparatus, live streaming room page return method and apparatus, and electronic device
CN110147283B (en) Display content switching display method, device, equipment and medium
CN115474086B (en) Play control method, device, electronic equipment and storage medium
CN110267089B (en) Video playing control method and device, electronic equipment and storage medium
CN114419201B (en) Animation display method and device, electronic equipment and medium
CN115933921A (en) Media content display method and device, electronic equipment and storage medium
CN115567746A (en) Playing method and device and electronic equipment
CN113553451B (en) Media playing method, device, electronic equipment and program product
EP4207775A1 (en) Method and apparatus for determining object addition mode, electronic device, and medium
CN115269084A (en) Target function display method, device, equipment, readable storage medium and product

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