CN111372129A - Method for storing playing information based on android system, intelligent terminal and storage medium - Google Patents

Method for storing playing information based on android system, intelligent terminal and storage medium Download PDF

Info

Publication number
CN111372129A
CN111372129A CN201811605102.0A CN201811605102A CN111372129A CN 111372129 A CN111372129 A CN 111372129A CN 201811605102 A CN201811605102 A CN 201811605102A CN 111372129 A CN111372129 A CN 111372129A
Authority
CN
China
Prior art keywords
playing
application
video
android system
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811605102.0A
Other languages
Chinese (zh)
Other versions
CN111372129B (en
Inventor
孙向作
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
TCL Research America Inc
Original Assignee
TCL Research America Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Research America Inc filed Critical TCL Research America Inc
Priority to CN201811605102.0A priority Critical patent/CN111372129B/en
Publication of CN111372129A publication Critical patent/CN111372129A/en
Application granted granted Critical
Publication of CN111372129B publication Critical patent/CN111372129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4332Content storage operation, e.g. storage operation in response to a pause request, caching operations by placing content in organized collections, e.g. local EPG data repository
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4431OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB characterized by the use of Application Program Interface [API] libraries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a storage medium and an intelligent terminal for storing playing information based on an android system, wherein the method comprises the following steps: starting a preset monitoring program to monitor the application installation process of the intelligent terminal and judging whether the intelligent terminal is provided with a third-party application or not; when the fact that the installed third-party application is a video playing application is monitored, the third-party video playing application is matched with an Android system of which the source code of the native player is modified in advance; and when the end of the playing is monitored, the playing information is acquired through the player callback interface and is stored in the history database. According to the invention, the source code of the native player is modified in advance, and the third-party video playing application is subjected to adaptation processing when the intelligent terminal is monitored to be installed with the third-party video playing application, so that the third-party video playing application is compatible with the historical database, and therefore, when the third-party video playing application is played, the playing information is stored in the historical database, and the user can watch the third-party video playing application continuously.

Description

Method for storing playing information based on android system, intelligent terminal and storage medium
Technical Field
The invention relates to the technical field of video data playing, in particular to a method for storing playing information based on an android system, an intelligent terminal and a storage medium.
Background
At present, an intelligent platform device based on an Android system can install a video playing application in the system in advance, and a user can watch favorite videos by opening the video playing application. When the watching is finished or the video playing application is quitted, the video watched by the user last time is stored in a history database pre-installed in the system. Typically, the history database is located on the system main interface (Launcher). When the user wants to continue watching the last video next time, the user can enter the historical database by clicking the button, the last watched video is displayed in the historical database, and the user can jump to the playing interface only by clicking the video.
However, if the user installs the third-party video application on the intelligent platform, since the historical database in the intelligent system is not adapted to the newly installed third-party video application in advance, when the video played by the user through the third-party video application is not recorded and stored in the historical collection, the historical database in the system cannot be compatible with the third-party video application, so that the user cannot find the previously viewed video in the historical database, and inconvenience is brought to the user.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for storing playing information based on an android system, an intelligent terminal and a storage medium, aiming at solving the problems that when a user installs a third-party video application on an intelligent platform, a historical database in the system cannot be compatible with the third-party video application, so that the user cannot find a video watched before in the historical database, and the use of the user is inconvenient, etc. in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a method for saving playing information based on an android system is disclosed, wherein the method comprises the following steps:
starting a preset monitoring program to monitor the application installation process of the intelligent terminal and judging whether the intelligent terminal is provided with a third-party application or not;
when the fact that a third-party application is installed on the intelligent terminal is monitored, whether the third-party application is a video playing application is judged, and when the third-party application is the video playing application, the video playing application is matched with an Android system with a native player source code modified in advance;
when the video playing application is monitored to play the video and the playing is finished, playing information is obtained through a player callback interface, and the playing information is stored in a historical database.
The method for storing the playing information based on the Android system, wherein the content modified by the Android system, which has modified the source code of the native player in advance, includes:
the method comprises the steps of adding a monitoring playing interface in a native player of the Android system, adding a playing information member object in the native player of the Android system, modifying a playing video source function and modifying a playing ending scene in a message processing function of the native player of the Android system.
The method for storing the playing information based on the Android system, wherein the content modified by the Android system, in which the native player source code has been modified in advance, further comprises:
and adding a player playing callback interface in the native player of the Android system.
The method for storing the playing information based on the android system comprises the following steps of judging whether a third-party application is a video playing application or not when the fact that the third-party application is installed on the intelligent terminal is monitored, wherein the steps comprise:
after the monitoring intelligent terminal installs the third-party application, starting an application management service program;
acquiring an application program file of the third-party application through an installation directory in the application management service program scanning system;
analyzing the application program file to acquire an interface of the third-party application;
and judging whether the interface of the third-party application carries a playing interface or not, wherein the third-party application is judged to be a video playing application when the playing interface is carried in the interface of the third-party application.
The method for storing the playing information based on the Android system comprises the following steps of adapting the video playing application to the Android system with the source code of the native player modified in advance:
modifying a video playing source function of the video playing application, and setting a video playing source;
modifying the playing ending scene of the video playing application to add a playing ending monitor;
and recompiling and installing the video playing application.
The method for saving the playing information based on the Android system comprises the steps that when the playing end monitor is set, codes in a modified playing end scene in a native player of the Android system run to add the playing monitor in the video playing application.
The method for storing the playing information based on the android system, wherein the step of obtaining the playing information through the player callback interface and storing the playing information to the historical database when the video playing application is monitored to play the video and the playing is finished, specifically comprises:
when the video playing application is monitored to play the video and the playing is finished, acquiring the playing progress of the currently played video;
acquiring a packet name of a video playing application, a playing interface packet name and film information of a currently played video;
and inserting the acquired playing progress of the currently played video, the packet name of the video playing application, the packet name of the playing interface and the film information of the currently played video into a historical database, and storing the information.
The method for storing the playing information based on the android system comprises the following steps:
opening a historical database, searching all stored playing information from the historical database, and displaying the playing information in a preset historical viewing page;
after receiving a playing instruction input by a user, the intelligent terminal acquires a packet name of a corresponding video playing application according to playing information in a historical viewing page, and starts the video playing application to play the playing information in the historical viewing page.
An intelligent terminal, comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to call instructions in the storage medium to execute steps of implementing any one of the methods for saving playing information based on the android system.
A storage medium having stored thereon a plurality of instructions, wherein the instructions are adapted to be loaded and executed by a processor to perform the steps of implementing any of the above methods for preserving playback information based on an android system.
The invention has the beneficial effects that: according to the invention, the source code of the native player is modified in advance, and the third-party video playing application is subjected to adaptation processing when the intelligent terminal is monitored to be installed with the third-party video playing application, so that the third-party video playing application is compatible with the historical database, and therefore, when the third-party video playing application is played, the playing information is stored in the historical database, and the user can watch the third-party video playing application continuously.
Drawings
Fig. 1 is a flowchart of a method for saving playing information based on the android system according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of a specific application embodiment of the method for storing the play information based on the android system.
Fig. 3 is a functional schematic diagram of the intelligent terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for storing the playing information based on the android system can be applied to terminals. The terminal may be, but is not limited to, various personal computers, notebook computers, mobile phones, tablet computers, vehicle-mounted computers, and portable wearable devices. The terminal of the invention adopts a multi-core processor. The processor of the terminal may be at least one of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Video Processing Unit (VPU), and the like.
The invention provides a method for storing playing information based on an android system, which comprises the following steps of:
and S100, starting a preset monitoring program to monitor the application installation process of the intelligent terminal and judging whether the intelligent terminal is provided with a third-party application.
Step S200, when the fact that a third-party application is installed on the intelligent terminal is monitored, whether the third-party application is a video playing application is judged, and when the third-party application is the video playing application, the video playing application is matched with an Android system with a source code of a native player modified in advance.
Step S300, when the video playing application is monitored to play the video and the playing is finished, playing information is obtained through a player callback interface, and the playing information is stored in a historical database.
In specific implementation, since the video playing application pre-installed in the system (i.e., the video playing application carried by the intelligent terminal when the system leaves the factory) is pre-adapted to the history database in the intelligent terminal system, the video watched by the user last time is stored in the history database of the system. However, after the user uses the intelligent terminal, the third-party video playing application installed by the user himself does not store the video watched by the user last time in the history collection application because the third-party video playing application is not adapted to the history database in the intelligent system in advance, so that the user does not leave the history watching record in the history database after watching the video by using the third-party video playing application every time, the user cannot find the video watched before in the history database when watching the video next time, and inconvenience is brought to the user. In order to solve the above problem, this embodiment provides a method for storing playing information based on an android system, where a native player source code is modified in advance, and when it is monitored that a third-party video playing application is installed in an intelligent terminal, the third-party video playing application is adapted to be compatible with a historical database, so that when the playing of the third-party video playing application is finished, the playing information is stored in the historical database, so that a user can continue to watch the playing information.
Specifically, in this embodiment, a monitor is set in the Android system in advance, and is used to monitor whether the intelligent terminal installs the third-party application. Preferably, the Android platform-based application installation method can be divided into two types, one type is interface installation, and the other type is non-interface installation. The installation with the interface is actually used, a user can see the installation application interface popped up by the system, and the installation without the interface is realized by a developer through a command. The embodiment aims at installing a third-party application in the using process, namely, the method corresponds to a bounded surface installation mode. The interface installation mode is the Package Installer Activity interface in the Android native system, and the source code positions are as follows:
Packages/apps/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java。
in the embodiment, a monitor is mainly set in an onCreate function in a source code position of an interface of the Android native system Package lnstar Activity to monitor whether a user installs a third-party application, and when the user starts the Android system, the monitor is automatically monitored so as to monitor whether the user installs the third-party application in time. Preferably, in this embodiment, the monitoring program may be automatically started at preset time intervals for monitoring, or the monitoring program may be set to be started for a long time. Preferably, in order to solve the problem that, in the prior art, when a user installs a third-party application on an intelligent platform, an Android system of an intelligent terminal cannot be adapted to the newly installed third-party application in advance, especially when the third-party application is a video playing application, since the newly installed video playing application is not adapted to the Android system of the intelligent terminal, a history watching record of a video watched by the user using the newly installed video playing application cannot be left in a history database, and the user cannot watch the video continuously next time. Therefore, in the embodiment, the native player source code of the Android system is modified in advance, and the modified content includes: the method comprises the steps of adding a monitoring playing interface in a native player of the Android system, adding a playing information member object in the native player of the Android system, modifying a playing video source function and modifying a playing ending scene in a message processing function of the native player of the Android system.
The specific modification steps are as follows:
1) a monitoring and playing interface is added in a source code of the native player of the Android system and used for monitoring whether a newly installed video playing application plays a video or not;
the pseudo code may be referred to as follows:
public interface OnPlayListener{
void onPlay (LinkedList<HashMap<String, String>>playInfo);
}
wherein the parameter playInfo is playing information;
2) adding a play information member object in a source code of an Android system native player
The pseudo code may be referred to as follows:
private LinkedList<HashMap<String, String>>mPlayInfo;
3) modifying the play video Source function, i.e. set Data Source (streaming path) function, it is known that when a certain video needs to be played, the play Data Source can be set by the Android native Media Player object set Data Source (Context, Uri) function. In this embodiment, the Android native player changes the playing video Source function set Data Source (Context, Uri) into set Data Source (Context, Uri, onplaylistenerplaylnfo), and stores the incoming On playlistener interface object in the playing information member object mplaylnfo in the above step 2), so as to store the playing Data conveniently;
4) modifying the end of Play scene
Modifying a playing ending scene in a message processing function in a source code of the Android system native player for inserting playing related information into a history database, wherein the pseudo code can refer to the following:
public void handle Message(Message msg) {
switch(msg.what) {
case MEDIA_PLAYBACK_COMPLETE:
if (mOn CompletionListener != null)
mOnCompletionListener.onCompletion(mMediaPlayer);
return;
}
}
wherein, MEDIA _ playlist _ COMPLETE is a CASE for processing the end of play, and is defined as follows:
private static final int MEDIA_PLAYBACK_COMPLETE = 2。
in addition, in this embodiment, a player play callback interface is further added to the native player of the Android system, and the play callback interface is used for acquiring play video information in subsequent steps and inserting the information into a system preset history collection application database.
Further, the problem to be solved in the present embodiment is that the video playing newly installed by the user should be adapted to the Android system, so that the video watched by the user using the newly installed video playing application can leave a history watching record in the history database. Therefore, in this embodiment, after the user monitors that the third-party application is installed in the intelligent terminal, it is necessary to determine whether the third-party application is a video playing application. Specifically, in the starting process of the Android system, an application management Service, Package Manager Service, is started, and this Service is responsible for scanning a specific directory in the system and finding out an application file therein. After the monitoring intelligent terminal installs the third-party application, the application program management service can find an application program file taking apk as suffix, analyze the application program file and acquire an interface name of the newly installed third-party application; decompiling the application program files by adopting an apktool tool, generating a smali file under a decompiling engineering directory, traversing and analyzing the smali code file carrying the application interface name in a smali folder according to the obtained application interface name, obtaining an interface of a newly installed third party application, and then judging whether the interface carries a playing interface. Since the application based on the Android system is used for playing a video by calling a native Player (Media Player), and there is a related call of a Player (Media Player) interface in a playing interface, if a playing interface of a newly installed third-party application is found, it is determined that the third-party application is a video playing application.
Among them, the smali pseudo code of the native Player (Media Player) is as follows:
invoke-virtual {v0, v1},
Landroid/widget/VideoView;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;) V //
and if the smali code file is checked to contain Landoroid/media/MediaPlayer keywords, judging that the interface is the playing interface.
Further, after the third-party application is judged to be the video playing application, the related information of the video playing application is obtained, and the related information is stored in the playing information member object of the native player with the source code modified in advance. In this embodiment, after the playing interface of the installation application is obtained, an interface for calling the native player is obtained, a playing video source function of the video playing application is modified, and a playing video source is set. For example, the original video playing Source function setData Source (Context, Uri) is modified into set Data Source (Context, Uri, onplaylist), when the user uses the video playing application to play video, the function can be used to obtain the packet names of the video playing application and the playing interface, play the information of the movie, and store the information in the parameter playInfo of the onPlay function,
the pseudo code may be referred to as follows:
MediaPlayer.setDataSource(Context, Uri,new OnPlayListener () {
@Override
public void onPlay(LinkedList<HashMap<String, String>>playInfo){ }
}。
preferably, after a playing interface of the installation application is acquired, a playing ending monitor is set for a MediaPlayer object of the installation application by calling a setOnCompletionListener function of the Android native player, and the playing ending monitor can monitor whether playing is ended in real time; and when the monitor for playing ending is set and the video source is modified to be played, automatically recompiling and installing the video playing application. Preferably, in this embodiment, when a play end listener is set for the video application, in a native player of an Android system, a modified code in a play end scene is run to implement that the play listener is added to the video play application.
In specific implementation, when a user plays a video by using a newly installed video playing application, the Android system monitors playing through a monitoring playing interface, after the playing is finished, a code in a playing finishing scene in the source code of the Android player runs, playing related information is obtained through a playing video source function, and the playing related information including the current playing progress, the packet name of the playing application, the packet name of the playing interface, playing movie information and the like is inserted into a historical database.
When a user opens the historical database, all stored playing information can be searched from the historical database, the playing information is displayed in a preset historical viewing interface, the historical database is opened, when the user wants to continue to view the last video next time, a playing instruction is input, after the intelligent terminal receives the corresponding playing instruction, the name of an application package played by the video is obtained according to the playing information in the historical viewing page, the package name and the playing information of the video playing interface can be opened by starting the interface through the Android interface, and therefore the user can enter the playing interface from the historical interface.
In order to better understand the technology of the present invention, the present invention further provides a specific application example, as shown in fig. 2, which specifically includes the following steps.
Step 201, the native player modifies and sets the adaptive source function.
Step 202, the native player modifies the playing ending scene.
Step 203, judging whether a third party application is installed, if not, executing step 211, and if so, executing step 204.
And step 204, analyzing the newly installed interface of the third-party application.
Step 205, judging whether the interface carries a player, if not, executing step 211, and if so, executing step 206.
Step 206, the player sets the video source.
Step 207, the player sets the end of playing and monitoring.
And step 208, monitoring that the playing is finished.
And step 209, acquiring the playing information.
Step 210, storing the playing information into a history database.
And step 211, finishing.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as shown in fig. 3. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a method for preserving playback information based on the android system. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is arranged inside the intelligent terminal in advance and used for detecting the current operating temperature of internal equipment.
It will be understood by those skilled in the art that the block diagram shown in fig. 3 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In one embodiment, an intelligent terminal is provided, which includes a memory and a processor, the memory stores a computer program, and the processor can realize at least the following steps when executing the computer program:
starting a preset monitoring program to monitor the application installation process of the intelligent terminal and judging whether the intelligent terminal is provided with a third-party application or not;
when the fact that a third-party application is installed on the intelligent terminal is monitored, whether the third-party application is a video playing application is judged, and when the third-party application is the video playing application, the video playing application is matched with an Android system with a native player source code modified in advance;
when the video playing application is monitored to play the video and the playing is finished, playing information is obtained through a player callback interface, and the playing information is stored in a historical database.
In one embodiment, the processor, when executing the computer program, may further implement: starting a preset monitoring program to monitor the application installation process of the intelligent terminal and judging whether the intelligent terminal is provided with a third-party application or not; when the fact that the intelligent terminal installs the third-party application is monitored, an installation application interface is obtained, and whether the third-party application is a video playing application or not is judged; if the fact that the intelligent terminal is installed with the video playing application is monitored, no processing is needed. And if the fact that the intelligent terminal is installed as the video playing application is monitored, enabling the video playing application to be pre-adapted to the Android system.
In one embodiment, the processor, when executing the computer program, may further implement: when the mobile terminal is monitored to install the third-party application, an installation directory in a system is scanned through an application management service program, an application program file taking apk as suffix is found out, the application program file is analyzed, and an interface name of the newly installed third-party application is obtained; decompiling the application program files by adopting an apktool tool, generating a smali file under a decompiled engineering directory, storing all the decompiled smali files in the duli file, generating corresponding directories by the files according to the hierarchical structure of a program package, and generating independent smali files by all classes in a program under the corresponding directories; and according to the obtained application interface name, traversing and analyzing the smali code file carrying the application interface name in the smali folder, and judging whether the installation application interface contains a playing interface, namely judging whether the third-party application carries a player. Further, when the installed third-party application is a video playing application, a playing interface of the newly installed video playing application is obtained, an original video playing source function setDataSource (Context, Uri) of the newly installed video playing application is modified into setDataSource (Context, Uri, OnPlayListener), and a playing ending monitor is set for a MediaPlayer object of the installed application by calling a setoncomplementitionerer function of an Android native player. Therefore, in this embodiment, when the player carried by the installed video playing application interface is analyzed and installed, the player carried by the installed video playing application interface is adapted to the Android system with the native player source code having been modified in advance, when the user uses the video playing application to play the video and the playing is finished, the playing information is obtained through the modified video playing source function, the code operation in the playing finished scene is modified, and the playing information is inserted into the historical database, so that when the playing of the third-party video playing application is finished, the playing information is stored in the historical database, and the user can continue to watch the video.
In one embodiment, the processor, when executing the computer program, may further implement: when a user plays a video by using the video player application and the playing is finished, the playing progress of the currently played video, the packet name of the video playing application, the packet name of the playing interface and the film information of the currently played video are acquired through the player callback interface, and are inserted into the historical database and stored; and directly inputting a playing instruction when the user needs to continue watching next time, after the intelligent terminal receives the relevant instruction of the user, acquiring the packet name of the corresponding video playing application according to the playing information in the historical watching page, and starting the video playing application to play the playing information in the historical watching page.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention provides a method, a storage medium, and an intelligent terminal for storing playback information based on an android system, where the method includes: starting a preset monitoring program to monitor the application installation process of the intelligent terminal and judging whether the intelligent terminal is provided with a third-party application or not; when the fact that the installed third-party application is a video playing application is monitored, the third-party video playing application is matched with an Android system of which the source code of the native player is modified in advance; and when the end of the playing is monitored, the playing information is acquired through the player callback interface and is stored in the history database. According to the invention, the source code of the native player is modified in advance, and the third-party video playing application is subjected to adaptation processing when the intelligent terminal is monitored to be installed with the third-party video playing application, so that the third-party video playing application is compatible with the historical database, and therefore, when the third-party video playing application is played, the playing information is stored in the historical database, and the user can watch the third-party video playing application continuously.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for saving playing information based on an android system is characterized by comprising the following steps:
starting a preset monitoring program to monitor the application installation process of the intelligent terminal and judging whether the intelligent terminal is provided with a third-party application or not;
when the fact that a third-party application is installed on the intelligent terminal is monitored, whether the third-party application is a video playing application is judged, and when the third-party application is the video playing application, the video playing application is matched with an Android system with a native player source code modified in advance;
when the video playing application is monitored to play the video and the playing is finished, playing information is obtained through a player callback interface, and the playing information is stored in a historical database.
2. The Android system-based method for saving playing information according to claim 1, wherein the Android system-modified content that has been modified in advance by native player source code includes:
the method comprises the steps of adding a monitoring playing interface in a native player of the Android system, adding a playing information member object in the native player of the Android system, modifying a playing video source function and modifying a playing ending scene in a message processing function of the native player of the Android system.
3. The Android system-based method for saving playing information according to claim 2, wherein the Android system-modified content that has been modified in advance by native player source code further includes:
and adding a player playing callback interface in the native player of the Android system.
4. The method for storing the playing information based on the android system as claimed in claim 1, wherein the step of determining whether the third-party application is a video playing application when it is monitored that the third-party application is installed on the intelligent terminal includes:
after the monitoring intelligent terminal installs the third-party application, starting an application management service program;
acquiring an application program file of the third-party application through an installation directory in the application management service program scanning system;
analyzing the application program file to acquire an interface of the third-party application;
and judging whether the interface of the third-party application carries a playing interface or not, wherein the third-party application is judged to be a video playing application when the playing interface is carried in the interface of the third-party application.
5. The Android system-based method for preserving playback information as claimed in claim 1, wherein the step of adapting the video playback application to the Android system that has previously modified native player source code includes:
modifying a video playing source function of the video playing application, and setting a video playing source;
modifying the playing ending scene of the video playing application to add a playing ending monitor;
and recompiling and installing the video playing application.
6. The Android system-based method for saving the playing information according to claim 5, wherein when the playing end monitor is set, in a native player of the Android system, a code in a modified playing end scene runs to add the playing monitor to the video playing application.
7. The method according to claim 1, wherein the step of obtaining the playing information through the player callback interface and saving the playing information to the history database when the video playing application is monitored to play the video and the playing is finished includes:
when the video playing application is monitored to play the video and the playing is finished, acquiring the playing progress of the currently played video;
acquiring a packet name of a video playing application, a playing interface packet name and film information of a currently played video;
and inserting the acquired playing progress of the currently played video, the packet name of the video playing application, the packet name of the playing interface and the film information of the currently played video into a historical database, and storing the information.
8. The android system-based method of preserving playback information of claim 1, further comprising:
opening a historical database, searching all stored playing information from the historical database, and displaying the playing information in a preset historical viewing page;
after receiving a playing instruction input by a user, the intelligent terminal acquires a packet name of a corresponding video playing application according to playing information in a historical viewing page, and starts the video playing application to play the playing information in the historical viewing page.
9. An intelligent terminal, comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to call instructions in the storage medium to perform the steps of implementing the method for preserving playback information based on the android system as claimed in any of the above claims 1 to 8.
10. A storage medium having stored thereon a plurality of instructions adapted to be loaded and executed by a processor to perform the steps of implementing the method for preserving playback information based on the android system as claimed in any of the above claims 1 to 8.
CN201811605102.0A 2018-12-26 2018-12-26 Method for storing playing information based on android system, intelligent terminal and storage medium Active CN111372129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811605102.0A CN111372129B (en) 2018-12-26 2018-12-26 Method for storing playing information based on android system, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811605102.0A CN111372129B (en) 2018-12-26 2018-12-26 Method for storing playing information based on android system, intelligent terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111372129A true CN111372129A (en) 2020-07-03
CN111372129B CN111372129B (en) 2022-01-18

Family

ID=71212163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811605102.0A Active CN111372129B (en) 2018-12-26 2018-12-26 Method for storing playing information based on android system, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111372129B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411648A (en) * 2021-06-16 2021-09-17 上海高顿教育科技有限公司 Control method and device adaptive to various players

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009814A (en) * 2007-01-08 2007-08-01 叶炜 Implementation method for the animation and cartoon interaction of the digital TV
CN101907990A (en) * 2010-06-17 2010-12-08 耀之星信息技术(深圳)有限公司 Mobile phone FLASH human-computer interaction interface implement system and method
US20140082729A1 (en) * 2012-09-19 2014-03-20 Estsecurity Co., Ltd. System and method for analyzing repackaged application through risk calculation
CN104182260A (en) * 2014-08-27 2014-12-03 厦门美图之家科技有限公司 Method for providing installation packages of application programs
CN104199633A (en) * 2014-08-11 2014-12-10 惠州Tcl移动通信有限公司 Multimedia playing device and player automatic identifying device and method
CN104423941A (en) * 2013-08-27 2015-03-18 宏碁股份有限公司 Electronic device and control method thereof
CN104715196A (en) * 2015-03-27 2015-06-17 北京奇虎科技有限公司 Static analysis method and system of smart phone application program
US20150242636A1 (en) * 2014-02-25 2015-08-27 The Board Of Regents, The University Of Texas System Systems and methods for automated detection of application vulnerabilities
CN104978273A (en) * 2015-07-09 2015-10-14 上海与德通讯技术有限公司 Automatic detection method and automatic detection unit for menu names
CN105095751A (en) * 2014-05-07 2015-11-25 中兴软创科技股份有限公司 Method for detecting malicious phishing application for Android platform
CN105872776A (en) * 2015-12-29 2016-08-17 乐视网信息技术(北京)股份有限公司 General video player creating method and device
CN105975470A (en) * 2015-12-02 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for processing historical records
CN106096399A (en) * 2016-06-01 2016-11-09 努比亚技术有限公司 The detection device and method of application programming interface
CN106658149A (en) * 2015-10-28 2017-05-10 中兴通讯股份有限公司 Media play method and device
CN106845171A (en) * 2017-01-20 2017-06-13 暨南大学 A kind of Android application codes protection mechanism discrimination method
CN108777819A (en) * 2018-09-13 2018-11-09 上海二三四五网络科技有限公司 A kind of control method and control device based on browser player plays video web page

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009814A (en) * 2007-01-08 2007-08-01 叶炜 Implementation method for the animation and cartoon interaction of the digital TV
CN101907990A (en) * 2010-06-17 2010-12-08 耀之星信息技术(深圳)有限公司 Mobile phone FLASH human-computer interaction interface implement system and method
US20140082729A1 (en) * 2012-09-19 2014-03-20 Estsecurity Co., Ltd. System and method for analyzing repackaged application through risk calculation
CN104423941A (en) * 2013-08-27 2015-03-18 宏碁股份有限公司 Electronic device and control method thereof
US20150242636A1 (en) * 2014-02-25 2015-08-27 The Board Of Regents, The University Of Texas System Systems and methods for automated detection of application vulnerabilities
CN105095751A (en) * 2014-05-07 2015-11-25 中兴软创科技股份有限公司 Method for detecting malicious phishing application for Android platform
CN104199633A (en) * 2014-08-11 2014-12-10 惠州Tcl移动通信有限公司 Multimedia playing device and player automatic identifying device and method
CN104182260A (en) * 2014-08-27 2014-12-03 厦门美图之家科技有限公司 Method for providing installation packages of application programs
CN104715196A (en) * 2015-03-27 2015-06-17 北京奇虎科技有限公司 Static analysis method and system of smart phone application program
CN104978273A (en) * 2015-07-09 2015-10-14 上海与德通讯技术有限公司 Automatic detection method and automatic detection unit for menu names
CN106658149A (en) * 2015-10-28 2017-05-10 中兴通讯股份有限公司 Media play method and device
CN105975470A (en) * 2015-12-02 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for processing historical records
CN105872776A (en) * 2015-12-29 2016-08-17 乐视网信息技术(北京)股份有限公司 General video player creating method and device
CN106096399A (en) * 2016-06-01 2016-11-09 努比亚技术有限公司 The detection device and method of application programming interface
CN106845171A (en) * 2017-01-20 2017-06-13 暨南大学 A kind of Android application codes protection mechanism discrimination method
CN108777819A (en) * 2018-09-13 2018-11-09 上海二三四五网络科技有限公司 A kind of control method and control device based on browser player plays video web page

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MENGSHANSHAN: "Android"s sensitive data leakage detection based on API monitoring", 《INTERNATIONAL CONFERENCE ON CYBERSPACE TECHNOLOGY (CCT 2014)》 *
孙聪: "《软件逆向工程原理与实践》", 31 March 2018 *
张一弛: "基于反编译的恶意代码检测关键技术研究与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411648A (en) * 2021-06-16 2021-09-17 上海高顿教育科技有限公司 Control method and device adaptive to various players

Also Published As

Publication number Publication date
CN111372129B (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US11467816B1 (en) Method and system of running an application
US9448776B1 (en) Method and apparatus for converting a website into a native mobile application
CN108958844B (en) Application program control method and terminal
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
CN105975311B (en) Application starting method and device
US20140259008A1 (en) Performing unattended software installation
CN111385633B (en) Resource searching method based on voice, intelligent terminal and storage medium
CN108846131A (en) Weex page rendering method, apparatus, terminal and storage medium
CN109344619B (en) Hot repair method and device for application program
CN109522500B (en) Webpage display method, device, terminal and storage medium
CN110968331B (en) Method and device for running application program
CN108874426B (en) Application program updating method and device and readable storage medium
CN113835713B (en) Source code packet downloading method, device, computer equipment and storage medium
CN111372129B (en) Method for storing playing information based on android system, intelligent terminal and storage medium
CN112612502A (en) Patch generation method, device, equipment and storage medium
CN110852259A (en) Living body identification method, living body identification system, living body identification apparatus, living body identification device, and computer-readable storage medium
US11449313B2 (en) System and method applied to integrated development environment
CN113778830A (en) RPA technology-based automatic monitoring method for short video background music infringement behavior
CN113132805B (en) Playing control method, system, intelligent terminal and storage medium
CN108133123B (en) Application program identification method and system
CN112394952B (en) Method and system for dynamically generating Launcher based on Hybrid App and storage medium
KR101985524B1 (en) On-demand resources
CN114489698A (en) Application program installation method and device
CN110858238A (en) Data processing method and device
CN105204827A (en) Information acquisition device and method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 516006 TCL science and technology building, No. 17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL Corp.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant