BACKGROUND OF THE INVENTION

Field of the Invention

The invention relates to an electronic device and, more particularly, to an environmental sensing system and display control method of an electronic device.

Description of the Related Art

Users might utilize live stream services on a mobile phone with a flipped camera lens for work or play games. However, if the mobile phone is dropped or the camera lens is flipped accidentally while live streaming, the camera might capture images of the environment and the privacy would leak out through the live stream service.

BRIEF SUMMARY OF THE INVENTION

The disclosure in an embodiments is to provide an electronic device, which can automatically close the display image when the operation environment changes.

According to an aspect, an electronic device is provided. The electronic device includes: a body; a camera module, rotatably disposed on the body; a sensor, disposed in the electronic device for generating an environmental sensing signal; and a processor, electrically connected to the camera module and the sensor, and configured to load and execute an application with the following steps: generating a display image; controlling the camera module to capture a face image and combining the face image with the display image to form a live stream image when a show face function of the application is activated; and when the electronic device is in a live stream mode and the processor determines that an environment dynamic change occurs according to the environmental sensing signal, the processor transmits a notification signal to the application to notify the application to close the show face function.

In summary, the electronic device and the control method provided in the embodiments prevents private pictures from being leaked while the mobile phone is operated over live streaming and the camera lens flips in response to the environment changes. The sensor detects the environmental changes around the electronic device to control the output streaming screen and related accessories, protecting the privacy of users.

These and other features, aspects and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings.

