CN110446079A - Obtain method, apparatus, electronic equipment and the storage medium of viewing duration - Google Patents

Obtain method, apparatus, electronic equipment and the storage medium of viewing duration Download PDF

Info

Publication number
CN110446079A
CN110446079A CN201910595108.2A CN201910595108A CN110446079A CN 110446079 A CN110446079 A CN 110446079A CN 201910595108 A CN201910595108 A CN 201910595108A CN 110446079 A CN110446079 A CN 110446079A
Authority
CN
China
Prior art keywords
duration
viewing
client
echo signal
viewing duration
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
CN201910595108.2A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910595108.2A priority Critical patent/CN110446079A/en
Publication of CN110446079A publication Critical patent/CN110446079A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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
    • H04N21/25866Management of end-user 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/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
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure is about a kind of method, apparatus, electronic equipment and storage medium for obtaining viewing duration.This method comprises: obtaining client passes through the reported echo signal of the long connection pre-established;Client corresponding account obtains the viewing duration of the client corresponding account viewing live streaming according to the echo signal.In the present embodiment user be switched to distinct electronic apparatuses viewing live streaming when because its corresponding account will not change, such server can add up the account viewing live streaming viewing duration, guarantee viewing duration statistics continuity.Also, client only reports echo signal to watch duration without counting in the present embodiment, can watch duration to avoid user's malicious modification, the viewing duration confidence level obtained by server is higher.

Description

Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
Technical field
This disclosure relates to which technical field of data processing more particularly to a kind of method, apparatus for obtaining viewing duration, electronics are set Standby and storage medium.
Background technique
Currently, live streaming has become relatively common internet product, and more and more users also assist in live streaming Among.During watching live streaming, client can count the duration of viewing live streaming and feed back the server to live streaming provider, Provider, which is broadcast live, can participate in the experience being broadcast live with design scheme according to the duration to promote user.
However, same user there can be multiple electronic equipments in practical application, watched on different electronic equipments straight It broadcasts.It only supports to count the duration for watching live streaming in this equipment when counting viewing duration by client, if being switched to other electricity Sub- equipment, then the client on other electronic equipments can count duration again, cause viewing duration be it is interrupted, with user continue The actual conditions of viewing live streaming are not consistent.In addition, under the scene that client counts viewing duration, which may be by Malicious user is artificially modified, and causes the confidence level of viewing duration lower.
Summary of the invention
The disclosure provides a kind of method, apparatus, electronic equipment and storage medium for obtaining viewing duration, at least to solve phase Client can not continuously count viewing duration and client under the scene that distinct electronic apparatuses switch viewing live streaming in the technology of pass The problem for holding the confidence level of the viewing duration of statistics lower.
The technical solution of the disclosure is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method obtaining viewing duration is provided, server, institute are applied to The method of stating includes:
It obtains client and passes through the reported echo signal of the long connection pre-established;
When client corresponding account obtains the viewing of the client corresponding account viewing live streaming according to the echo signal It is long.
According to the second aspect of an embodiment of the present disclosure, a kind of device obtaining viewing duration is provided, server, institute are applied to Stating device includes:
Echo signal acquiring unit is configured as the execution acquisition client and is reported by the long connection pre-established Echo signal;
Duration acquiring unit is watched, is configured as executing and be seen according to the echo signal acquisition client corresponding account The viewing duration seen live.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to described in executing Executable instruction in memory, the method to realize acquisition viewing duration as described in relation to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, a kind of storage medium is provided, when the instruction in the storage medium by When the processor of electronic equipment executes, so that electronic equipment is able to carry out the side of acquisition viewing duration as described in relation to the first aspect Method.
The technical scheme provided by this disclosed embodiment at least bring it is following the utility model has the advantages that
By server and the long connection of electronic equipment foundation in the present embodiment, can be reported by the long acquisition client that connects Echo signal, then server can according to echo signal obtain client corresponding account viewing live streaming viewing duration.This Sample, when user is switched to distinct electronic apparatuses viewing live streaming because its corresponding account will not change in the present embodiment, clothes in this way Business device can add up the account viewing live streaming viewing duration, guarantee viewing duration statistics continuity.Also, in the present embodiment Client only reports echo signal to watch duration without counting, and duration can be watched to avoid user's malicious modification, by server The viewing duration confidence level of acquisition is higher.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of flow chart of method for obtaining viewing duration shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another method for obtaining viewing duration shown according to an exemplary embodiment.
Fig. 3 is the flow chart of the method for another acquisition viewing duration shown according to an exemplary embodiment.
Fig. 4 is the flow chart of the method for another acquisition viewing duration shown according to an exemplary embodiment.
Fig. 5 is the flow chart of the method for another acquisition viewing duration shown according to an exemplary embodiment.
Fig. 6 is a kind of application scenario diagram shown according to an exemplary embodiment.
Fig. 7~Figure 10 is a kind of block diagram of device for obtaining viewing duration shown according to an exemplary embodiment.
Figure 11 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances so that embodiment of the disclosure described herein can in addition to illustrating herein or Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects The example of consistent device and method.
Currently, live streaming has become relatively common internet product, and more and more users also assist in live streaming Among.During watching live streaming, client can count the duration of viewing live streaming and feed back the server to live streaming provider, Provider, which is broadcast live, can participate in the experience being broadcast live with design scheme according to the duration to promote user.
However, same user there can be multiple electronic equipments in practical application, watched on different electronic equipments straight It broadcasts.It only supports to count the duration for watching live streaming in this equipment when counting viewing duration by client, if being switched to other electricity Sub- equipment, then the client on other electronic equipments can count duration again, cause viewing duration be it is interrupted, with user continue The actual conditions of viewing live streaming are not consistent.In addition, under the scene that client counts viewing duration, which may be by Malicious user is artificially modified, and causes the confidence level of viewing duration lower.
The embodiment of the present disclosure provides a kind of method, apparatus, electronic equipment and storage medium for obtaining viewing duration, structure Think of is, reports echo signal by long connection by the client of electronic equipment, such server can be obtained according to echo signal Obtain the viewing duration of client corresponding account.How user, which switches electronic equipment, in the present embodiment will not change corresponding account Family, such server can be according to the viewing durations of the cumulative account out of echo signal, when can count viewing to avoid electronic equipment Length is interrupted problem, so that viewing duration be made to be consistent with the practical viewing of user.Also, user can not pass through client Malicious modification is held to watch duration, i.e. the confidence level of the viewing duration of server acquisition is higher.
Fig. 1 is a kind of flow chart of method for obtaining viewing duration shown according to an exemplary embodiment, can be applicable in In server, referring to Fig. 1, a method of obtaining viewing duration, comprising:
In a step 101, it obtains client and passes through the reported echo signal of the long connection pre-established.
In the present embodiment, server can pre-establish long connection with the client on electronic equipment.For example, when user has Direct broadcasting room can be entered when watching the demand of live streaming, in this case, client, which can generate viewing live streaming request Concurrency, gives server. After server receives viewing live streaming request, it can be broadcast live and request in response to the viewing, with returning to the address Socket and webSocket Location.Then, client can request to establish long connection, server to server according to the address Socket and the address webSocket The response message being successfully established can be fed back in response to the request of the long connection of above-mentioned foundation.In this way, between server and client side It can establish long connection.
After establishing long connection, client can report echo signal to server.Wherein echo signal may include with Lower at least one information: transmission time interval, sending time.Wherein, transmission time interval, refer to current goal signal with it is previous Time interval between secondary echo signal.Sending time refers to the sending instant of current goal signal.In one embodiment, mesh Marking signal can be for every the heartbeat message of transmission in 10 seconds.
In this way, server passes through active or the long connection of passive query, it can get the target letter that client reports Number.
In a step 102, client corresponding account obtains the client corresponding account according to the echo signal and watches The viewing duration of live streaming.
Referring to fig. 2, the history viewing duration (step 201) in corresponding diagram 2 of the available client corresponding account of server. For example, after getting echo signal, server can according to the corresponding long connection of echo signal (such as the address Socket and The address webSocket) it can determine the identification code of client or directly get the identification code of client from echo signal, Then, the history viewing duration of corresponding account is inquired from database based on identification code.For another example, server can parse target Signal obtains the corresponding account of client, gets its corresponding history viewing duration from database based on account.
It should be noted that server can in advance by the history of each account viewing duration storage to local data base or Cloud, storage mode can use Key-Value mode.Such as Key value may include account or client identification code (with electricity Sub- EIC equipment identification code is as client identification code), Value may include history viewing duration or echo signal.Technical staff The storage mode that history watches duration can be set according to concrete scene, in the case where can be realized application scheme, accordingly Scheme falls into the protection scope of the application.
In practical application, history viewing duration can be an accumulated value, can also be that server is corresponding to the account The time difference that time earliest echo signal and (time is nearest) current goal signal calculate.In the history that can determine account In the case where watching duration, corresponding scheme falls into the protection scope of the application.
With continued reference to Fig. 2, server can update history according to echo signal and watch duration, obtain client corresponding account Watch the viewing duration (step 202) in corresponding diagram 2 of live streaming.By taking echo signal includes transmission time interval as an example, referring to Fig. 3, The history viewing duration (step 301) in corresponding diagram 3 of the available client corresponding account of server.Then, server can be with Increase transmission time interval on the basis of history watches duration, obtain a new viewing duration, when using the new viewing It is long to update history viewing duration (step 302) in corresponding diagram 3.By taking echo signal includes sending time as an example, referring to fig. 4, service Device can be with the earliest echo signal of acquisition time (step 401) in corresponding diagram 4.Then, the earliest mesh of server acquisition time The time difference for marking signal and (time is nearest) current goal signal, using the time difference as the viewing live streaming of client corresponding account (step 402) in corresponding diagram 4.Certainly, by taking echo signal includes sending time as an example, the available previous mesh of server Signal is marked, current goal is calculated based on the sending time in the sending time and a preceding echo signal in current goal signal Then the corresponding viewing duration of signal will increase history and watch duration on the basis of the corresponding viewing duration of current goal signal, A new viewing duration can be obtained, update history using the new viewing duration and watch duration.It will be appreciated that technology people Member can select corresponding viewing duration update scheme when can be realized corresponding effect according to concrete scene, and corresponding scheme is fallen into The protection scope of the application.
In some scenes, during watching live streaming, server display can be based on seeing user in live streaming picture See the interacting activity of duration design, user can choose and trigger the activity in live streaming picture, and such client can be to service Device sends trigger event request.Referring to Fig. 5, the trigger event request that the available client of server is sent (walks in corresponding diagram 5 It is rapid 501).Wherein, trigger event (activity i.e. in live streaming picture) corresponding setting duration, different trigger events can correspond to Different setting durations, for example, get reward one activity in setting duration can be for 20 minutes.
Then, server can be requested in response to the trigger event, and the viewing duration for obtaining client corresponding account is (corresponding Step 502) in Fig. 5.The mode for wherein obtaining viewing duration may refer to the content of embodiment illustrated in fig. 2, and details are not described herein.
Later, server may determine that whether viewing duration and the corresponding setting duration of trigger event meet setting condition, If watching duration and the corresponding setting duration of trigger event meeting setting condition, server determines (corresponding in response to trigger event Step 503) in Fig. 5.
Wherein, imposing a condition includes following one kind: viewing duration is greater than or equal to setting duration;It watches duration and is less than setting The difference of duration and the two is less than given threshold.
For watching duration and be less than the difference for setting duration and the two less than given threshold, it is contemplated that server is according to visitor Family end sends echo signal and obtains viewing duration, and echo signal may have error in generation, transmission and treatment process, Cause viewing duration that there can be a little error.Therefore, increase given threshold in the present embodiment, be less than setting duration in viewing duration And it can determine that satisfaction imposes a condition when without departing from given threshold.For example, it is 20 minutes a length of when setting, and a length of 19 when watching 31 seconds minutes, given threshold are 30 seconds, then watch duration and the difference for setting duration as 29 seconds, be less than given threshold 30 seconds, In In the error range of permission, i.e., server can determine that viewing 31 seconds 19 minutes corresponding trigger events of duration can equally be rung It answers.
So far, long connection is established by server and client in the present embodiment, client can be obtained by long connect The echo signal reported, when then server can obtain the viewing of client corresponding account viewing live streaming according to echo signal It is long.In this way, when user is switched to different clients viewing live streaming because its corresponding account will not change in the present embodiment, thus The viewing duration that the account viewing that can add up is broadcast live, guarantees the continuity of viewing duration statistics.Also, client in the present embodiment End only reports echo signal to watch duration without counting, and can watch duration to avoid user's malicious modification, be obtained by server Viewing duration confidence level it is higher.
Fig. 6 is a kind of flow chart of method for obtaining viewing duration shown according to an exemplary embodiment, wherein Client indicates the client of setting on an electronic device;Consumer indicates application program in server, at least has place The function of reason viewing duration;Redis indicates log type database, can be set on book server or other servers.
Referring to Fig. 6, in the demand for having viewing to be broadcast live, user can enter live streaming by the client on electronic equipment Between, i.e., user can trigger the control button of each direct broadcasting room, and client can be generated viewing live streaming request Concurrency and give server. After server receives viewing live streaming request, it can be broadcast live and request in response to the viewing, with returning to the address Socket and webSocket Location.
Then, client can request to establish long connection, clothes to server according to the address Socket and the address webSocket Business device can feed back the response message being successfully established in response to the request of the long connection of above-mentioned foundation.In this way, server and client side Between can establish long connection.
Later, client can send heartbeat message (i.e. echo signal) to server every 10 seconds by long connection. Server sends heartbeat message event in response to application program consumer of the heartbeat message on server.Application program Consumer updates the viewing duration of the user, and the content for updating viewing duration may refer to the content of step 102, herein no longer It repeats.
User can participate in some interacting activities during watching live streaming, such as viewing can completely be led after twenty minutes Take reward.When user triggers the activity in live streaming picture, server can be to Redis database query user corresponding account Watch duration, such as 21 minutes, 19 points 31 seconds and 15 minutes.Then, when server judgement viewing duration and movable corresponding setting Whether length meets setting condition.
By taking when watching a length of 21 minutes as an example, it is greater than setting duration 20 minutes within viewing duration 21 minutes, meets Operations Requirements, Server can adjust certain parameters of the corresponding account of user, i.e., to account in response to the trigger event of user in the case of this Interior granting reward.Meanwhile server can send to client feedback and reward successful response message.
By taking when watching a length of 31 seconds 19 minutes as an example, it is less than setting duration 20 minutes within viewing duration 31 seconds 19 minutes, still Viewing duration and set the difference of duration as 29 seconds less than given threshold 30s, meet Operations Requirements, server can be in the case of this In response to the trigger event of user, certain parameters of the corresponding account of user are adjusted, i.e., provide reward into account.Meanwhile it taking Being engaged in device can be to the successful response message of client feedback transmission reward.
By taking when watching a length of 15 minutes as an example, it is less than setting duration 20 minutes within viewing duration 15 minutes, the activity of being unsatisfactory for is wanted It asks, server is not responsive to the trigger event of user in the case of this.Meanwhile server can send reward to client feedback and lose The response message lost.
Fig. 7 is a kind of block diagram of device for obtaining viewing duration shown according to an exemplary embodiment, be can be adapted for Server, referring to Fig. 7, a kind of device 700 obtaining viewing duration, comprising:
Echo signal acquiring unit 701 is configured as execution acquisition client and is reported by the long connection pre-established Echo signal;
Duration acquiring unit 702 is watched, execution is configured as according to the echo signal acquisition client and corresponds to account The viewing duration of family viewing live streaming.
Fig. 8 is the block diagram of another device for obtaining viewing duration shown according to an exemplary embodiment, shown in Fig. 7 A kind of acquisition viewing duration device on the basis of, if the echo signal includes transmission time interval, the viewing duration Acquiring unit 702 includes:
History duration obtains subelement 801, is configured as executing the echo signal for obtaining and once reporting before the client Duration is watched with the history of the client corresponding account;
It watches duration and obtains subelement 802, be configured as executing the acquisition history viewing duration and the sending time The sum of interval, history viewing the sum of duration and the transmission time interval is straight as client corresponding account viewing The viewing duration broadcast, and update the history viewing duration.
Fig. 9 is the block diagram of another device for obtaining viewing duration shown according to an exemplary embodiment, shown in Fig. 7 A kind of acquisition viewing duration device on the basis of, if the echo signal includes sending time, viewing duration acquisition Unit 702 includes
Earliest signal acquisition subelement 901, is configured as executing the earliest target for obtaining the client corresponding account Signal;
It watches duration and obtains subelement 902, be configured as executing the current echo signal of acquisition and earliest echo signal Time difference, using the time difference as the client corresponding account viewing live streaming viewing duration.
Figure 10 is the block diagram of another device for obtaining viewing duration shown according to an exemplary embodiment, in Fig. 7 institute On the basis of a kind of device for acquisition viewing duration shown, described device 700 further include:
Request unit 1001 is configured as executing the trigger event request for obtaining the client transmission;
Request-response unit 1002 is configured as executing and request in response to the trigger event, obtains the client pair Answer the viewing duration of account;
Event responds unit 1003, if be configured as executing the viewing duration and the trigger event corresponding setting It is long to meet setting condition, it is determined that in response to the trigger event.
In one embodiment, described impose a condition includes following one kind:
The viewing duration is greater than or equal to the setting duration;
The viewing duration is less than the setting duration and the difference of the two is less than given threshold.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
So far, long connection is established by server and client in the present embodiment, client can be obtained by long connect The echo signal reported, when then server can obtain the viewing of client corresponding account viewing live streaming according to echo signal It is long.In this way, when user is switched to distinct electronic apparatuses viewing live streaming because its corresponding account will not change in the present embodiment, this Sample server can add up the account viewing live streaming viewing duration, guarantee viewing duration statistics continuity.Also, this implementation Client only reports echo signal to watch duration without counting in example, duration can be watched to avoid user's malicious modification, by taking The viewing duration confidence level that device obtains of being engaged in is higher.
Figure 11 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.For example, electronic equipment 1100 can To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for Body equipment, personal digital assistant etc..
Referring to Fig.1 1, electronic equipment 1100 may include following one or more components: processing component 1102, memory 1104, power supply module 1106, multimedia component 1108, audio component 1110, the interface 1112 of input/output (I/O), sensor Component 1114 and communication component 1116.
The integrated operation of the usual controlling electronic devices 1100 of processing component 1102, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 1102 may include one or more processors 1120 It executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1102 may include one or more Module, convenient for the interaction between processing component 1102 and other assemblies.For example, processing component 1102 may include multimedia mould Block, to facilitate the interaction between multimedia component 1108 and processing component 1102.
Memory 1104 is configured as storing various types of data to support the operation in electronic equipment 1100.These numbers According to example include any application or method for being operated on electronic equipment 1100 instruction, contact data, electricity Talk about book data, message, picture, video etc..Memory 1104 can be by any kind of volatibility or non-volatile memory device Or their combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1106 provides electric power for the various assemblies of electronic equipment 1100.Power supply module 1106 may include power supply Management system, one or more power supplys and other with for electronic equipment 1100 generate, manage, and distribute associated group of electric power Part.
Multimedia component 1108 includes the screen of one output interface of offer between electronic equipment 1100 and user.In In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1108 includes a front camera and/or rear camera.When electronic equipment 1100 is in operation mode, as clapped When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1110 is configured as output and/or input audio signal.For example, audio component 1110 includes a wheat Gram wind (MIC), when electronic equipment 1100 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1104 or via Communication component 1116 is sent.In some embodiments, audio component 1110 further includes a loudspeaker, for exporting audio letter Number.
I/O interface 1112 provides interface, above-mentioned peripheral interface module between processing component 1102 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1114 includes one or more sensors, for providing the shape of various aspects for electronic equipment 1100 State assessment.For example, sensor module 1114 can detecte the state that opens/closes of electronic equipment 1100, component it is relatively fixed Position, such as the component are the display and keypad of electronic equipment 1100, and sensor module 1114 can also detect electronics and set For 1100 or the position change of 1,100 1 components of electronic equipment, the existence or non-existence that user contacts with electronic equipment 1100, The temperature change in 1100 orientation of electronic equipment or acceleration/deceleration and electronic equipment 1100.Sensor module 1114 may include connecing Nearly sensor is configured to detect the presence of nearby objects without any physical contact.Sensor module 1114 is also It may include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, should Sensor module 1114 can also include acceleration transducer, and gyro sensor, Magnetic Sensor, pressure sensor or temperature pass Sensor.
Communication component 1116 is configured to facilitate the logical of wired or wireless way between electronic equipment 1100 and other equipment Letter.Electronic equipment 1100 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G) or their combination.In one exemplary embodiment, communication component 1116 is received via broadcast channel from external wide The broadcast singal or broadcast related information of broadcast management system.In one exemplary embodiment, the communication component 1116 also wraps Near-field communication (NFC) module is included, to promote short range communication.For example, it can be based on radio frequency identification (RFID) technology in NFC module, it is red Outer data association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In one embodiment of the disclosure, electronic equipment 1100 can be by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), scene can It programs gate array (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, for executing the above method.
In one embodiment of the disclosure, a kind of non-transitorycomputer readable storage medium including instruction is additionally provided, Memory 1104 for example including instruction, above-metioned instruction can be executed by the processor 1120 of electronic equipment 1100 to complete above-mentioned obtain The method for taking viewing duration.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In one embodiment of the disclosure, a kind of application program is additionally provided, when the application program is by the processing of electronic equipment When device executes, so that the method that the electronic equipment is able to carry out above-mentioned acquisition viewing duration, to obtain identical technical effect.
In one embodiment of the disclosure, a kind of computer program product is additionally provided, when the computer program product is by electricity When the processor of sub- equipment executes, so that the method that the electronic equipment is able to carry out above-mentioned acquisition viewing duration, to obtain phase Same technical effect.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device/ For electronic equipment/storage medium embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, phase Place is closed to illustrate referring to the part of embodiment of the method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of method for obtaining viewing duration, which is characterized in that be applied to server, which comprises
It obtains client and passes through the reported echo signal of the long connection pre-established;
The viewing duration of the client corresponding account viewing live streaming is obtained according to the echo signal.
2. the method according to claim 1 for obtaining viewing duration, which is characterized in that if the echo signal includes sending Time interval, obtaining the viewing duration that the client corresponding account viewing is broadcast live according to the echo signal includes:
Obtain the history viewing duration of the client corresponding account;
History viewing the sum of the duration and the transmission time interval are obtained, when the history is watched duration and the transmission Between the sum of be spaced viewing duration as client corresponding account viewing live streaming, and update the history and watch duration.
3. the method according to claim 1 or 2 for obtaining viewing duration, which is characterized in that if the echo signal includes Transmission time interval, obtaining the viewing duration that the client corresponding account viewing is broadcast live according to the echo signal includes:
Obtain the time of the client corresponding account earliest echo signal;
The time difference for obtaining the earliest echo signal of current echo signal and time, using the time difference as the client The viewing duration of corresponding account viewing live streaming.
4. the method according to claim 1 for obtaining viewing duration, which is characterized in that the method also includes:
Obtain the trigger event request that the client is sent;
It is requested in response to the trigger event, obtains the viewing duration of the client corresponding account;
It imposes a condition if the viewing duration and the corresponding setting duration of the trigger event meet, it is determined that in response to the touching Hair event.
5. the method according to claim 4 for obtaining viewing duration, which is characterized in that the setting condition includes with next Kind:
The viewing duration is greater than or equal to the setting duration;
The viewing duration is less than the setting duration and the difference of the two is less than given threshold.
6. a kind of device for obtaining viewing duration, which is characterized in that be applied to server, described device includes:
Echo signal acquiring unit is configured as executing the acquisition client target letter reported by the long connection pre-established Number;
Duration acquiring unit is watched, is configured as executing client corresponding account according to the echo signal acquisition client The viewing duration of corresponding account viewing live streaming.
7. the device according to claim 6 for obtaining viewing duration, which is characterized in that if the echo signal includes sending Time interval, the viewing duration acquiring unit include:
History duration obtains subelement, is configured as executing the echo signal once reported before the acquisition client and the visitor The history of family end corresponding account watches duration;
Watch duration and obtain subelement, be configured as executing obtain history viewing duration and the transmission time interval it With the sight that history viewing the sum of duration and the transmission time interval is broadcast live as client corresponding account viewing It sees duration, and updates the history viewing duration.
8. the device according to claim 6 for obtaining viewing duration, which is characterized in that described device further include:
Request unit is configured as executing the trigger event request for obtaining the client transmission;
Request-response unit is configured as executing and request in response to the trigger event, obtains the client corresponding account Watch duration;
Event responds unit, if being configured as executing the viewing duration and the corresponding setting duration of the trigger event meets and sets Fixed condition, it is determined that in response to the trigger event.
9. a kind of electronic equipment characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to executing the storage Executable instruction in device, to realize such as the method according to any one of claims 1 to 5 for obtaining viewing duration.
10. a kind of storage medium, when the instruction in the storage medium is executed by the processor of electronic equipment, so that electronics is set It is standby to be able to carry out such as the method according to any one of claims 1 to 5 for obtaining viewing duration.
CN201910595108.2A 2019-07-03 2019-07-03 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration Pending CN110446079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910595108.2A CN110446079A (en) 2019-07-03 2019-07-03 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910595108.2A CN110446079A (en) 2019-07-03 2019-07-03 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration

Publications (1)

Publication Number Publication Date
CN110446079A true CN110446079A (en) 2019-11-12

Family

ID=68428491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910595108.2A Pending CN110446079A (en) 2019-07-03 2019-07-03 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration

Country Status (1)

Country Link
CN (1) CN110446079A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107389A (en) * 2019-12-31 2020-05-05 广州酷狗计算机科技有限公司 Method, device and system for determining live broadcast watching time length
CN111901617A (en) * 2020-07-17 2020-11-06 北京达佳互联信息技术有限公司 Method and device for calculating live broadcast watching time length
CN112311629A (en) * 2020-10-30 2021-02-02 广州华多网络科技有限公司 Data processing method, device, server and computer readable storage medium
CN113068061A (en) * 2021-04-01 2021-07-02 天九共享网络科技集团有限公司 Live broadcast time length determining method and device, storage medium and electronic equipment
CN113163235A (en) * 2021-05-19 2021-07-23 湖南快乐阳光互动娱乐传媒有限公司 Method and device for acquiring video watching time length

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207506A (en) * 2006-12-18 2008-06-25 中兴通讯股份有限公司 Wireless flow media key parameter statistics and method for improving transmission thereof
CN101783929A (en) * 2010-03-04 2010-07-21 北京惠信博思技术有限公司 Method for sending heartbeats to video server by set top box
US20110161513A1 (en) * 2009-12-29 2011-06-30 Clear Channel Management Services, Inc. Media Stream Monitor
CN104822090A (en) * 2014-04-25 2015-08-05 腾讯科技(北京)有限公司 Video playing method, device and system
WO2016012978A1 (en) * 2014-07-23 2016-01-28 Active Solutions S.À.R.L. System and method for creating and displaying recipient gifts for display at a venue display
CN105933732A (en) * 2016-06-14 2016-09-07 天脉聚源(北京)传媒科技有限公司 Video playing duration counting method and system
CN105979297A (en) * 2016-06-14 2016-09-28 天脉聚源(北京)传媒科技有限公司 Watching duration statistic method and system
CN106331739A (en) * 2016-09-05 2017-01-11 广州爱九游信息技术有限公司 Method, device, server and system for live broadcast and live broadcast state monitoring method
CN106937179A (en) * 2015-12-29 2017-07-07 北京巨象亿联科技有限责任公司 The method of client and server bidirectional data transfers
CN107770569A (en) * 2016-08-18 2018-03-06 北京光子互动科技有限公司 Multimedia synchronous broadcast method, apparatus and system
CN109146581A (en) * 2018-09-30 2019-01-04 武汉斗鱼网络科技有限公司 A kind of resource allocation methods, device and readable storage medium storing program for executing
CN109151577A (en) * 2018-07-05 2019-01-04 武汉斗鱼网络科技有限公司 Player status tracking, storage medium, equipment and system
CN109547823A (en) * 2018-12-07 2019-03-29 四川链窗区块链科技有限公司 A kind of net cast platform bonus data processing method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207506A (en) * 2006-12-18 2008-06-25 中兴通讯股份有限公司 Wireless flow media key parameter statistics and method for improving transmission thereof
US20110161513A1 (en) * 2009-12-29 2011-06-30 Clear Channel Management Services, Inc. Media Stream Monitor
CN101783929A (en) * 2010-03-04 2010-07-21 北京惠信博思技术有限公司 Method for sending heartbeats to video server by set top box
CN104822090A (en) * 2014-04-25 2015-08-05 腾讯科技(北京)有限公司 Video playing method, device and system
WO2016012978A1 (en) * 2014-07-23 2016-01-28 Active Solutions S.À.R.L. System and method for creating and displaying recipient gifts for display at a venue display
CN106937179A (en) * 2015-12-29 2017-07-07 北京巨象亿联科技有限责任公司 The method of client and server bidirectional data transfers
CN105979297A (en) * 2016-06-14 2016-09-28 天脉聚源(北京)传媒科技有限公司 Watching duration statistic method and system
CN105933732A (en) * 2016-06-14 2016-09-07 天脉聚源(北京)传媒科技有限公司 Video playing duration counting method and system
CN107770569A (en) * 2016-08-18 2018-03-06 北京光子互动科技有限公司 Multimedia synchronous broadcast method, apparatus and system
CN106331739A (en) * 2016-09-05 2017-01-11 广州爱九游信息技术有限公司 Method, device, server and system for live broadcast and live broadcast state monitoring method
CN109151577A (en) * 2018-07-05 2019-01-04 武汉斗鱼网络科技有限公司 Player status tracking, storage medium, equipment and system
CN109146581A (en) * 2018-09-30 2019-01-04 武汉斗鱼网络科技有限公司 A kind of resource allocation methods, device and readable storage medium storing program for executing
CN109547823A (en) * 2018-12-07 2019-03-29 四川链窗区块链科技有限公司 A kind of net cast platform bonus data processing method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107389A (en) * 2019-12-31 2020-05-05 广州酷狗计算机科技有限公司 Method, device and system for determining live broadcast watching time length
CN111107389B (en) * 2019-12-31 2021-10-22 广州酷狗计算机科技有限公司 Method, device and system for determining live broadcast watching time length
CN111901617A (en) * 2020-07-17 2020-11-06 北京达佳互联信息技术有限公司 Method and device for calculating live broadcast watching time length
CN112311629A (en) * 2020-10-30 2021-02-02 广州华多网络科技有限公司 Data processing method, device, server and computer readable storage medium
CN112311629B (en) * 2020-10-30 2022-04-26 广州华多网络科技有限公司 Data processing method, device, server and computer readable storage medium
CN113068061A (en) * 2021-04-01 2021-07-02 天九共享网络科技集团有限公司 Live broadcast time length determining method and device, storage medium and electronic equipment
CN113068061B (en) * 2021-04-01 2022-12-30 天九共享网络科技集团有限公司 Live broadcast time length determination method and device, storage medium and electronic equipment
CN113163235A (en) * 2021-05-19 2021-07-23 湖南快乐阳光互动娱乐传媒有限公司 Method and device for acquiring video watching time length

Similar Documents

Publication Publication Date Title
CN110446079A (en) Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
CN106488335B (en) Live-broadcast control method and device
CN104394312B (en) Filming control method and device
CN107436777B (en) Mobile terminal, application crash processing method and processing device
CN107769881B (en) Information synchronization method, apparatus and system, storage medium
CN108334651B (en) Method, device and storage medium for collecting user side data to realize preset requirements
CN103955179A (en) Remote intelligent control method and device
US20220301005A1 (en) Method and server for live streaming
CN105677719A (en) Application management method and apparatus
CN105430161B (en) Message treatment method and device
CN105337800B (en) Poll frequency method of adjustment and device
CN111722824A (en) Voice control method, device and computer storage medium
CN107222391A (en) Group's based reminding method, device and equipment
CN105682196A (en) Communication control method and device and wearable device
CN109274510A (en) Message treatment method, device, client, server and storage medium
CN105898032A (en) Adjusting method and apparatus for warning tone
CN105214197A (en) Based reminding method and device
CN106406175B (en) Door opening reminding method and device
CN110290393A (en) File acquisition method and device, server and storage medium
CN110796836A (en) Hand washing monitoring method, hand washing monitoring device and electronic equipment
CN109862169B (en) Electronic equipment control method, device and storage medium
CN109040651B (en) Video communication method and device
CN106254633B (en) Handset mode method of adjustment and device
CN105407021A (en) Volume adjustment method and device
CN110457451A (en) Information display method, device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191112