[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107589987B - Software control method, device and computer readable storage medium - Google Patents

Software control method, device and computer readable storage medium Download PDF

Info

Publication number
CN107589987B
CN107589987B CN201710717383.8A CN201710717383A CN107589987B CN 107589987 B CN107589987 B CN 107589987B CN 201710717383 A CN201710717383 A CN 201710717383A CN 107589987 B CN107589987 B CN 107589987B
Authority
CN
China
Prior art keywords
software
music
terminal
playing
currently
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.)
Active
Application number
CN201710717383.8A
Other languages
Chinese (zh)
Other versions
CN107589987A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201710717383.8A priority Critical patent/CN107589987B/en
Publication of CN107589987A publication Critical patent/CN107589987A/en
Application granted granted Critical
Publication of CN107589987B publication Critical patent/CN107589987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a software control method, which comprises the following steps: when detecting that a user carries out live broadcasting through live broadcasting software, detecting whether music is currently played or not; if the music is played currently, determining the software for playing the music currently; and if the software for playing the music currently is preset music playing software, controlling the live broadcast software to push the video stream, otherwise, controlling the live broadcast software to interrupt the pushing of the video stream. The invention also discloses a software control device and a computer readable storage medium. The invention is beneficial to the popularization of music playing software corresponding to live broadcast software.

Description

Software control method, device and computer readable storage medium
Technical Field
The present invention relates to the field of software technologies, and in particular, to a software control method, an apparatus, and a computer-readable storage medium.
Background
With the development of the internet, the online entertainment modes of users become diversified, and the characteristics of simple, direct and real-time interaction of live broadcast enable the online entertainment modes to rise rapidly. When a user carries out live broadcasting, live broadcasting can be realized only by pushing a video stream through live broadcasting software. Generally, a user plays music through music playing software during live broadcasting. If the user selects the third-party music playing software not corresponding to the live broadcast software to play music, the popularization of the music playing software corresponding to the live broadcast software is not facilitated.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a software control method, a software control device and a computer readable storage medium, and aims to solve the technical problem that a user is not beneficial to popularization of music playing software corresponding to a live broadcast platform due to the fact that third-party music playing software is used for playing music during live broadcast.
In order to achieve the above object, the present invention provides a software control method, including:
when detecting that a user carries out live broadcasting through live broadcasting software, detecting whether music is currently played or not;
if the music is played currently, determining the software for playing the music currently;
and if the software for playing the music currently is preset music playing software, controlling the live broadcast software to push the video stream, otherwise, controlling the live broadcast software to interrupt the pushing of the video stream.
Optionally, when it is detected that the user performs live broadcast through live broadcast software, the step of detecting whether music is currently played includes:
and configuring a third-party music playing software process list in the background of the terminal.
Optionally, if music is currently played, the step of determining software currently playing the music includes:
if the music is played currently, acquiring a third-party music playing software process list from a terminal background;
acquiring a current process running snapshot of a terminal, and judging whether a process in a third-party music playing software process list exists in the process running snapshot;
and if the process in the third-party music playing software process list does not exist in the process running snapshot, determining the software playing music currently as the preset music playing software.
Optionally, if music is currently played, the step of obtaining the third-party music playing software process list from the terminal background includes:
if the music is played currently, sending an http request to a terminal background;
and receiving a third-party music playing software process list fed back by the terminal background according to the http request.
Optionally, the step of obtaining the process running snapshot of the terminal background includes:
and acquiring the current process running snapshot of the terminal through a preset function.
Optionally, the step of controlling the live software to interrupt the pushing of the video stream includes:
and controlling the live broadcast software to push prompt information for asking a user to replace preset music playing software to play music.
Optionally, the step of controlling the live broadcast software to push a prompt message asking the user to replace the preset music playing software to play music includes:
detecting whether software playing music currently is replaced by preset music playing software within a preset time threshold value;
and if not, controlling the live broadcast software to interrupt the pushing of the video stream.
Optionally, the method further comprises:
and updating the third-party music playing software process list at the background of the terminal at regular time.
In addition, to achieve the above object, the present invention provides a software control apparatus including: a memory, a processor and a software control program stored on the memory and executable on the processor, the software control program when executed by the processor implementing the steps of the software control method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a software control program, which when executed by a processor, implements the steps of the software control method as described above.
The embodiment of the invention provides a software control method, which comprises the following steps: when detecting that a user carries out live broadcasting through live broadcasting software, detecting whether music is currently played or not; if the music is played currently, determining the software for playing the music currently; and if the software for playing the music currently is preset music playing software, controlling the live broadcast software to push the video stream, otherwise, controlling the live broadcast software to interrupt the pushing of the video stream. By the mode, when detecting that a user directly plays music through live broadcast software, the method firstly detects whether the music is currently played, and if detecting that the music is currently played, the method further determines whether the software currently playing the music is preset music playing software; if the software playing music currently is preset music playing software, controlling live broadcast software to push video stream; and if the software for playing the music currently is determined not to be the preset music playing software, controlling the live broadcasting software to interrupt the pushing of the video stream so as to enable a user to play the music by using the music playing software corresponding to the live broadcasting software, and facilitating the popularization of the music playing software corresponding to the live broadcasting software.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a software control method according to a first embodiment of the present invention;
FIG. 3 is a detailed flowchart of step S20 in FIG. 2;
FIG. 4 is a detailed flowchart of step S21 in FIG. 3;
FIG. 5 is a detailed flowchart of the step of obtaining the snapshot of the current process running of the terminal in FIG. 3;
FIG. 6 is a flowchart illustrating a software control method according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
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 main solution of the embodiment of the invention is as follows: when detecting that a user carries out live broadcasting through live broadcasting software, detecting whether music is currently played or not; if the music is played currently, determining the software for playing the music currently; and if the software for playing the music currently is preset music playing software, controlling the live broadcast software to push the video stream, otherwise, controlling the live broadcast software to interrupt the pushing of the video stream.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a terminal device such as a smart phone, a tablet computer or a portable computer.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a software control program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the software control program stored in the memory 1005 and perform the following operations:
when detecting that a user carries out live broadcasting through live broadcasting software, detecting whether music is currently played or not;
if the music is played currently, determining the software for playing the music currently;
and if the software for playing the music currently is preset music playing software, controlling the live broadcast software to push the video stream, otherwise, controlling the live broadcast software to interrupt the pushing of the video stream.
Further, the processor 1001 may call the software control program stored in the memory 1005, and also perform the following operations:
and configuring a third-party music playing software process list in the background of the terminal.
Further, the processor 1001 may call the software control program stored in the memory 1005, and also perform the following operations:
if the music is played currently, acquiring a third-party music playing software process list from a terminal background;
acquiring a current process running snapshot of a terminal, and judging whether a process in a third-party music playing software process list exists in the process running snapshot;
and if the process in the third-party music playing software process list does not exist in the process running snapshot, determining the software playing music currently as the preset music playing software.
Further, the processor 1001 may call the software control program stored in the memory 1005, and also perform the following operations:
if the music is played currently, sending an http request to a terminal background;
and receiving a third-party music playing software process list fed back by the terminal background according to the http request.
Further, the processor 1001 may call the software control program stored in the memory 1005, and also perform the following operations:
and acquiring the current process running snapshot of the terminal through a preset function.
Further, the processor 1001 may call the software control program stored in the memory 1005, and also perform the following operations:
and controlling the live broadcast software to push prompt information for asking a user to replace preset music playing software to play music.
Further, the processor 1001 may call the software control program stored in the memory 1005, and also perform the following operations:
detecting whether software playing music currently is replaced by preset music playing software within a preset time threshold value;
and if not, controlling the live broadcast software to interrupt the pushing of the video stream.
Further, the processor 1001 may call the software control program stored in the memory 1005, and also perform the following operations:
and updating the third-party music playing software process list at the background of the terminal at regular time.
Based on the hardware structure, the embodiment of the form filling auxiliary method based on the geographic position is provided.
Referring to fig. 2, a first embodiment of the software control method of the present invention provides a software control method, including:
step S10, when detecting that the user plays the music through the live broadcast software, detecting whether the music is played currently;
step S20, if the music is currently played, determining the software of the currently played music;
and step S30, if the software playing music currently is preset music playing software, controlling the live broadcast software to push the video stream, otherwise, controlling the live broadcast software to interrupt the pushing of the video stream.
The application scenario of this embodiment may be: when a user plays the music through the live broadcast software, the user often selects music playing software to play the music, so that the user selects the music playing software corresponding to the live broadcast software to play the music, and the popularization of the music playing software corresponding to the live broadcast software is facilitated.
In this embodiment, when a user performs live broadcasting on a live broadcasting platform through a PC, a tablet computer, a smart phone, or other terminal equipment, live broadcasting can be achieved only by pushing a video stream through corresponding live broadcasting software. The live broadcast software corresponds to a live broadcast platform, so that video streams can be pushed, and meanwhile, music can be played by a user in live broadcast.
Firstly, when detecting that a user carries out live broadcasting through live broadcasting software, detecting whether music is currently played.
In this embodiment, the terminal is configured with software corresponding to the live broadcast software and having a song listening and song recognition function. The software also allows the user to play music while live. And when detecting that the user directly broadcasts through the live broadcast software, starting the song listening and song identifying function of the software, and if the song name is identified, indicating that the music is currently played.
After detecting that music is currently being played, further, software that currently plays music is determined. Specifically, referring to fig. 3, step S20 includes:
step S21, if the music is currently played, acquiring a third-party music playing software process list from the terminal background;
step S22, acquiring a current process running snapshot of the terminal, and judging whether a process in a third-party music playing software process list exists in the process running snapshot;
step S23, if the process in the third-party music playing software process list does not exist in the process running snapshot, determining that the software currently playing music is the preset music playing software.
In this embodiment, when it is detected that the user performs live broadcast through live broadcast software, a third-party music playing software process list may be preconfigured in the terminal background before the step of detecting whether music is currently played. And the third-party music playing software in the third-party music playing software process list is music playing software which is not corresponding to the live broadcasting software. It should be noted that the third-party music playing software does not include the live broadcasting software and the software having the function of listening to songs and identifying songs corresponding to the live broadcasting software, and the third-party music playing software is a generic term including more than one (here, "more than" includes the same number, the same below) music playing software. Of course, the third-party music playing software process in the third-party music playing software process list can be set according to actual needs.
In this embodiment, if music is currently being played, the third-party music playing software process list is obtained from the terminal background. Specifically, referring to fig. 4, step S21 includes:
step S210, if music is played currently, sending an http request to a terminal background;
and step S211, receiving a third-party music playing software process list fed back by the terminal background according to the http request.
And if the music is played currently, sending an http request to the terminal background, and responding after receiving the http request by the terminal background. And further, receiving a third-party music playing software process list fed back by the background of the terminal according to the http request. And after the third-party music playing software process list is obtained, acquiring the current process running snapshot of the terminal, wherein the current process running snapshot of the terminal comprises the current foreground and background process running snapshots of the terminal.
The embodiment can acquire the current process running snapshot of the terminal by presetting the function. Specifically, the function may be a CreateToolhelp32Snapshot function, that is, the CreateToolhelp32Snapshot function is preset to obtain the current process running Snapshot of the terminal. Each piece of software of the terminal generates a process when running, and the current state information of the processes of the terminal cannot be directly acquired from the processes. The terminal system has made a read-only copy, i.e. a system snapshot, for all the current state information of the processes (processes), threads (threads), Heap (Heap) and modules (Module) stored in the system memory, and can complete the detection of the current state of the processes by accessing the system snapshot. In specific implementation, a Snapshot (Snapshot) can be created for a specified Process (Process), Thread (Thread), Heap (Heap) of a specified running Process, and Module (Module) through a CreateToolhelp32Snapshot function.
The format of the CreateToolhelp32Snapshot function is: HANDLE WINAPI CreateToolhelp32Snapshot (DWORD dwFlags, DWORD th32ProcessID), the parameters contained therein are described as follows:
snapshot: snapshotting;
dwFlags parameter: for list types contained in the Snapshot established by the function, the selectable items comprise TH32CS _ SNAPPROCESS (the created Snapshot contains a process list), TH32CS _ SNAPTHREAD (the created Snapshot contains a thread list), TH32CS _ SNAPHEAPLIST (the created Snapshot contains a heap list), TH32CS _ SNAPMODULE (the created Snapshot contains a calling module list) and TH32CS _ SNAPALL (the created Snapshot contains all the lists);
th32Process ID parameter: specifying the process ID to be snapshot with a zero value indicating the current process of the snapshot (this parameter only works if dwFlags contains the TH32CS _ snap module or TH32CS _ SNAPHEAPLIST options, in other cases this parameter is ignored and all processes are snapshot).
In this embodiment, only the current process running Snapshot of the terminal needs to be obtained, so dwFlags may be set to TH32CS _ Snapshot, and when TH32process id is set to zero, the createtolhelp 32Snapshot function obtains all the current process running snapshots of the terminal.
After the current process running snapshot of the terminal is obtained, comparing the process running snapshot with the third-party music playing software process list obtained from the terminal background, and judging whether the process in the third-party music playing software process list exists in the current process running snapshot of the terminal.
In this embodiment, music playing software that can be normally used in live broadcasting can be preset, and the preset music playing software corresponds to the live broadcasting platform. It is understood that the preset music playing software may include the above-mentioned live broadcasting software and software having a function of listening to songs and recognizing music. Of course, the music playing software can also be selected as the preset music playing software according to actual needs.
Further, after comparing the process running snapshot with the third-party music playing software process list acquired from the terminal background, if the process in the third-party software process list does not exist in the current process running snapshot of the terminal, determining that the current music playing software is the preset music playing software. At this time, the live broadcast software is controlled to continue to push the video stream, and the live broadcast is normal. Otherwise, the live broadcast software is controlled to interrupt the push of the video stream, and the live broadcast is interrupted.
As another embodiment, when it is detected that music is currently being played, the step of determining software that currently plays music may be further implemented by: a log file mechanism is added in the third-party music playing software of the terminal in advance, so that the running state of the third-party music playing software can be recorded at any time. When the live broadcast software is started, if the fact that music is played currently is detected, the log file of the third-party music playing software is read and analyzed. And if the log file of the third-party music playing software is analyzed, and the result is that the third-party music playing software does not run, determining that the current music playing software is the preset music playing software.
In this embodiment, when it is detected that a user performs live broadcasting through live broadcasting software, it is first detected whether music is currently being played, and if it is detected that music is currently being played, it is further determined whether software currently playing music is preset music playing software; if the software playing music currently is preset music playing software, controlling live broadcast software to push video stream; and if the software for playing the music currently is determined not to be the preset music playing software, controlling the live broadcasting software to interrupt the pushing of the video stream so as to enable a user to play the music by using the music playing software corresponding to the live broadcasting software, and facilitating the popularization of the music playing software corresponding to the live broadcasting software.
Further, referring to fig. 5, a second embodiment of the software control method according to the present invention provides a software control method, and based on the foregoing embodiment, the step of obtaining the current process running snapshot of the terminal includes:
step S220, obtaining a snapshot of the current process running of the terminal through a preset function.
Based on the first embodiment, in the step of detecting that music is currently played and determining software for currently playing music, the present embodiment obtains the current process running snapshot of the terminal after obtaining the third-party music playing software process list from the terminal background. Specifically, the current process running Snapshot of the terminal may be obtained by presetting a function, where the function may be a CreateToolhelp32Snapshot function, that is, the CreateToolhelp32Snapshot function may be preset to obtain the current process running Snapshot of the terminal. Each piece of software of the terminal generates a process when running, and the current state information of the processes of the terminal cannot be directly acquired from the processes. The terminal system has made a read-only copy, i.e. a system snapshot, for all the current state information of the processes (processes), threads (threads), Heap (Heap) and modules (Module) stored in the system memory, and can complete the detection of the current state of the processes by accessing the system snapshot. In specific implementation, a Snapshot (Snapshot) can be created for a specified Process (Process), Thread (Thread), Heap (Heap) of a specified running Process, and Module (Module) through a CreateToolhelp32Snapshot function.
The format of the CreateToolhelp32Snapshot function is: HANDLE WINAPI CreateToolhelp32Snapshot (DWORD dwFlags, DWORD th32ProcessID), the parameters contained therein are described as follows:
snapshot: snapshotting;
dwFlags parameter: for list types contained in the Snapshot established by the function, the selectable items comprise TH32CS _ SNAPPROCESS (the created Snapshot contains a process list), TH32CS _ SNAPTHREAD (the created Snapshot contains a thread list), TH32CS _ SNAPHEAPLIST (the created Snapshot contains a heap list), TH32CS _ SNAPMODULE (the created Snapshot contains a calling module list) and TH32CS _ SNAPALL (the created Snapshot contains all the lists);
th32Process ID parameter: specifying the process ID to be snapshot with a zero value indicating the current process of the snapshot (this parameter only works if dwFlags contains the TH32CS _ snap module or TH32CS _ SNAPHEAPLIST options, in other cases this parameter is ignored and all processes are snapshot).
In this embodiment, only the current process running Snapshot of the terminal needs to be obtained, so dwFlags may be set to TH32CS _ Snapshot, and when TH32process id is set to zero, the createtolhelp 32Snapshot function obtains all the current process running snapshots of the terminal.
In more implementations, a snapshot of the current process running of the terminal can be obtained by presetting five functions of process32first, process32next, module32first and module32next, and two data structures of tmodulendentry 32 and tprocesentry 32.
In this embodiment, the current process running Snapshot of the terminal is obtained by using the CreateToolhelp32Snapshot function, so that the software currently running in the terminal can be obtained.
Further, referring to fig. 6, a second embodiment of the software control method according to the present invention provides a software control method, and based on the foregoing embodiment, the step of controlling the live broadcast software to interrupt pushing of the video stream includes:
step S230, controlling the live broadcast software to push a prompt message asking a user to replace preset music playing software to play music;
step S231, detecting whether the software currently playing music is replaced with preset music playing software within a preset time threshold;
step S232, if not, controlling the live broadcast software to interrupt the pushing of the video stream.
Based on the above embodiment, if it is determined that the software currently playing music is not the preset music playing software, a prompt is first given to the user. Specifically, the live broadcast software is controlled to push prompt information for asking a user to replace preset music playing software to play music to the live broadcast room, and the prompt information is displayed on a pop window of the live broadcast room.
As an implementation manner, the present embodiment may set a time threshold for displaying the prompt information in advance. The time threshold may be set according to actual needs, for example, 60 seconds. After the live broadcast software pushes prompt information for asking a user to replace preset music playing software to play music to a live broadcast room, further, whether the software playing music currently is replaced by the preset music playing software within a preset time threshold is detected. Specifically, the function of listening to songs and identifying songs of the software in the first embodiment is enabled, if a song name is identified within a preset time threshold, which indicates that music is currently played, a CreateToolhelp32Snapshot function is used to obtain a current process running Snapshot of the terminal, the current process running Snapshot is compared with a third-party music playing software process list obtained from a terminal background, whether a process in the third-party music playing software process list exists in the current process running Snapshot is judged, if a process in the third-party music playing software process list still exists in the current process running Snapshot, the current music playing software is not changed into the preset music playing software within the preset time threshold, and at this time, the live playing software is controlled to interrupt pushing of video streams and interrupt live broadcasting. For example, after the live broadcast software pushes the prompt information asking the user to replace the preset music playing software to play music to the live broadcast room, the popup window displays the prompt information and counts down for 60 seconds, and if the user does not replace the current music playing software with the preset music playing software within 60 seconds, the live broadcast software is controlled to interrupt the push video stream.
Of course, if it is detected that no music is currently played within the preset time threshold, it indicates that the user has stopped playing music, and at this time, the live broadcast software is controlled to push the video stream.
In more implementations, if it is detected that the software currently playing music is not changed to the preset music playing software within the preset time threshold, the live broadcasting software can be controlled to exit from the login of the user.
In this embodiment, after determining that the software currently playing music is not the preset music playing software, a prompt is first sent to the user to prompt the user to replace the preset music playing software to play music, and when the software currently playing music is not replaced with the preset music playing software within the preset time threshold, the live broadcast software is controlled to interrupt the pushing of the video stream.
Further, a third embodiment of the software control method of the present invention provides a software control method, based on the above embodiments, the method further includes:
and step S40, updating the third-party music playing software process list in the background of the terminal at regular time.
In this embodiment, the configured third-party music playing software process list can be updated regularly in the background of the terminal. Specifically, the time frequency for updating the third-party music playing software process list may be preset, for example, the time frequency for updating the third-party music playing software process list may be preset to be every half hour, that is, the third-party music playing software process list is updated every half hour by the terminal background, so as to ensure the real-time performance and the effectiveness of the third-party music playing software process list configured in the terminal background. After the configured third-party music playing software process list is updated at regular time in the background of the terminal, live broadcasting software does not need to be restarted, so that the live broadcasting of the user is not influenced.
In addition, an embodiment of the present invention further provides a software control apparatus, where the software control apparatus includes: a memory, a processor and a software control program stored on the memory and executable on the processor, the software control program when executed by the processor implementing the steps of the software control method as described above.
The specific embodiment of the software control program stored in the software control device of the present invention and executed by the processor is basically the same as the embodiments of the software control method described above, and will not be described herein again.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores thereon a software control method program that, when executed by a processor, implements the steps of the software control method as described above.
The specific embodiment of the software control program stored in the computer-readable storage medium of the present invention and executed by the processor is basically the same as the embodiments of the software control method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A software control method, characterized in that the software control method comprises:
when detecting that a user carries out live broadcasting through live broadcasting software on a terminal, starting software which is configured by the terminal, corresponds to the live broadcasting software and has the functions of listening to songs and identifying songs;
if the software with the song listening and song identifying function identifies the song name, the terminal is indicated to play music currently;
and if the software for playing the music currently is preset music playing software, controlling the live broadcast software to push the video stream, otherwise, controlling the live broadcast software to interrupt the pushing of the video stream.
2. The software control method according to claim 1, wherein the step of enabling the software which is configured by the terminal, corresponds to the live broadcast software and has a function of listening to songs and identifying songs when detecting that the user performs live broadcast through the live broadcast software on the terminal comprises the following steps:
and configuring a third-party music playing software process list in the terminal background.
3. The software control method according to claim 2, wherein the step of indicating that the terminal is currently playing music if the software having the function of listening to songs identifies a song name comprises:
if the music is played currently, acquiring a third-party music playing software process list from the terminal background;
acquiring a current process running snapshot of the terminal, and judging whether a process in a third-party music playing software process list exists in the process running snapshot or not;
and if the process in the third-party music playing software process list does not exist in the process running snapshot, determining the software playing music currently as the preset music playing software.
4. The software control method according to claim 3, wherein the step of obtaining the third-party music playing software process list from the terminal background if music is currently being played comprises:
if the terminal plays music currently, sending an http request to the terminal background;
and receiving a third-party music playing software process list fed back by the terminal background according to the http request.
5. The software control method according to claim 3, wherein the step of obtaining the snapshot of the current process running of the terminal comprises:
and acquiring the current process running snapshot of the terminal through a preset function.
6. The software control method of claim 1, wherein the step of controlling the live software to interrupt the pushing of the video stream is preceded by:
and controlling the live broadcast software to push prompt information for asking a user to replace preset music playing software to play music.
7. The software control method according to claim 6, wherein the step of controlling the live software to push a prompt message for requesting a user to replace a preset music playing software to play music comprises the following steps:
detecting whether software playing music currently is replaced by preset music playing software within a preset time threshold value;
and if not, controlling the live broadcast software to interrupt the pushing of the video stream.
8. The software control method of any one of claims 1 to 7, wherein the method further comprises:
and updating the third-party music playing software process list at the background of the terminal at regular time.
9. A software control apparatus, characterized in that the software control apparatus comprises: memory, a processor and a software control program stored on the memory and executable on the processor, the software control program when executed by the processor implementing the steps of the software control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a software control program which, when executed by a processor, implements the steps of the software control method according to any one of claims 1 to 8.
CN201710717383.8A 2017-08-18 2017-08-18 Software control method, device and computer readable storage medium Active CN107589987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710717383.8A CN107589987B (en) 2017-08-18 2017-08-18 Software control method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710717383.8A CN107589987B (en) 2017-08-18 2017-08-18 Software control method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107589987A CN107589987A (en) 2018-01-16
CN107589987B true CN107589987B (en) 2020-11-13

Family

ID=61042603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710717383.8A Active CN107589987B (en) 2017-08-18 2017-08-18 Software control method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107589987B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110267067B (en) * 2019-06-28 2021-07-16 广州酷狗计算机科技有限公司 Live broadcast room recommendation method, device, equipment and storage medium
CN112866727B (en) * 2020-12-23 2024-03-01 贵阳叁玖互联网医疗有限公司 Streaming media live broadcast method and system capable of receiving third party push stream

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004355488A (en) * 2003-05-30 2004-12-16 Iwatsu Electric Co Ltd Method for authenticating license of software
CN103236012B (en) * 2013-04-26 2017-05-17 福建联迪商用设备有限公司 Method for realizing safe transaction of touch terminal
CN104463569A (en) * 2014-11-11 2015-03-25 北京奇虎科技有限公司 Secure connection payment method and device
JP6465719B2 (en) * 2015-04-02 2019-02-06 キヤノン株式会社 Information processing apparatus, information processing apparatus control method, and program
CN105634739B (en) * 2015-04-21 2019-03-22 宇龙计算机通信科技(深圳)有限公司 The processing method of payment request, the processing unit of payment request and terminal
CN105426218A (en) * 2015-12-10 2016-03-23 小米科技有限责任公司 Method and device for controlling audio playing

Also Published As

Publication number Publication date
CN107589987A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN108132805B (en) Voice interaction method and device and computer readable storage medium
CN110996175A (en) Method, device and storage medium for controlling horizontal and vertical screen operation of television
CN113590067A (en) Screen projection control method, system, device and computer readable storage medium
JP6283749B2 (en) Method and apparatus for prompting device connection
CN108777808B (en) Text-to-speech method based on display terminal, display terminal and storage medium
CN112788268A (en) Information pushing method based on video recording, smart television and storage medium
CN108021630B (en) Junk file cleaning method, intelligent terminal and computer readable storage medium
CN110072138B (en) Video playing method, video playing equipment and computer readable storage medium
CN104881304B (en) Resource downloading method and device
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
CN107589987B (en) Software control method, device and computer readable storage medium
CN110753266A (en) Video definition adjusting method and device and storage medium
CN113821417A (en) Lamp effect adaptation display processing method, intelligent terminal and storage medium
CN107341007B (en) Display terminal, timing starting method thereof and computer readable storage medium
CN111818499A (en) Rapid pairing method, device, equipment and computer readable storage medium
CN105373370B (en) Control display method and device
CN107493518B (en) IPTV terminal network outlet switching method, device and readable storage medium
CN115665450A (en) Video update pushing method and terminal
CN107239307B (en) Version updating information display method and device
CN107615769B (en) Broadcast receiving apparatus and information providing method thereof
CN112363852A (en) Popup message processing method, device, equipment and computer readable storage medium
CN108600838B (en) Information source switching method and device for Android television, Android television and readable storage medium
CN111124764A (en) System restoring method, smart television and computer storage medium
CN111556198A (en) Sound effect control method, terminal equipment and storage medium
CN111246242A (en) Searching method and device based on played video, application server and terminal 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
CB02 Change of applicant information

Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 Guangzhou City, Guangzhou, Guangdong Province, Tianhe District Ke Yun Road, No. 16 self compiled 2 rooms (the residence limit for this residence)

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant