CN104702563B - The acquisition methods and device of streaming media playing duration - Google Patents

The acquisition methods and device of streaming media playing duration Download PDF

Info

Publication number
CN104702563B
CN104702563B CN201310650006.9A CN201310650006A CN104702563B CN 104702563 B CN104702563 B CN 104702563B CN 201310650006 A CN201310650006 A CN 201310650006A CN 104702563 B CN104702563 B CN 104702563B
Authority
CN
China
Prior art keywords
player
streaming media
abnormal
broadcast state
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.)
Active
Application number
CN201310650006.9A
Other languages
Chinese (zh)
Other versions
CN104702563A (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.)
Tianjin Zhirong Innovation Technology Development Co.,Ltd.
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310650006.9A priority Critical patent/CN104702563B/en
Publication of CN104702563A publication Critical patent/CN104702563A/en
Application granted granted Critical
Publication of CN104702563B publication Critical patent/CN104702563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses the acquisition methods and device of a kind of streaming media playing duration.This method comprises: the operational order of response user, controls player plays Streaming Media, and obtain the start time information of streaming media playing;During player plays Streaming Media, the broadcast state of player is monitored;If monitoring, the broadcast state of player is abnormal, the temporal information of the broadcast state exception of player is obtained, to obtain abnormal time information;At the end of streaming media playing, the end time information of streaming media playing is obtained;And the actual play duration of Streaming Media is calculated according to end time information, start time information and abnormal time information.By means of the invention it is possible to make the practical duration calculation of streaming media playing more acurrate.

Description

The acquisition methods and device of streaming media playing duration
Technical field
The present invention relates to technical field of video processing, specifically, the acquisition methods of in particular to streaming media playing duration And device.
Background technique
Streaming Media refers to transmits audio, the form of video and multimedia file in a network in a streaming manner.Its transmission side Formula is that the multimedia files such as video and audio are divided into compressed package one by one by special compress mode, by streaming media server The continuous, real-time transmission to user terminal.
In the system using streaming manner, user waits until under entire file whole like that not necessarily like non-stream broadcasting Content in capable of just seeing after load, but only that the start-up study by several seconds or tens seconds can be at user's end The streaming videos file such as video of compression or audio is played out using corresponding player on end, remaining part will continue It is downloaded, until finishing.
According to the source of streaming medium content, the broadcast mode of Streaming Media can be divided into two kinds of program request and live streaming: streaming media on demand Be content provider one section of multimedia content is edited in advance, compressed encoding, form the file of specified format, then store Onto streaming media server, user selects the content file on streaming media server to play out as needed.Live streaming media When referring to user terminal playing stream media live content, the playing time of content and the generation moment of content source event are identical, i.e., Streaming media coding server carries out compressed encoding in real time to content source, is sent to user terminal via streaming media server.
In network communications, heartbeat packet be exactly periodically notified between client and server one of other side oneself state from The command word of oneself definition, sends according to certain time interval, heartbeat is similar to, so being called heartbeat packet.
Existing by duration charging method, the calculating of playing duration is based on heartbeat packet, still, since Streaming Media is side Side is downloaded to play, due to the influence of network bandwidth and the operation of user in playing process, streaming media playing will appear pause, The special circumstances such as Caton, F.F., and the duration calculation method based on heartbeat packet can not account for these special circumstances, thus So that the calculating inaccuracy of playing duration.
For the problem for obtaining streaming media playing duration accuracy difference based on heartbeat packet in the prior art, not yet propose at present Effective solution method.
Summary of the invention
It is existing to solve the main purpose of the present invention is to provide the acquisition methods and device of a kind of streaming media playing duration The problem of streaming media playing duration accuracy difference is obtained in technology based on heartbeat packet.
According to one aspect of the present invention, a kind of acquisition methods of streaming media playing duration are provided, this method comprises: ringing Using the operational order at family, player plays Streaming Media is controlled, and obtains the start time information of streaming media playing;In player During playing stream media, the broadcast state of player is monitored;If monitoring, the broadcast state of player is abnormal, and acquisition is broadcast The temporal information of the broadcast state exception of device is put, to obtain abnormal time information;At the end of streaming media playing, Streaming Media is obtained The end time information of broadcasting;And Streaming Media is calculated according to end time information, start time information and abnormal time information Actual play duration.
Further, start time information includes: the initial time of streaming media playing;End time information includes: stream matchmaker The finish time that body plays;Abnormal time information includes: the duration that player is in abnormal broadcast state, is believed according to the end time The actual play duration that breath, start time information and abnormal time information calculate Streaming Media includes: the knot for calculating streaming media playing The beam moment subtracts the initial time of streaming media playing, then subtracts the resulting difference of duration that player is in abnormal broadcast state, with Obtain actual play duration.
Further, obtain the temporal information of the broadcast state exception of player, with obtain abnormal time information include: When the broadcast state exception of player, the initial time of the broadcast state exception of player is obtained;In the broadcast state of player When restoring normal, the finish time of the broadcast state exception of player is obtained;The finish time for calculating broadcast state exception subtracts The time difference of the initial time of broadcast state exception, to obtain the duration that player is in abnormal broadcast state.
Further, obtain the temporal information of the broadcast state exception of player, with obtain abnormal time information include: When the broadcast state exception of player, timer resets and starts beginning timing;When the broadcast state of player restores normal, Terminate when controlling timer;The timing length of timer is obtained, to obtain the duration that player is in abnormal broadcast state.
Further, before the broadcast state of monitoring player, this method further include: obtain the broadcasting side of player Formula, wherein broadcast mode includes: program request and live streaming, if it is program request that the broadcast state for monitoring player, which includes: broadcast mode, Whether monitoring player is in Caton state or dragged state, wherein if player is in Caton state or dragged State, then the broadcast state of player is abnormal;If broadcast mode is live streaming, monitor whether player is in Caton state, In, if player is in Caton state, the broadcast state of player is abnormal.
According to one aspect of the present invention, a kind of acquisition device of streaming media playing duration is provided.The device further include: Respond module, for responding the operational order of user, when controlling player plays Streaming Media, and obtaining the starting of streaming media playing Between information;Monitoring modular, for monitoring the broadcast state of player during player plays Streaming Media;First obtains Module, the temporal information of the broadcast state exception in the broadcast state exception for monitoring player, obtaining player, with Obtain abnormal time information;Second obtains module, for obtaining the end time of streaming media playing at the end of streaming media playing Information;And computing module, for calculating Streaming Media according to end time information, start time information and abnormal time information Actual play duration.
Further, start time information includes: the initial time of streaming media playing;End time information includes: stream matchmaker The finish time that body plays;Abnormal time information includes: the duration that player is in abnormal broadcast state;Computing module is also used to The finish time for calculating streaming media playing subtracts the initial time of streaming media playing, then subtracts player and be in abnormal broadcast state The resulting difference of duration, to obtain actual play duration.
Further, the first acquisition module includes: the first acquisition submodule, abnormal for the broadcast state in player When, obtain the initial time of the broadcast state exception of player;Second acquisition submodule, it is extensive for the broadcast state in player When multiple normal, the finish time of the broadcast state exception of player is obtained;Computational submodule, for calculating broadcast state exception Finish time subtracts the time difference of the initial time of broadcast state exception, with obtain player be in abnormal broadcast state when It is long.
Further, the first acquisition module includes: promoter module, for counting in the broadcast state exception of player When device reset and start beginning timing;Control submodule, for controlling timer when the broadcast state of player restores normal Timing terminates;Third acquisition submodule is in abnormal broadcast state for obtaining the timing length of timer to obtain player Duration.
Further, device further include: third obtains module, for obtaining the broadcast mode of player, wherein play Mode includes program request and live streaming, and monitoring modular includes: the first monitoring submodule, for when broadcast mode is program request, monitoring to be broadcast Put whether device is in Caton state or dragged state, wherein if player is in Caton state or dragged state, The broadcast state of player is abnormal;Second monitoring submodule, for when broadcast mode is live streaming, whether monitoring player to be in Caton state, wherein if player is in Caton state, the broadcast state of player is abnormal.
Through the invention, when obtaining the actual play duration of Streaming Media, the operational order of user is responded first, and control is broadcast Device playing stream media is put, and obtains the start time information of streaming media playing, at the end of streaming media playing, Streaming Media is obtained and broadcasts The end time information put.Wherein, during player plays Streaming Media real-time monitoring player broadcast state, if prison Broadcast state exception is measured, then is recorded the temporal information of abnormal broadcast state, when calculating actual play duration, according to End time information, start time information and abnormal time information calculate, thus in the playing process of Streaming Media, if due to When the influence of network bandwidth or the operation of user occur playing abnormal situation, these are played into abnormal temporal information and is made It solves and stream is calculated based on heartbeat packet in the prior art so that the calculating of playing duration is accurate for the calculating factor of playing duration The problem of media play duration accuracy difference.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart of the acquisition methods of streaming media playing duration according to a first embodiment of the present invention;
Fig. 2 is the flow chart of the acquisition methods of streaming media playing duration according to a second embodiment of the present invention;
Fig. 3 is the block diagram of the acquisition device of streaming media playing duration according to a third embodiment of the present invention.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and detailed description.It should be pointed out that not conflicting In the case where, the features in the embodiments and the embodiments of the present application can be combined with each other.
Embodiment one
Firstly, the embodiment of the present invention one provides a kind of acquisition methods of streaming media playing duration, this method is mainly described The process of Streaming Media actual play duration is calculated, referring to Fig. 1, this method be may comprise steps of:
Step S102: responding the operational order of user, controls player plays Streaming Media, and obtains rising for streaming media playing Beginning temporal information.
When user requests video resource to streaming media server by terminal, operational order, terminal response are inputted to terminal Operational order receives the video resource of streaming media server real-time Transmission, and starting player starts playing stream media, for example, When user terminal is television set, television set receives video resource on one side, starts player on one side and plays out.Start in player After playing stream media, the start time information of streaming media playing is obtained, which can be current system time, Start time, such as zero zero second etc. can also be denoted as.
Step S104: during player plays Streaming Media, the broadcast state of player is monitored.
Preferably, start an independent thread, with during playing stream media, real-time monitoring in broadcasting process The broadcast state of player, if player is in smooth broadcast state, the broadcast state of player is normal, if due to Reduction, network transfer delay of network bandwidth etc. influence, and player is in Caton, the disconnected broadcast state broadcast, and user cannot be normal Viewing, then the broadcast state of player is abnormal.
Step S106: if monitoring, the broadcast state of player is abnormal, obtain player broadcast state it is abnormal when Between information, to obtain abnormal time information.
When monitoring that player is in abnormal broadcast state, the temporal information of abnormal broadcast state is recorded, for example, System time of the system time at the end of when abnormal broadcast state occurs, or the duration etc. that abnormal broadcast state is lasting.
Step S108: at the end of streaming media playing, the end time information of streaming media playing is obtained.
Wherein, streaming media playing terminates to may be to terminate streaming media playing using business due to user's active termination, It is also likely to be to terminate due to disconnecting time-out between user terminal and streaming media server.
Step S110: the reality of Streaming Media is calculated according to end time information, start time information and abnormal time information Playing duration.
Wherein, not according to the specific manifestation form of end time information, start time information and abnormal time information Together, different calculation methods can be used.
For example, end time information, start time information and abnormal time information are system time, wherein starting Temporal information includes the initial time of streaming media playing, and end time information includes the finish time of streaming media playing.
In the broadcast state exception of player, the initial time of the broadcast state exception of player is obtained, in player Broadcast state restore it is normal when, obtain the finish time of the broadcast state exception of player, pass through the knot of broadcast state exception The initial time that the beam moment subtracts broadcast state exception obtains the duration that player is in abnormal broadcast state.Alternatively, playing When the broadcast state exception of device, timer resets and starts beginning timing, when the broadcast state of player restores normal, control Terminate when timer, obtain the timing length of timer, obtains the duration that player is in abnormal broadcast state.
When calculating the actual play duration of Streaming Media, subtracting streaming media playing by the finish time of streaming media playing Begin the moment, then subtract the resulting difference of duration that player is in abnormal broadcast state, to obtain actual play duration.
For another example, end time information, start time information and abnormal time information are the time of timer statistics.? When player starts playing stream media, the first timer is reset and is started timing, at the end of streaming media playing, the first timing Device timing terminates, and end time information is the current time of the first timer, as 30 divide 28 seconds when 1.In the broadcasting shape of player When state occurs abnormal for the first time, the second timer of starting resets and starts timing, restores normal in the broadcast state of this time exception When, terminate when controlling the second timer, such as when time of the second timer is 0 at this time 0 divides 20 seconds.In the broadcasting of player When second of appearance of state is abnormal, the second timer of starting starts again at timing, restores normal in the broadcast state of this time exception When, terminate when controlling the second timer, 2 divides 18 seconds when for example, the time of the second timer being 0 at this time, and so on, every time When broadcast state occurs abnormal, the second timer of starting carries out timing, until streaming media playing terminates.
When calculating the actual play duration of Streaming Media, the duration in the first timer is obtained, 30 divide 28 seconds when obtaining 1. The duration in the second timer is obtained again, and 2 divide 18 seconds when obtaining 0, thus when 1 30 when dividing 28 seconds when subtracting 02 to divide 18 seconds to obtain 1 28 points 10 seconds, which is just player this time playing stream media actual play duration for being.
Using the acquisition methods for the streaming media playing duration that the embodiment provides, in the actual play duration for calculating Streaming Media When, the operational order of user is responded first, controls player plays Streaming Media, and obtains the initial time letter of streaming media playing Breath, at the end of streaming media playing, obtains the end time information of streaming media playing.Wherein, in player plays Streaming Media The broadcast state of real-time monitoring player in the process believes the time of abnormal broadcast state if monitoring broadcast state exception Breath is recorded, when calculating actual play duration, according to end time information, start time information and abnormal time information meter It calculates, thus in the playing process of Streaming Media, if since the influence of network bandwidth or the operation of user occur playing exception The case where when, these are played into abnormal temporal information as the calculating factor of playing duration, so that the calculating of playing duration is more It is accurate.
Embodiment two
The embodiment is the acquisition methods of streaming media playing duration further preferred on the basis of example 1, referring to Fig. 2, this method may comprise steps of:
Step S202: responding the operational order of user, controls player plays Streaming Media, and obtains rising for streaming media playing Begin the moment.
Step S204: the broadcast mode of player is obtained, wherein broadcast mode includes program request and live streaming, if broadcast mode For program request, S206 is thened follow the steps, if broadcast mode is live streaming, thens follow the steps S208.
Step S206: whether monitoring player is in Caton state or dragged state, wherein if player is in card State or dragged state, then the broadcast state of player is abnormal.
Step S208: whether monitoring player is in Caton state, wherein if player is in Caton state, plays The broadcast state of device is abnormal.
Due to broadcast mode be program request when, during player plays, allow the dragging of user.Thus, player Abnormal broadcast state in addition to caused due to Network status play Caton, it is also possible to due to user dragging and cause to play It interrupts.
And broadcast mode is when being broadcast live, during player plays, not allow the dragging of user, thus, it is monitoring When whether the state of player is abnormal, without considering the case where user pulls.
Step S210: if monitoring, the broadcast state of player is abnormal, obtains player and is in abnormal broadcast state Duration.
Step S212: at the end of streaming media playing, the finish time of streaming media playing is obtained.
Step S214: the finish time for calculating streaming media playing subtracts the initial time of streaming media playing, then subtracts broadcasting Device is in the resulting difference of duration of abnormal broadcast state, to obtain actual play duration.
Using the preferred embodiment, when calculating actual play duration, player is monitored according to different broadcast modes Abnormal broadcast state, so that playing duration is accurately calculated.
It is the description that the acquisition methods of streaming media playing duration provided by the present invention are carried out above.It below will be to this hair The acquisition device of the streaming media playing duration of bright offer is described, it should be noted that the device can be used for executing above-mentioned A kind of acquisition methods for streaming media playing duration of anticipating.
Embodiment three
Corresponding with the acquisition methods of streaming media playing duration that the embodiment of the present invention one provides, the embodiment of the present invention also mentions A kind of acquisition device of streaming media playing duration has been supplied, which is located at the user terminals such as intelligent TV set, mobile phone, PAD, referring to Fig. 3 obtains module 330, second the apparatus may include respond module 310, monitoring modular 320, first and obtains module 340 and meter Calculate module 350.
Respond module 310 is used to respond the operational order of user, controls player plays Streaming Media, and obtain Streaming Media and broadcast The start time information put.
When user requests video resource to streaming media server by terminal, operational order, respond module are inputted to terminal 310 respond the operational order, receive the video resource of streaming media server real-time Transmission, and starting player starts to play stream matchmaker Body.
For example, after television set networking, user's operation remote controler makes television set enter application when user terminal is television set The page opens the application of streaming media playing, starts the broadcasting of Streaming Media, and television set issues video resource to streaming media server Request, streaming media server carries out resource and issues, so that television set receives video resource on one side, starts player on one side and is broadcast It puts.After player starts playing stream media, the start time information of streaming media playing is obtained.
Monitoring modular 320 is used for during player plays Streaming Media, monitors the broadcast state of player.
Preferably, which can be the thread of an independent startup in broadcasting process, in playing stream media During, the broadcast state of real-time monitoring player, if player is in smooth broadcast state, the broadcasting of player State is normal, if player is in Caton, the disconnected broadcasting broadcast since the reduction of network bandwidth, network transfer delay etc. influence State, user cannot normally watch, then the broadcast state of player is abnormal.
First, which obtains module 330, is used in the broadcast state exception for monitoring player, obtains the broadcasting shape of player The temporal information of state exception, to obtain abnormal time information.
When monitoring modular 320 monitors that player is in abnormal broadcast state, the first acquisition module 330 is recorded different The temporal information of normal broadcast state, for example, system time of system time when abnormal broadcast state occurs at the end of, or The lasting duration etc. of abnormal broadcast state.
Second, which obtains module 340, is used at the end of streaming media playing, obtains the end time information of streaming media playing.
Wherein, streaming media playing terminates to may be to terminate streaming media playing using business due to user's active termination, It is also likely to be to terminate due to disconnecting time-out between user terminal and streaming media server.
Computing module 350, for calculating Streaming Media according to end time information, start time information and abnormal time information Actual play duration.
Wherein, not according to the specific manifestation form of end time information, start time information and abnormal time information Together, different calculation methods can be used.Specific calculation method has been described in example 1, and details are not described herein again.
Using the acquisition device for the streaming media playing duration that the embodiment provides, in the actual play duration for calculating Streaming Media When, the operational order that responds user of respond module 310 first controls player plays Streaming Media, and obtains streaming media playing Start time information, at the end of streaming media playing, second obtains the end time information that module 340 obtains streaming media playing. Wherein, during player plays Streaming Media, the broadcast state of 320 real-time monitoring player of monitoring modular, if monitoring Broadcast state is abnormal, then the first acquisition module 330 records the temporal information of abnormal broadcast state, is calculating actual play When duration, computing module 350 is calculated according to end time information, start time information and abnormal time information, thus in stream matchmaker In the playing process of body, if occur playing abnormal situation due to the influence of network bandwidth or the operation of user, by this A little calculating factors for playing abnormal temporal information as playing duration, so that the calculating of playing duration is more accurate.
Preferably, start time information includes the initial time of streaming media playing, and end time information includes that Streaming Media is broadcast The finish time put, the initial time and finish time can use system time.Abnormal time information includes at player In the duration of abnormal broadcast state, when player is repeatedly in abnormal broadcast state, abnormal time information is repeatedly abnormal broadcast Put state duration the sum of.Computing module 350 utilizes the end of streaming media playing when calculating the actual play duration of Streaming Media Moment subtracts the initial time of streaming media playing, then subtracts the resulting difference of duration that player is in abnormal broadcast state, will The time that player is in abnormal broadcast state rejects from the time of entire player plays.
A kind of simple acquisition methods are provided on the basis of calculating playing duration is accurate by the preferred embodiment.
It is further preferred that first obtains module 330 when obtaining duration of the player in abnormal broadcast state, according to The difference of user terminal can be used different modes and realize.
For example, the first acquisition module 330 includes the first acquisition submodule, the second acquisition submodule and computational submodule.Its In, the first acquisition submodule is used in the broadcast state exception of player, obtains the starting of the broadcast state exception of player Moment.The broadcast state that second acquisition submodule is used to obtain player when the broadcast state of player restores normal is abnormal Finish time.Computational submodule, when the finish time for calculating broadcast state exception subtracts the starting of broadcast state exception The difference of the time span at quarter, to obtain the duration that player is in abnormal broadcast state.
For another example, the first acquisition module 330 includes promoter module, control submodule and third acquisition submodule.Wherein, it opens Mover module is used in the broadcast state exception of player, and timer resets and starts beginning timing.Control submodule is used for When the broadcast state of player restores normal, terminate when controlling timer.Third acquisition submodule is for obtaining timer Timing length, to obtain the duration that player is in abnormal broadcast state.
Preferably, which can also include that third obtains module, which is used to obtain the broadcasting side of player Formula, wherein broadcast mode includes program request and live streaming, and when broadcast mode difference, monitoring modular 320 uses different monitoring modes.
Specifically, monitoring modular 320 includes the first monitoring submodule and the second monitoring submodule, wherein the first monitoring Module is used for when broadcast mode is program request, and whether monitoring player is in Caton state or dragged state, wherein if broadcasting It puts device and is in Caton state or dragged state, then the broadcast state of player is abnormal.Second monitoring submodule, for broadcasting When putting mode to be broadcast live, whether monitoring player is in Caton state, wherein if player is in Caton state, player Broadcast state it is abnormal.
Due to broadcast mode be program request when, during player plays, allow the dragging of user.Thus, player Abnormal broadcast state in addition to caused due to Network status play Caton, it is also possible to due to user dragging and cause to play It interrupts.And broadcast mode is when being broadcast live, during player plays, not allow the dragging of user, thus, it is played in monitoring When whether the state of device is abnormal, without considering the case where user pulls.
Using the preferred embodiment, when calculating actual play duration, player is monitored according to different broadcast modes Abnormal broadcast state, so that playing duration is accurately calculated.
From the description of the above various embodiments, it can be seen that the embodiment of the present invention realizes following technical effect: playing The broadcast state of real-time monitoring player during device playing stream media will be broadcast extremely if monitoring broadcast state exception The temporal information for putting state is recorded, when calculating actual play duration, according to end time information, start time information and Abnormal time information calculates, so that the calculating of playing duration is more accurate.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Within the technical scope disclosed by the invention, any changes or substitutions that can be easily thought of by any people for being familiar with the technology, should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

1. a kind of acquisition methods of streaming media playing duration characterized by comprising
The operational order of user is responded, player plays Streaming Media is controlled, and obtains the initial time letter of the streaming media playing Breath;
Obtain the broadcast mode of the player, wherein the broadcast mode includes: program request and live streaming;
During the player plays Streaming Media, the broadcast state of player described in real-time monitoring: if the broadcasting side Formula is program request, then monitors whether the player is in Caton state or dragged state, wherein if the player is in Caton state or dragged state, then the broadcast state of the player is abnormal;If the broadcast mode is live streaming, monitor Whether the player is in Caton state, wherein if the player is in Caton state, the broadcasting shape of the player State is abnormal;
If monitoring, the broadcast state of the player is abnormal, obtains the time letter of the broadcast state exception of the player Breath, to obtain abnormal time information, wherein the abnormal time information includes the duration that player is in abnormal broadcast state, When player is repeatedly in abnormal broadcast state, abnormal time information be repeatedly abnormal broadcast state duration the sum of;
At the end of the streaming media playing, the end time information of the streaming media playing is obtained;And
The reality of the Streaming Media is calculated according to the end time information, the start time information and the abnormal time information Border playing duration, wherein the actual play duration for calculating the Streaming Media includes: to utilize the finish time of the streaming media playing The initial time of the streaming media playing is subtracted, then subtracts the resulting difference of duration that the player is in abnormal broadcast state, It is rejected from the time of entire player plays with the time that the player is in abnormal broadcast state.
2. the acquisition methods of the streaming media playing duration according to claim 1, which is characterized in that the initial time letter Breath includes: the initial time of the streaming media playing;At the end of the end time information includes: the streaming media playing It carves;The abnormal time information includes: the duration that the player is in abnormal broadcast state, is believed according to the end time The actual play duration that breath, the start time information and the abnormal time information calculate the Streaming Media includes:
The finish time for calculating the streaming media playing subtracts the initial time of the streaming media playing, then subtracts the player The resulting difference of duration in abnormal broadcast state, to obtain the actual play duration.
3. the acquisition methods of streaming media playing duration according to claim 2, which is characterized in that obtain the player Broadcast state exception temporal information, include: to obtain abnormal time information
In the broadcast state exception of the player, the initial time of the broadcast state exception of the player is obtained;
When the broadcast state of the player restores normal, the finish time of the broadcast state exception of the player is obtained;
Calculate the broadcast state exception finish time subtract the broadcast state exception initial time time difference, with The duration of abnormal broadcast state is in the player.
4. the acquisition methods of streaming media playing duration according to claim 2, which is characterized in that obtain the player Broadcast state exception temporal information, include: to obtain abnormal time information
In the broadcast state exception of the player, timer resets and starts beginning timing;
When the broadcast state of the player restores normal, terminate when controlling timer;
The timing length of the timer is obtained, to obtain the duration that the player is in abnormal broadcast state.
5. a kind of acquisition device of streaming media playing duration characterized by comprising
Respond module controls player plays Streaming Media, and obtain the streaming media playing for responding the operational order of user Start time information;
Monitoring modular is used for during the player plays Streaming Media, the broadcast state of player described in real-time monitoring, The monitoring modular specifically includes: the first monitoring submodule, for monitoring the player when the broadcast mode is program request Whether Caton state or dragged state are in, wherein if the player is in Caton state or dragged state, The broadcast state of the player is abnormal;Second monitoring submodule, for being broadcast described in monitoring when the broadcast mode is live streaming Put whether device is in Caton state, wherein if the player is in Caton state, the broadcast state of the player is different Often;
First obtains module, for obtaining the broadcasting of the player in the broadcast state exception for monitoring the player The temporal information of abnormal state, to obtain abnormal time information, wherein the abnormal time information includes that player is in abnormal The duration of broadcast state, when player is repeatedly in abnormal broadcast state, abnormal time information is repeatedly abnormal broadcast state The sum of duration;
Second obtains module, for obtaining the end time information of the streaming media playing at the end of streaming media playing;
Third obtains module, for obtaining the broadcast mode of the player, wherein the broadcast mode includes program request and straight It broadcasts;And
Computing module, for being calculated according to the end time information, the start time information and the abnormal time information The actual play duration of the Streaming Media, wherein the actual play duration for calculating the Streaming Media includes: to utilize the Streaming Media The finish time of broadcasting subtracts the initial time of the streaming media playing, then subtracts the player and be in abnormal broadcast state The resulting difference of duration picks the time that the player is in abnormal broadcast state from the time of entire player plays It removes.
6. the acquisition device of streaming media playing duration according to claim 5, which is characterized in that the start time information It include: the initial time of the streaming media playing;The end time information includes: the finish time of the streaming media playing; The abnormal time information includes: the duration that the player is in abnormal broadcast state;The computing module is also used to calculate The finish time of the streaming media playing subtracts the initial time of the streaming media playing, then subtracts the player and be in abnormal The resulting difference of the duration of broadcast state, to obtain the actual play duration.
7. the acquisition device of streaming media playing duration according to claim 6, which is characterized in that described first obtains mould Block includes:
First acquisition submodule, for obtaining the broadcast state of the player in the broadcast state exception of the player Abnormal initial time;
Second acquisition submodule, for obtaining the broadcasting of the player when the broadcast state of the player restores normal The finish time of abnormal state;
Computational submodule, when the finish time for calculating the broadcast state exception subtracts the starting of the broadcast state exception The time difference at quarter, to obtain the duration that the player is in abnormal broadcast state.
8. the acquisition device of streaming media playing duration according to claim 6, which is characterized in that described first obtains module Include:
Promoter module, in the broadcast state exception of the player, timer to reset and starts beginning timing;
Control submodule, for terminating when controlling timer when the broadcast state of the player restores normal;
Third acquisition submodule is in abnormal broadcasting for obtaining the timing length of the timer to obtain the player The duration of state.
CN201310650006.9A 2013-12-06 2013-12-06 The acquisition methods and device of streaming media playing duration Active CN104702563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310650006.9A CN104702563B (en) 2013-12-06 2013-12-06 The acquisition methods and device of streaming media playing duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310650006.9A CN104702563B (en) 2013-12-06 2013-12-06 The acquisition methods and device of streaming media playing duration

Publications (2)

Publication Number Publication Date
CN104702563A CN104702563A (en) 2015-06-10
CN104702563B true CN104702563B (en) 2019-09-03

Family

ID=53349340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310650006.9A Active CN104702563B (en) 2013-12-06 2013-12-06 The acquisition methods and device of streaming media playing duration

Country Status (1)

Country Link
CN (1) CN104702563B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893246A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Player test method, device and system
CN105893247A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Player test method, device and system
CN105681212B (en) * 2016-03-21 2019-02-22 广州盈可视电子科技有限公司 A kind of monitoring method and device of video broadcasting condition
CN105912705A (en) * 2016-04-27 2016-08-31 乐视控股(北京)有限公司 Acquisition method and device of multimedia file playing duration
CN105933732B (en) * 2016-06-14 2019-08-27 天脉聚源(北京)传媒科技有限公司 A kind of video playing duration statistical method and system
CN107071522A (en) * 2017-05-17 2017-08-18 聚好看科技股份有限公司 Multimedia program request amount recording method and device, server
CN107844285B (en) * 2017-11-03 2020-09-08 中广热点云科技有限公司 Large screen scene picture splicing display method
CN108882056B (en) * 2018-07-18 2020-09-29 深圳市茁壮网络股份有限公司 Method and device for detecting playing state of streaming media
CN111045914A (en) * 2018-10-11 2020-04-21 北京国双科技有限公司 Player test method, device, medium and equipment
CN111327964B (en) * 2018-12-17 2022-11-25 中国移动通信集团北京有限公司 Method and device for positioning video playing pause
CN109996117B (en) * 2019-03-04 2021-08-24 青岛海信传媒网络技术有限公司 Method and device for acquiring streaming media playing time
CN110602561A (en) * 2019-08-01 2019-12-20 何晨亮 Payment method and system of network video platform based on user watching degree
CN112073714A (en) * 2020-09-09 2020-12-11 福建新大陆软件工程有限公司 Video playing quality automatic detection method, device, equipment and readable storage medium
CN113949894B (en) * 2021-10-18 2023-06-20 上海哔哩哔哩科技有限公司 Live broadcast related duration recording method and device
CN113992990A (en) * 2021-10-26 2022-01-28 北京达佳互联信息技术有限公司 Method and device for determining resource playing time, electronic equipment and storage medium
CN114173195B (en) * 2021-12-10 2024-04-12 聚好看科技股份有限公司 Display equipment and method for counting effective playing time of media assets

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631389A (en) * 2009-07-28 2010-01-20 中兴通讯股份有限公司 Method and system for playing abnormal prompt tone media of IP multimedia subsystem
CN101901453A (en) * 2010-08-02 2010-12-01 朱彦民 Interactive network advertising method
CN103327016A (en) * 2013-06-06 2013-09-25 合一信息技术(北京)有限公司 Method and system for calculating and correcting abnormal playing amount of network streaming media

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7827297B2 (en) * 2003-01-18 2010-11-02 Trausti Thor Kristjansson Multimedia linking and synchronization method, presentation and editing apparatus
US9323788B2 (en) * 2009-11-23 2016-04-26 iHeartMedia Management Service, Inc. Managing under-filled spot blocks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631389A (en) * 2009-07-28 2010-01-20 中兴通讯股份有限公司 Method and system for playing abnormal prompt tone media of IP multimedia subsystem
CN101901453A (en) * 2010-08-02 2010-12-01 朱彦民 Interactive network advertising method
CN103327016A (en) * 2013-06-06 2013-09-25 合一信息技术(北京)有限公司 Method and system for calculating and correcting abnormal playing amount of network streaming media

Also Published As

Publication number Publication date
CN104702563A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104702563B (en) The acquisition methods and device of streaming media playing duration
US20200351570A1 (en) Coordination of Media Content Delivery to Multiple Media Players
CN104735470B (en) A kind of streaming media data transmission method and device
EP2534833A1 (en) Method for synchronized content playback
US10148722B2 (en) Methods and nodes for synchronized streaming of a first and a second data stream
CN106817628B (en) Network live broadcast platform
CN108174233A (en) A kind of live broadcasting method, device, server and medium
CN104135672A (en) HLS-based method for realizing seamless disaster recovery of video on demand
US8230468B2 (en) Dynamically creating trick files to hide latency in streaming networks
CN112822503A (en) Method, device and equipment for playing live video stream and storage medium
CN113891175B (en) Live broadcast push flow method, device and system
CN105828192A (en) Multi-terminal video continuous playing method and device
CN106375859B (en) A kind of media processing method, device and terminal
US10607396B2 (en) Dynamic rendering of low frequency objects in a virtual reality system
CN109120995A (en) A kind of video cache analysis method, device, equipment and medium
WO2009103351A1 (en) Method and apparatus for obtaining media over a communications network
KR20140056094A (en) Method for downloading content according to communication parameters, and associated content receiver
US8204987B2 (en) Providing reports of received multimedia programs
US11283852B2 (en) Methods and nodes for synchronized streaming of a first and a second data stream
CN114257771B (en) Video playback method and device for multipath audio and video, storage medium and electronic equipment
CN114422866B (en) Video processing method and device, electronic equipment and storage medium
EP3970384B1 (en) Method and apparatus for playing multimedia streaming data
CN110602442B (en) Method for realizing real-time code stream playing control in video monitoring system
CN114244843A (en) Streaming media downloading method, electronic equipment and storage medium
JP2009170985A (en) On-demand data distribution 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210628

Address after: 300467 917-2, Chuangzhi building, 482 Zhongxin eco city, Binhai New Area, Tianjin

Patentee after: Tianjin Zhirong Innovation Technology Development Co.,Ltd.

Address before: 100089 room 6184, 6th floor, building 19, 68 Xueyuan South Road, Haidian District, Beijing

Patentee before: LE HOLDINGS (BEIJING) Co.,Ltd.

TR01 Transfer of patent right