Video playing method and device, storage medium and equipment

By implementing the overlay display of the video playback window on the display interface, the user's experience problem when playing online videos at the same time and using other applications is solved, the video playback window is reduced and unrelated content is interfered with, and the user's viewing experience is improved.

CN119967215APending Publication Date: 2025-05-09GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311473542.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

In the prior art, when users play online videos at the same time and use other applications, they usually can only use split-screen methods, resulting in the video playback window being reduced, affecting the user experience, and there is irrelevant content in the video web page, interfering with the viewing experience.

Method used

By displaying the video playback window on the display interface and superimposed display when the video playback window coincides with other windows, it can meet the needs of users to watch online videos at the same time and use other applications, while avoiding displaying irrelevant content and improving the viewing experience.

Benefits of technology

It realizes an efficient experience for users to play online videos at the same time and use other applications, avoids the problem of narrowing the video playback window and unrelated content interference, and improves the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967215A_ABST
    Figure CN119967215A_ABST
Patent Text Reader

Abstract

The invention relates to a video playing method and device, a storage medium and equipment, and the method comprises the steps: displaying a video playing window on a display interface in response to a video playing instruction, and displaying the video playing window on a first window in an overlapping manner when the video playing window is partially or completely overlapped with the first window in position. Therefore, the requirements of users for watching online videos and using other applications at the same time are met; moreover, in response to the playing request for the online video, the address information of the online video is acquired, the first video data is acquired according to the address information, and the online video is directly played in the video playing window according to the first video data, so that the user experience is improved while the requirements of watching the online video and using other applications by the user are met. And irrelevant contents in the online video webpage are not displayed, so that the watching experience of the user can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of interactive tablets, and in particular to a video playing method, device, storage medium and equipment. Background Art

[0002] In the related art, when a user needs to play online videos and use other applications on one interface at the same time, he usually can only use a split-screen approach to display the online video web page and the content of the application on each split screen. However, the display area of ​​the online video web page after the split screen is reduced, and the video web page usually also contains irrelevant content such as recommended content, comments, and barrage. The video playback window can only be displayed in a certain area of ​​the split screen in the form of a small window, affecting the user's video viewing experience. Summary of the invention

[0003] The embodiments of the present application provide a video playback method, apparatus, storage medium and device, which can meet the needs of users to watch online videos and use other applications at the same time, thereby improving the user's video viewing experience.

[0004] In a first aspect, an embodiment of the present application provides a video playback method, comprising the following steps:

[0005] In response to a video playback instruction, a video playback window is displayed on a display interface; wherein the display interface includes a first window, and when the positions of the video playback window and the first window partially or completely overlap, the video playback window is displayed superimposed on the first window;

[0006] In response to a request for playing an online video, acquiring address information of the online video, and acquiring first video data according to the address information;

[0007] The online video is played in the video play window according to the first video data.

[0008] In a second aspect, an embodiment of the present application provides a video playback device, the device comprising:

[0009] A window display module, configured to display a video playback window on a display interface in response to a video playback instruction; wherein the display interface includes a first window, and when the positions of the video playback window and the first window partially or completely overlap, the video playback window is displayed superimposed on the first window;

[0010] A video data acquisition module, configured to acquire address information of the online video in response to a request for playing the online video, and acquire first video data according to the address information;

[0011] An online video playback module is used to play the online video in the video playback window according to the first video data.

[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the video playback method as described in any one of the above.

[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor;

[0014] When the processor executes the computer program, the steps of the video playback method as described in any one of the above items are implemented.

[0015] In an embodiment of the present application, in response to an instruction to play a video, a video playback window is displayed on a display interface. When there is a partial or complete overlap between the positions of the video playback window and the first window, the video playback window is superimposed and displayed on the first window, thereby satisfying the user's needs of watching online videos and using other applications at the same time. In addition, the present application obtains address information of the online video in response to a request to play an online video, obtains first video data based on the address information, and directly plays the online video in the video playback window based on the first video data. While satisfying the user's needs to watch online videos and use other applications, irrelevant content such as recommended content, comments, and barrage in the online video web page will not be displayed, thereby improving the user's viewing experience.

[0016] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of a video playback method according to an embodiment of the present invention;

[0018] Figure 2 A schematic diagram of a display interface in one embodiment of the present invention;

[0019] Figure 3 A flowchart of a video playback method according to another embodiment of the present invention;

[0020] Figure 4 A schematic diagram of a display interface in another embodiment of the present invention;

[0021] Figure 5 is a flow chart of step S120 in one embodiment of the present invention;

[0022] Figure 6 A schematic diagram of a display interface in another embodiment of the present invention;

[0023] Figure 7 A flowchart of a video playback method according to another embodiment of the present invention;

[0024] Figure 8 A schematic diagram of the structure of a video playback device in one embodiment of the present invention;

[0025] Fig. 9 The figure is a schematic diagram of the structure of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0027] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0028] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0029] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0030] In addition, in the description of this application, unless otherwise specified, "several" means two or more. "And / or" describes the corresponding relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0031] The video playback method of the present application can be applied to intelligent terminal devices such as interactive tablets, mobile phones, and laptop computers. The present application provides a video playback method, wherein a display interface displays a first window, the first window can be a note, a mind map, or a window of other applications, and the application can be a video application or a non-video application. The first window can be displayed in the display interface in full screen form or in the form of a window.

[0032] In the prior art, when a user uses split screen to watch online videos and use other applications at the same time, the video playback window can only be displayed as a small window in the split screen, because the video webpage usually contains recommended content, comments, bullet comments, etc., which affects the user's viewing experience. When the user needs to play the online video in full screen, the current display interface can only be switched to the video playback window of the online video, and other applications cannot be used, which affects the user experience.

[0033] Therefore, for the above questions, please refer to Figure 1 The video playback method of the present application comprises the following steps:

[0034] S110: In response to a video playback instruction, display a video playback window on a display interface; wherein the display interface includes a first window, and when the positions of the video playback window and the first window partially or completely overlap, the video playback window is displayed superimposed on the first window;

[0035] The play instruction may be a request issued by a user to a smart terminal device for playing a video. After receiving the video play instruction, the smart terminal device displays a video play window on a display interface, and the video play window may be used to play the video.

[0036] In the present application, the priorities of the first window and the video playback window may be different, and the priority of the video playback window may be higher than that of the first window. Specifically, the first window and the video playback window may be displayed in different layers, and the layer displayed by the video playback window is before the layer displayed by the first window. When the position of the video playback window partially or completely overlaps with that of the first window, the video playback window is displayed first, that is, the video playback window is superimposed on the first window.

[0037] Specifically, based on the characteristics of WindowManager in the Android component, by adding a view control of the LayoutParams.TYPE_SYSTEM_ALERT type to the video playback window, the video playback window has the highest priority and can cover other application windows when displayed.

[0038] The position and size of the video playback window of the present application can be set according to user needs, wherein the video playback window can be a window pre-built by the user, or, after receiving a video playback instruction, a pre-set video playback window generation program is started to generate the video playback window.

[0039] The video playback window of this application does not rely on the system's window mode and does not require a system signature. It only needs to apply for floating window permissions from the user to enable the video playback window to run in the display interface as a floating window without being restricted by the system.

[0040] S120: In response to a request for playing an online video, acquiring address information of the online video, and acquiring first video data according to the address information;

[0041] The play request is used to play an online video, and the address information is used to obtain the first video data of the video to be played from the video source. The video source can be understood as the source of the first video data, and the video source can refer to an electronic device that stores video data (such as various network servers).

[0042] The address information of the online video may refer to a Uniform Resource Locator (URL) address.

[0043] S130: Play the online video in the video playback window according to the first video data.

[0044] When playing online videos in the video playback window, the existing video players or video playback components such as MediaPlayer and ijkplayer can be used to play online videos. The technical personnel of the present application can use programming techniques known in the art to play online videos, which is not limited to this embodiment.

[0045] like Figure 2 As shown, it is a schematic diagram of the display interface in one embodiment of the present application; the display interface includes a first window 110 and a video playback window 120, the first window 110 is displayed in full screen on the display interface, and the video playback window 120 is superimposed on the first window 110.

[0046] In an embodiment of the present application, in response to an instruction to play a video, a video playback window is displayed on a display interface. When there is a partial or complete overlap between the positions of the video playback window and the first window, the video playback window is superimposed and displayed on the first window, thereby satisfying the user's needs of watching online videos and using other applications at the same time. In addition, the present application obtains address information of the online video in response to a request to play an online video, obtains first video data based on the address information, and directly plays the online video in the video playback window based on the first video data. While satisfying the user's needs to watch online videos and use other applications, irrelevant content such as recommended content, comments, and barrage in the online video web page will not be displayed, thereby improving the user's viewing experience.

[0047] In step S110, the video playback window may be displayed in a floating window at any position in the display interface.

[0048] like Figure 3 As shown, in a preferred embodiment, the video playing method further includes the following steps:

[0049] S210: In response to a move operation on the video play window, move the video play window on the display interface;

[0050] S220: If the distance between the video playback window and the edge of the display interface is less than a distance threshold, move the video playback window to a target position corresponding to the edge of the display interface.

[0051] The user can move the video playback window within the display interface by dragging the video playback window.

[0052] The target position is a position near the edge of the display interface. The target position can be set according to user requirements. In an embodiment of the present application, the target position can be a position where the edge of the video playback window overlaps with the edge of the display interface.

[0053] like Figure 4 As shown, the video playback window moves in the display interface according to the user's movement operation. When the video playback window moves to a position 201 near the first edge 203 of the display interface, that is, the distance between the video playback window and the first edge 203 is less than the distance threshold, the video playback window is moved to a target position 202 corresponding to the first edge 203. In an embodiment of the present application, the target position 202 may be the position of the first edge 203, and the first side of the moved video playback window coincides with the first edge 203.

[0054] In an embodiment of the present application, when the video playback window is moved to the edge of the display interface, the video playback window can be automatically moved to the target position near the edge of the display interface, thereby achieving automatic edge adsorption of the video playback window, making it more convenient for users to adjust the position of the video playback window and improving user experience.

[0055] In step S120, the address information may be information input by a user, or, in another embodiment, the play request of the online video may include the address information, and the address information is directly obtained from the play request.

[0056] When acquiring the first video data, the link of the first video data may be acquired by parsing the address information.

[0057] Specifically, in one embodiment, the address information includes a website identifier of a website to which the online video belongs; and the step of acquiring the first video data according to the address information specifically includes:

[0058] Acquire an application programming interface corresponding to the website identifier, and use the application programming interface to acquire first video data according to the address information;

[0059] Alternatively, if the application programming interface corresponding to the website identifier is not obtained, the address information is parsed using a preset third-party parsing tool to obtain the first video data.

[0060] The website identifier is used to determine the website to which the online video belongs. The website identifier may be the domain name, abbreviation, pinyin or character identifier of the website.

[0061] Some existing websites provide official application programming interfaces (APIs) for external users to interact with their websites and access their video content. Therefore, in the embodiment of the present application, the official API of the website is obtained based on the website identifier of the website to which the online video belongs, and the first video data is obtained using the API.

[0062] If the website to which the online video belongs does not have a corresponding application programming interface, the web page can be parsed using a third-party parsing tool such as BeautifulSoup, or regular expressions can be used to match specific tags or content on the web page to obtain the first video data.

[0063] Preferably, the first video data acquisition process of the present application can be performed in the server, thereby reducing the memory usage and computing resource usage of the smart terminal device.

[0064] Specifically, the step of acquiring the first video data according to the address information specifically includes:

[0065] The address information is sent to a server, and the first video data is received after the server parses the address information.

[0066] The server can be connected to the intelligent terminal device that executes the video playback method of the present application, and the server can store scripts for calling the application programming interface of the website to which the online video belongs and third-party parsing tools.

[0067] This application uses a server to obtain the first video data. When the online video website is updated and iterated, resulting in changes in the data structure, or the third-party parsing tool needs to be upgraded, it is only necessary to input a new script or a new third-party parsing tool into the back-end server or upgrade the third-party parsing tool in the server. There is no need to update the front-end smart terminal device, thereby improving stability and user experience.

[0068] like Figure 5 As shown, in one embodiment, the step of obtaining the address information of the online video specifically includes:

[0069] S121: Read the content of the clipboard according to the set interval time;

[0070] S122: If the clipboard content includes address information of an online video, the address information is sent to a server.

[0071] When a user needs to play an online video, he can copy the online video to the clipboard, and the first video data of the online video can be automatically obtained according to the content of the clipboard, and played in the video playback window. The online video playback operation is simple, which improves the online video playback efficiency and user experience.

[0072] In step S121, when the smart terminal device is an Android system, the postDelayed() method of the Handler can be used to perform the task of periodically reading the contents of the clipboard according to the set interval time. The interval time can be set according to user needs, for example, it can be set to 5 seconds. Specifically, the contents of the clipboard can be obtained through the Context.getSystemService(Context.CLIPBOARD_SERVICE) method.

[0073] In this application, before reading the content of the clipboard at the set interval, the following steps may also be included:

[0074] Displaying a clipboard reading prompt message on the display interface; the clipboard reading prompt message is used to prompt the user to confirm whether to read the clipboard content according to the set interval time;

[0075] In response to a confirmation instruction for the clipboard reading prompt information, the content of the clipboard is read according to a set interval time.

[0076] like Figure 6 As shown, the clipboard reading prompt information 300 may be displayed in the form of a pop-up window, and the clipboard reading prompt information 300 may be "Confirm the setting to read the clipboard content every 5 seconds". In other embodiments, the clipboard reading prompt information 300 may also be displayed in other texts and other display forms;

[0077] The clipboard reading prompt information 300 includes a confirmation control 310. When the user triggers the confirmation control 310, a confirmation instruction for the clipboard reading prompt information is generated. At this time, the content of the clipboard is read every 5 seconds.

[0078] Specifically, when executing the task of periodically reading the contents of the clipboard, the startService() method can be used to start the background service of the smart terminal device, and the background polling logic can be handled by overriding the onStartCommand() method, such as using the Handler's postDelayed() method to periodically execute the task of reading the contents of the clipboard.

[0079] In step S122, after obtaining the clipboard content, text analysis can be performed on the clipboard content to determine whether the clipboard content includes address information of the online video. If the clipboard content includes address information of the online video, the address information is sent to the server so that the server can obtain the first video data based on the address information.

[0080] In the present application, the clipboard content is periodically and intelligently identified, and when it is identified that the clipboard content includes the address information of the online video, it is sent to the server, so that the server extracts the first video data of the online video based on the address information. When the data structure of the online video website changes, the server can update and deploy the parsing script in time without affecting the user end, thereby improving the user's experience of watching the video.

[0081] like Figure 7 As shown, the video playback method of the present application also includes the following steps:

[0082] S310: In response to a request to play a local video, display a video file selection interface; the video file selection interface includes at least one local video;

[0083] Specifically, the display interface may include a local video playback control. When a user triggers the local video playback control and generates a local video playback request, the smart terminal device may call the startActivityForResult() method to open a video file selection interface, which displays at least one local video. The video file selection interface may be a multimedia selection interface provided by the system.

[0084] Preferably, after opening the video file selection interface, the file type of the video file can also be set, thereby controlling the video file selection interface to display local videos of the corresponding file type.

[0085] Specifically, users can use the setType() method of Intent to set the display of only video files of file types such as .mp4, .flv, and .avi, thereby saving users time in searching for local videos and improving local video playback efficiency.

[0086] S320: In response to a selection operation of a local video on the video file selection interface, obtaining a storage path of the local video and sending the storage path to a player component, so that the player component decodes the local video according to the storage path to obtain decoded second video data;

[0087] The user can select the video to be played by triggering a local video in the video file selection interface. After the user selects a local video, the storage path of the local video is obtained and passed to the player component through the onActivityResult() method, so that the player component decodes the local video according to the storage path.

[0088] The player component can use an existing decoding method to decode the local video to obtain the second video data.

[0089] S330: Play the local video in the video playback window according to the second video data.

[0090] When playing local videos in the video playback window, the existing video players or video playback components such as MediaPlayer and ijkplayer can be used to play local videos. The technical personnel of the present application can use programming techniques known in the art to play local videos, which is not limited to this embodiment.

[0091] The video playback method of the embodiment of the present application allows users to use other applications while playing local videos or online videos. For example, users can watch online videos while taking notes in note taking software, thus satisfying various user needs. In addition, when playing online videos, the video playback window of the present application directly plays the online video in full screen without being disturbed by advertisements or other information on the video webpage, thus effectively improving the user's viewing experience.

[0092] See also Figure 8 The embodiment of the present application further provides a video playback device, the device comprising:

[0093] The window display module 410 is used to display a video playback window on a display interface in response to a video playback instruction; wherein the display interface includes a first window, and when the positions of the video playback window and the first window partially or completely overlap, the video playback window is displayed superimposed on the first window;

[0094] The video data acquisition module 420 is used to obtain address information of the online video in response to a request for playing the online video, and obtain first video data according to the address information;

[0095] The online video playing module 430 is used to play the online video in the video playing window according to the first video data.

[0096] In one embodiment, the address information includes a website identifier of a website to which the online video belongs; the video data acquisition module 420 includes:

[0097] A first video data acquisition unit, configured to acquire an application programming interface corresponding to the website identifier, and acquire first video data according to the address information using the application programming interface;

[0098] The second video data acquisition unit is used to parse the address information using a preset third-party parsing tool to acquire the first video data if the application programming interface corresponding to the website identifier is not acquired.

[0099] In one embodiment, the video data acquisition module 420 is used to send the address information to a server, and receive the first video data obtained by the server after parsing the address information.

[0100] In one embodiment, the video data acquisition module 420 includes:

[0101] The clipboard content acquisition unit is used to read the clipboard content according to the set interval time;

[0102] The address information sending unit is used to send the address information of the online video to the server if the clipboard content includes the address information of the online video.

[0103] In one embodiment, the video playback device further includes:

[0104] A video file selection interface display module, used to display a video file selection interface in response to a request to play a local video; the video file selection interface includes at least one local video;

[0105] A local video data acquisition module, configured to, in response to a selection operation of a local video on the video file selection interface, acquire a storage path of the local video and send the storage path to a player component, so that the player component decodes the local video according to the storage path to obtain decoded second video data;

[0106] The local video playing module is used to play the local video in the video playing window according to the second video data.

[0107] In one embodiment, the video playback device further includes:

[0108] A first moving module, configured to move the video playing window on the display interface in response to a moving operation on the video playing window;

[0109] The second moving module is used to move the video playing window to a target position corresponding to the edge of the display interface if the distance between the video playing window and the edge of the display interface is less than a distance threshold.

[0110] It should be noted that, when the video playback device provided in the above embodiment executes the video playback method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the video playback device provided in the above embodiment and the video playback method in the above embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0111] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the video playback method as described in any one of the above are implemented.

[0112] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0113] The present application also provides an electronic device 500, comprising a memory 510, a processor 520, and a computer program stored in the memory 510 and executable by the processor 520;

[0114] When the processor 520 executes the computer program, the steps of the video playback method as described in any one of the above items are implemented.

[0115] The memory 510 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0116] The processor 520 is the control core (Control Unit) of the electronic device 500. It uses various interfaces and lines to connect the various components of the entire electronic device, and executes various functions and processes data of the electronic device 500 by running or executing the program or module stored in the memory 510, and calling the data stored in the memory 510. For example, when the processor executes the computer program stored in the memory 510, it implements all or part of the steps of the video playback method described in the embodiment of the present application; or implements all or part of the functions of the video playback device. The processor 520 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same or different functions, including one or more central processing units (CPU), microprocessors, digital processing chips, graphics processors, and a combination of various control chips.

[0117] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.

Claims

1. A video playback method, characterized in that: The following steps are involved: In response to a video playback instruction, a video playback window is displayed on a display interface; wherein the display interface includes a first window, and when the positions of the video playback window and the first window partially or completely overlap, the video playback window is displayed superimposed on the first window; In response to a request for playing an online video, acquiring address information of the online video, and acquiring first video data according to the address information; The online video is played in the video play window according to the first video data.

2. The video playback method according to claim 1, characterized in that: The address information includes a website identifier of a website to which the online video belongs; and the step of acquiring the first video data according to the address information specifically includes: An application programming interface corresponding to the website identifier is obtained, and the first video data is obtained according to the address information using the application programming interface.

3. The video playback method according to claim 2, characterized in that: The step of acquiring the first video data according to the address information specifically includes: If the application programming interface corresponding to the website identifier is not obtained, the address information is parsed using a preset third-party parsing tool to obtain the first video data.

4. The video playback method according to claim 1, characterized in that: The step of acquiring the first video data according to the address information specifically includes: The address information is sent to a server, and the first video data is received after the server parses the address information.

5. The video playback method according to claim 4, characterized in that: The step of obtaining the address information of the online video specifically includes: Read the contents of the clipboard at the set interval; If the clipboard content includes address information of an online video, the address information is sent to a server.

6. The video playback method according to claim 1, characterized in that: The following steps are also included: In response to a request to play a local video, display a video file selection interface; the video file selection interface includes at least one local video; In response to a selection operation of a local video on the video file selection interface, a storage path of the local video is obtained and sent to a player component, so that the player component decodes the local video according to the storage path to obtain decoded second video data; The local video is played in the video play window according to the second video data.

7. The video playback method according to claim 1, characterized in that: The following steps are also included: In response to a move operation on the video play window, moving the video play window on the display interface; If the distance between the video playback window and the edge of the display interface is less than a distance threshold, the video playback window is moved to a target position corresponding to the edge of the display interface.

8. A video playback device, characterized in that: The device comprises: A window display module, configured to display a video playback window on a display interface in response to a video playback instruction; wherein the display interface includes a first window, and when the positions of the video playback window and the first window partially or completely overlap, the video playback window is displayed superimposed on the first window; A video data acquisition module, configured to acquire address information of the online video in response to a request for playing the online video, and acquire first video data according to the address information; An online video playback module is used to play the online video in the video playback window according to the first video data.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the video playing method as described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: comprising a memory, a processor, and a computer program stored in the memory and executable by the processor; When the processor executes the computer program, the steps of the video playback method according to any one of claims 1 to 7 are implemented.