Summary of the invention
In view of above content, be necessary to provide a kind of document demonstration method and system.
Described document demonstration method comprises: receiving step, when the document demonstration function of electronic installation is unlocked, receives the demonstration document that user selects; Play step, on the screen of electronic installation, play selected demonstration document, and start acceleration magnitude and the direction of the gravity sensor detecting electronic installation of electronic installation; Detecting step, every Preset Time, obtains acceleration magnitude and the direction of the electronic installation that the gravity sensor of electronic installation detects; The first determining step, whether the acceleration that judgement detects is greater than or equal to default acceleration, when the acceleration detecting is greater than or equal to default acceleration, enters page turning step, otherwise, return to detecting step; Page turning step, according to the direction of the acceleration detecting, controls the demonstration document play on screen of electronic device forward or page turning backward; Forwarding step, is sent to display device by the demonstration picture of demonstration document on screen of electronic device, plays the demonstration picture of described demonstration document on display device.
Described document demonstration system comprises: receiver module, while being unlocked for the document demonstration function when electronic installation, receives the demonstration document that user selects from the storer of electronic installation; Playing module, for play selected demonstration document on the screen of electronic installation, and starts acceleration magnitude and the direction of the gravity sensor detecting electronic installation of electronic installation; Detecting module, for every Preset Time, obtains acceleration magnitude and the direction of the electronic installation that the gravity sensor of electronic installation detects; The first judge module, for judging whether the acceleration detecting is greater than or equal to default acceleration; Page module, while being greater than or equal to default acceleration for the acceleration when detecting, according to the direction of the acceleration detecting, controls the demonstration document play on screen of electronic device forward or page turning backward; Sending module for the demonstration picture of demonstration document on screen of electronic device is sent to display device, is play the demonstration picture of described demonstration document on display device.
The present invention, by the gesture of rocking the speaker who is hand-held this electronic installation of detecting electronic installation, makes the demonstration document page turning of electronic equipment plays back, finally realizes the demonstration document automatic page turning on display device.
Embodiment
As shown in Figure 1, be the running environment figure of document demonstration system of the present invention preferred embodiment.In the present embodiment, this document demo system 10 is based on WirelessHD display technique, operate on an electronic installation 1, electronic installation 1 can be the hand-held devices such as panel computer, smart mobile phone, personal digital assistant, this electronic installation 1 further comprises storer 12, processor 14, gravity sensor 16, and connect display device 2 by wireless network 3.
Described electronic installation 1 adopts WIDI (Intel Wireless Display) WirelessHD display technique, and comprises picture demo function and office document demonstration function.
When picture demo function or office document demonstration function are when selected, Photo Browser and office assembly (as word, excel or power point) are unlocked to play selected picture or office file.
The picture that described display device 2 is play for playing the demonstration document of electronic installation 1 transmission, and, this display device 2 further comprises a radio receiver, the picture that described radio receiver is play for receive the demonstration document of electronic installation 1 end transmission by wireless network 3.In present embodiment, described radio receiver can also not be integrated on display device 2, but is external on display device 2 by HDMI or A/V cable.
Described storer 12 is for data such as the source program code of storage file demo system 10 and demonstration documents.
Described gravity sensor 16, will be by demonstration document page turning to judge whether according to rocking of the electronic installation 1 detecting for detecting rocking of electronic installation 1.
In the present embodiment, described document demonstration system 10 can be divided into one or more modules, and described one or more modules are configured to be carried out by one or more processors (the present embodiment is a processor 14), to complete the present invention.For example, consult shown in Fig. 2, described document demonstration system 10 is divided into receiver module 100, playing module 102, detecting module 104, the first judge module 106, page module 108, sending module 110, and also can further comprise the second judge module 112.The alleged module of the present invention has been the program segment of a specific function, than program, is more suitable in describing the implementation of software in electronic installation 1, the description of consulting Fig. 3 about the function of each module.
As shown in Figure 3, be the process flow diagram of the preferred embodiment of document demonstration method of the present invention.
Step S11, when the document demonstration function of electronic installation 1 is unlocked, receiver module 100 receives the demonstration document that user selects from the storer 12 of electronic installation 1.In present embodiment, described demonstration document can be the files such as picture, power point, excel form and word.
Step S12, playing module 102 is play selected demonstration document on the screen of electronic installation 1, and starts size and direction that gravity sensor 16 detecting electronic installations 1 rock produced acceleration.In present embodiment, described playing module 102, according to demonstration document type, starts Photo Browser or office assembly and plays demonstration document.
Step S13, every Preset Time (as 0.5 second), detecting module 104 obtains size and the direction of electronic installation 1 acceleration that gravity sensor 16 detects.
Step S14, whether the acceleration of the electronic installation 1 that the first judge module 106 judgements detect is greater than or equal to default acceleration, when the acceleration of the electronic installation 1 detecting is greater than or equal to default acceleration, enters step S15, otherwise, return to step S13.In present embodiment, described default acceleration can be according to speaker's custom free setting.
Step S15, page module 108 is according to the acceleration direction of the electronic installation 1 detecting, and controls the demonstration document play on electronic installation 1 screen forward or page turning backward.In present embodiment, when the acceleration direction that detects electronic installation 1 (when speaker rocks electronic installation 1 to the right) for left time, by demonstration document page turning forward; When the acceleration direction that detects electronic installation 1 (when speaker rocks electronic installation 1 left) for to the right time, by demonstration document page turning backward.
Step S16, sending module 110 is sent to display device 2 by wireless network 3 by the demonstration picture of demonstration document on electronic installation 1 screen, plays the demonstration picture of demonstration document on display device 2.
In present embodiment, the described document demonstration system based on WirelessHD display technique also comprises the second judge module 112, this second judge module 112 is for judging according to the acceleration of the electronic installation 1 detecting whether electronic installation 1 rocks in a plane, when electronic installation 1 rocks in a plane, enter step S14, otherwise, return to step S13.Concrete example as, can analyze the electronic installation 1 that detects at the component of acceleration of default each change in coordinate axis direction of three-dimensional system of coordinate, this default three-dimensional system of coordinate comprises X-axis, Y-axis and Z axis, X-axis is horizontal direction, Y-axis is vertical direction, Z axis is perpendicular to X-axis and Y-axis.In the present embodiment, when electronic installation 1 is only when level, vertical direction exist component of acceleration, illustrate when electronic installation 1 rocks in a plane.
Described step S11 is to step S16 by the gesture of rocking the speaker who is hand-held this electronic installation 1 of detecting electronic installation, and the demonstration document page turning that electronic installation 1 is play, finally realizes the demonstration document automatic page turning on display device 2.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not depart from the spirit and scope of technical solution of the present invention.