Media resource information processing method, processing device, processing system and electronic equipment
By obtaining, analyzing and outputting media resource information for video applications on Android devices, the problem of time spent manually obtaining information by media resource operation personnel is solved, and automated processing is achieved, reducing labor costs and improving work efficiency.
Patent Information
- Application Number
- CN202010597172.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-28
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2040-06-28
AI Technical Summary
At this stage, media resource operation personnel need to spend a lot of time manually studying media resource information recommended or displayed by video applications on Android devices to assist in operational decision-making, resulting in high labor costs and low work efficiency.
By obtaining media resource information of video applications on Android devices, analyzing this information, extracting key information, and outputting these key information, automating processing and reducing human intervention.
It realizes automatic acquisition and parsing of media resource information of video applications on Android devices, outputs key information of video applications, and displays them uniformly, reducing the workload of artificial information acquisition, reducing labor costs, and improving work efficiency.
Smart Images

Figure CN111737625B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of multimedia technology, and more specifically, to a media resource information processing method, a processing device, a processing system and an electronic device. Background Art
[0002] For those involved in media resource operations, they need to spend a lot of time studying the media resource information recommended or displayed by video applications on Android devices to assist in various operational decisions.
[0003] Therefore, how to automatically provide media resource information to save labor costs has become an urgent problem that needs to be solved at this stage. Summary of the invention
[0004] In view of this, in order to solve the above problems, the present invention provides a media resource information processing method, processing device, processing system and electronic device. The technical solution is as follows:
[0005] A method for processing media resource information, the method comprising:
[0006] Get media resource information of video applications on Android devices;
[0007] Parsing the media resource information and extracting key information of the video application;
[0008] Output key information of the video application.
[0009] Preferably, the obtaining of media resource information of video applications on the Android device includes:
[0010] Establishing a communication connection with the Android device;
[0011] Based on the communication connection, a user interface UI capture tool preinstalled on the Android device is called to obtain UI hierarchy information of the video application on the Android device.
[0012] Preferably, the obtaining of media resource information of video applications on the Android device further includes:
[0013] Determine the UI coordinates of the UI page for playing the media resource on the main page of the video application from the UI hierarchy information;
[0014] Based on the UI coordinates, locate the UI page on the main page of the video application and play it on demand, so that the UI page plays the corresponding media resource;
[0015] Based on the communication connection, a UI capture tool preinstalled on the Android device is called to obtain information about the media resources played on the UI page.
[0016] Preferably, determining the UI coordinates of the UI page for playing the media resource on the main page of the video application includes:
[0017] Determine the UI coordinates of a UI page for playing the target media resource on the main page of the video application.
[0018] Preferably, the method further comprises:
[0019] The key information of the video application is uploaded to a cloud server, and the key information of the video application is stored in a relational database by the cloud server.
[0020] A media resource information processing device, the device comprising:
[0021] The information acquisition module is used to obtain the media resource information of video applications on Android devices;
[0022] The information analysis module is used to analyze the media resource information, extract the key information of the video application, and output the key information of the video application.
[0023] Preferably, the information acquisition module is used to:
[0024] Establish a communication connection with the Android device; based on the communication connection, call the user interface UI capture tool pre-installed on the Android device to obtain UI hierarchy information of the video application on the Android device.
[0025] Preferably, the information acquisition module is also used for:
[0026] From the UI hierarchy information, determine the UI coordinates of the UI page for playing media resources on the main page of the video application; based on the UI coordinates, locate the UI page on the main page of the video application and play it on demand so that the UI page plays the corresponding media resources; based on the communication connection, call the UI crawler pre-installed on the Android device to obtain information about the media resources played by the UI page.
[0027] An electronic device, comprising:
[0028] A memory, used to store programs and data generated by the execution of the programs;
[0029] The processor is used to execute the program to achieve the following functions: obtaining media resource information of video applications on an Android device; parsing the media resource information to extract key information of the video applications; and outputting the key information of the video applications.
[0030] A media resource information processing system, the system comprising: an Android device, a cloud server and the electronic device described in claim 9.
[0031] The media resource information processing method, processing device, processing system and electronic device provided by the present invention can automatically obtain the information of media resources recommended or displayed by any video application of an Android device, and output the key information of the video application after data analysis, so as to achieve unified display. This can reduce the workload of manually obtaining information, thereby reducing labor costs and improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0033] Figure 1 A method flow chart of a method for processing media resource information provided by an embodiment of the present invention;
[0034] Figure 2 A partial method flow chart of a method for processing media resource information provided by an embodiment of the present invention;
[0035] Figure 3 An example of a UI page for playing media resources provided in an embodiment of the present invention;
[0036] Figure 4 An example of a main page that uniformly displays multiple media resources in real time provided by the present invention;
[0037] Figure 5 A flowchart of another part of the method for processing media resource information provided by an embodiment of the present invention;
[0038] Figure 6 A schematic diagram of the structure of a media resource information processing device provided by an embodiment of the present invention;
[0039] Figure 7 A schematic diagram of the structure of a media resource information processing system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0042] UI: User Interface Design, which is the abbreviation of user interface.
[0043] An embodiment of the present invention provides a method for processing media resource information, which can be applied to electronic devices. The method flow chart of the method is as follows: Figure 1 As shown, the following steps are included:
[0044] S10, obtaining media resource information of video applications on the Android device.
[0045] At present, there are many solutions for obtaining information of media resources recommended or displayed by video applications (i.e., media resource information), such as the title, cast, details, description information, and recommendation index of the video. However, in order to be effective for any video application on an Android device, in an embodiment of the present invention, the media resource information of any video application is obtained based on the existing technical tool " / system / bin / uiautomator" of the Android system.
[0046] In the specific implementation process, step S10 "obtaining media resource information of video applications on the Android device" can be implemented by the following steps, as shown in the flowchart of the method. Figure 2 As shown:
[0047] S101, establishing a communication connection with an Android device.
[0048] In the embodiment of the present invention, communication is established with an Android device through an adb command. Specifically, the Android system of the Android device is loaded with adbd (adb daemon), and the electronic device starts an adb server, which generates corresponding adb commands and sends them to the Android device. In this way, the adbd process in the Android device can process files such as query, delete, upload, download, etc. according to the received adb commands, and return the processing results to the adb server of the electronic device. Obviously, managing the media resource information of the Android device through adb commands can display more comprehensively and facilitate user operation; moreover, since the electronic device and the Android device do not need to be directly connected, remote management is supported, which improves the user experience.
[0049] S102, based on the communication connection, calling a UI capture tool pre-installed on the Android device to obtain UI layer information of the video application on the Android device.
[0050] In an embodiment of the present invention, the electronic device calls the technical tool " / system / bin / uiautomator" on the Android device based on the communication connection established with the Android device through the adb command to capture the UI hierarchical information of the video application, that is, the information of each layer of pages on the video application, which includes a UI page for playing media resources, and also includes a main page for uniformly displaying multiple media resources to the user. Figure 3 For UI page example, Figure 4 This is an example of a main page.
[0051] It should be noted that, in the embodiment of the present invention, the program for executing steps S101 to S102 is written in a programming language (such as Python, etc.), and is connected to the Android device through the adb command (the SDK tool provided by the Android device). The program can automatically obtain the UI level information of the video application recommendation or display media resources running on the Android device. Only after the information is successfully obtained will the subsequent operations be performed, otherwise the connection and acquisition actions will continue.
[0052] It should also be noted that, since the UI level information of the video application is captured by relying on the technical tool “ / system / bin / uiautomator” on the Android device, the UI level information of the video application obtained by the electronic device is in the xml format.
[0053] On this basis, since the UI layer information of video applications is a type of media resource information obtained when the media resource is not in the playing state, there is still a lack of a type of media resource information embedded when the media resource is in the playing state, such as subtitles, and other information such as the playing time. Therefore, to ensure the comprehensiveness of the obtained media resource information, in the embodiment of the present invention, step S10 "obtaining media resource information of video applications on Android devices" also includes the following steps, the method flow chart is as follows Figure 5 As shown:
[0054] S103: Determine the UI coordinates of the UI page for playing the media resource on the main page of the video application from the UI hierarchy information.
[0055] S104, based on the UI coordinates, locate the UI page on the main page of the video application and play it on demand, so that the UI page plays the corresponding media resources.
[0056] S105, based on the communication connection, calling a UI capture tool pre-installed on the Android device to obtain information about the media resources played on the UI page.
[0057] In the embodiment of the present invention, the UI layer information includes information of each layer of pages on the video application. Figure 3 and Figure 4 In order to obtain the media resource information embedded when a media resource is in the playing state, it is necessary to first determine the UI coordinates of the UI page that plays the media resource on the main page, that is, the interface position of the main page displaying the media resource, and further locate the UI page on the main page, that is, "focus" on the media resource, and simulate the user clicking on the UI page to play the media resource, so as to obtain the information of the media resource, that is, the media resource information embedded when the media resource is in the playing state.
[0058] In addition, to adapt to different application scenarios, an embodiment of the present invention also supports users to select one or more from the multiple media resources displayed on the main page as target objects for obtaining pre-embedded media resource information, that is, determining the UI coordinates of the UI page used to play the target media resource on the main page of the video application, thereby "focusing" on the target media resource based on the UI coordinates, and simulating the user clicking on the UI page to play the target media resource, thereby obtaining pre-embedded information of the target media resource such as subtitles and playback duration.
[0059] It should be noted that, in the embodiment of the present invention, the program for executing step S105 is written in a programming language (such as python, etc.), and is connected to the program of the Android device through the adb command (sdk tool provided by the Android device). The program can automatically obtain the information of the media resources played by the UI page.
[0060] S20, parsing media resource information and extracting key information of video applications.
[0061] In the embodiment of the present invention, the information of the field, i.e., key information, is parsed and extracted from the media resource information through a custom keyword field. For example, the fields of "title", "cast composition", and "details" are set, and the field contents of "title", "cast composition", and "details" are extracted from the media resource information as key information for video applications.
[0062] S30, output key information of video applications.
[0063] In the embodiment of the present invention, key information of video applications can be displayed and stored on the electronic device.
[0064] Of course, to avoid information loss and improve the dimension of data display, in an embodiment of the present invention, key information of video applications can also be uploaded to a cloud server, and the key information of video applications is stored in a relational database by the cloud server.
[0065] That is to say, the electronic device can upload the key information of the video application to a cloud server, such as a web server, and the server stores the key information in its relational database (such as MySQL, ORACLE, etc.) for data backup.
[0066] The web server can query the information in the relational database and then display it to the user in different dimensions. The user can view the web page content displayed by the web server through the browser.
[0067] The media resource information processing method provided by the embodiment of the present invention can automatically obtain the information of the media resource recommended or displayed by any video application of the Android device, and output the key information of the video application after data analysis, so as to realize unified display. This can reduce the workload of manual information acquisition, thereby reducing labor costs and improving work efficiency.
[0068] Based on the media resource information processing method provided in the above embodiment, an embodiment of the present invention provides a device for executing the above media resource information processing method. The structure diagram of the device is as follows: Figure 6 As shown, including:
[0069] The information acquisition module 10 is used to acquire the media resource information of the video application on the Android device;
[0070] The information analysis module 20 is used to analyze the media resource information, extract the key information of the video application, and output the key information of the video application.
[0071] Optionally, the information acquisition module 10 is used to:
[0072] Establish a communication connection with the Android device; based on the communication connection, call a UI capture tool pre-installed on the Android device to obtain UI hierarchical information of the video application on the Android device.
[0073] Optionally, the information acquisition module 10 is further used to:
[0074] From the UI hierarchy information, determine the UI coordinates of the UI page used to play the media resources on the main page of the video application; based on the UI coordinates, locate the UI page on the main page of the video application and play it on demand so that the UI page plays the corresponding media resources; based on the communication connection, call the UI crawler pre-installed on the Android device to obtain the information of the media resources played by the UI page.
[0075] Optionally, the information acquisition module 10 for determining the UI coordinates of the UI page for playing the media resource on the main page of the video application is specifically used to:
[0076] Determine the UI coordinates of the UI page for playing the target media resource on the main page of the video application.
[0077] Optionally, the information parsing module 20 is further used to:
[0078] The key information of the video application is uploaded to the cloud server, and the key information of the video application is stored in the relational database by the cloud server.
[0079] It should be noted that the media resource information processing device and the media resource information processing method provided in the embodiment of the present invention have the same principles, which will not be described in detail herein.
[0080] The media resource information processing device provided by the embodiment of the present invention can automatically obtain the information of the media resource recommended or displayed by any video application of the Android device, and output the key information of the video application after data analysis, so as to realize unified display. This can reduce the workload of manual information acquisition, thereby reducing labor costs and improving work efficiency.
[0081] Based on the media resource information processing method provided in the above embodiment, an embodiment of the present invention provides an electronic device for executing the above media resource information processing method, the electronic device comprising:
[0082] Memory, used to store programs and data generated by program execution;
[0083] The processor is used to execute the program to achieve the following functions: obtaining the media resource information of the video application on the Android device; parsing the media resource information to extract the key information of the video application; and outputting the key information of the video application.
[0084] It should be noted that the principles of the electronic device and the media resource information processing method provided in the embodiment of the present invention are the same and will not be described in detail herein.
[0085] Based on the electronic device provided in the above embodiment, an embodiment of the present invention provides a media resource information processing system, the structure diagram of which is shown in FIG. Figure 7 As shown, it includes: Android device, cloud server and electronic device.
[0086] It should be noted that the principles of information processing and interaction among the Android device, cloud server and electronic device in the media resource information processing system provided by the embodiment of the present invention are the same as those of the media resource information processing method, which will not be repeated here.
[0087] The above is a detailed introduction to a media resource information processing method, processing device, processing system and electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0088] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0089] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device that includes a series of elements is inherent to the elements, or also includes elements inherent to these processes, methods, articles or devices. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.
[0090] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0091] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0092] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for processing media resource information, characterized in that: The method comprises: Get media resource information of video applications on Android devices; Parsing the media resource information and extracting key information of the video application; Output key information of the video application; The method of obtaining the media resource information of the video application on the Android device includes: Establishing a communication connection with the Android device; Based on the communication connection, calling a user interface UI capture tool pre-installed on the Android device to obtain UI layer information of the video application on the Android device; The method of obtaining the media resource information of the video application on the Android device also includes: Determine the UI coordinates of the UI page for playing the media resource on the main page of the video application from the UI hierarchy information; Based on the UI coordinates, locate the UI page on the main page of the video application and play it on demand, so that the UI page plays the corresponding media resource; Based on the communication connection, calling a UI capture tool pre-installed on the Android device to obtain information about the media resource played on the UI page; The determining of the UI coordinates of the UI page for playing the media resource on the main page of the video application includes: Determine the UI coordinates of the UI page for playing the target media resource on the main page of the video application; Uploading key information of the video application to a cloud server, where the key information of the video application is stored in a relational database by the cloud server, so that the key information of the video application can be displayed to the user in different dimensions by querying the information in the relational database, and the user can view the webpage content displayed by the cloud server through a browser; The parsing of the media resource information and extracting key information of the video application includes: The media resource information is parsed through the user-defined keyword field to extract key information of the video application.
2. A media resource information processing device, characterized in that: The device comprises: The information acquisition module is used to obtain the media resource information of video applications on Android devices; An information parsing module, used to parse the media resource information, extract key information of the video application, and output the key information of the video application; The information acquisition module is used to: Establishing a communication connection with the Android device; based on the communication connection, calling a user interface UI capture tool pre-installed on the Android device to obtain UI hierarchical information of the video application on the Android device; The information acquisition module is also used for: Determine the UI coordinates of the UI page for playing media resources on the main page of the video application from the UI hierarchical information; locate the UI page on the main page of the video application based on the UI coordinates and play on demand so that the UI page plays the corresponding media resources; call the UI capture tool preinstalled on the Android device based on the communication connection to obtain information about the media resources played by the UI page; the determination of the UI coordinates of the UI page for playing media resources on the main page of the video application includes: determining the UI coordinates of the UI page for playing target media resources on the main page of the video application; upload key information of the video application to a cloud server, the key information of the video application is stored in a relational database by the cloud server, so that by querying the information in the relational database, the key information of the video application is displayed to the user in different dimensions, and the user views the web page content displayed by the cloud server through a browser; The parsing of the media resource information to extract key information of the video application includes: parsing the media resource information through a field of a custom keyword to extract key information of the video application.
3. An electronic device, characterized in that: The electronic device comprises: A memory, used to store programs and data generated by the execution of the programs; The processor is used to execute the program to achieve the following functions: obtaining media resource information of video applications on an Android device; parsing the media resource information to extract key information of the video applications; and outputting the key information of the video applications; the obtaining of media resource information of video applications on an Android device includes: establishing a communication connection with the Android device; based on the communication connection, calling a user interface UI capture tool preinstalled on the Android device to obtain UI hierarchical information of video applications on the Android device; the obtaining of media resource information of video applications on an Android device also includes: determining UI coordinates of a UI page for playing media resources on a main page of the video application from the UI hierarchical information; locating the UI page on the main page of the video application based on the UI coordinates and playing on demand so that the UI page can be played on demand. I page plays the corresponding media resources; based on the communication connection, calling the UI capture tool pre-installed on the Android device to obtain the information of the media resources played by the UI page; the determining the UI coordinates of the UI page for playing the media resources on the main page of the video application includes: determining the UI coordinates of the UI page for playing the target media resources on the main page of the video application; uploading the key information of the video application to the cloud server, and the key information of the video application is stored in the relational database by the cloud server, so that by querying the information in the relational database, it is displayed to the user in different dimensions, and the user views the web page content displayed by the cloud server through the browser; the parsing of the media resource information and extracting the key information of the video application includes: parsing the media resource information through the field of custom keywords and extracting the key information of the video application.
4. A media resource information processing system, characterized in that: The system comprises: an Android device, a cloud server and the electronic device described in claim 3.
Citation Information
Patent Citations
Showing method, device and mobile terminal for page resource operation interface
CN104268206A
Network data crawling method and device, storage medium and terminal equipment
CN110162682A
Method for presenting media information, client, plugin, and system
WO2018032923A1