Method, apparatus, and storage medium for controlling audio playing based on playing environment
First Claim
Patent Images
1. A control method for controlling audio playback, comprising:
- obtaining, by an electronic device, a play instruction corresponding to a multi-media file;
detecting, by the electronic device, whether a current playing environment meets a preset condition, the current playing environment including a current time and at least one of a current audio output channel and content of the multi-media file, wherein the content of the multi-media file includes sensitive information; and
controlling, by the electronic device, playback of audio data in the multi-media file if the current playing environment meets the preset condition,wherein detecting whether the current playing environment meets the preset condition includes;
when the current playing environment includes the content of the multi-media file, detecting whether the content of the multi-media file belongs to a target media-file content genre; and
determining that the current playing environment meets the preset condition if the content of the multi-media file belongs to the target media-file content genre, andwherein detecting whether the content of the multi-media file belongs to the target media-file content genre includes;
extracting at least one image frame from the multi-media file;
detecting whether the at least one image frame includes a target element; and
determining that the content of the multi-media file belongs to the target media-file content genre if the at least one image frame includes the target element.
1 Assignment
0 Petitions
Accused Products
Abstract
A control method for controlling audio playing includes obtaining a playing instruction corresponding to a multi-media file, detecting whether a current playing environment meets a preset condition, and controlling playing of audio data in the multi-media file if the current playing environment meets the preset condition. The current playing environment includes at least one of a current audio output channel, the multi-media file, and a current time.
10 Citations
18 Claims
-
1. A control method for controlling audio playback, comprising:
-
obtaining, by an electronic device, a play instruction corresponding to a multi-media file; detecting, by the electronic device, whether a current playing environment meets a preset condition, the current playing environment including a current time and at least one of a current audio output channel and content of the multi-media file, wherein the content of the multi-media file includes sensitive information; and controlling, by the electronic device, playback of audio data in the multi-media file if the current playing environment meets the preset condition, wherein detecting whether the current playing environment meets the preset condition includes; when the current playing environment includes the content of the multi-media file, detecting whether the content of the multi-media file belongs to a target media-file content genre; and determining that the current playing environment meets the preset condition if the content of the multi-media file belongs to the target media-file content genre, and wherein detecting whether the content of the multi-media file belongs to the target media-file content genre includes; extracting at least one image frame from the multi-media file; detecting whether the at least one image frame includes a target element; and determining that the content of the multi-media file belongs to the target media-file content genre if the at least one image frame includes the target element. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A control device for playing audio, comprising:
-
a processor; and a memory storing instructions that, when executed by the processor, cause the processor to; obtain a play instruction corresponding to a multimedia file; detect whether a current playing environment meets a preset condition, the current playing environment including a current time and at least one of a current audio output channel and content of the multi-media file, wherein the content of the multi-media file includes sensitive information; and control playback of audio data in the multi-media file if the current playing environment meets the preset condition, wherein when detecting whether the current playing environment meets the preset condition, the instructions further cause the processor to; when the current playing environment includes the content of the multi-media file, detect whether the content of the multi-media file belongs to a target media-file content genre; and determine that the current playing environment meets the preset condition if the content of the multi-media file belongs to the target media-file content genre, and wherein when detecting whether the content of the multi-media file belongs to the target media-file content genre, the instructions further cause the processor to; extract at least one image frame from the multi-media file; detect whether the at least one image frame includes a target element; and determine that the content of the multi-media file belongs to the target media-file content genre if the at least one image frame includes the target element. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a device, cause the device to:
-
obtain a play instruction corresponding to a multi-media file; detect whether a current playing environment meets a preset condition, the current playing environment including a current time and at least one of a current audio output channel and content of the multi-media file, wherein the content of the multi-media file includes sensitive information; and control playback of audio data in the multi-media file if the current playing environment meets the preset condition, wherein when detecting whether the current playing environment meets the preset condition, the instructions further cause the processor to; when the current playing environment includes the content of the multi-media file, detect whether the content of the multi-media file belongs to a target media-file content genre; and determine that the current playing environment meets the preset condition if the content of the multi-media file belongs to the target media-file content genre, and wherein when detecting whether the content of the multi-media file belongs to the target media-file content genre, the instructions further cause the processor to; extract at least one image frame from the multi-media file; detect whether the at least one image frame includes a target element; and determine that the content of the multi-media file belongs to the target media-file content genre if the at least one image frame includes the target element. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification