Mobile terminal record screen live broadcast device and methodTechnical field
The present invention relates to communication field, particularly relate to a kind of mobile terminal record screen live broadcast device and method.
Background technology
In recent years, the live upsurge of the game on Intelligent mobile equipment is in the ascendant, and the live scheme of employing generally has following several:
The first, install hand trip simulator on PC, run hand trip on simulator, then by the desktop seizure instrument intercepting and capturing picture of PC, carries out live sharing. This kind of easier left-hand seat of scheme, but the live hand tourism-article kind of energy depends on the support of simulator, and the interactive experience of player's operator trip on PC and on the Intelligent mobile equipments such as mobile phone/flat board also can be different.
2nd kind, the Intelligent mobile equipment such as PC and mobile phone/flat board is connected by wired or wireless mode, by tool software, the screen-picture of Intelligent mobile equipment is synchronously projected PC(such as i Phone by AirPlay wireless technology, Android mobile phone is by screen emissions device and screen receptor software), then by the desktop seizure instrument intercepting and capturing picture of PC, live sharing is carried out. This kind of scheme can retain, for player, the interactive experience that on Intelligent mobile equipment, operator is swum, but the process building living broadcast environment is more complicated compared to the first scheme.
The third, directly the running background record live software of screen on Intelligent mobile equipment, in the trip of front stage operation hand, carries out live sharing. This kind of scheme can allow player not by the restriction in time, place, more easily initiates live, and builds the difficulty of living broadcast environment much smaller than first two scheme, and Consumer's Experience is best beyond doubt.
But, relative to first two scheme have at present ripe tool software can situation for, the present situation of the third scheme is the function API degree of opening that the operation that directly screen-picture is recorded on backstage on Intelligent mobile equipment can be limited to intelligence device operating system, more than 5.0 system versions of such as Android mobile phone have opened complete record screen function API, and less than 5.0 system versions just can use record screen function API after needing the root cracking the equipment of getting to operate authority, and for example more than the iOS9.0 system version of i Phone prohibits backstage record screen function API, and below iOS9.0 system version needs the privately owned API of the system that has access to just can realize record screen function.
Summary of the invention
It is an object of the invention to provide a kind of mobile terminal record screen live broadcast device and method, so that the record live software of screen is not when being limited to intelligence device operating system record screen function API, still can initiate live whenever and wherever possible.
For solving the problems of the technologies described above, as an aspect of the present invention, it provides a kind of mobile terminal record screen live broadcast device, comprises cableless communication module, for the mobile terminal live with initiation or direct broadcast server communication; HDMI input interface, for gathering the first live signal of the HDMI output interface from described mobile terminal, wherein, described first live signal comprises screen mirror image and the sound signal of described mobile terminal; Treater, for when receiving the wireless start request signal from described mobile terminal, encoding to generate the 2nd live signal described first live signal, and by described cableless communication module, described 2nd live signal be sent to described direct broadcast server.
Preferably, described device also comprises the power supply button and/or electricity and network state telltale that are connected with described treater and/or for charging and the USB interface of Data Update and/or loud speaker and/or earphone jack and/or system reset button etc.
Preferably, described treater parses the live parameters such as the perpendicular screen/horizontal screen picture quality live, live of screen from described wireless start request signal.
Preferably, described treater, when receiving the wireless stopping request signal from described mobile terminal, stops gathering described first live signal, stops described coding and stops to described direct broadcast server described 2nd live signal of transmission; Or described treater occur live abnormal time, send wireless exception notification signal to described mobile terminal.
Present invention also offers a kind of mobile terminal record screen live broadcasting method, comprising: judge whether there is the wireless start request signal from asking to start to record the live mobile terminal of screen; When receiving described wireless start request signal, gathering the first live signal of the HDMI output interface from described mobile terminal, wherein, described first live signal comprises screen mirror image and the sound signal of described mobile terminal; Undertaken described first live signal encoding to produce the 2nd live signal; Described 2nd live signal is sent to direct broadcast server live to realize described record screen.
Preferably, described 2nd live signal is wirelessly sent to direct broadcast server live to realize described record screen.
Preferably, comprising live parameter in described wireless start request signal, described live parameter comprises the perpendicular screen/horizontal screen picture quality live, live of screen etc.
Preferably, described method also comprises: judge whether to receive the wireless stopping request signal from described mobile terminal; When receiving described wireless stopping request signal, stop gather described first live signal, stop described coding and stop to described direct broadcast server send described 2nd live signal.
Preferably, described method also comprises: occur live abnormal time, send wireless exception notification signal to described mobile terminal.
Preferably, described wireless exception notification signal comprises coding fault or direct broadcast server access exception etc.
After adopting the solution of the present invention, the HDMI output of mode instead by intelligence equipment criteria that live software obtains on-screen data is shielded in the record of Intelligent mobile equipment, thus is no longer limited to the degree of opening of operating system record screen function API.Simultaneously, it is not necessary to directly initiate live good Consumer's Experience on the mobile apparatus by PC and also retained.
Accompanying drawing explanation
Fig. 1 diagrammatically illustrates the structural representation of the record screen live broadcast device of the mobile terminal in the present invention;
Fig. 2 diagrammatically illustrates the schema of the record screen live broadcasting method of the mobile terminal in the present invention.
Reference numeral in figure: 1, cableless communication module; 2, HDMI input interface; 3, treater; 4, power supply button; 5, electricity and network state telltale; 6, USB interface; 7, loud speaker; 8, earphone jack; 9, system reset button.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are described in detail, but the multitude of different ways that the present invention can be defined by the claims and cover is implemented.
Please refer to Fig. 1, the present invention provides a kind of mobile terminal record screen live broadcast device, particularly apple iPhone/iPad/iPod and the screen live broadcast device of the record used by Android mobile phone/flat board supporting HDMI to export.
This device comprises cableless communication module 1, for the mobile terminal live with initiation or direct broadcast server communication; HDMI input interface 2, for gathering the first live signal of the HDMI output interface from described mobile terminal, wherein, described first live signal comprises screen mirror image and the sound signal of described mobile terminal; Treater 3, for when receiving the wireless start request signal from described mobile terminal, encoding to generate the 2nd live signal described first live signal, and by described cableless communication module 1, described 2nd live signal be sent to described direct broadcast server. Such as, described coding can be, but not limited to H.264 video coding and AAC audio frequency coding, but comprises various audio/video coding form. Wherein, the 2nd live signal is not limited to use rtmp to flow agreement, but comprises rtmp, rtsp, HLS etc. and can realize live any stream agreement. Cableless communication module 1 can be cableless communication module conventional in the prior art such as WIFI module, bluetooth module.
During use, the HDMI input interface 2 of the present invention is connected with the HDMI output interface of Intelligent mobile equipment, and the portable unit of the present invention is set and Intelligent mobile equipment is in identical network. When mobile terminal is initiated live, from its HDMI output interface output screen mirror image and equipment audio frequency, then the present invention is notified by wireless start request signal, the present invention then gathers audio, video data from HDMI input interface 2, live stream is produced after coding, deliver to direct broadcast server, thus realize the record screen direct broadcast function of Intelligent mobile equipment.
After adopting such scheme, the HDMI output of mode instead by intelligence equipment criteria that live software obtains on-screen data is shielded in the record of Intelligent mobile equipment, thus is no longer limited to the degree of opening of operating system record screen function API. Simultaneously, it is not necessary to directly initiate live good Consumer's Experience on the mobile apparatus by PC and also retained.
Preferably, described device also comprises the power supply button 4 and/or electricity and network state telltale 5 that are connected with described treater 3 and/or for charging and the USB interface 6 of Data Update and/or loud speaker 7 and/or earphone jack 8 and/or system reset button 9 etc., for ensureing the normal experience of player.
Preferably, described treater 3 parses the live parameters such as the perpendicular screen/horizontal screen picture quality live, live of screen from described wireless start request signal.Preferably, described treater 3, when receiving the wireless stopping request signal from described mobile terminal, stops gathering described first live signal, stops described coding and stops to described direct broadcast server described 2nd live signal of transmission; Or described treater 3 occur live abnormal time, send wireless exception notification signal to described mobile terminal. Like this, when mobile terminal (such as mobile phone) is initiated live, wireless start request signal is sent to the present invention by the communication such as Wifi or bluetooth, notify the live beginning of the present invention, inform this live concrete parameter information simultaneously, being such as that the mobile phone screen live or horizontal screen of perpendicular screen is live, the quality of live picture is SD, high definition or super clear, and the present invention of these parameters can use when generating live stream; When mobile terminal stops live, a control signal can be sent equally to the present invention; If any exception occurs in live process in the present invention, such as encode fault or direct broadcast server access exception etc., also can attempt notice mobile terminal.
Such as, socket is adopted to carry out communication by Wifi: end of the present invention creates a socketserver, mobile terminal connects server as client, control command is agreement character string forms generally, such as: " CMDSTART#0#1# ", this is a START order, two parameters be respectively " 0 " and " 1 ", representative is that perpendicular screen is live and high definition quality.
Please refer to Fig. 2, present invention also offers a kind of mobile terminal record screen live broadcasting method, it repeats part with said apparatus corresponding to above-mentioned device, repeats no more with this.
The method comprises: judge whether there is the wireless start request signal from asking to start to record the live mobile terminal of screen; When receiving described wireless start request signal, gathering the first live signal of the HDMI output interface from described mobile terminal, wherein, described first live signal comprises screen mirror image and the sound signal of described mobile terminal; Undertaken described first live signal encoding to produce the 2nd live signal; Described 2nd live signal is sent to direct broadcast server live to realize described record screen.
Preferably, by described 2nd live signal wirelessly (such as WIFI) be sent to direct broadcast server with realize described record screen live.
Preferably, comprising live parameter in described wireless start request signal, described live parameter comprises the perpendicular screen/horizontal screen picture quality live, live of screen etc.
Preferably, described method also comprises: judge whether to receive the wireless stopping request signal from described mobile terminal; When receiving described wireless stopping request signal, stop gather described first live signal, stop described coding and stop to described direct broadcast server send described 2nd live signal.
Preferably, described method also comprises: occur live abnormal time, send wireless exception notification signal to described mobile terminal.
Preferably, described wireless exception notification signal comprises coding fault or direct broadcast server access exception etc.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations. Within the spirit and principles in the present invention all, any amendment of doing, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.