CN104333769A - Method and device for live video streaming - Google Patents

Method and device for live video streaming Download PDF

Info

Publication number
CN104333769A
CN104333769A CN201410669531.XA CN201410669531A CN104333769A CN 104333769 A CN104333769 A CN 104333769A CN 201410669531 A CN201410669531 A CN 201410669531A CN 104333769 A CN104333769 A CN 104333769A
Authority
CN
China
Prior art keywords
live
video
configuration information
video applications
capture mode
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.)
Granted
Application number
CN201410669531.XA
Other languages
Chinese (zh)
Other versions
CN104333769B (en
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201410669531.XA priority Critical patent/CN104333769B/en
Publication of CN104333769A publication Critical patent/CN104333769A/en
Application granted granted Critical
Publication of CN104333769B publication Critical patent/CN104333769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/241Operating system [OS] processes, e.g. server setup
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2401Monitoring of the client buffer
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists

Abstract

The invention discloses a method and a device for live video streaming. The method comprises the steps of obtaining live streaming configuration information corresponding to a video application, obtaining the video contents corresponding to the video application in a first video capturing way for live streaming and detecting the loading information of the video application when the live streaming configuration information comprises dynamic configuration information, and when the loading information of the video application comprises a multimedia programming interface, switching the first video capturing way to a second video capturing way according to the dynamic configuration information and obtaining the video contents corresponding to the video application in the second video capturing way for live streaming. According to the method for live video streaming, the fluency of live streaming can be guaranteed and the operations of a broadcasting user can be simplified.

Description

A kind of method of net cast and device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method and device of net cast.
Background technology
In recent years, the comprehensive rich media client that function of gathering that online K sings, Online Video is live, game on line is live, online education is live etc. is integrated develops on an unprecedented scale, make main broadcaster user can upload live video by main broadcaster's client in corresponding channel, and spectators user can watch to leisure the live video of main broadcaster's client upload by spectator client.
Live to play, main broadcaster's client, when uploading live video, can be obtained by desktop catching mode, process catching mode or other video capture modes and need to carry out live video content.But when main broadcaster's client needs to switch current video capture mode in live process, main broadcaster's client needs the switching that just can be completed video capture mode by the manual operation of main broadcaster user, at this moment inherently affect live fluency, bring numerous and diverse operation also to main broadcaster user.
Summary of the invention
The embodiment of the present invention provides a kind of method and device of net cast, can ensure live fluency, and simplifies the operation of main broadcaster user.
Embodiments provide a kind of method of net cast, comprising:
Obtain the live configuration information that Video Applications is corresponding;
When described live configuration information comprises dynamic configuration information, obtained by the first video capture mode and video content corresponding to live described Video Applications, and detect the load information of described Video Applications;
When detecting that the load information of described Video Applications comprises Multimedia Programming interface, according to described dynamic configuration information, the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications.
Correspondingly, the embodiment of the present invention additionally provides a kind of device of net cast, comprising:
Configuration acquisition module, for obtaining live configuration information corresponding to Video Applications;
Obtain detection module, for when described live configuration information comprises dynamic configuration information, obtained by the first video capture mode and video content corresponding to live described Video Applications, and detect the load information of described Video Applications;
Obtain handover module, for when detecting that the load information of described Video Applications comprises Multimedia Programming interface, according to described dynamic configuration information, the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications.
In the embodiment of the present invention, by when detecting that the load information of Video Applications comprises Multimedia Programming interface, current video capture mode can be switched, and the video capture mode after switching that continues through obtains and the video content of live video application correspondence, make main broadcaster's client without the need to can be realized the switching to video capture mode by the manual operation of main broadcaster user, thus ensure that live fluency, and simplify the operation of main broadcaster user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of network architecture schematic diagram that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the method for a kind of net cast that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the method for the another kind of net cast that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the device of a kind of net cast that the embodiment of the present invention provides;
Fig. 5 is a kind of structural representation configuring acquisition module that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of process name acquiring unit that the embodiment of the present invention provides;
Fig. 7 is a kind of structural representation obtaining handover module that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to better understand method and the device of a kind of net cast disclosed in the embodiment of the present invention, first the network architecture that the embodiment of the present invention is suitable for is described below.Refer to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram disclosed in the embodiment of the present invention.As shown in Figure 1, this network architecture can comprise server 100 and multiple client, and wherein, server 100 is also by title background server, component server etc., and server 100 can be communicated to connect by the Internet and multiple client.In the network architecture shown in Fig. 1, the part client in multiple client can as main broadcaster's client, and all the other clients can as spectator client.Wherein, multiple main broadcaster's client can be positioned at same channel with multiple spectator client.In the embodiment of the present invention, channel is exactly briefly a kind of Virtual Space (or virtual room), the spectator client being positioned at this Virtual Space not only can watch the live content of main broadcaster's client, can also and main broadcaster's client carry out the mutual of voice or word.Main broadcaster's client possesses live initiative, and such as main broadcaster's client has the initiative that video is uploaded, and it can be live video of playing that video is uploaded, the video of performance, and video of education content etc. video is uploaded).In the embodiment of the present invention, main broadcaster's client, spectator client can be all comprise the rich media client gathered the function such as group chat, net cast, channel K song, game on line, online video display and be integrated.In the network architecture shown in Fig. 1, main broadcaster's client, spectator client may operate in and include but not limited on the subscriber equipment such as mobile phone, removable computer, panel computer, personal digital assistant (Personal Digital Assistant, PDA), media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet.
Client 200a in the described network architecture that the embodiment of the present invention provides, client 200b ..., client 200n and described server 100 can be applied to the scene of net cast in the Internet.For client 200a, described client 200a is main broadcaster's client, described client 200a can obtain live configuration information corresponding to Video Applications by server 100, when described live configuration information comprises dynamic configuration information, described client 200a can be obtained by the first video capture mode and video content corresponding to live described Video Applications, and detect the load information of described Video Applications, when detecting that the load information of described Video Applications comprises Multimedia Programming interface, first video capture mode can be switched to the second video capture mode according to described dynamic configuration information by described client 200a, and obtained by the second video capture mode and video content corresponding to live described Video Applications.Wherein, the detailed process of the video content that the live described Video Applications of described client 200a is corresponding can be: video content corresponding for the described Video Applications got is sent to server 100 by described client 200a, video content corresponding for described Video Applications is transmitted to multiple spectator client of the same channel with client 200a by server 100 more in real time, to realize the net cast to described Video Applications.Described Video Applications can be various game application, and interface in described Video Applications can as the source video sequence of net cast, and described Video Applications can comprise third-party application and main broadcaster's client carry application.By the switching at runtime to video capture mode, main broadcaster's client can be made without the need to can be realized the switching to video capture mode by the manual operation of main broadcaster user, thus ensure that live fluency, and simplify the operation of main broadcaster user.
Based on the network architecture shown in Fig. 1, the embodiment of the invention discloses a kind of schematic flow sheet of method of net cast.Refer to Fig. 2, be the schematic flow sheet of the method for a kind of net cast that the embodiment of the present invention provides, described method comprises:
S101, obtains the live configuration information that Video Applications is corresponding;
Concrete, when main broadcaster user carries out net cast to Video Applications by main broadcaster's client in specified channel, main broadcaster's client place terminal needs first to start described Video Applications, and show the interface of described Video Applications, now main broadcaster's client can obtain default live configured list from server, then in described live configured list, get live configuration information corresponding to described Video Applications.Wherein, described Video Applications can be certain money game application, and the interface in described Video Applications can as the source video sequence of net cast; Described live configured list can comprise the live configuration information of various video application, and described live configured list is pre-stored within server, the live configuration information of each Video Applications in described live configured list also pre-sets, the corresponding live configuration information of a kind of Video Applications; Described live configuration information can comprise the process name of Video Applications, the title and dynamic configuration information etc. of Video Applications.Wherein, described dynamic configuration information is the information for switching the video capture mode of Video Applications.
S102, when described live configuration information comprises dynamic configuration information, is obtained by the first video capture mode and video content corresponding to live described Video Applications, and detects the load information of described Video Applications;
Concrete, when described live configuration information comprises dynamic configuration information, main broadcaster's client can be obtained by the first video capture mode and video content corresponding to live described Video Applications, and periodically detects the load information of described Video Applications.Such as, prefixed time interval is 1 minute, while main broadcaster's client starts live video by the first video capture mode, main broadcaster's client can also detect the load information of described Video Applications, and after this at interval of the load information of Video Applications described in 1 minute detection one-time detection, until detect that the load information of described Video Applications stops detecting the load information of described Video Applications when comprising Multimedia Programming interface.Wherein, main broadcaster's client is before detecting that the load information of described Video Applications comprises Multimedia Programming interface, and main broadcaster's client is all the time by the first video capture mode live video.
S103, when detecting that the load information of described Video Applications comprises Multimedia Programming interface, according to described dynamic configuration information, the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications;
Concrete, when detecting that the load information of described Video Applications comprises Multimedia Programming interface, whether can detect Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information, if be detected as be, then the first video capture mode can be switched to the second video capture mode, and be obtained by the second video capture mode and video content corresponding to live described Video Applications.Wherein, Multimedia Programming interface can comprise DirectX (Direct eXtension is applied to the Multimedia Programming interface of Windows system); Described first video capture mode can be desktop catching mode, described second video capture mode can be process catching mode, desktop catching mode refers to that displaying contents in certain the block viewing area by obtaining in desktop is using as the mode needing to carry out live video content, process catching mode refers to and uses DLL (Dynamic Link Library, dynamic link library) to inject the process of Video Applications to obtain the mode of the video image of this Video Applications.Because Video Applications is when entering the interface of screen mode toggle, usually the DirectX of respective version can all be loaded, and desktop catching mode cannot catch the interface of screen mode toggle, so main broadcaster's client can when detecting going game and being loaded with the DirectX of respective version, desktop catching mode is switched to process catching mode, to ensure that live process is not interrupted; Certainly, Video Applications is when entering the interface of window scheme, also the DirectX of respective version may be loaded, now, desktop catching mode also can be switched to process catching mode by main broadcaster's client, and due to process catching mode be direct hook (hook, hook) DirectX, the characteristic of hardware can be utilized, so process catching mode is more efficient than desktop catching mode.Such as, the live configuration information that main broadcaster's client gets the game of certain money comprises dynamic configuration information, and dynamic configuration information comprises following information:
<game id="67"dx_version="d3d9.dll"use_desktop_temporary="1"/>
Wherein, game id is game ID, dx_version is the DirectX version needing monitoring, use_desktop_temporary=" 1 " refers to that main broadcaster's client temporarily uses desktop catching mode, once main broadcaster's client detects that this game is loaded with the version " d3d9.dll " specified by dx_version, main broadcaster's client will switching at runtime to process catching mode.
In the embodiment of the present invention, by when detecting that the load information of Video Applications comprises Multimedia Programming interface, current video capture mode can be switched, and the video capture mode after switching that continues through obtains and the video content of live video application correspondence, make main broadcaster's client without the need to can be realized the switching to video capture mode by the manual operation of main broadcaster user, thus ensure that live fluency, and simplify the operation of main broadcaster user.
Based on the network architecture shown in Fig. 1, the embodiment of the invention discloses the schematic flow sheet of the method for another kind of net cast.Refer to Fig. 3, be the schematic flow sheet of the method for a kind of net cast that the embodiment of the present invention provides, described method comprises:
S201, when detecting that user profile corresponding to this client comprises main broadcaster's user right, obtains the live configured list preset from server;
Concrete, when main broadcaster user is by after the corresponding account of main broadcaster's client logs, main broadcaster's client can detect user profile corresponding to this account, namely the user profile that this client is corresponding is detected, when detecting that user profile corresponding to this client comprises main broadcaster's user right, main broadcaster's client can obtain from server the live configured list preset.Described live configured list can comprise the live configuration information of various video application, and described live configured list is pre-stored within server, the live configuration information of each Video Applications in described live configured list also pre-sets, the corresponding live configuration information of a kind of Video Applications, Video Applications can be game application, and the interface in described Video Applications can as the source video sequence of net cast; Described live configuration information can comprise the process name of Video Applications, the title and dynamic configuration information etc. of Video Applications.Wherein, described dynamic configuration information is the information for switching the video capture mode of Video Applications.
S202, according to the clicking operation to live unlatching button, all processes of monitor operating system;
Concrete, when main broadcaster user is by after the corresponding account of main broadcaster's client logs, main broadcaster's client can also show live unlatching button, when main broadcaster user clicks described live unlatching button, described main broadcaster's client can notify this client place terminal carry global hook according to the clicking operation of live unlatching button, with all processes of monitor operating system.
S203, when there is the process of Video Applications in all processes monitoring described operating system, and when the process of described Video Applications is state of activation, obtains the process name of described Video Applications;
Concrete, when main broadcaster user starts Video Applications, and when operating described Video Applications, main broadcaster's client place terminal can monitor the process that there is Video Applications in all processes of described operating system, and the process of described Video Applications is state of activation, now, main broadcaster's client can get the process name of described Video Applications from all processes.
S204, detects the process name that whether there is described Video Applications in described live configured list;
Concrete, main broadcaster's client, after the process name getting described Video Applications, can detect the process name that whether there is described Video Applications in described live configured list.
S205, when detect there is the process name of described Video Applications in described live configured list time, in described live configured list, find out the live configuration information corresponding with the process name of described Video Applications;
Concrete, when detect there is the process name of described Video Applications in described live configured list time, in described live configured list, find out the live configuration information corresponding with the process name of described Video Applications; When detect there is not the process name of described Video Applications in described live configured list time, main broadcaster's client can not be carried out live to this Video Applications.
S206, when described live configuration information comprises dynamic configuration information, is obtained by the first video capture mode and video content corresponding to live described Video Applications, and detects the load information of described Video Applications;
Concrete, when described live configuration information comprises dynamic configuration information, main broadcaster's client can be obtained by the first video capture mode and video content corresponding to live described Video Applications, and periodically detects the load information of described Video Applications.Such as, prefixed time interval is 1 minute, while main broadcaster's client starts live video by the first video capture mode, main broadcaster's client can also detect the load information of described Video Applications, and after this at interval of the load information of Video Applications described in 1 minute detection one-time detection, until detect that the load information of described Video Applications stops detecting the load information of described Video Applications when comprising Multimedia Programming interface.Wherein, main broadcaster's client is before detecting that the load information of described Video Applications comprises Multimedia Programming interface, and main broadcaster's client is all the time by the first video capture mode live video.
S207, whether when detecting that the load information of described Video Applications comprises Multimedia Programming interface, detecting Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information;
Concrete, whether when detecting that the load information of described Video Applications comprises Multimedia Programming interface, detecting Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information; When detecting that the load information of described Video Applications does not comprise Multimedia Programming interface, main broadcaster's client will continue through the first video capture mode live video, and continue the load information periodically detecting described Video Applications; Wherein, Multimedia Programming interface can comprise DirectX.
S208, if be detected as is, then the first video capture mode is switched to the second video capture mode, and is obtained by the second video capture mode and video content corresponding to live described Video Applications;
Concrete, be then the first video capture mode is switched to the second video capture mode if S207 step is detected as, and obtained by the second video capture mode and video content corresponding to live described Video Applications; If S207 step is detected as no, then main broadcaster's client will continue through the first video capture mode live video, and continue the load information periodically detecting described Video Applications.Wherein, described first video capture mode can be desktop catching mode, described second video capture mode can be process catching mode, desktop catching mode refers to that displaying contents in certain the block viewing area by obtaining in desktop is using as the mode needing to carry out live video content, and process catching mode refers to and uses DLL to inject the process of Video Applications to obtain the mode of the video image of this Video Applications.Because Video Applications is when entering the interface of screen mode toggle, usually the DirectX of respective version can all be loaded, and desktop catching mode cannot catch the interface of screen mode toggle, so main broadcaster's client can when detecting going game and being loaded with the DirectX of respective version, desktop catching mode is switched to process catching mode, to ensure that live process is not interrupted; Certainly, Video Applications is when entering the interface of window scheme, also the DirectX of respective version may be loaded, now, desktop catching mode also can be switched to process catching mode by main broadcaster's client, and due to process catching mode be direct hook (hook, hook) DirectX, the characteristic of hardware can be utilized, so process catching mode is more efficient than desktop catching mode.Such as, the live configuration information that main broadcaster's client gets the game of certain money comprises dynamic configuration information, and dynamic configuration information comprises following information:
<game id="67"dx_version="d3d9.dll"use_desktop_temporary="1"/>
Wherein, game id is game ID, dx_version is the DirectX version needing monitoring, dx_version is also the destination multimedia DLL (dynamic link library) in dynamic configuration information, use_desktop_temporary=" 1 " refers to that main broadcaster's client temporarily uses desktop catching mode, once main broadcaster's client detects that this game is loaded with the version " d3d9.dll " specified by dx_version, main broadcaster's client will switching at runtime to process catching mode.
Preferably, described live configuration information can comprise dynamic configuration information or localized configuration information, such as, described live configuration information can comprise the process name of Video Applications, the title of Video Applications and dynamic configuration information, or described live configuration information can comprise the process name of Video Applications, the title of Video Applications and localized configuration information.After S205 step, if the live configuration information got comprises localized configuration information, then obtained by the first video capture mode or the second video capture mode and video content corresponding to live described Video Applications.Wherein, if localized configuration information comprises the first video capture mode, then main broadcaster's client will be obtained by the first video capture mode and video content corresponding to live described Video Applications all the time; If localized configuration information comprises the second video capture mode, then main broadcaster's client will be obtained by the second video capture mode and video content corresponding to live described Video Applications all the time.
In the embodiment of the present invention, by when detecting that the load information of Video Applications comprises Multimedia Programming interface, current video capture mode can be switched, and the video capture mode after switching that continues through obtains and the video content of live video application correspondence, make main broadcaster's client without the need to can be realized the switching to video capture mode by the manual operation of main broadcaster user, thus ensure that live fluency, and simplify the operation of main broadcaster user.
Based on the network architecture shown in Fig. 1, the embodiment of the invention discloses a kind of structural representation of device of net cast.Refer to Fig. 4, it is the structural representation of the device of a kind of net cast that the embodiment of the present invention provides, the device 1 of described net cast can be applied to main broadcaster's client, and the device 1 of described net cast can comprise: configuration acquisition module 10, acquisition detection module 20, acquisition handover module 30;
Described configuration acquisition module 10, for obtaining live configuration information corresponding to Video Applications;
Concrete, when main broadcaster user wants to carry out net cast to Video Applications by main broadcaster's client in specified channel, main broadcaster's client place terminal needs first to start described Video Applications, and show the interface of described Video Applications, now described configuration acquisition module 10 can obtain default live configured list from server, then in described live configured list, get live configuration information corresponding to described Video Applications.Wherein, described Video Applications can be certain money game application, and the interface in described Video Applications can as the source video sequence of net cast; Described live configured list can comprise the live configuration information of various video application, and described live configured list is pre-stored within server, the live configuration information of each Video Applications in described live configured list also pre-sets, the corresponding live configuration information of a kind of Video Applications; Described live configuration information can comprise the process name of Video Applications, the title and dynamic configuration information etc. of Video Applications.Wherein, described dynamic configuration information is the information for switching the video capture mode of Video Applications.
Described acquisition detection module 20, for when described live configuration information comprises dynamic configuration information, is obtained by the first video capture mode and video content corresponding to live described Video Applications, and detects the load information of described Video Applications;
Concrete, when described live configuration information comprises dynamic configuration information, described acquisition detection module 20 can be obtained by the first video capture mode and video content corresponding to live described Video Applications, and periodically detects the load information of described Video Applications.Such as, prefixed time interval is 1 minute, while described acquisition detection module 20 starts live video by the first video capture mode, described acquisition detection module 20 can also detect the load information of described Video Applications, and after this at interval of the load information of Video Applications described in 1 minute detection one-time detection, until detect that the load information of described Video Applications stops detecting the load information of described Video Applications when comprising Multimedia Programming interface.Wherein, described acquisition detection module 20, before detecting that the load information of described Video Applications comprises Multimedia Programming interface, passes through the first video capture mode live video by described acquisition detection module 20 all the time.
Described acquisition handover module 30, for when detecting that the load information of described Video Applications comprises Multimedia Programming interface, according to described dynamic configuration information, the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications;
Concrete, when detecting that the load information of described Video Applications comprises Multimedia Programming interface, whether described acquisition handover module 30 can detect Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information, if be detected as be, then the first video capture mode can be switched to the second video capture mode by described acquisition handover module 30, and is obtained by the second video capture mode and video content corresponding to live described Video Applications.Wherein, Multimedia Programming interface can comprise DirectX; Described first video capture mode can be desktop catching mode, described second video capture mode can be process catching mode, desktop catching mode refers to that displaying contents in certain the block viewing area by obtaining in desktop is using as the mode needing to carry out live video content, and process catching mode refers to and uses DLL to inject the process of Video Applications to obtain the mode of the video image of this Video Applications.Because Video Applications is when entering the interface of screen mode toggle, usually the DirectX of respective version can all be loaded, and desktop catching mode cannot catch the interface of screen mode toggle, so described acquisition handover module 30 can when detecting going game and being loaded with the DirectX of respective version, desktop catching mode is switched to process catching mode, to ensure that live process is not interrupted; Certainly, Video Applications is when entering the interface of window scheme, also the DirectX of respective version may be loaded, now, desktop catching mode also can be switched to process catching mode by described acquisition handover module 30, and due to process catching mode be direct hook DirectX, the characteristic of hardware can be utilized, so process catching mode is more efficient than desktop catching mode.Such as, the live configuration information that described configuration acquisition module 10 gets the game of certain money comprises dynamic configuration information, and dynamic configuration information comprises following information:
<game id="67"dx_version="d3d9.dll"use_desktop_temporary="1"/>
Wherein, game id is game ID, dx_version is the DirectX version needing monitoring, use_desktop_temporary=" 1 " refers to that main broadcaster's client temporarily uses desktop catching mode, once described acquisition handover module 30 detects that this game is loaded with the version " d3d9.dll " specified by dx_version, described acquisition handover module 30 will switching at runtime to process catching mode.
Preferably, described live configuration information can comprise dynamic configuration information or localized configuration information, such as, described live configuration information can comprise the process name of Video Applications, the title of Video Applications and dynamic configuration information, or described live configuration information can comprise the process name of Video Applications, the title of Video Applications and localized configuration information.Therefore, the device 1 of described net cast can also comprise: fixed configurations acquisition module 40;
Described fixed configurations acquisition module 40, for when described live configuration information comprises localized configuration information, is obtained by the first video capture mode or the second video capture mode and video content corresponding to live described Video Applications;
Concrete, if localized configuration information comprises the first video capture mode, then described fixed configurations acquisition module 40 will be obtained by the first video capture mode and video content corresponding to live described Video Applications all the time; If localized configuration information comprises the second video capture mode, then described fixed configurations acquisition module 40 will be obtained by the second video capture mode and video content corresponding to live described Video Applications all the time.
Further, then refer to Fig. 5, be a kind of structural representation configuring acquisition module 10 that the embodiment of the present invention provides, described configuration acquisition module 10 can comprise: process name acquiring unit 101, process name detecting unit 102, configuration search unit 103;
Described process name acquiring unit 101, for obtaining the live configured list preset from server, and obtains the process name of Video Applications;
Concrete, described process name acquiring unit 101 can obtain from server the live configured list preset; When main broadcaster user starts and operates described Video Applications, described process name acquiring unit 101 can also obtain the process name of Video Applications.
Described process name detecting unit 102, for detecting the process name that whether there is described Video Applications in described live configured list;
Concrete, described process name acquiring unit 101 is after the process name getting described Video Applications, and described process name detecting unit 102 can detect the process name that whether there is described Video Applications in described live configured list.
Unit 103 is searched in described configuration, for when detect there is the process name of described Video Applications in described live configured list time, in described live configured list, find out the live configuration information corresponding with the process name of described Video Applications;
Concrete, when described process name detecting unit 102 detect there is the process name of described Video Applications in described live configured list time, described configuration is searched unit 103 and find out the live configuration information corresponding with the process name of described Video Applications in described live configured list; When described process name detecting unit 102 detect there is not the process name of described Video Applications in described live configured list time, the device 1 of described net cast can not carry out live to this Video Applications.
Further, refer to Fig. 6 again, be the structural representation of a kind of process name acquiring unit 101 that the embodiment of the present invention provides, described process name acquiring unit 101 can comprise: list obtains subelement 1011, monitoring subelement 1012, process name acquisition subelement 1013;
Described list obtains subelement 1011, for when detecting that user profile corresponding to this client comprises main broadcaster's user right, obtains default live configured list from server;
Concrete, when main broadcaster user is by after the corresponding account of main broadcaster's client logs, described list obtains subelement 1011 can detect user profile corresponding to this account, namely the user profile that this client is corresponding is detected, when detecting that user profile corresponding to this client comprises main broadcaster's user right, described list obtains subelement 1011 can obtain from server the live configured list preset.
Described monitoring subelement 1012, for the clicking operation of basis to live unlatching button, all processes of monitor operating system;
Concrete, when main broadcaster user is by after the corresponding account of main broadcaster's client logs, main broadcaster's client can also show live unlatching button, when main broadcaster user clicks described live unlatching button, described monitoring subelement 1012 can notify this client place terminal carry global hook according to the clicking operation of live unlatching button, with all processes of monitor operating system.
Described process name obtains subelement 1013, for when the process that there is Video Applications in all processes that monitor described operating system, and when the process of described Video Applications is state of activation, obtains the process name of described Video Applications;
Concrete, when main broadcaster user starts Video Applications, and when operating described Video Applications, main broadcaster's client place terminal can monitor the process that there is Video Applications in all processes of described operating system, and the process of described Video Applications is state of activation, now, described process name obtains the process name that subelement 1013 can get described Video Applications from all processes.
Further, then refer to Fig. 7, be a kind of structural representation obtaining handover module 30 that the embodiment of the present invention provides, described acquisition handover module 30 can comprise: load information detecting unit 301, acquisition switch unit 302;
Described load information detecting unit 301, whether for when detecting that the load information of described Video Applications comprises Multimedia Programming interface, detecting Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information;
Concrete, when detecting that the load information of described Video Applications comprises Multimedia Programming interface, whether described load information detecting unit 301 can detect Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information; When detecting that the load information of described Video Applications does not comprise Multimedia Programming interface, the device 1 of described net cast will continue through the first video capture mode live video, and continue the load information periodically detecting described Video Applications.
Described acquisition switch unit 302, if be detected as described load information detecting unit 301 be, then the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications;
Concrete, if described load information detecting unit 301 is detected as be, then the first video capture mode is switched to the second video capture mode by described acquisition switch unit 302, and is obtained by the second video capture mode and video content corresponding to live described Video Applications; If described load information detecting unit 301 is detected as no, then the device 1 of described net cast will continue through the first video capture mode live video, and continue the load information periodically detecting described Video Applications.
In the embodiment of the present invention, by when detecting that the load information of Video Applications comprises Multimedia Programming interface, current video capture mode can be switched, and the video capture mode after switching that continues through obtains and the video content of live video application correspondence, make main broadcaster's client without the need to can be realized the switching to video capture mode by the manual operation of main broadcaster user, thus ensure that live fluency, and simplify the operation of main broadcaster user.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (12)

1. a method for net cast, is characterized in that, comprising:
Obtain the live configuration information that Video Applications is corresponding;
When described live configuration information comprises dynamic configuration information, obtained by the first video capture mode and video content corresponding to live described Video Applications, and detect the load information of described Video Applications;
When detecting that the load information of described Video Applications comprises Multimedia Programming interface, according to described dynamic configuration information, the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications.
2. the method for claim 1, is characterized in that, the live configuration information that described acquisition Video Applications is corresponding, comprising:
Obtain the live configured list preset from server, and obtain the process name of Video Applications;
Detect the process name that whether there is described Video Applications in described live configured list;
When detect there is the process name of described Video Applications in described live configured list time, in described live configured list, find out the live configuration information corresponding with the process name of described Video Applications.
3. method as claimed in claim 2, is characterized in that, the described live configured list preset from server acquisition, and obtains the process name of Video Applications, comprising:
When detecting that user profile corresponding to this client comprises main broadcaster's user right, obtain the live configured list preset from server;
According to the clicking operation to live unlatching button, all processes of monitor operating system;
When there is the process of Video Applications in all processes monitoring described operating system, and when the process of described Video Applications is state of activation, obtain the process name of described Video Applications.
4. the method for claim 1, it is characterized in that, described when detecting that the load information of described Video Applications comprises Multimedia Programming interface, according to described dynamic configuration information, the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications, comprising:
Whether when detecting that the load information of described Video Applications comprises Multimedia Programming interface, detecting Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information;
Be then the first video capture mode is switched to the second video capture mode if be detected as, and obtained by the second video capture mode and video content corresponding to live described Video Applications.
5. the method for claim 1, is characterized in that, described live configuration information comprises dynamic configuration information or localized configuration information, also comprises:
When described live configuration information comprises localized configuration information, obtained by the first video capture mode or the second video capture mode and video content corresponding to live described Video Applications.
6. the method as described in any one of claim 1 to 5, is characterized in that,
Described first video capture mode is desktop catching mode, and described second video capture mode is process catching mode.
7. a device for net cast, is characterized in that, comprising:
Configuration acquisition module, for obtaining live configuration information corresponding to Video Applications;
Obtain detection module, for when described live configuration information comprises dynamic configuration information, obtained by the first video capture mode and video content corresponding to live described Video Applications, and detect the load information of described Video Applications;
Obtain handover module, for when detecting that the load information of described Video Applications comprises Multimedia Programming interface, according to described dynamic configuration information, the first video capture mode is switched to the second video capture mode, and obtained by the second video capture mode and video content corresponding to live described Video Applications.
8. device as claimed in claim 7, it is characterized in that, described configuration acquisition module comprises:
Process name acquiring unit, for obtaining the live configured list preset from server, and obtains the process name of Video Applications;
Process name detecting unit, for detecting the process name that whether there is described Video Applications in described live configured list;
Configuration search unit, for when detect there is the process name of described Video Applications in described live configured list time, in described live configured list, find out the live configuration information corresponding with the process name of described Video Applications.
9. device as claimed in claim 8, it is characterized in that, described process name acquiring unit comprises:
List obtains subelement, for when detecting that user profile corresponding to this client comprises main broadcaster's user right, obtains default live configured list from server;
Monitoring subelement, for the clicking operation of basis to live unlatching button, all processes of monitor operating system;
Process name obtains subelement, for when the process that there is Video Applications in all processes that monitor described operating system, and when the process of described Video Applications is state of activation, obtains the process name of described Video Applications.
10. device as claimed in claim 7, it is characterized in that, described acquisition handover module comprises:
Load information detecting unit, whether for when detecting that the load information of described Video Applications comprises Multimedia Programming interface, detecting Multimedia Programming interface in described load information is destination multimedia DLL (dynamic link library) in described dynamic configuration information;
Obtaining switch unit, is then the first video capture mode is switched to the second video capture mode if be detected as described load information detecting unit, and is obtained by the second video capture mode and video content corresponding to live described Video Applications.
11. devices as claimed in claim 7, it is characterized in that, described live configuration information comprises dynamic configuration information or localized configuration information, also comprises:
Fixed configurations acquisition module, for when described live configuration information comprises localized configuration information, is obtained by the first video capture mode or the second video capture mode and video content corresponding to live described Video Applications.
12. devices as described in any one of claim 7 to 11, is characterized in that,
Described first video capture mode is desktop catching mode, and described second video capture mode is process catching mode.
CN201410669531.XA 2014-11-20 2014-11-20 A kind of method and device of net cast Active CN104333769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410669531.XA CN104333769B (en) 2014-11-20 2014-11-20 A kind of method and device of net cast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410669531.XA CN104333769B (en) 2014-11-20 2014-11-20 A kind of method and device of net cast

Publications (2)

Publication Number Publication Date
CN104333769A true CN104333769A (en) 2015-02-04
CN104333769B CN104333769B (en) 2019-06-25

Family

ID=52408407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410669531.XA Active CN104333769B (en) 2014-11-20 2014-11-20 A kind of method and device of net cast

Country Status (1)

Country Link
CN (1) CN104333769B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791885A (en) * 2016-03-31 2016-07-20 成都西可科技有限公司 Method of initiating video live broadcast with one click on motion camera
CN106354247A (en) * 2015-07-17 2017-01-25 上海乐相科技有限公司 Display control method and device for headset intelligent glasses
WO2017020623A1 (en) * 2015-08-05 2017-02-09 腾讯科技(深圳)有限公司 Live data broadcast method and apparatus
CN108932142A (en) * 2018-04-28 2018-12-04 广州市百果园网络科技有限公司 A kind of picture catching method and terminal
CN114125473A (en) * 2020-08-28 2022-03-01 腾讯科技(深圳)有限公司 Live broadcast guessing data processing method and device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075172A (en) * 2006-08-23 2007-11-21 腾讯科技(深圳)有限公司 Method for capturing picture, capturer and instant-telecommunication customer terminal
CN101420610A (en) * 2007-10-26 2009-04-29 闪联信息技术工程中心有限公司 Method for displaying remote desktop content and apparatus thereof
CN101447998A (en) * 2008-12-25 2009-06-03 广东威创视讯科技股份有限公司 Desktop sharing method and system
US20100158477A1 (en) * 2008-12-24 2010-06-24 EchoStar Technologies, L.L.C. Apparatus and methods for resolving recording conflicts of a digital video recorder
CN103823683A (en) * 2014-02-27 2014-05-28 北京六间房科技有限公司 Video recording device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075172A (en) * 2006-08-23 2007-11-21 腾讯科技(深圳)有限公司 Method for capturing picture, capturer and instant-telecommunication customer terminal
CN101420610A (en) * 2007-10-26 2009-04-29 闪联信息技术工程中心有限公司 Method for displaying remote desktop content and apparatus thereof
US20100158477A1 (en) * 2008-12-24 2010-06-24 EchoStar Technologies, L.L.C. Apparatus and methods for resolving recording conflicts of a digital video recorder
CN101447998A (en) * 2008-12-25 2009-06-03 广东威创视讯科技股份有限公司 Desktop sharing method and system
CN103823683A (en) * 2014-02-27 2014-05-28 北京六间房科技有限公司 Video recording device and method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354247A (en) * 2015-07-17 2017-01-25 上海乐相科技有限公司 Display control method and device for headset intelligent glasses
WO2017020623A1 (en) * 2015-08-05 2017-02-09 腾讯科技(深圳)有限公司 Live data broadcast method and apparatus
US10873770B2 (en) 2015-08-05 2020-12-22 Tencent Technology (Shenzhen) Company Limited Live data broadcast method and apparatus
US10448061B2 (en) 2015-08-05 2019-10-15 Tencent Technology (Shenzhen) Company Limited Live data broadcast method and apparatus
CN105791885A (en) * 2016-03-31 2016-07-20 成都西可科技有限公司 Method of initiating video live broadcast with one click on motion camera
CN108932142B (en) * 2018-04-28 2020-04-03 广州市百果园网络科技有限公司 Picture capturing method and terminal
WO2019205703A1 (en) * 2018-04-28 2019-10-31 广州市百果园网络科技有限公司 Image capturing method and terminal
CN108932142A (en) * 2018-04-28 2018-12-04 广州市百果园网络科技有限公司 A kind of picture catching method and terminal
KR20210005048A (en) * 2018-04-28 2021-01-13 광저우 바이구오얀 네트워크 테크놀로지 컴퍼니 리미티드 Image capturing method and terminal
US11249624B2 (en) 2018-04-28 2022-02-15 Bigo Technology Pte. Ltd. Method for capturing an image, terminal and storage medium thereof
KR102575541B1 (en) 2018-04-28 2023-09-06 비고 테크놀로지 피티이. 엘티디. Method for capturing image, terminal and storage medium thereof
CN114125473A (en) * 2020-08-28 2022-03-01 腾讯科技(深圳)有限公司 Live broadcast guessing data processing method and device, server and storage medium
CN114125473B (en) * 2020-08-28 2022-12-13 腾讯科技(深圳)有限公司 Live broadcast guess data processing method, device, server and storage medium

Also Published As

Publication number Publication date
CN104333769B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN104333770A (en) Method and device for live video streaming
WO2017140229A1 (en) Video recording method and apparatus for mobile terminal
CN107659825B (en) A kind of method, apparatus, server, main broadcaster end and medium that live video is retained
CN104881237B (en) A kind of network interdynamic method and client
CN104333769A (en) Method and device for live video streaming
CN103338405A (en) Screen capture application method, equipment and system
US20170171602A1 (en) Method and electronic device for controlling three stream video play
US20170171278A1 (en) Method and electronic device for continuously playing video
WO2016074327A1 (en) Control method, apparatus and system of media stream
CN104363473B (en) It is a kind of based on online live information transferring method and device
CN109803151B (en) Multimedia data stream switching method and device, storage medium and electronic device
WO2018149353A1 (en) Electronic terminal, storage medium and video recording method and apparatus therefor
US10893333B2 (en) Video playing method, device and storage
CN103702198A (en) Cross-terminal continuous playing method and device
CN103442299B (en) A kind of display methods for playing record and electronic equipment
WO2017084356A1 (en) Display control method and system for making video call by means of television, and television
CN105100933A (en) Method and device for sharing comment information for live video played by smart television
US9325776B2 (en) Mixed media communication
CN105872758A (en) Intelligent television channel operation and play method and corresponding device
CN104168505B (en) A kind of client terminal playing control method and client
CN113852767B (en) Video editing method, device, equipment and medium
CN109561337A (en) The playing method and device of preview video
CN108882004B (en) Video recording method, device, equipment and storage medium
CN104200405A (en) Scenic region intelligent digital panorama system and client side and server side response method thereof
CN105898586A (en) Direct broadcast program watch-back method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000, Guangdong Province, Guangzhou, Panyu District Town, Huambo business district, Wanda Plaza, block B1, 28 floor

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20150204

Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980000101

Denomination of invention: A method and device for live video broadcasting

Granted publication date: 20190625

License type: Common License

Record date: 20210106