Video exporting method and device
By launching the picture-in-picture form and background rendering pipeline in the background of the IOS device, the problem of video export interruption when the IOS side app leaves the backstage is solved, and the continuity of video export and user experience are improved.
Patent Information
- Application Number
- CN202410927699.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-01
AI Technical Summary
When the app retreats to the background, the video export task will inevitably be interrupted, resulting in the user need to reoperate, the experience is poor, and the lack of background service mechanism to support the video export to continue.
When the target application of the IOS device retreats to the background or turns off, launch the picture-in-picture form to keep the application alive and continue video export through the background rendering pipeline to avoid interruptions and improve user experience.
By keeping the target application alive in the background of the IOS device, ensuring the continuity of video export tasks, avoiding interruptions, and improving user experience, the problem of interruptions on the IOS side video export is solved.
Smart Images

Figure CN118885352A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a video exporting method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] For editing software, conventional video export operations are completed in the App foreground. During the video export process, if the App exits to the background, the video export process will be interrupted due to the stop of the openGL rendering pipeline, resulting in video export failure. Users need to re-operate on the editing software to export the video again, which is a poor experience.
[0003] To address the issue of interrupting the video export process when the App is exited to the background, the Android side will enable a background service when the App is exited to the background, and place the video export task in this background service to ensure that the video export task proceeds normally. However, the iOS side does not have a similar implementation mechanism, and the video export task is bound to be interrupted when the App is exited to the background.
[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0005] The embodiments of the present application provide a video export method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.
[0006] One aspect of an embodiment of the present application provides a video exporting method, the method comprising:
[0007] When a target application of the iOS device performs video export, monitoring the running status of the target application;
[0008] When it is monitored that the target application program retreats to the background or the screen of the iOS device is turned off, starting a picture-in-picture window of the target application program on the iOS device to keep the target application program active in the background of the iOS device;
[0009] The exporting of the video is continued based on the target application being kept alive in the background.
[0010] Optionally, continuing the export of the video based on the target application program being kept alive in the background includes:
[0011] Starting a background rendering pipeline of the video based on the picture-in-picture window;
[0012] The video continues to be exported based on the background rendering pipeline.
[0013] Optionally, after continuing to export the video based on the target application program kept alive in the background, the method further includes:
[0014] When the target application is monitored to enter the foreground, closing the picture-in-picture window;
[0015] The video continues to be exported based on the target application running in the foreground.
[0016] Optionally, starting the picture-in-picture window of the target application on the iOS device includes:
[0017] Shrinking the picture-in-picture window;
[0018] The position of the reduced picture-in-picture window is adjusted to a target position at the edge of the screen of the iOS device.
[0019] Optionally, the reducing the picture-in-picture window includes:
[0020] Obtain a pre-customized URL address, where the URL address points to a customized video with a size smaller than or equal to a target pixel size;
[0021] The customized video is played using the picture-in-picture window according to the URL address, so that the picture-in-picture window is reduced to accommodate the customized video.
[0022] Optionally, the customized video is silent and the picture is in a preset color.
[0023] Optionally, adjusting the position of the reduced picture-in-picture window to a target position at an edge of the screen of the iOS device includes:
[0024] Traversing the window views of the IOS device to find the picture-in-picture window;
[0025] When the picture-in-picture window is found, the picture-in-picture window is adjusted to a target position at the edge of the screen of the iOS device.
[0026] Another aspect of an embodiment of the present application provides a video exporting device, the device comprising:
[0027] A monitoring module, used for monitoring the running status of the target application of the IOS device when the target application of the IOS device is exporting the video;
[0028] A keep-alive module, for starting a picture-in-picture window of the target application on the IOS device to keep the target application active in the background of the IOS device when monitoring that the target application has retreated to the background or the IOS device has turned off the screen;
[0029] An export module is used to continue exporting the video based on the target application kept alive in the background.
[0030] Another aspect of an embodiment of the present application provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described above.
[0031] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0032] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0033] The above technical solution adopted in the embodiment of the present application may have the following advantages:
[0034] By monitoring the running status of the target application on the IOS device when exporting the video, and when monitoring that the target application has retreated to the background or the IOS device has turned off the screen, starting the picture-in-picture window of the target application on the IOS device, keeping the target application alive in the background of the IOS device, and continuing to export the video based on the target application that has been kept alive in the background, when the target application has retreated to the background or the IOS device has turned off the screen, the target application can be kept alive in the background through picture-in-picture, thereby continuing to export the video, avoiding interruption of video export and the need to re-export the video, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0036] Figure 1 The following schematically shows an operating environment diagram of the video export method according to the first embodiment of the present application;
[0037] Figure 2 The flowchart of the video export method according to the first embodiment of the present application is schematically shown;
[0038] Figure 3 Schematically shows Figure 2 Flow chart of sub-steps of step S202;
[0039] Figure 4 The newly added process of the video export method according to the first embodiment of the present application is schematically shown;
[0040] Figure 5 Schematically shows Figure 3 Flow chart of sub-steps of step S502;
[0041] Figure 6 Schematically shows Figure 2 Flow chart of sub-steps of step S204;
[0042] Figure 7 Another newly added process of the video export method according to the first embodiment of the present application is schematically shown;
[0043] Figure 8 A diagram schematically shows an application example of the video export method according to the first embodiment of the present application;
[0044] Fig. 9 Another application example diagram of the video export method according to the first embodiment of the present application is schematically shown;
[0045] Fig.10 A block diagram schematically shows a video export device according to Embodiment 2 of the present application; and
[0046] Fig.11 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0048] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0049] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0050] First, the following terms are explained:
[0051] Video Export: The process of exporting video files from one system or software to another location or format. This usually involves exporting videos from editing software, video processing software, or other media management systems to a local hard drive, cloud storage, or other device.
[0052] The background rendering pipeline refers to a series of processing steps used to convert a 3D scene into a 2D image in computer graphics. It includes stages such as geometry processing, rasterization, and pixel processing, which are used to convert the vertex data of a 3D model into the final image output.
[0053] Picture-in-Picture (PiP) is a multitasking feature that allows users to watch a video in a small window while performing other tasks on the main screen.
[0054] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below:
[0055] In the related technology, the Android side will enable a background service to continue exporting the video when the App goes back to the background; however, the iOS side does not have a similar implementation mechanism. If the App goes back to the background, the video export task will be interrupted, and the user needs to re-operate to export the video, which is a poor experience.
[0056] To this end, the embodiment of the present application provides a video export technical solution. In this technical solution, the iOS end can continue to export the video when the App retreats to the background, avoiding the interruption of the video export task and the need to re-export the video, thereby improving the user experience. See below for details.
[0057] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0058] like Figure 1 As shown, the environment diagram includes a service platform 2, a network 4, and a client 6, wherein:
[0059] The service platform 2 may be composed of a single or multiple computing devices. The multiple computing devices may include virtualized computing instances. Virtualized computing instances may include virtual machines, such as simulations of computer systems, operating systems, servers, etc. The computing device may load a virtual machine based on a virtual image and / or other data defining specific software (e.g., operating system, dedicated application, server) for simulation. As the demand for different types of processing services changes, different virtual machines may be loaded and / or terminated on one or more computing devices. A hypervisor may be implemented to manage the use of different virtual machines on the same computing device.
[0060] The service platform 2 may be configured to communicate with the client 6 or the like via a network 4. The network 4 includes various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. The network 4 may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and the like, or wireless links, such as cellular links, satellite links, Wi-Fi links, and the like.
[0061] The service platform 2 can provide storage, reading, writing, querying, deleting and other services, such as providing video editing services for clients.
[0062] Client 6 can be a Windows, Android TM ) or iOS operating systems, such as smartphones, tablet devices, laptop computers, virtual reality devices, gaming devices, set-top boxes, in-vehicle terminals, and smart TVs. Based on the above operating systems, various applications can be run, such as video editing software.
[0063] The client 6 may provide / configure a user access page for manipulating the service platform 2 or uploading an object, etc.
[0064] It should be noted that the above devices are exemplary, and the number and type of devices are adjustable in different scenarios or according to different needs.
[0065] The following describes the technical solution of the present application through multiple embodiments, taking the client as the execution subject. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.
[0066] Embodiment 1
[0067] Figure 2 The flowchart of the video export method according to the first embodiment of the present application is schematically shown.
[0068] like Figure 2 As shown, the video export method may include steps S200 to S204, wherein:
[0069] Step S200, when the target application of the IOS device is exporting a video, monitoring the running status of the target application.
[0070] Step S202, when it is monitored that the target application program retreats to the background or the screen of the IOS device is turned off, a picture-in-picture window of the target application program is started on the IOS device to keep the target application program active in the background of the IOS device.
[0071] Step S204, continuing to export the video based on the target application program kept active in the background.
[0072] The video export method provided in the present embodiment monitors the running status of the target application when the target application of the IOS device is exporting the video. When it is monitored that the target application retreats to the background or the screen of the IOS device is turned off, the picture-in-picture window of the target application is started on the IOS device, the target application is kept alive in the background of the IOS device, and the video export is continued based on the target application kept alive in the background. When the target application retreats to the background or the screen of the IOS device is turned off, the target application can be kept alive in the background by picture-in-picture, so as to continue the video export, thereby avoiding the interruption of video export and the need to re-export the video, thereby improving the user experience.
[0073] The following combination Figure 2 , each step in steps S200 to S204 and other optional steps are described in detail.
[0074] Step S200 , when the target application of the IOS device is exporting the video, monitor the running status of the target application.
[0075] The running state of the target application may include, but is not limited to, foreground running, background running, or screen-off state.
[0076] In order to monitor the running status of the target application, you can pre-write a custom monitoring code to monitor the running status of the target application when exporting the video; or, use the callback method to listen when the IOS system application switches between the foreground and the background; or, you can use a third-party tool for monitoring, etc.
[0077] Step S202When it is monitored that the target application retreats to the background or the screen of the IOS device is turned off, the picture-in-picture window of the target application is started on the IOS device to keep the target application active in the background of the IOS device.
[0078] Among them, keeping the target application alive in the background of the iOS device means using some technical means to keep the target application running or at least not being closed or terminated by the iOS system so that it can perform background tasks or respond to user operations or system events in a timely manner. In step S202, the technical means used is to start a picture-in-picture window of the target application.
[0079] In an optional embodiment, if Figure 3 As shown, starting the picture-in-picture window of the target application on the iOS device in step S202 may include steps S500 to S502:
[0080] Step S500, reducing the picture-in-picture window.
[0081] Step S502: Adjust the position of the reduced picture-in-picture window to a target position at the edge of the screen of the iOS device.
[0082] It is understandable that when exporting a video, if the user wants to move the target application to the background, the user may want to run other applications. If the picture-in-picture window of the target application is simply started on the IOS device, it may cause inconvenience to the user in running other applications. The user may close the picture-in-picture window, resulting in the inability to use picture-in-picture to keep the target application active in the background of the IOS device.
[0083] In steps S500 to S502, specifically, the client can minimize the picture-in-picture window, for example, adjust the window corresponding to the picture-in-picture window to the minimum position, and then adjust the reduced picture-in-picture window to the target position of the screen edge of the iOS device. The target position of the screen edge is, for example, the lower left corner, the lower right corner, the upper left corner or the upper right corner.
[0084] In the above optional embodiment, by reducing the picture-in-picture window and adjusting the position of the reduced picture-in-picture window to the target position on the screen edge of the IOS device, the impact of the picture-in-picture window on the user's running of other applications can be reduced, avoiding the user from closing the picture-in-picture window, thereby improving the activity rate of the target application.
[0085] In an optional embodiment, if Figure 4 As shown, step S500 may further include steps S600 to S602:
[0086] Step S600, obtaining a pre-customized URL address, where the URL address points to a customized video with a size smaller than or equal to a target pixel size.
[0087] Step S602: Use the picture-in-picture window to play the customized video according to the URL address, so that the picture-in-picture window is reduced to accommodate the customized video.
[0088] The target pixel size may be a smaller pixel size, such as 1*1 pixel size. The custom video that is less than or equal to the target pixel size may be a custom video whose pixel size is smaller than the smallest preset window size corresponding to the picture-in-picture window in the IOS device. Since the picture-in-picture window in the IOS device will adapt to the playback content, when the custom video is 1*1 pixel in size, the picture-in-picture window will also be reduced to a size similar to 1*1 pixel size. In this way, the user will basically not notice the picture-in-picture window corresponding to the target application, and will not close the picture-in-picture window, thereby ensuring that the target application is kept alive in the background.
[0089] In addition, since the video export may take a long time and the picture-in-picture window may exit after the customized video is played, the customized video can be set to loop. When set to loop, the duration of the customized video is not limited. Of course, for the convenience of customized video production, the duration of the customized video can be shorter, such as 3 seconds.
[0090] In an optional embodiment, the customized video may be silent and the picture may be a preset color.
[0091] In actual applications, in order to prevent users from being easily aware of the PIP window, the customized video can be played in silence, which can also achieve the purpose of muting. However, since playing the customized video in silence may wake up the control controls of the target application (such as the volume control control or other control controls), and the control buttons may make the user aware of the PIP window, the use of a custom video that is itself muted can achieve muting without disrupting the process of shrinking the PIP window to adapt to the playback content and the state it maintains.
[0092] The preset color may be, for example, white, gray, or other visually inconspicuous colors. Since the background colors of different users' iOS devices may be different, setting the preset color to a visually inconspicuous color can reduce the possibility of users noticing the picture-in-picture window when the background color of each user is unknown.
[0093] In an optional embodiment, if Figure 5 As shown, in step S502, the position of the reduced picture-in-picture window is adjusted to the target position at the edge of the screen of the iOS device, which may further include steps S700 to S702:
[0094] Step S700, traverse the window views of the IOS device to find a picture-in-picture window.
[0095] Step S702: When the picture-in-picture window is found, the picture-in-picture window is adjusted to a target position at the edge of the screen of the iOS device.
[0096] In the above optional embodiment, by traversing the window views of the IOS device to find the picture-in-picture window of the target application, when the picture-in-picture window is found, the picture-in-picture window is adjusted to the target position at the edge of the screen of the IOS device, so that the picture-in-picture window of the target application can be adjusted to a predetermined position, thereby further reducing the possibility of the picture-in-picture window being noticed by the user and improving the background activation rate of the target application.
[0097] Step S204 , continuing the video export based on keeping the target application alive in the background.
[0098] In an optional embodiment, if Figure 6 As shown, step S204 may further include steps S300 to S302:
[0099] Step S300, starting the background rendering pipeline of the video based on the picture-in-picture window.
[0100] Step S302, continue to export the video based on the background rendering pipeline.
[0101] Specifically, when the picture-in-picture function is turned on, the client turns on the background rendering pipeline of the video to be exported, and then uses the background rendering pipeline to continue exporting the video.
[0102] In the above optional embodiment, by starting the background rendering pipeline of the video based on the picture-in-picture window and continuing to export the video based on the background rendering pipeline, the video can be exported on the basis of keeping the target application alive, thereby ensuring that the video export can continue without interruption when the target application retreats to the background or the IOS device turns off the screen.
[0103] In an optional embodiment, if Figure 7 As shown, the video export method may further include steps S400 to S402:
[0104] Step S400: When it is monitored that the target application enters the foreground, the picture-in-picture window is closed.
[0105] Step S402, continue exporting the video based on the target application running in the foreground.
[0106] Specifically, when the client uses the picture-in-picture window to keep the target application alive and continue to export the video, it continues to monitor the running status of the target application. When the target application enters the foreground, the picture-in-picture window is closed and the video is continued to be exported using the target application running in the foreground.
[0107] In the above optional embodiment, by closing the picture-in-picture window when monitoring the target application entering the foreground, and continuing to export the video based on the target application running in the foreground, the video export can continue when the target application switches from the background to the foreground, thereby ensuring that the video export is not interrupted.
[0108] In order to make this application easier to understand, the following Figure 8 and Fig. 9 An exemplary application is provided.
[0109] like Figure 8 As shown, video export can include the following:
[0110] 1. The user starts the editing software, selects the local video material file to edit the video material, and exports the video after editing is completed;
[0111] 2. Monitor the running status of the editing software. If the user actively exits the app to the background or the app turns off the screen, the system can detect that the app has exited to the background, start the picture-in-picture function, and start the background rendering pipeline, so that the app can continue to export the video while being kept alive in the background.
[0112] 3. Continue to monitor the running status of the App. If the user actively calls up the App and puts it into the foreground, you can monitor that the App has entered the foreground state, then turn off the picture-in-picture function and continue to export the video in the foreground.
[0113] like Fig. 9 As shown, in order to make it difficult for users to notice the picture-in-picture and improve the survival rate of the application, the video export can further include the following contents:
[0114] 1. Pre-customize the URL address of the picture-in-picture playback, find a video with a muted white screen, use ffmpeg to crop a customized video with a size of 1*1 pixels and a duration of 3 seconds, and make the URL address point to the customized video;
[0115] 2. When the App enters the background state, start the picture-in-picture, initialize the picture-in-picture, pass in the customized playback URL address, and set the customized video to play in a loop;
[0116] 3. The picture-in-picture window is smaller to adapt to the content of the customized playback URL address;
[0117] 4. Traverse the mobile phone window view to find the picture-in-picture window;
[0118] 5. When the picture-in-picture window is found, adjust the picture-in-picture window to the edge corner of the mobile phone screen so that the user does not obviously feel the picture-in-picture window. The App uses the background rendering pipeline to continue exporting the video.
[0119] Embodiment 2
[0120] Fig.10 The block diagram of the video export device 800 according to the second embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig.10 As shown, the device 800 may include: a monitoring module 810, a keep-alive module 820 and an export module 830, wherein:
[0121] The monitoring module 810 is used to monitor the running status of the target application of the IOS device when the target application performs video export;
[0122] The keep-alive module 820 is used to start the picture-in-picture window of the target application on the IOS device to keep the target application active in the background of the IOS device when monitoring that the target application has retreated to the background or the IOS device is turned off;
[0123] The export module 830 is used to continue exporting the video based on the target application program kept active in the background.
[0124] In an optional embodiment, the export module 830 is further configured to:
[0125] Starting a background rendering pipeline of the video based on the picture-in-picture window;
[0126] The video continues to be exported based on the background rendering pipeline.
[0127] In an optional embodiment, the device 800 is further used for:
[0128] When the target application is monitored to enter the foreground, closing the picture-in-picture window;
[0129] The video continues to be exported based on the target application running in the foreground.
[0130] In an optional embodiment, the keep-alive module 820 is further configured to:
[0131] Shrinking the picture-in-picture window;
[0132] The position of the reduced picture-in-picture window is adjusted to a target position at the edge of the screen of the iOS device.
[0133] In an optional embodiment, the keep-alive module 820 is further configured to:
[0134] Obtain a pre-customized URL address, where the URL address points to a customized video with a size smaller than or equal to a target pixel size;
[0135] The customized video is played using the picture-in-picture window according to the URL address, so that the picture-in-picture window is reduced to accommodate the customized video.
[0136] In an optional embodiment, the customized video is silent and the picture is a preset color.
[0137] In an optional embodiment, the keep-alive module 820 is further configured to:
[0138] Traversing the window views of the IOS device to find the picture-in-picture window;
[0139] When the picture-in-picture window is found, the picture-in-picture window is adjusted to a target position at the edge of the screen of the iOS device.
[0140] Embodiment 3
[0141] Fig.11 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the video export method according to the third embodiment of the present application is schematically shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Fig.11 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them:
[0142] The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as a hard disk or a memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 may also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store an operating system and various application software installed in the computer device 10000, such as program code of a video export method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or are to be output.
[0143] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.
[0144] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0145] It should be pointed out that Fig.11 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0146] In this embodiment, the video export method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.
[0147] Embodiment 4
[0148] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the video exporting method in the embodiment are implemented.
[0149] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the video export method in the embodiment, etc. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0150] Embodiment 5
[0151] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0152] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0153] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A video export method, characterized in that: The method comprises: When a target application of the iOS device performs video export, monitoring the running status of the target application; When it is monitored that the target application program retreats to the background or the screen of the iOS device is turned off, starting a picture-in-picture window of the target application program on the iOS device to keep the target application program active in the background of the iOS device; The exporting of the video is continued based on the target application being kept alive in the background.
2. The method according to claim 1, characterized in that The exporting of the video is continued based on the target application being kept alive in the background, comprising: Starting a background rendering pipeline of the video based on the picture-in-picture window; The video continues to be exported based on the background rendering pipeline.
3. The method according to claim 1, characterized in that After continuing to export the video based on the target application program kept alive in the background, the method further includes: When it is monitored that the target application enters the foreground, closing the picture-in-picture window; The video continues to be exported based on the target application running in the foreground.
4. The method according to any one of claims 1 to 3, characterized in that: Starting a picture-in-picture window of the target application on the iOS device includes: Shrinking the picture-in-picture window; The position of the reduced picture-in-picture window is adjusted to a target position at the edge of the screen of the IOS device.
5. The method according to claim 4, characterized in that The reducing the picture-in-picture window comprises: Obtain a pre-customized URL address, where the URL address points to a customized video with a size smaller than or equal to a target pixel size; The customized video is played using the picture-in-picture window according to the URL address, so that the picture-in-picture window is reduced to accommodate the customized video.
6. The method according to claim 5, characterized in that The customized video is silent and the picture is in a preset color.
7. The method according to claim 4, characterized in that The step of adjusting the position of the reduced picture-in-picture window to a target position at an edge of a screen of the iOS device includes: Traversing the window views of the IOS device to find the picture-in-picture window; When the picture-in-picture window is found, the picture-in-picture window is adjusted to a target position at an edge of the screen of the iOS device.
8. A video export device, characterized in that: The device comprises: A monitoring module, used for monitoring the running status of the target application of the IOS device when the target application of the IOS device is exporting the video; A keep-alive module, for starting a picture-in-picture window of the target application on the IOS device to keep the target application active in the background of the IOS device when monitoring that the target application has retreated to the background or the IOS device has turned off the screen; An export module is used to continue exporting the video based on the target application kept active in the background.
9. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in thatWhen the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
