Video playback method and device
By displaying the video playback window and the barrage display window on the upper layer of the foreground running interface, the problem of low information transmission efficiency during background playback of video applications is solved, and the synchronous display of video content and barrage information is realized, improving the user experience.
Patent Information
- Application Number
- CN202211511206.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-11-29
AI Technical Summary
When the video application switches to background playback, the display size is limited, resulting in low efficiency in video information transmission.
The video playback window and the barrage display window are displayed on the upper layer of the foreground running interface. The video playback window is used to play the target video, and the barrage display window is used to display the barrage information of the target video.
It improves the efficiency of video information transmission and enhances the way users interact with videos by simultaneously displaying video content and barrage information.
Smart Images

Figure CN115866314B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a video playback method and device thereof. Background Art
[0002] In the related art, when a video application is switched to background playback, the video application can be displayed in the form of a small window. However, due to the limited display size, the displayed content is not comprehensive, resulting in low efficiency in video information transmission. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a video playback method and device thereof, which can solve the problem of low efficiency of video information transmission.
[0004] In a first aspect, an embodiment of the present application provides a video playback method, the method comprising:
[0005] Displaying a video playback interface for playing a target video; the video playback interface includes bullet screen information of the target video;
[0006] When the target video is switched to background playback, a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video are displayed on the upper layer of the current foreground running interface.
[0007] In a second aspect, an embodiment of the present application provides a video playback device, the device comprising:
[0008] A first display module, used to display a video playback interface for playing a target video; the video playback interface includes bullet screen information of the target video;
[0009] The second display module is used to display a video playback window for playing the target video and a barrage display window for displaying barrage information of the target video on the upper layer of the current foreground running interface when the target video is switched to background playback.
[0010] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0014] In the embodiment of the present application, when the target video is switched to the background for playback, a video playback window and a bullet screen display window are displayed on the upper layer of the current foreground running interface, wherein the video playback window is used to play the target video, and the bullet screen display window is used to display the bullet screen information of the target video. In the embodiment of the present application, when the target video is switched to the background for playback, the target video is played through the video playback window, and the bullet screen information of the target video is displayed through the bullet screen display window, thereby improving the information transmission efficiency of the video. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a flow chart of a video playback method provided in an embodiment of the present application;
[0016] Figure 2 This is one of the application scenario diagrams of the video playback method provided in the embodiment of the present application;
[0017] Figure 3 This is the second application scenario diagram of the video playback method provided in the embodiment of the present application;
[0018] Figure 4 This is the third application scenario diagram of the video playback method provided in the embodiment of the present application;
[0019] Figure 5 This is the fourth application scenario diagram of the video playback method provided in the embodiment of the present application;
[0020] Figure 6 is a structural diagram of a video playback device provided in an embodiment of the present application;
[0021] Figure 7 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0022] Figure 8 It is a hardware structure diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] This application embodiment provides a video playback method, see Figure 1 , Figure 1 : is a flow chart of a video playback method provided in an embodiment of the present application. The video playback method provided in an embodiment of the present application comprises the following steps:
[0026] S101, displaying a video playback interface for playing a target video.
[0027] The video playback method provided in this embodiment can be applied to an electronic device, and a video playback interface is displayed on the display interface of the electronic device, wherein the video playback interface is used to play the target video and display the barrage information of the target video.
[0028] Optionally, the above-mentioned bullet-chat information can be displayed in the form of subtitles on the video playback interface. Optionally, the above-mentioned bullet-chat information can be displayed in the form of scrolling display on the video playback interface. Optionally, the video playback interface includes a window for displaying the bullet-chat information. This step does not limit the specific display method of the bullet-chat information.
[0029] S102, when the target video is switched to background playback, a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video are displayed on the upper layer of the current foreground running interface.
[0030] When switching from the video playback interface to other interfaces, the switched interface is determined as the foreground running interface, and the target video is switched to background playback. In this case, the video playback window is displayed on the upper layer of the foreground running interface, and the barrage display window is displayed.
[0031] Among them, the above-mentioned video playback window is used to play the target video, and the above-mentioned barrage display window is used to display the barrage information of the target video.
[0032] For easier understanding, see Figure 2 , Figure 2 The identifier D1 in the figure is used to represent the video playback window, and the identifier D2 is used to represent the bullet screen display window. The video playback window D1 plays the target video, and the bullet screen display window D2 displays the bullet screen information related to the target video, that is, Figure 2 "Danmu 1", "Danmu 2", "Danmu 3" and "Danmu 4" in it.
[0033] In the embodiment of the present application, when the target video is switched to the background for playback, a video playback window and a bullet screen display window are displayed on the upper layer of the current foreground running interface, wherein the video playback window is used to play the target video, and the bullet screen display window is used to display the bullet screen information of the target video. In the embodiment of the present application, when the target video is switched to the background for playback, the target video is played through the video playback window, and the bullet screen information of the target video is displayed through the bullet screen display window, thereby improving the information transmission efficiency of the video.
[0034] Optionally, when the target video is switched to background playback, the step of displaying a bullet screen display window for displaying bullet screen information of the target video on an upper layer of the current foreground running interface includes:
[0035] When the target video is switched to background playback, receiving a first input to the video playback window;
[0036] In response to the first input, a bullet screen display window for displaying bullet screen information of the target video is displayed on the upper layer of the current foreground running interface.
[0037] In this embodiment, when the target video is switched to background playback, a video playback window is displayed on the upper layer of the current foreground running interface, wherein the video playback window is used to play the target video.
[0038] When a first input to a video playback window is received, in response to the first input, a bullet screen display window is displayed on an upper layer of a current foreground running interface, wherein the bullet screen display window is used to display bullet screen information of a target video.
[0039] It should be understood that the pointing object of the above-mentioned first input is the video playback window. The above-mentioned first input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0040] Optionally, when the target video is switched to background playback, the step of displaying a bullet screen display window for displaying bullet screen information of the target video on an upper layer of the current foreground running interface includes:
[0041] When the target video is switched to background playback, determining the second display parameter of the bullet screen display window according to the first display parameter of the video playback window;
[0042] According to the second display parameter, a bullet screen display window for displaying the bullet screen information of the target video is displayed on the upper layer of the current foreground running interface.
[0043] In this embodiment, when the target video is switched to background playback, the first display parameters of the video playback window displayed on the foreground running interface are obtained, and the second display parameters of the barrage display window are determined based on the above first display parameters, and then the barrage display window is displayed.
[0044] It should be understood that the first display parameter includes at least one of the following: a first display size, a first display position; and the second display parameter includes at least one of the following: a second display size, a second display position.
[0045] An optional implementation is that, when the display parameters include display size and display position, the first display size is determined as the second display size, that is, the display size of the video playback window is the same as the display parameter of the bullet screen display window. The second display position is determined based on the first display position, and the video playback window and the bullet screen display window are set as adjacent windows.
[0046] Another optional implementation is that, when the display parameters include display size and display position, the product of the first display size and 0.8 is determined as the second display size, that is, the video playback window is reduced by 20% as a whole, and the display size of the video playback window after the reduction by 20% is determined as the second display size. The second display position is determined based on the first display position, and the video playback window and the bullet screen display window are set as adjacent windows.
[0047] It should be understood that the display size and display position of the bullet screen display window may also be determined through other implementations, which are not specifically limited here.
[0048] In this embodiment, the second display parameter of the bullet screen display window is determined by the first display parameter of the video playback window, so as to adjust the display size and / or display position of the bullet screen display window.
[0049] Optionally, the method further comprises:
[0050] Receiving a second input to the bullet screen display window;
[0051] In response to the second input, determining a target transparency;
[0052] According to the target transparency, the barrage information of the target video in the barrage display window is updated and displayed.
[0053] The pointing object of the above-mentioned second input is the bullet screen display window. The above-mentioned second input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0054] In this embodiment, the target transparency is determined based on the second input to the bullet screen display window, and the transparency of the bullet screen information displayed in the bullet screen display window is adjusted to the target transparency, so that the transparency of the bullet screen information can be flexibly adjusted based on the second input.
[0055] Optionally, the method further comprises:
[0056] Receiving a third input to the bullet screen display window;
[0057] In response to the third input, determining a target bullet screen progress;
[0058] The barrage information of the target video corresponding to the target barrage progress is displayed in the barrage display window.
[0059] The pointing object of the above-mentioned third input is the bullet screen display window. The above-mentioned third input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0060] In this embodiment, the target bullet screen progress is determined based on the third input to the bullet screen display window, the bullet screen information is located according to the target bullet screen progress, and the bullet screen information is displayed in the bullet screen display window.
[0061] Optionally, the method further comprises:
[0062] Receiving a fourth input to the bullet screen display window;
[0063] In response to the fourth input, the bullet screen display window is canceled.
[0064] The fourth input points to the bullet screen display window. The fourth input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0065] In this embodiment, when the fourth input to the bullet screen display window is received, the bullet screen display window is cancelled and only the video playback window is displayed on the upper layer of the foreground running interface.
[0066] Optionally, the method further comprises:
[0067] Receiving a fifth input to the bullet screen display window;
[0068] In response to the fifth input, displaying a bullet comment editing area;
[0069] Receiving a sixth input in the bullet comment editing area;
[0070] In response to the sixth input, determining input information;
[0071] The bullet screen information of the target video corresponding to the input information is displayed in the bullet screen display window.
[0072] The pointing object of the fifth input is the bullet screen display window. The fifth input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0073] In this embodiment, when the fifth input to the bullet screen display window is received, the bullet screen editing area is displayed. An optional implementation is to display the bullet screen editing area in the bullet screen display window; another optional implementation is to display the bullet screen editing area outside the bullet screen display window.
[0074] The sixth input points to the bullet screen editing area. The sixth input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0075] In this embodiment, when the sixth input to the bullet screen editing area is received, the input information corresponding to the sixth input is determined, and the bullet screen information corresponding to the input information is displayed in the bullet screen display window.
[0076] For easier understanding, see Figure 3 , Figure 3 The application scenario shown includes a video playback window and a barrage display window. The barrage editing area D21 is displayed in the barrage display window. Based on the user's sixth input in the barrage editing area D21, the input information is determined, and then the barrage information corresponding to the input information is displayed in the barrage display window, that is, the barrage information "Haha" displayed in the barrage display window.
[0077] In this embodiment, the user displays the barrage editing area through the fifth input, and then displays the barrage information in the barrage display window through the sixth input of the barrage editing area, thereby sending the barrage information of the target video in the above manner, increasing the interaction method between the user and the target video.
[0078] Optionally, the receiving a fifth input to the bullet screen display window includes:
[0079] Receiving a fifth input of the first bullet-screen information in the bullet-screen display window;
[0080] The step of displaying the bullet screen information of the target video corresponding to the input information in the bullet screen display window includes:
[0081] The second barrage information corresponding to the input information is displayed in the barrage display window; the second barrage information includes the input information and the barrage information identifier corresponding to the first barrage information.
[0082] It should be noted that the barrage display window displays at least one barrage information, and each barrage information includes a corresponding barrage information identifier. Optionally, the above barrage information identifier is used to represent the publishing object of the corresponding barrage information.
[0083] In this embodiment, when the fifth input of the bullet-screen information in the bullet-screen display window is received, the bullet-screen information is determined as the first bullet-screen information, and then the bullet-screen input area is displayed; the input information is determined based on the sixth input of the user in the bullet-screen input area, wherein the input information includes but is not limited to text information, picture information or other types of information. Further, the second bullet-screen information corresponding to the input information is displayed in the bullet-screen display window, wherein the second bullet-screen information includes the input information and the bullet-screen information identifier corresponding to the first bullet-screen information.
[0084] For easier understanding, see Figure 4 ,exist Figure 4 In the application scenario shown, based on the user's fifth input in the barrage display window, the first barrage information is determined to be "barrage 1", and the publishing object "user 1" corresponding to "barrage 1" is determined as the barrage information identifier; based on the user's sixth input in the barrage editing area, the input information is determined, and then the second barrage information is displayed in the barrage display window, and the content of the second barrage information includes "Reply to User 1: You are right."
[0085] In this embodiment, the user determines the barrage information to be replied to by executing the fifth input on the first barrage information, and then generates the second barrage information displayed in the barrage display area based on the sixth input to the barrage editing area, wherein the second barrage information is the user's reply content to the first barrage information, thereby realizing the reply to the barrage information and increasing the interaction between the user and the barrage information.
[0086] Optionally, the method further includes: receiving a seventh input of the third bullet chat information in the bullet chat display window;
[0087] In response to the seventh input, displaying a first display area associated with a first barrage publishing object corresponding to the third barrage information in the barrage display window;
[0088] The barrage information released by the first barrage release object is displayed in the first display area.
[0089] The object pointed to by the seventh input is the barrage information in the barrage display window, and the barrage information is determined as the third barrage information. The seventh input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0090] In this embodiment, based on the seventh input of the user to the third bullet message in the bullet message display window, the first display area is displayed in the bullet message display window. The first display area is associated with the first bullet message publishing object corresponding to the third bullet message, and the first display area is used to display the bullet message information published by the first bullet message publishing object.
[0091] In this embodiment, through the seventh input of the third barrage information in the barrage display window, the barrage information published by the publishing object corresponding to the third barrage information is displayed in the first display area, so that all the barrage information published by the publishing object can be conveniently viewed.
[0092] Optionally, the method further comprises:
[0093] Receiving an eighth input of fourth bullet-screen information in the bullet-screen display window;
[0094] In response to the eighth input, the barrage information released by the first barrage release object and the barrage information released by the second barrage release object corresponding to the fourth barrage information are displayed in the first display area.
[0095] The object pointed to by the above-mentioned eighth input is the barrage information in the barrage display window, and the above-mentioned barrage information is determined as the fourth barrage information. The above-mentioned eighth input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0096] In this embodiment, when the first display area displays the barrage information released by the first barrage release object, based on the eighth input of the fourth barrage information in the barrage display window, the first display area also displays the barrage information released by the second barrage release object, wherein the second barrage release object is the release object corresponding to the fourth barrage information. That is to say, based on the eighth input, the first display area displays the barrage information released by the first barrage release object and the barrage information released by the second barrage release object.
[0097] In this embodiment, through the seventh input of the third barrage information in the barrage display window and the eighth input of the fourth barrage information in the barrage display window, all the barrage information published by the publishing objects corresponding to the above two barrage information are simultaneously displayed in the first display area.
[0098] Optionally, the target video is a live video;
[0099] The method further comprises:
[0100] Receiving a ninth input of the fifth bullet-screen information in the bullet-screen display window;
[0101] In response to the ninth input, a temporary conversation window is displayed; the temporary conversation window is used to conduct a conversation with the third barrage publishing object corresponding to the fifth barrage information.
[0102] The object pointed to by the ninth input is the barrage information in the barrage display window. The barrage information can be determined as the fifth barrage information. The ninth input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0103] In this embodiment, when the user's ninth input to the fifth barrage information in the barrage display window is received, a session is established between the user and the publishing object corresponding to the fifth barrage information, that is, a temporary session window is displayed, and the user can communicate with the publishing object corresponding to the fifth barrage information, that is, the third barrage publishing object, through the temporary session window.
[0104] For easier understanding, see Figure 5 , Figure 5 The symbol D3 shown indicates a temporary session window, and there is no intersection area between the temporary session window D3 and the video playback window, and there is no intersection area between the temporary session window D3 and the bullet screen display window. In other embodiments, the temporary session window can be displayed in the bullet screen display window.
[0105] In this embodiment, based on the user's ninth input of the barrage information in the barrage display window, a session is established between the user and the publishing object corresponding to the barrage information, so that the user can quickly communicate with the publishing object.
[0106] Optionally, the method further comprises:
[0107] Receiving a tenth input from a user to the bullet screen display window and the video playback window;
[0108] In response to the tenth input, the bullet screen display window and the video playback window are cancelled, and the video playback interface is displayed.
[0109] The tenth input points to the bullet screen display window and the video playback window. The tenth input includes but is not limited to touch input, sliding input, gesture input, voice input or other types of input, which are not specifically limited here.
[0110] In this embodiment, when the user's tenth input to the bullet screen display window and the video playback window is received, the bullet screen display window and the video playback window are cancelled and the video playback interface is displayed.
[0111] Exemplarily, the tenth input is a sliding input. When the user drags the bullet screen display window to the video playback window, the bullet screen display window and the video playback window are cancelled, and the video playback interface is displayed in full screen.
[0112] The video playback device provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0113] like Figure 6 As shown, the video playback device 600 includes:
[0114] The first display module 601 is used to display a video playback interface for playing a target video; the video playback interface includes bullet screen information of the target video;
[0115] The second display module 602 is used to display a video playback window for playing the target video and a barrage display window for displaying barrage information of the target video on the upper layer of the current foreground running interface when the target video is switched to background playback.
[0116] Optionally, the second display module 602 is specifically used to:
[0117] When the target video is switched to background playback, receiving a first input to the video playback window;
[0118] In response to the first input, a bullet screen display window for displaying bullet screen information of the target video is displayed on the upper layer of the current foreground running interface.
[0119] Optionally, the second display module 602 is further specifically used for:
[0120] In the case where the target video is switched to background playback, determining the second display parameter of the bullet screen display window according to the first display parameter of the video playback window; the first display parameter includes at least one of the following: a first display size and a first display position; the second display parameter includes at least one of the following: a second display size and a second display position;
[0121] According to the second display parameter, a bullet screen display window for displaying the bullet screen information of the target video is displayed on the upper layer of the current foreground running interface.
[0122] Optionally, the video playback device 600 further includes:
[0123] A first receiving module, used for receiving a second input to the bullet screen display window;
[0124] A first determination module, configured to determine target transparency in response to the second input;
[0125] The first updating module is used to update the bullet screen information of the target video in the bullet screen display window according to the target transparency.
[0126] Optionally, the video playback device 600 further includes:
[0127] A second receiving module, used for receiving a third input to the bullet screen display window;
[0128] A second determination module, configured to determine a target bullet screen progress in response to the third input;
[0129] The third display module is used to display the barrage information of the target video corresponding to the target barrage progress in the barrage display window.
[0130] Optionally, the video playback device 600 further includes:
[0131] A third receiving module, used to receive a fourth input to the bullet screen display window;
[0132] A processing module is used to cancel the display of the bullet screen display window in response to the fourth input.
[0133] Optionally, the video playback device 600 further includes:
[0134] A fourth receiving module, used for receiving a fifth input to the bullet screen display window;
[0135] A fourth display module, configured to display a bullet screen editing area in response to the fifth input;
[0136] A fifth receiving module, used for receiving a sixth input in the bullet comment editing area;
[0137] A third determining module, configured to determine input information in response to the sixth input;
[0138] The fifth display module is used to display the bullet screen information of the target video corresponding to the input information in the bullet screen display window.
[0139] Optionally, the fourth receiving module is specifically configured to:
[0140] Receiving a fifth input of the first bullet-screen information in the bullet-screen display window;
[0141] The fifth display module is specifically used for:
[0142] The second barrage information corresponding to the input information is displayed in the barrage display window; the second barrage information includes the input information and the barrage information identifier corresponding to the first barrage information.
[0143] Optionally, the video playback device 600 further includes:
[0144] A sixth receiving module, used for receiving a seventh input of the third bullet comment information in the bullet comment display window;
[0145] A sixth display module, configured to display, in response to the seventh input, a first display area associated with a first barrage publishing object corresponding to the third barrage information in the barrage display window;
[0146] The seventh display module is used to display the barrage information released by the first barrage release object in the first display area.
[0147] Optionally, the video playback device 600 further includes:
[0148] A seventh receiving module, used for receiving an eighth input of the fourth bullet screen information in the bullet screen display window;
[0149] An eighth display module is used to display the barrage information released by the first barrage release object and the barrage information released by the second barrage release object corresponding to the fourth barrage information in the first display area in response to the eighth input.
[0150] Optionally, the target video is a live video;
[0151] The video playback device 600 further includes:
[0152] An eighth receiving module, configured to receive a ninth input of the fifth bullet-screen information in the bullet-screen display window;
[0153] The ninth display module is used to display a temporary conversation window in response to the ninth input; the temporary conversation window is used to conduct a conversation with the third bullet chat publishing object corresponding to the fifth bullet chat information.
[0154] Optionally, the video playback device 600 further includes:
[0155] A ninth receiving module, used for receiving a tenth input from a user on the bullet screen display window and the video playback window;
[0156] The tenth display module is used to cancel the bullet screen display window and the video playback window and display the video playback interface in response to the tenth input.
[0157] In the embodiment of the present application, when the target video is switched to the background for playback, a video playback window and a bullet screen display window are displayed on the upper layer of the current foreground running interface, wherein the video playback window is used to play the target video, and the bullet screen display window is used to display the bullet screen information of the target video. In the embodiment of the present application, when the target video is switched to the background for playback, the target video is played through the video playback window, and the bullet screen information of the target video is displayed through the bullet screen display window, thereby improving the information transmission efficiency of the video.
[0158] The video playback device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0159] The video playback device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0160] The video playback device provided by the present application embodiment can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0161] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and executable on the processor 701. When the program or instruction is executed by the processor 701, each process of the above-mentioned video playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0162] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0163] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0164] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810 and other components.
[0165] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0166] The display unit 806 is also used to display a video playback interface for playing the target video;
[0167] When the target video is switched to background playback, a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video are displayed on the upper layer of the current foreground running interface.
[0168] The user input unit 807 is further configured to receive a first input to the video playback window when the target video is switched to background playback;
[0169] The display unit 806 is also used to display a bullet screen display window for displaying the bullet screen information of the target video on the upper layer of the current foreground running interface in response to the first input.
[0170] The processor 810 is further configured to determine, when the target video is switched to background playback, the second display parameter of the bullet screen display window according to the first display parameter of the video playback window;
[0171] The display unit 806 is also used to display a bullet screen display window for displaying the bullet screen information of the target video on the upper layer of the current foreground running interface according to the second display parameter.
[0172] The user input unit 807 is further used to receive a second input to the bullet screen display window;
[0173] The processor 810 is further configured to determine target transparency in response to the second input;
[0174] The display unit 806 is also used to update the bullet screen information of the target video in the bullet screen display window according to the target transparency.
[0175] The user input unit 807 is further configured to receive a third input to the bullet screen display window;
[0176] The processor 810 is further configured to determine the target bullet screen progress in response to the third input;
[0177] The display unit 806 is further used to display the barrage information of the target video corresponding to the target barrage progress in the barrage display window.
[0178] The user input unit 807 is further used to receive a fourth input to the bullet screen display window;
[0179] The display unit 806 is further configured to cancel display of the bullet screen display window in response to the fourth input.
[0180] The user input unit 807 is further configured to receive a fifth input to the bullet screen display window;
[0181] The display unit 806 is further configured to display a bullet comment editing area in response to the fifth input;
[0182] The user input unit 807 is further used to receive a sixth input in the bullet comment editing area;
[0183] The processor 810 is further configured to determine input information in response to the sixth input;
[0184] The display unit 806 is further used to display the bullet screen information of the target video corresponding to the input information in the bullet screen display window.
[0185] The user input unit 807 is further used to receive a fifth input of the first bullet screen information in the bullet screen display window;
[0186] The display unit 806 is further configured to display second bullet screen information corresponding to the input information in the bullet screen display window.
[0187] The display unit 806 is further configured to display, in response to the seventh input, a first display area associated with a first barrage publishing object corresponding to the third barrage information in the barrage display window;
[0188] The barrage information released by the first barrage release object is displayed in the first display area.
[0189] The user input unit 807 is further configured to receive an eighth input of the fourth bullet-screen information in the bullet-screen display window;
[0190] The display unit 806 is further used to display the barrage information released by the first barrage release object and the barrage information released by the second barrage release object corresponding to the fourth barrage information in the first display area in response to the eighth input.
[0191] The user input unit 807 is further configured to receive a ninth input of the fifth bullet-screen information in the bullet-screen display window;
[0192] The display unit 806 is further configured to display a temporary conversation window in response to the ninth input.
[0193] The user input unit 807 is further used to receive a tenth input from the user to the bullet screen display window and the video playback window;
[0194] The display unit 806 is further used to cancel the bullet screen display window and the video playback window in response to the tenth input, and display the video playback interface.
[0195] In the embodiment of the present application, when the target video is switched to the background for playback, a video playback window and a bullet screen display window are displayed on the upper layer of the current foreground running interface, wherein the video playback window is used to play the target video, and the bullet screen display window is used to display the bullet screen information of the target video. In the embodiment of the present application, when the target video is switched to the background for playback, the target video is played through the video playback window, and the bullet screen information of the target video is displayed through the bullet screen display window, thereby improving the information transmission efficiency of the video.
[0196] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8061 is also called a touch screen. The touch panel 8061 may include two parts: a touch detection device and a touch controller. Other input devices 8062 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0197] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0198] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0199] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned video playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0200] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0201] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video playback method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0202] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0203] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video playback method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0204] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0205] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0206] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A video playback method, characterized in that: include: Display a video playback interface for playing a target video; The video playback interface includes bullet screen information of the target video; When the target video is switched to background playback, a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video are displayed on the upper layer of the current foreground running interface; When the target video is switched to background playback, a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video are displayed on the upper layer of the current foreground running interface, including: When switching from a video playback interface to another interface, the switched interface is determined as the foreground operation interface, and the target video is switched to background playback; Displaying a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video on the upper layer of the current foreground running interface; The method further comprises: Receiving a fifth input to the bullet screen display window; In response to the fifth input, displaying a bullet comment editing area; Receiving a sixth input in the bullet comment editing area; In response to the sixth input, determining input information; Displaying the bullet screen information of the target video corresponding to the input information in the bullet screen display window; The receiving a fifth input to the bullet screen display window includes: Receiving a fifth input of the first bullet-screen information in the bullet-screen display window; The step of displaying the bullet screen information of the target video corresponding to the input information in the bullet screen display window includes: The second barrage information corresponding to the input information is displayed in the barrage display window; the second barrage information includes the input information and the barrage information identifier corresponding to the first barrage information.
2. The method according to claim 1, characterized in that When the target video is switched to background playback, the step of displaying a bullet screen display window for displaying bullet screen information of the target video on the upper layer of the current foreground running interface includes: When the target video is switched to background playback, receiving a first input to the video playback window; In response to the first input, a bullet screen display window for displaying bullet screen information of the target video is displayed on the upper layer of the current foreground running interface.
3. The method according to claim 1, characterized in that When the target video is switched to background playback, the step of displaying a bullet screen display window for displaying bullet screen information of the target video on the upper layer of the current foreground running interface includes: In the case where the target video is switched to background playback, determining the second display parameter of the bullet screen display window according to the first display parameter of the video playback window; the first display parameter includes at least one of the following: a first display size and a first display position; the second display parameter includes at least one of the following: a second display size and a second display position; According to the second display parameter, a bullet screen display window for displaying the bullet screen information of the target video is displayed on the upper layer of the current foreground running interface.
4. The method according to claim 1, characterized in that The method further comprises: Receiving a second input to the bullet screen display window; In response to the second input, determining a target transparency; According to the target transparency, the bullet screen information of the target video in the bullet screen display window is updated and displayed.
5. The method according to claim 1, characterized in that The method further comprises: Receiving a third input to the bullet screen display window; In response to the third input, determining a target bullet screen progress; The barrage information of the target video corresponding to the target barrage progress is displayed in the barrage display window.
6. The method according to claim 1, characterized in that The method further comprises: Receiving a fourth input to the bullet screen display window; In response to the fourth input, the bullet screen display window is canceled.
7. The method according to claim 1, characterized in that The method further includes: receiving a seventh input of the third bullet-screen information in the bullet-screen display window; In response to the seventh input, displaying a first display area associated with a first barrage publishing object corresponding to the third barrage information in the barrage display window; The barrage information released by the first barrage release object is displayed in the first display area.
8. The method according to claim 7, characterized in that The method further comprises: Receiving an eighth input of fourth bullet-screen information in the bullet-screen display window; In response to the eighth input, the barrage information released by the first barrage release object and the barrage information released by the second barrage release object corresponding to the fourth barrage information are displayed in the first display area.
9. The method according to claim 1, characterized in that: The target video is a live video; The method further comprises: Receiving a ninth input of the fifth bullet-screen information in the bullet-screen display window; In response to the ninth input, a temporary conversation window is displayed; the temporary conversation window is used to conduct a conversation with the third barrage publishing object corresponding to the fifth barrage information.
10. The method according to claim 1, characterized in that The method further comprises: Receiving a tenth input from a user to the bullet screen display window and the video playback window; In response to the tenth input, the bullet screen display window and the video playback window are cancelled, and the video playback interface is displayed.
11. A video playback device, characterized in that: include: A first display module, used to display a video playback interface for playing a target video; The video playback interface includes bullet screen information of the target video; A second display module is used to display a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video on the upper layer of the current foreground running interface when the target video is switched to background playback; The second display module is specifically used for: When switching from a video playback interface to another interface, the switched interface is determined as the foreground running interface, and the target video is switched to background playback; Displaying a video playback window for playing the target video and a bullet screen display window for displaying bullet screen information of the target video on the upper layer of the current foreground running interface; The device also includes: A fourth receiving module, used for receiving a fifth input to the bullet screen display window; A fourth display module, configured to display a bullet screen editing area in response to the fifth input; A fifth receiving module, used for receiving a sixth input in the bullet comment editing area; A third determining module, configured to determine input information in response to the sixth input; A fifth display module, used to display the bullet screen information of the target video corresponding to the input information in the bullet screen display window; The fourth receiving module is specifically configured to: Receiving a fifth input of the first bullet-screen information in the bullet-screen display window; The fifth display module is specifically used for: The second barrage information corresponding to the input information is displayed in the barrage display window; the second barrage information includes the input information and the barrage information identifier corresponding to the first barrage information.
12. The device according to claim 11, characterized in that The device also includes: A sixth receiving module, used for receiving a seventh input of the third bullet comment information in the bullet comment display window; A sixth display module, configured to display, in response to the seventh input, a first display area associated with a first barrage publishing object corresponding to the third barrage information in the barrage display window; The seventh display module is used to display the barrage information released by the first barrage release object in the first display area.
13. The device according to claim 12, characterized in that The device also includes: A seventh receiving module, used for receiving an eighth input of the fourth bullet screen information in the bullet screen display window; An eighth display module is used to display the barrage information released by the first barrage release object and the barrage information released by the second barrage release object corresponding to the fourth barrage information in the first display area in response to the eighth input.
14. The device according to claim 11, characterized in that The target video is a live video; The device also includes: An eighth receiving module, configured to receive a ninth input of the fifth bullet-screen information in the bullet-screen display window; The ninth display module is used to display a temporary conversation window in response to the ninth input; the temporary conversation window is used to conduct a conversation with the third bullet chat publishing object corresponding to the fifth bullet chat information.
15. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the video playback method as described in any one of claims 1 to 10.
16. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the video playback method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Method and system for displaying suspended playing window
CN103986962A
Bullet screen display method and device
CN106792087A
Bullet screen information display method and device
CN110278475A
Video playing prompt method and device, multimedia playing prompt method and device, and bullet screen processing method and device
CN110891198A
Video playing method and device, electronic equipment and readable storage medium
CN115065874A
