CN108650521A - A kind of live broadcasting method, device and multimedia play system - Google Patents

A kind of live broadcasting method, device and multimedia play system Download PDF

Info

Publication number
CN108650521A
CN108650521A CN201810475224.6A CN201810475224A CN108650521A CN 108650521 A CN108650521 A CN 108650521A CN 201810475224 A CN201810475224 A CN 201810475224A CN 108650521 A CN108650521 A CN 108650521A
Authority
CN
China
Prior art keywords
thread
microphone
camera
opens
live
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.)
Pending
Application number
CN201810475224.6A
Other languages
Chinese (zh)
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.)
SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd
Original Assignee
SHANGHAI QINIU INFORMATION TECHNOLOGIES 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 SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd filed Critical SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd
Priority to CN201810475224.6A priority Critical patent/CN108650521A/en
Publication of CN108650521A publication Critical patent/CN108650521A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/4061Push-to services, e.g. push-to-talk or push-to-video
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of live broadcasting method, device and multimedia play system, the live broadcasting method includes:Detect the operational order of terminal;It is instructed if the operational order is live streaming, is instructed according to the live streaming and open acquisition component;Start first thread and the second thread, the first thread is for obtaining video information, and second thread is for obtaining audio-frequency information;The video information and audio-frequency information that get are subjected to coded treatment, generate files in stream media;The files in stream media is pushed to predetermined server.The embodiment of the present invention being capable of two threads of enforced opening, it is respectively used to the acquisition of audio-frequency information and video information, so that terminal can create audio-frequency information and video information at any time, without restarting corresponding application programs, reduce the stand-by period of user, the user experience is improved.

Description

A kind of live broadcasting method, device and multimedia play system
Technical field
The present invention relates to a kind of technical field of media more particularly to live broadcasting method, device and multimedia play systems.
Background technology
With the fast development of the Internet, applications technology and universal, sports tournament, music performance, the Zhu Boxiu of smart mobile phone Equal net casts are increasingly liked by user, thus have also derived a variety of demands of the user to direct broadcast service.
When being broadcast live using mobile terminal, it will usually occur, without picture or asonant situation, to weigh at this time Corresponding application program is opened, some excellent pictures are led to miss, user experience is poor.
Invention content
A kind of live broadcasting method of offer of the embodiment of the present invention, device and multimedia play system, can support audio, video Dynamic creation meets live streaming demand
First aspect of the embodiment of the present invention provides a kind of live broadcasting method, including:
Detect the operational order of terminal;
It is instructed if the operational order is live streaming, is instructed according to the live streaming and open acquisition component;
Start first thread and the second thread, the first thread is used for obtaining video information, second thread In acquisition audio-frequency information;
The video information and audio-frequency information that get are subjected to coded treatment, generate files in stream media;
The files in stream media is pushed to predetermined server.
Optionally, the operational order of the detecting terminal, including:
The touch operation on terminal touch screen is detected, if the object of the touch operation is the application journey in the presets list Sequence, it is determined that the touch operation is that live streaming instructs;Or
The voice messaging for detecting user, parses the voice messaging, if comprising in the presets list in the voice messaging Application program, it is determined that the voice messaging is that live streaming instructs.
Optionally, described instructed according to the live streaming opens acquisition component, including:
It obtains and opens permission, the unlatching permission includes:Camera opens permission and microphone opens permission;
According to authority acquiring as a result, opening corresponding acquisition component;
Opening imformation is fed back according to result is opened.
Optionally, the startup first thread and the second thread, including:
If the opening imformation, which is camera and microphone, opens success, start first thread and the second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
Optionally, the startup first thread and the second thread, including:
If the opening imformation is camera opens successfully, microphone open and fail, start first thread, and pressure is opened Dynamic second thread;
Or
If the opening imformation is microphone opens successfully, camera open and fail, start the second thread, and pressure is opened Dynamic first thread;
Or
If the opening imformation be camera open failure, microphone open failure, force start first thread and Second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
Second aspect of the embodiment of the present invention provides a kind of live broadcast device, including:
Detecting module, the operational order for detecting terminal;
Opening module, for when the operational order is live streaming instruction, being instructed according to the live streaming and opening acquisition component;
Starting module, for starting first thread and the second thread, the first thread is for obtaining video information, institute The second thread is stated for obtaining audio-frequency information;
Coding module generates Streaming Media for the video information and audio-frequency information that get to be carried out coded treatment File;
Pushing module, for the files in stream media to be pushed to predetermined server.
Optionally, the detecting module is specifically used for:
The touch operation on terminal touch screen is detected, if the object of the touch operation is the application journey in the presets list Sequence, it is determined that the touch operation is that live streaming instructs;Or
The voice messaging for detecting user, parses the voice messaging, if comprising in the presets list in the voice messaging Application program, it is determined that the voice messaging is that live streaming instructs.
Optionally, the opening module is specifically used for:
It obtains and opens permission, the unlatching permission includes:Camera opens permission and microphone opens permission;
According to authority acquiring as a result, opening corresponding acquisition component;
Opening imformation is fed back according to result is opened.
Optionally, the starting module is specifically used for:
If the opening imformation, which is camera and microphone, opens success, start first thread and the second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
Optionally, the starting module is specifically used for:
If the opening imformation is camera opens successfully, microphone open and fail, start first thread, and pressure is opened Dynamic second thread;
Or
If the opening imformation is microphone opens successfully, camera open and fail, start the second thread, and pressure is opened Dynamic first thread;
Or
If the opening imformation be camera open failure, microphone open failure, force start first thread and Second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
The third aspect of the embodiment of the present invention provides a kind of multimedia play system, including live broadcast device described above.
Implement the embodiment of the present invention, has the advantages that:
Live broadcasting method, device and multimedia play system provided in an embodiment of the present invention, when detecting live streaming instruction, Can two threads of enforced opening, the acquisition of audio-frequency information and video information is respectively used to, so that terminal can be with When create audio-frequency information and video information, when leading to no image, voiceless sound due to failures such as microphone, camera permissions, energy Restore in time, without restarting corresponding application programs, reduces the stand-by period of user, the user experience is improved.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of method flow diagram of live broadcasting method first embodiment provided in an embodiment of the present invention.
Fig. 2 is a kind of method flow diagram of live broadcasting method second embodiment provided in an embodiment of the present invention.
Fig. 3 is a kind of structural schematic diagram of live broadcast device first embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just It is illustrated only in description, attached drawing and the relevant part of the disclosure rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.It is therein to be permitted although each step to be described as to the processing of sequence in flow chart Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged, when its operation The processing can be terminated when completion, it is also possible to the other steps being not included in attached drawing.Processing can correspond to In method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of method flow diagram of live broadcasting method first embodiment provided in an embodiment of the present invention.The live broadcasting method Applied to terminal, the terminal can be computer, desktop computer, tablet computer etc., or smart mobile phone, e-book, Wearable device etc..The terminal can realize that the present invention is implemented by installing the form of application program or built-in application program The method being broadcast live in example.The live broadcasting method includes the following steps S101-S105.
In step S101, the operational order of terminal is detected.
Specifically, in the present embodiment, the operational order of terminal is detected first, and the operational order can be there are many form. When terminal has touch screen, the operational order can be the touch operation on touch screen.In other embodiments, described Operational order can also be voice operating either gesture operation.Judge the operational order according to the operation object of operational order Whether it is live streaming instruction.If so, entering step in S102.
In one embodiment, the operational order of the detecting terminal includes:Detect the touch behaviour on terminal touch screen Make, if the object of the touch operation is the application program in the presets list, it is determined that the touch operation is that live streaming instructs.Its In, described the presets list can be pre-set by user, and the application program in described the presets list is live streaming class application program.
In another embodiment, the operational order of the detecting terminal includes:Detect the voice messaging of user, parsing The voice messaging, if including the application program in the presets list in the voice messaging, it is determined that the voice messaging is straight Broadcast instruction.In the present embodiment, by parsing the keyword in voice messaging, judge the keyword whether comprising in the presets list Application program, if including, it is determined that for live streaming instruction.
Further include the steps that having to open corresponding live streaming application program it is understood that when receiving live streaming instruction.
In step s 102, it is instructed if the operational order is live streaming, is instructed according to the live streaming and open acquisition component.
Specifically, when by parsing operational order, when judging that operational order instructs for live streaming, corresponding live streaming application is opened Program, meanwhile, further, is instructed according to live streaming and open acquisition component.In the present embodiment, the acquisition component includes microphone And camera.It is understood that terminal would generally include front camera and rear camera, the quantity of microphone Can have multiple, user can voluntarily select to open corresponding camera and microphone by interactive interface.Currently, due to people Increasingly focus on privacy, it is also more prevalent to the permission control of application program, when opening live streaming class application program, if current open Live streaming class application program and without open acquisition component permission, then can open and fail, at this time, it may be necessary to will open failure Information generates prompting message and notifies user in time.If likewise, opening successfully, can also notify to use by forms such as interface prompts Family.
In step s 103, start first thread and the second thread, the first thread is for obtaining video information, institute The second thread is stated for obtaining audio-frequency information.
Specifically, in this step, starts dual-thread, correspond to video information and audio-frequency information respectively.In the art, Dual-thread will not be usually directly initiated, but is started according to the unlatching situation of specific acquisition component.For example, if acquisition component is only Microphone is opened, camera is not turned on, and when starting thread, only can start the corresponding thread of microphone;If likewise, only Camera is opened, then only can start the corresponding thread of camera.This results in will appear no picture or nothing during live streaming The case where sound, can only be by way of closing application program and restarting, to restore normal at this time since thread has been started up. The present embodiment is based on the proposition of this problem, in the present embodiment, directly initiates dual-thread, dual-thread is respectively used to video letter Breath and audio-frequency information, consequently facilitating the establishment at any time of follow audio or video information, convenient for components such as microphone or cameras Recovery at any time save user time without by way of re-launching applications.
In step S104, the video information and audio-frequency information that get are subjected to coded treatment, generate Streaming Media File.
Specifically, in this step, after getting video information and audio-frequency information, to video information and audio-frequency information Carry out coded treatment.It is understood that can also further comprise timestamp processing and audio and video merging treatment in processing Deng.Processing procedure can refer to the way of the prior art in this step, and this will not be repeated here.
In step S105, the files in stream media is pushed to predetermined server.
Specifically, after generating files in stream media, files in stream media is pushed to predetermined server.The preset service Device can be the corresponding server of live streaming class application program opened, and the predetermined server again pushes files in stream media information To each client.At this point, each client can watch live content.
It is above-mentioned it is found that live broadcasting method in the embodiment of the present invention being capable of enforced opening two when detecting live streaming instruction Thread is respectively used to the acquisition of audio-frequency information and video information so that terminal can create at any time audio-frequency information and Video information can be restored, when leading to no image, voiceless sound due to failures such as microphone, camera permissions without again in time Start corresponding application programs, reduces the stand-by period of user, the user experience is improved.
Fig. 2 is a kind of method flow diagram of live broadcasting method second embodiment provided in an embodiment of the present invention.In the present embodiment, First embodiment shown in FIG. 1 is compared, the step of how opening acquisition component is further comprised.The live broadcasting method includes following Step S201-S207.
In step s 201, the operational order of terminal is detected.
In step S202, is instructed if the operational order is live streaming, obtain unlatching permission.
Specifically, in the present embodiment, when operational order is live streaming instruction, unlatching is corresponding to be broadcast live class application program, After opening application program, acquisition request opens permission accordingly, and the unlatching permission includes:Camera open permission with And microphone opens permission.It is common, when application program is installed, just apply for associated rights.Optionally, can also be When application program is opened, then carry out the application of associated rights.In the present embodiment, the action of the request permissions can pass through bullet The form of window is shown, is confirmed by user.
In step S203, according to authority acquiring as a result, opening corresponding acquisition component.
Specifically, generating authority acquiring result according to the confirmation situation of user.When to user's request permissions, generally use It is unsuccessful to be defaulted as authority application if user does not operate within a preset period of time for the form of pop-up.If user refuses, Indicate that authority application is unsuccessful.According to authority acquiring as a result, opening corresponding acquisition component.Only obtain the acquisition group of permission Part could be opened.
In step S204, opening imformation is fed back according to result is opened.
Specifically, feeding back opening imformation according to result is opened, it is to be understood that it includes following several feelings to open result Condition:Microphone and camera open success;Microphone open successfully, camera open failure;Microphone opens failure, camera shooting Head is opened successfully;Microphone and camera, which are opened, to fail.
In step S205, start first thread and the second thread, the first thread is for obtaining video information, institute The second thread is stated for obtaining audio-frequency information.
Specifically, according to different opening imformations, there is different difference in Starting mode.It illustrates in detail below.
In one embodiment, if the opening imformation, which is camera and microphone, opens success, start first Thread and the second thread.
In one embodiment, if the opening imformation be camera opens successfully, microphone unlatching fail, start First thread, and the second thread of force start.
In one embodiment, if the opening imformation be microphone opens successfully, camera unlatching fail, start Second thread, and force start first thread.
In one embodiment, it if the opening imformation, which is camera, opens failure, microphone opens failure, forces Start first thread and the second thread.
It after opening thread, further, is connect with the camera by the first thread, passes through described the Two threads are connect with the microphone.
In this step, when the acquisition components such as terminal microphone or camera failure cause cannot normal failure when, It by first opening thread, can directly be used when subsequent acquisition component recovery is normal, be not necessarily to re-launching applications.
In step S206, the video information and audio-frequency information that get are subjected to coded treatment, generate Streaming Media File.
In step S207, the files in stream media is pushed to predetermined server.
It is above-mentioned it is found that live broadcasting method in the embodiment of the present invention being capable of enforced opening two when detecting live streaming instruction Thread is respectively used to the acquisition of audio-frequency information and video information so that terminal can create at any time audio-frequency information and Video information can be restored, when leading to no image, voiceless sound due to failures such as microphone, camera permissions without again in time Start corresponding application programs, reduces the stand-by period of user, the user experience is improved.
Fig. 3 is a kind of structural schematic diagram of live broadcast device first embodiment provided in an embodiment of the present invention.The live broadcast device Applied to terminal, the terminal can be computer, desktop computer, tablet computer etc., or smart mobile phone, e-book, Wearable device etc..The live broadcast device includes:Detecting module 301, opening module 302, starting module 303, coding module 304 and pushing module 305.
The detecting module 301, the operational order for detecting terminal;
The opening module 302, for when the operational order is live streaming instruction, being opened and being adopted according to live streaming instruction Collect component;
The starting module 303, for starting first thread and the second thread, the first thread is for obtaining video Information, second thread is for obtaining audio-frequency information;
The coding module 304 is generated for the video information and audio-frequency information that get to be carried out coded treatment Files in stream media;
The pushing module 305, for the files in stream media to be pushed to predetermined server.
Optionally, the detecting module is specifically used for:
The touch operation on terminal touch screen is detected, if the object of the touch operation is the application journey in the presets list Sequence, it is determined that the touch operation is that live streaming instructs;Or
The voice messaging for detecting user, parses the voice messaging, if comprising in the presets list in the voice messaging Application program, it is determined that the voice messaging is that live streaming instructs.
Optionally, the opening module is specifically used for:
It obtains and opens permission, the unlatching permission includes:Camera opens permission and microphone opens permission;
According to authority acquiring as a result, opening corresponding acquisition component;
Opening imformation is fed back according to result is opened.
Optionally, the starting module is specifically used for:
If the opening imformation, which is camera and microphone, opens success, start first thread and the second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
Optionally, the starting module is specifically used for:
If the opening imformation is camera opens successfully, microphone open and fail, start first thread, and pressure is opened Dynamic second thread;
Or
If the opening imformation is microphone opens successfully, camera open and fail, start the second thread, and pressure is opened Dynamic first thread;
Or
If the opening imformation be camera open failure, microphone open failure, force start first thread and Second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
It is above-mentioned it is found that live broadcast device in the embodiment of the present invention being capable of enforced opening two when detecting live streaming instruction Thread is respectively used to the acquisition of audio-frequency information and video information so that terminal can create at any time audio-frequency information and Video information can be restored, when leading to no image, voiceless sound due to failures such as microphone, camera permissions without again in time Start corresponding application programs, reduces the stand-by period of user, the user experience is improved.
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.It is understood that Fig. 1-Fig. 2 Shown in live broadcasting method and live broadcast device shown in Fig. 3 can be applied in mobile terminal shown in Fig. 4.As shown in figure 4, mobile Terminal includes processor 401 (quantity of the processor 401 in terminal can be one or more, and Fig. 4 is by taking a processor as an example) And memory 402.In an embodiment of the present invention, processor 401, memory 402 can be connected by bus or other means, Wherein, in Fig. 4 for being connected by bus.
Wherein, executable program is stored in memory 402, processor 401 executes the executable program to realize such as Lower step:
Detect the operational order of terminal;
It is instructed if the operational order is live streaming, is instructed according to the live streaming and open acquisition component;
Start first thread and the second thread, the first thread is used for obtaining video information, second thread In acquisition audio-frequency information;
The video information and audio-frequency information that get are subjected to coded treatment, generate files in stream media;
The files in stream media is pushed to predetermined server.
Optionally, the processor 401 detects the operational order of terminal, including:
The touch operation on terminal touch screen is detected, if the object of the touch operation is the application journey in the presets list Sequence, it is determined that the touch operation is that live streaming instructs;Or
The voice messaging for detecting user, parses the voice messaging, if comprising in the presets list in the voice messaging Application program, it is determined that the voice messaging is that live streaming instructs.
Optionally, the processor 401 is instructed according to the live streaming opens acquisition component, including:
It obtains and opens permission, the unlatching permission includes:Camera opens permission and microphone opens permission;
According to authority acquiring as a result, opening corresponding acquisition component;
Opening imformation is fed back according to result is opened.
Optionally, the processor 401 starts first thread and the second thread, including:
If the opening imformation, which is camera and microphone, opens success, start first thread and the second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
Optionally, the processor 401 starts first thread and the second thread, including:
If the opening imformation is camera opens successfully, microphone open and fail, start first thread, and pressure is opened Dynamic second thread;
Or
If the opening imformation is microphone opens successfully, camera open and fail, start the second thread, and pressure is opened Dynamic first thread;
Or
If the opening imformation be camera open failure, microphone open failure, force start first thread and Second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
It is above-mentioned it is found that mobile terminal in the embodiment of the present invention being capable of enforced opening two when detecting live streaming instruction Thread is respectively used to the acquisition of audio-frequency information and video information so that terminal can create at any time audio-frequency information and Video information can be restored, when leading to no image, voiceless sound due to failures such as microphone, camera permissions without again in time Start corresponding application programs, reduces the stand-by period of user, the user experience is improved.
The embodiment of the present invention additionally provides a kind of multimedia play system, and the multimedia play system includes shown in Fig. 3 Live broadcast device, and can be applied to realize Fig. 1-live broadcasting methods shown in Fig. 2.The specific descriptions of the multimedia play system can Referring to the description of the live broadcasting method and live broadcast device of Fig. 1-Fig. 3, this will not be repeated here.
It is above-mentioned it is found that multimedia play system in the embodiment of the present invention can be forced open when detecting live streaming instruction Two threads are opened, the acquisition of audio-frequency information and video information is respectively used to, so that terminal can create audio at any time Information and video information can be restored, nothing in time when leading to no image, voiceless sound due to failures such as microphone, camera permissions Corresponding application programs must be restarted, reduce the stand-by period of user, the user experience is improved.
There is provided in above-described embodiment each module between any two can be achieved communication connection, and each module can in platform The communication of heart control device connects, and can perform in the disclosure by the quick recording device of fingerprint recognition for being provided in above-described embodiment is appointed The method quickly recorded by fingerprint recognition provided in embodiment of anticipating has and executes the corresponding function module of this method and have Beneficial effect, the technical detail not being described in detail in the above-described embodiments, reference can be made to fast provided in disclosure any embodiment The method of speed recording.
It will be appreciated that the disclosure also extends to the computer program for being suitable for that the disclosure tries out, especially Computer program on carrier or in carrier.Program can be with source code, object code, code intermediate source and such as part volume The form of the object code for the form translated, or with any other shape for being suitble to use in realization according to the disclosed method Formula.Also it will be noted that, such program may have many different frame designs.For example, realizing the side according to the disclosure Functional program code of method or system may be subdivided into one or more subroutine.
For that will be apparent for technical personnel in the functional many different modes of these subroutine intermediate distributions. Subroutine can be collectively stored in an executable file, to form self-contained program.Such executable file can To include computer executable instructions, such as processor instruction and/or interpreter instruction (for example, Java interpreter instruction).It can Alternatively, one or more or all subroutines of subroutine may be stored at least one external library file, and And statically or dynamically (such as at runtime) links with main program.Main program contains at least one of subroutine At least one calling.Subroutine can also include to mutual function call.It is related to the embodiment packet of computer program product Include the computer executable instructions corresponding at least one of illustrated method each step of the processing step of method.These refer to Subroutine can be subdivided into and/or be stored in one or more possible static or dynamic link file by enabling.
Another embodiment for being related to computer program product includes corresponding in illustrated system and/or product at least The computer executable instructions of each device in one device.These instructions can be subdivided into subroutine and/or be stored In one or more possible static or dynamic link file.
The carrier of computer program can be any entity or device that can deliver program.For example, carrier can wrap Containing storage medium, such as (ROM such as CDROM either semiconductor ROM) or magnetic recording media (such as floppy disk or hard disk).Into One step, carrier can be the carrier that can be transmitted, such as electricity either optical signalling its can via cable or optical cable, or Person is transmitted by radio or other means.When program is embodied as such signal, carrier can be by such cable Or device composition.Alternatively, carrier can be the integrated circuit for being wherein embedded with program, and the integrated circuit is suitable for holding Row correlation technique, or used in execution for correlation technique.
Should be noted that embodiment mentioned above is to illustrate the disclosure, rather than the disclosure is limited, and this The technical staff in field will design many alternate embodiments, without departing from scope of the appended claims.It is weighing During profit requires, the reference mark of any placement between round parentheses is not to be read as being limitations on claims.Verb " packet Include " and its paradigmatic depositing using the element being not excluded for other than those of recording in the claims or step .Article " one " before element or "one" be not excluded for the presence of a plurality of such elements.The disclosure can pass through Include the hardware of several visibly different components, and is realized by properly programmed computer.Enumerating several devices In device claim, several in these devices can be embodied by the same item of hardware.In mutually different appurtenance Profit states that the simple fact of certain measures does not indicate that the combination of these measures cannot be used to benefit in requiring.
If desired, different function discussed herein can be executed with different order and/or be executed simultaneously with one another. In addition, if if it is expected, one or more functions described above can be optional or can be combined.
If desired, each step is not limited to the sequence that executes in each embodiment, different step as discussed above It can be executed with different order and/or be executed simultaneously with one another.In addition, in other embodiments, described above one or more A step can be optional or can be combined.
Although various aspects of the disclosure provides in the independent claim, the other aspects of the disclosure include coming from The combination of the dependent claims of the feature of described embodiment and/or feature with independent claims, and not only It is the combination clearly provided in claim.
Although it is to be noted here that the foregoing describe the example embodiment of the disclosure, these descriptions are not It should be understood in a limiting sense.It is wanted without departing from such as appended right on the contrary, several change and modification can be carried out The scope of the present disclosure defined in asking.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general meter Device is calculated to realize, each module can concentrate in the group of networks of single computing device or computing device composition, and the disclosure is real The method that the device in example corresponds in previous embodiment is applied, can be realized, can also be led to by executable program code The mode of integrated circuit combination is crossed to realize, therefore the disclosure is not limited to specific hardware or software and its combination.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general shifting Dynamic terminal realizes that each module can concentrate in the device combination of single mobile terminal or mobile terminal composition, the disclosure Device in embodiment corresponds to the method in previous embodiment, can be realized by editing executable program code, It can be realized by way of integrated circuit combination, therefore the disclosure is not limited to specific hardware or software and its knot It closes.

Claims (11)

1. a kind of live broadcasting method, which is characterized in that including:
Detect the operational order of terminal;
It is instructed if the operational order is live streaming, is instructed according to the live streaming and open acquisition component;
Start first thread and the second thread, the first thread is for obtaining video information, and second thread is for obtaining Take audio-frequency information;
The video information and audio-frequency information that get are subjected to coded treatment, generate files in stream media;
The files in stream media is pushed to predetermined server.
2. live broadcasting method as described in claim 1, which is characterized in that the operational order of the detecting terminal, including:
The touch operation on terminal touch screen is detected, if the object of the touch operation is the application program in the presets list, Determine that the touch operation is that live streaming instructs;Or
The voice messaging for detecting user, parses the voice messaging, if including the application in the presets list in the voice messaging Program, it is determined that the voice messaging is that live streaming instructs.
3. live broadcasting method as claimed in claim 1 or 2, which is characterized in that described instructed according to the live streaming opens acquisition group Part, including:
It obtains and opens permission, the unlatching permission includes:Camera opens permission and microphone opens permission;
According to authority acquiring as a result, opening corresponding acquisition component;
Opening imformation is fed back according to result is opened.
4. live broadcasting method as claimed in claim 3, which is characterized in that the startup first thread and the second thread, including:
If the opening imformation, which is camera and microphone, opens success, start first thread and the second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
5. live broadcasting method as claimed in claim 3, which is characterized in that the startup first thread and the second thread, including:
If the opening imformation is camera opens successfully, microphone unlatching fail, start first thread, and force start the Two threads;
Or
If the opening imformation is microphone opens successfully, camera unlatching fail, start the second thread, and force start the One thread;
Or
If the opening imformation, which is camera, opens failure, microphone opens failure, force start first thread and second Thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
6. a kind of live broadcast device, which is characterized in that including:
Detecting module, the operational order for detecting terminal;
Opening module, for when the operational order is live streaming instruction, being instructed according to the live streaming and opening acquisition component;
Starting module, for starting first thread and the second thread, the first thread is for obtaining video information, and described the Two threads are for obtaining audio-frequency information;
Coding module generates files in stream media for the video information and audio-frequency information that get to be carried out coded treatment;
Pushing module, for the files in stream media to be pushed to predetermined server.
7. live broadcast device as claimed in claim 6, which is characterized in that the detecting module is specifically used for:
The touch operation on terminal touch screen is detected, if the object of the touch operation is the application program in the presets list, Determine that the touch operation is that live streaming instructs;Or
The voice messaging for detecting user, parses the voice messaging, if including the application in the presets list in the voice messaging Program, it is determined that the voice messaging is that live streaming instructs.
8. live broadcast device as claimed in claims 6 or 7, which is characterized in that the opening module is specifically used for:
It obtains and opens permission, the unlatching permission includes:Camera opens permission and microphone opens permission;
According to authority acquiring as a result, opening corresponding acquisition component;
Opening imformation is fed back according to result is opened.
9. live broadcast device as claimed in claim 8, which is characterized in that the starting module is specifically used for:
If the opening imformation, which is camera and microphone, opens success, start first thread and the second thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
10. live broadcast device as claimed in claim 8, which is characterized in that the starting module is specifically used for:
If the opening imformation is camera opens successfully, microphone unlatching fail, start first thread, and force start the Two threads;
Or
If the opening imformation is microphone opens successfully, camera unlatching fail, start the second thread, and force start the One thread;
Or
If the opening imformation, which is camera, opens failure, microphone opens failure, force start first thread and second Thread;
It is connect with the camera by the first thread;
It is connect with the microphone by second thread.
11. a kind of multimedia play system, which is characterized in that including such as claim 6-10 any one of them live broadcast device.
CN201810475224.6A 2018-05-17 2018-05-17 A kind of live broadcasting method, device and multimedia play system Pending CN108650521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810475224.6A CN108650521A (en) 2018-05-17 2018-05-17 A kind of live broadcasting method, device and multimedia play system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810475224.6A CN108650521A (en) 2018-05-17 2018-05-17 A kind of live broadcasting method, device and multimedia play system

Publications (1)

Publication Number Publication Date
CN108650521A true CN108650521A (en) 2018-10-12

Family

ID=63756677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810475224.6A Pending CN108650521A (en) 2018-05-17 2018-05-17 A kind of live broadcasting method, device and multimedia play system

Country Status (1)

Country Link
CN (1) CN108650521A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351600A (en) * 2019-01-21 2019-10-18 福州友宝电子科技有限公司 A kind of method and device playing video
CN111580776A (en) * 2020-04-28 2020-08-25 广州市百果园信息技术有限公司 Audio function recovery method, device, terminal and storage medium
CN114257572A (en) * 2020-09-11 2022-03-29 腾讯科技(深圳)有限公司 Data processing method and device, computer readable medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248956A (en) * 2013-05-20 2013-08-14 浙江传媒学院 Realizing method and system of intelligent home video business in multi-screen cooperating mode
CN103327417A (en) * 2013-07-11 2013-09-25 亿览在线网络技术(北京)有限公司 Method and device for directly broadcasting real-time long-distance audio and video frequency
CN105142002A (en) * 2015-08-07 2015-12-09 广州博冠信息科技有限公司 Audio/video live broadcasting method and device as well as control method and device
US20170171281A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Play method and apparatus and mobile terminal device for android platform
CN107276990A (en) * 2017-05-22 2017-10-20 深圳市时代云海科技有限公司 A kind of stream media live broadcasting method and device
CN107295317A (en) * 2017-08-25 2017-10-24 四川长虹电器股份有限公司 A kind of mobile device audio/video flow live transmission method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248956A (en) * 2013-05-20 2013-08-14 浙江传媒学院 Realizing method and system of intelligent home video business in multi-screen cooperating mode
CN103327417A (en) * 2013-07-11 2013-09-25 亿览在线网络技术(北京)有限公司 Method and device for directly broadcasting real-time long-distance audio and video frequency
CN105142002A (en) * 2015-08-07 2015-12-09 广州博冠信息科技有限公司 Audio/video live broadcasting method and device as well as control method and device
US20170171281A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Play method and apparatus and mobile terminal device for android platform
CN107276990A (en) * 2017-05-22 2017-10-20 深圳市时代云海科技有限公司 A kind of stream media live broadcasting method and device
CN107295317A (en) * 2017-08-25 2017-10-24 四川长虹电器股份有限公司 A kind of mobile device audio/video flow live transmission method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351600A (en) * 2019-01-21 2019-10-18 福州友宝电子科技有限公司 A kind of method and device playing video
CN111580776A (en) * 2020-04-28 2020-08-25 广州市百果园信息技术有限公司 Audio function recovery method, device, terminal and storage medium
CN114257572A (en) * 2020-09-11 2022-03-29 腾讯科技(深圳)有限公司 Data processing method and device, computer readable medium and electronic equipment
CN114257572B (en) * 2020-09-11 2023-11-24 腾讯科技(深圳)有限公司 Data processing method, device, computer readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
RU2631137C2 (en) Connection of devices
US11227598B2 (en) Method for controlling terminal by voice, terminal, server and storage medium
US10645464B2 (en) Eyes free entertainment
CN109313901A (en) Information processing unit, reception device and information processing method
US9794620B2 (en) System and method for providing related content at low power, and computer readable recording medium having program recorded therein
CN112423081B (en) Video data processing method, device and equipment and readable storage medium
CN108650521A (en) A kind of live broadcasting method, device and multimedia play system
CN112136102B (en) Information processing apparatus, information processing method, and information processing system
KR101991188B1 (en) Promotion information processing method, device, and apparatus, and non-volatile computer storage medium
US11211063B2 (en) Multimedia device for processing voice command
CN115562744B (en) Application program loading method and electronic device
CN110418181B (en) Service processing method and device for smart television, smart device and storage medium
US10397296B2 (en) Comment link for shared streaming media content
CA3102425C (en) Video processing method, device, terminal and storage medium
CN111225261B (en) Multimedia device for processing voice command and control method thereof
KR20140126237A (en) System, method and recordable medium for providing related contents at low power
CN114025170A (en) Video playing method and device, computer equipment and computer readable storage medium
CN108650544B (en) Media playing method, device and system
CN108462901A (en) A kind of media file playing method and device
US20230154184A1 (en) Annotating a video with a personalized recap video based on relevancy and watch history
CN112511857B (en) Method, device, storage medium and terminal for preventing terminal from sleeping based on browser
CN113825007B (en) Video playing method and device and display equipment
CN112104949B (en) Method and device for detecting pickup assembly and electronic equipment
US20230403421A1 (en) Device Communication Method and System, and Apparatus
US20230297324A1 (en) Audio Control Method, System, and Electronic Device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181012

WD01 Invention patent application deemed withdrawn after publication