CN104702563A - Method and device for acquiring streaming media play time - Google Patents

Method and device for acquiring streaming media play time Download PDF

Info

Publication number
CN104702563A
CN104702563A CN201310650006.9A CN201310650006A CN104702563A CN 104702563 A CN104702563 A CN 104702563A CN 201310650006 A CN201310650006 A CN 201310650006A CN 104702563 A CN104702563 A CN 104702563A
Authority
CN
China
Prior art keywords
player
streaming media
abnormal
broadcast state
time information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310650006.9A
Other languages
Chinese (zh)
Other versions
CN104702563B (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 a method and device for acquiring streaming media play time. The method comprises the following steps: controlling a player to play streaming media in response to an operating command of a user, and acquiring the starting time information of streaming media play; monitoring the play state of the player while the player plays the streaming media; if the play state abnormity of the player is monitored, acquiring the time information of the play state abnormity of the player in order to obtain abnormity time information; at the end of the streaming media play, acquiring the end time information of the streaming media play; and computing the actual play time of the streaming media according to the end time information, the starting time information and the abnormity time information. Through the method and the device, the actual time computation of the streaming media play can be more accurate.

Description

The acquisition methods of streaming media playing duration and device
Technical field
The present invention relates to technical field of video processing, specifically, the particularly acquisition methods of streaming media playing duration and device.
Background technology
Streaming Media refers in a streaming manner the form of transmission of audio, video and multimedia file in a network.Its transmission means is that the multimedia files such as Audio and Video are divided into compressed package one by one through special compress mode, is transmitted continuously, in real time to user terminal by streaming media server.
In the system adopting streaming manner, user need not wait until that whole file just can see central content after all downloading as non-stream is play, but only need the start-up study through a few second or tens seconds that corresponding player can be utilized on the subscriber terminal to play streaming video files such as the video of compression or audio frequency, remaining part will proceed to download, until finish.
According to the source of streaming medium content, the broadcast mode of Streaming Media can be divided into program request and live two kinds: streaming media on demand is that content provider edits one section of content of multimedia in advance, compressed encoding, form the file of specified format, then be stored on streaming media server, user selects the content file on streaming media server to play as required.When live streaming media refers to user terminal playing stream media live content, the broadcasting moment of content is identical with the generation moment of content source event, namely streaming 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 is exactly the command word that timing notifies oneself definition of the other side oneself state between client and server, sends, be similar to heartbeat, so be called heartbeat packet according to certain time interval.
Press in duration charging method existing, the calculating of playing duration is based on heartbeat packet, but, because Streaming Media is that download limit, limit is play, due to the impact of the network bandwidth in playing process, and the operation of user, the special circumstances such as streaming media playing there will be time-out, card pauses, F.F., and cannot consider these special circumstances based on the duration calculation method of heartbeat packet, thus make the calculating of playing duration inaccurate.
For the problem obtaining streaming media playing duration poor accuracy in prior art based on heartbeat packet, at present effective solution is not yet proposed.
Summary of the invention
Main purpose of the present invention is the acquisition methods and the device that provide a kind of streaming media playing duration, to solve the problem obtaining streaming media playing duration poor accuracy in prior art based on heartbeat packet.
According to one aspect of the present invention, provide a kind of acquisition methods of streaming media playing duration, the method comprises: the operational order of response user, controls player plays Streaming Media, and obtains the start time information of streaming media playing; In the process of player plays Streaming Media, the broadcast state of monitoring player; If the broadcast state monitoring player is abnormal, then obtain the temporal information of the broadcast state exception of player, to obtain abnormal time information; At the end of streaming media playing, obtain the end time information of streaming media playing; And the actual play duration of Streaming Media is calculated according to end time information, start time information and abnormal time information.
Further, start time information comprises: the initial time of streaming media playing; End time information comprises: the finish time of streaming media playing; Abnormal time information comprises: player is in the duration of abnormal broadcast state, the actual play duration calculating Streaming Media according to end time information, start time information and abnormal time information comprises: the finish time calculating streaming media playing deducts the initial time of streaming media playing, deduct the difference that player is in the duration gained of abnormal broadcast state again, to obtain actual play duration.
Further, obtain the temporal information of the broadcast state exception of player, comprise to obtain abnormal time information: when the broadcast state of player is abnormal, obtain the initial time of the broadcast state exception of player; When the broadcast state of player recovers normal, obtain the finish time of the broadcast state exception of player; The finish time calculating broadcast state exception deducts 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, comprise to obtain abnormal time information: when the broadcast state of player is abnormal, timer resets and starts and starts timing; When the broadcast state of player recovers normal, terminate when controlling timer; Obtain the timing length of timer, to obtain the duration that player is in abnormal broadcast state.
Further, before the broadcast state of monitoring player, the method also comprises: the broadcast mode obtaining player, wherein, broadcast mode comprises: program request and live, and the broadcast state of monitoring player comprises: if broadcast mode is program request, then monitor player whether to be in card and to pause state or by the state pulled, wherein, if player is in a card state or by the state pulled, then the broadcast state of player is abnormal; If broadcast mode is live, then monitors player and whether be in a card state, wherein, if player is in a card state, then the broadcast state of player is abnormal.
According to one aspect of the present invention, provide a kind of acquisition device of streaming media playing duration.This device also comprises: respond module, for responding the operational order of user, controlling player plays Streaming Media, and obtaining the start time information of streaming media playing; Monitoring modular, in the process of player plays Streaming Media, the broadcast state of monitoring player; First acquisition module, for when the broadcast state monitoring player is abnormal, obtains the temporal information of the broadcast state exception of player, to obtain abnormal time information; Second acquisition module, at the end of streaming media playing, obtains the end time information of streaming media playing; And computing module, for calculating the actual play duration of Streaming Media according to end time information, start time information and abnormal time information.
Further, start time information comprises: the initial time of streaming media playing; End time information comprises: the finish time of streaming media playing; Abnormal time information comprises: player is in the duration of abnormal broadcast state; The finish time of computing module also for calculating streaming media playing deducts the initial time of streaming media playing, then deducts the difference that player is in the duration gained of abnormal broadcast state, to obtain actual play duration.
Further, the first acquisition module comprises: first obtains submodule, for when the broadcast state of player is abnormal, obtains the initial time of the broadcast state exception of player; Second obtains submodule, for when the broadcast state of player recovers normal, obtains the finish time of the broadcast state exception of player; Calculating sub module, the finish time for calculating broadcast state exception deducts time difference of the initial time of broadcast state exception, to obtain the duration that player is in abnormal broadcast state.
Further, the first acquisition module comprises: promoter module, and for when the broadcast state of player is abnormal, timer resets and starts and starts timing; Control submodule, for when the broadcast state of player recovers normal, terminate when controlling timer; 3rd obtains submodule, for obtaining the timing length of timer, to obtain the duration that player is in abnormal broadcast state.
Further, this device also comprises: the 3rd acquisition module, for obtaining the broadcast mode of player, wherein, broadcast mode comprises program request and live, monitoring modular comprises: the first monitoring submodule, for when broadcast mode is program request, whether monitoring player is in card is paused state or by the state pulled, wherein, if player is in a card state or by the state pulled, then the broadcast state of player is abnormal; Second monitoring submodule, during for being live at broadcast mode, whether monitoring player is in a card state, and wherein, if player is in a card state, then the broadcast state of player is abnormal.
By the present invention, when obtaining the actual play duration of Streaming Media, first respond the operational order of user, control player plays Streaming Media, and obtain the start time information of streaming media playing, at the end of streaming media playing, obtain the end time information of streaming media playing.Wherein, the broadcast state of Real-Time Monitoring player in the process of player plays Streaming Media, if it is abnormal to monitor broadcast state, then the temporal information of abnormal broadcast state is carried out record, 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 the impact of the network bandwidth, or when the operation of user occurs playing abnormal situation, these are play the calculated factor of abnormal temporal information as playing duration, make the calculating of playing duration accurate, solve the problem calculating streaming media playing duration poor accuracy in prior art based on heartbeat packet.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.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.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be further described.It is pointed out that when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Embodiment one
First, the embodiment of the present invention one provides a kind of acquisition methods of streaming media playing duration, and the method mainly describes the process calculating Streaming Media actual play duration, and see Fig. 1, the method can comprise the following steps:
Step S102: the operational order of response user, controls player plays Streaming Media, and obtains the start time information of streaming media playing.
User by terminal to streaming media server request video resource time, to terminal input operation order, terminal response operational order, receive the video resource of streaming media server real-time Transmission, start player and start playing stream media, such as, when user terminal is television set, television set is receiver, video resource on one side, starts player and plays.After player starts playing stream media, obtain the start time information of streaming media playing, this start time information can be current system time, also can be designated as start time, such as zero zero second etc.
Step S104: in the process of player plays Streaming Media, the broadcast state of monitoring player.
Preferably, an independently thread is started in broadcasting process, with in the process of playing stream media, the broadcast state of Real-Time Monitoring player, if player is in smooth broadcast state, then the broadcast state of player is normal, if due to the impact such as reduction, network transfer delay of the network bandwidth, player is in card, the disconnected broadcast state broadcast, and user can not normally watch, then the broadcast state of player is abnormal.
Step S106: if the broadcast state monitoring player is abnormal, then obtain the temporal information of the broadcast state exception of player, to obtain abnormal time information.
When monitoring player and being in abnormal broadcast state, record the temporal information of abnormal broadcast state, such as, system time when abnormal broadcast state occurs and at the end of system time, or the duration etc. that abnormal broadcast state continues.
Step S108: at the end of streaming media playing, obtains the end time information of streaming media playing.
Wherein, streaming media playing terminates may be because user's active termination uses business, streaming media playing is terminated, and also may be terminate due to disconnecting time-out between user terminal and streaming media server.
Step S110: the actual play duration calculating Streaming Media according to end time information, start time information and abnormal time information.
Wherein, according to the difference of the concrete manifestation form of end time information, start time information and abnormal time information, different computational methods can be adopted.
Such as, end time information, start time information and abnormal time information are system time, and wherein, start time information comprises the initial time of streaming media playing, and end time information comprises the finish time of streaming media playing.
When the broadcast state of player is abnormal, obtain the initial time of the broadcast state exception of player, when the broadcast state of player recovers normal, obtain the finish time of the broadcast state exception of player, the initial time being deducted broadcast state exception by the finish time of broadcast state exception obtains the duration that player is in abnormal broadcast state.Or when the broadcast state of player is abnormal, timer resets and starts and starts timing, when the broadcast state of player recovers normal, terminates when controlling timer, obtains the timing length of timer, obtain the duration that player is in abnormal broadcast state.
When calculating the actual play duration of Streaming Media, being deducted the initial time of streaming media playing by the finish time of streaming media playing, then deducting the difference that player is in the duration gained of abnormal broadcast state, to obtain actual play duration.
And for example, end time information, start time information and abnormal time information are the time of timer statistics.When player starts playing stream media, reset by the first timer and start timing, at the end of streaming media playing, terminating during the first timer, end time information is the current time of the first timer, as 1 time 30 points 28 seconds.When the broadcast state first time of player occurs abnormal, start the second timer and reset and start timing, when the broadcast state recovery of this exception is normal, terminate when controlling the second timer, such as, when now the time of the second timer is 00 point 20 seconds.When the broadcast state second time of player occurs abnormal, start the second timer and again start timing, when the broadcast state of this exception recovers normal, terminate when controlling the second timer, such as, when now the time of the second timer is 02 points 18 seconds, by that analogy, when each broadcast state occurs abnormal, start the second timer and carry out timing, until streaming media playing terminates.
When calculating the actual play duration of Streaming Media, obtain the duration in the first timer, when obtaining 1 30 points 28 seconds.Obtain the duration in the second timer again, when obtaining 02 points 18 seconds, thus when 1 30 points when within 28 seconds, deducting 02 points when within 18 seconds, obtaining 1 28 points 10 seconds, this time is just player this time playing stream media actual play duration of being.
The acquisition methods of the streaming media playing duration adopting this embodiment to provide, when calculating the actual play duration of Streaming Media, first the operational order of user is responded, control player plays Streaming Media, and obtain the start time information of streaming media playing, at the end of streaming media playing, obtain the end time information of streaming media playing.Wherein, the broadcast state of Real-Time Monitoring player in the process of player plays Streaming Media, if it is abnormal to monitor broadcast state, then the temporal information of abnormal broadcast state is carried out record, 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 the impact of the network bandwidth, or when the operation of user occurs playing abnormal situation, these are play the calculated factor of abnormal temporal information as playing duration, make the calculating of playing duration more accurate.
Embodiment two
This embodiment is the acquisition methods of preferred streaming media playing duration further on the basis of embodiment one, and see Fig. 2, the method can comprise the following steps:
Step S202: the operational order of response user, controls player plays Streaming Media, and obtains the initial time of streaming media playing.
Step S204: obtain the broadcast mode of player, wherein, broadcast mode comprises program request and live, if broadcast mode is program request, then performs step S206, if broadcast mode is live, then performs step S208.
Step S206: whether monitoring player is in card state or by the state pulled, wherein, to pause state or by the state pulled if player is in card, then the broadcast state exception of player.
Step S208: whether monitoring player is in a card state, wherein, if player is in a card state, then the broadcast state of player is abnormal.
Due to broadcast mode be program request time, in the process of player plays, allow the pulling of user.Thus, the abnormal broadcast state of player pauses except causing the card of broadcasting due to network condition, also may cause due to pulling of user to play to interrupt.
And broadcast mode is when being live, in the process of player plays, do not allow pulling of user, thus, when whether the state of monitoring player is abnormal, without the need to considering the situation that user pulls.
Step S210: if the broadcast state monitoring player is abnormal, then obtain the duration that player is in abnormal broadcast state.
Step S212: at the end of streaming media playing, obtains the finish time of streaming media playing.
Step S214: the finish time calculating streaming media playing deducts the initial time of streaming media playing, then deducts the difference that player is in the duration gained of abnormal broadcast state, to obtain actual play duration.
Adopting this preferred embodiment, when calculating actual play duration, according to the broadcast state of different broadcast modes monitoring player exception, making the calculating of playing duration more accurate.
It is more than the description that the acquisition methods of streaming media playing duration provided by the present invention is carried out.Be described to the acquisition device of streaming media playing duration provided by the invention below, it should be noted that, this device can be used for the acquisition methods performing any one streaming media playing duration above-mentioned.
Embodiment three
Corresponding with the acquisition methods of the streaming media playing duration that the embodiment of the present invention one provides, the embodiment of the present invention additionally provides a kind of acquisition device of streaming media playing duration, this device is positioned at the user terminals such as intelligent TV set, mobile phone, PAD, see Fig. 3, this device can comprise respond module 310, monitoring modular 320, first acquisition module 330, second acquisition module 340 and computing module 350.
Respond module 310, for responding the operational order of user, controls player plays Streaming Media, and obtains the start time information of streaming media playing.
User by terminal to streaming media server request video resource time, to terminal input operation order, respond module 310 responds this operational order, receives the video resource of streaming media server real-time Transmission, start player start playing stream media.
Such as, when user terminal is television set, after television set networking, user operation remote controller makes television set enter the application page, opens the application of streaming media playing, starts the broadcasting of Streaming Media, television set sends the request of video resource to streaming media server, streaming media server carries out resource and issues, thus television set receiver, video resource, play while start player.After player starts playing stream media, obtain the start time information of streaming media playing.
Monitoring modular 320, in the process of player plays Streaming Media, monitors the broadcast state of player.
Preferably, this monitoring modular 320 can be the thread of an independent startup in broadcasting process, with in the process of playing stream media, the broadcast state of Real-Time Monitoring player, if player is in smooth broadcast state, then the broadcast state of player is normal, if due to the impact such as reduction, network transfer delay of the network bandwidth, player is in card, the disconnected broadcast state broadcast, and user can not normally watch, then the broadcast state of player is abnormal.
First acquisition module 330, for when the broadcast state monitoring player is abnormal, obtains the temporal information of the broadcast state exception of player, to obtain abnormal time information.
Monitoring modular 320 monitor player be in abnormal broadcast state time, first acquisition module 330 records the temporal information of abnormal broadcast state, such as, system time when abnormal broadcast state occurs and at the end of system time, or the duration etc. that abnormal broadcast state continues.
Second acquisition module 340, at the end of streaming media playing, obtains the end time information of streaming media playing.
Wherein, streaming media playing terminates may be because user's active termination uses business, streaming media playing is terminated, and also may be terminate due to disconnecting time-out between user terminal and streaming media server.
Computing module 350, for calculating the actual play duration of Streaming Media according to end time information, start time information and abnormal time information.
Wherein, according to the difference of the concrete manifestation form of end time information, start time information and abnormal time information, different computational methods can be adopted.Concrete computational methods are existing in embodiment one to be described, and repeats no more herein.
The acquisition device of the streaming media playing duration adopting this embodiment to provide, when calculating the actual play duration of Streaming Media, first respond module 310 responds the operational order of user, control player plays Streaming Media, and obtain the start time information of streaming media playing, at the end of streaming media playing, the second acquisition module 340 obtains the end time information of streaming media playing.Wherein, in the process of player plays Streaming Media, the broadcast state of monitoring modular 320 Real-Time Monitoring player, if it is abnormal to monitor broadcast state, then the temporal information of abnormal broadcast state is carried out record by the first acquisition module 330, when calculating actual play duration, computing module 350 is according to end time information, start time information and abnormal time information calculate, thus in the playing process of Streaming Media, if due to the impact of the network bandwidth, or when the operation of user occurs playing abnormal situation, these are play the calculated factor of abnormal temporal information as playing duration, make the calculating of playing duration more accurate.
Preferably, start time information comprises the initial time of streaming media playing, and end time information comprises the finish time of streaming media playing, and this initial time and finish time all can adopt system time.Abnormal time information comprises the duration that player is in abnormal broadcast state, and when player is repeatedly in abnormal broadcast state, abnormal time information is repeatedly the sum of abnormal broadcast state duration.Computing module 350 is when calculating the actual play duration of Streaming Media, the finish time of streaming media playing is utilized to deduct the initial time of streaming media playing, deduct the difference that player is in the duration gained of abnormal broadcast state again, reject from the time of whole player plays with time player being in abnormal broadcast state.
By the preferred embodiment, in calculating playing duration accurately basis, provide a kind of simple acquisition methods.
Further preferably, the first acquisition module 330, when obtaining player and being in the duration of abnormal broadcast state, according to the difference of user terminal, can realize in different ways.
Such as, the first acquisition module 330 comprises the first acquisition submodule, the second acquisition submodule and calculating sub module.Wherein, first obtains submodule is used for when the broadcast state of player is abnormal, the initial time of the broadcast state exception of acquisition player.Second obtains submodule is used for, when the broadcast state of player recovers normal, obtaining the finish time of the broadcast state exception of player.Calculating sub module, the finish time for calculating broadcast state exception deducts the difference of the time span of the initial time of broadcast state exception, to obtain the duration that player is in abnormal broadcast state.
And for example, the first acquisition module 330 comprises promoter module, controls submodule and the 3rd acquisition submodule.Wherein, promoter module is used for when the broadcast state of player is abnormal, and timer resets and starts and starts timing.Control submodule to be used for, when the broadcast state of player recovers normal, terminating when controlling timer.3rd obtains submodule for obtaining the timing length of timer, to obtain the duration that player is in abnormal broadcast state.
Preferably, this device can also comprise the 3rd acquisition module, and this acquisition module is for obtaining the broadcast mode of player, and wherein, broadcast mode comprises program request and live, and when broadcast mode is different, monitoring modular 320 adopts different monitoring modes.
Particularly, monitoring modular 320 comprises the first monitoring submodule and the second monitoring submodule, wherein, first monitoring submodule is used for when broadcast mode is program request, whether monitoring player is in card is paused state or by the state pulled, wherein, if player is in a card state or by the state pulled, then the broadcast state of player is abnormal.Second monitoring submodule, during for being live at broadcast mode, whether monitoring player is in a card state, and wherein, if player is in a card state, then the broadcast state of player is abnormal.
Due to broadcast mode be program request time, in the process of player plays, allow the pulling of user.Thus, the abnormal broadcast state of player pauses except causing the card of broadcasting due to network condition, also may cause due to pulling of user to play to interrupt.And broadcast mode is when being live, in the process of player plays, do not allow pulling of user, thus, when whether the state of monitoring player is abnormal, without the need to considering the situation that user pulls.
Adopting this preferred embodiment, when calculating actual play duration, according to the broadcast state of different broadcast modes monitoring player exception, making the calculating of playing duration more accurate.
From the description of above each embodiment, can find out, the embodiment of the present invention achieves following technique effect: the broadcast state of Real-Time Monitoring player in the process of player plays Streaming Media, if it is abnormal to monitor broadcast state, then the temporal information of abnormal broadcast state is carried out record, when calculating actual play duration, calculating according to end time information, start time information and abnormal time information, making the calculating of playing duration more accurate.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, any people being familiar with this technology is in the technical scope disclosed by the present invention; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. an acquisition methods for streaming media playing duration, is characterized in that, comprising:
The operational order of response user, controls player plays Streaming Media, and obtains the start time information of described streaming media playing;
In the process of described player plays Streaming Media, monitor the broadcast state of described player;
If the broadcast state monitoring described player is abnormal, then obtain the temporal information of the broadcast state exception of described player, to obtain abnormal time information;
At the end of described streaming media playing, obtain the end time information of described streaming media playing; And
The actual play duration of described Streaming Media is calculated according to described end time information, described start time information and described abnormal time information.
2. the acquisition methods of streaming media playing duration according to claim 1, is characterized in that, described start time information comprises: the initial time of described streaming media playing; Described end time information comprises: the finish time of described streaming media playing; Described abnormal time information comprises: described player is in the duration of abnormal broadcast state, and the actual play duration calculating described Streaming Media according to described end time information, described start time information and described abnormal time information comprises:
The finish time calculating described streaming media playing deducts the initial time of described streaming media playing, then deducts the difference that described player is in the duration gained of abnormal broadcast state, to obtain described actual play duration.
3. the acquisition methods of streaming media playing duration according to claim 2, is characterized in that, obtains the temporal information of the broadcast state exception of described player, comprises to obtain abnormal time information:
When the broadcast state of described player is abnormal, obtain the initial time of the broadcast state exception of described player;
When the broadcast state of described player recovers normal, obtain the finish time of the broadcast state exception of described player;
The finish time calculating described broadcast state exception deducts the time difference of the initial time of described broadcast state exception, to obtain the duration that described player is in abnormal broadcast state.
4. the acquisition methods of streaming media playing duration according to claim 2, is characterized in that, obtains the temporal information of the broadcast state exception of described player, comprises to obtain abnormal time information:
When the broadcast state of described player is abnormal, timer resets and starts and starts timing;
When the broadcast state of described player recovers normal, terminate when controlling timer;
Obtain the timing length of described timer, to obtain the duration that described player is in abnormal broadcast state.
5. the acquisition methods of streaming media playing duration according to any one of claim 1 to 5, is characterized in that,
Before the broadcast state of the described player of monitoring, described method also comprises: the broadcast mode obtaining described player, and wherein, described broadcast mode comprises: program request and live,
The broadcast state of monitoring described player comprises: if described broadcast mode is program request, then monitor described player and whether be in card state or by the state pulled, wherein, if described player is in a card state or by the state pulled, then the broadcast state of described player is abnormal; If described broadcast mode is live, then monitors described player and whether be in a card state, wherein, if described player is in a card state, then the broadcast state of described player is abnormal.
6. an acquisition device for streaming media playing duration, is characterized in that, comprising:
Respond module, for responding the operational order of user, controlling player plays Streaming Media, and obtaining the start time information of described streaming media playing;
Monitoring modular, in the process of described player plays Streaming Media, monitors the broadcast state of described player;
First acquisition module, for when the broadcast state monitoring described player is abnormal, obtains the temporal information of the broadcast state exception of described player, to obtain abnormal time information;
Second acquisition module, at the end of described streaming media playing, obtains the end time information of described streaming media playing; And
Computing module, for calculating the actual play duration of described Streaming Media according to described end time information, described start time information and described abnormal time information.
7. the acquisition device of streaming media playing duration according to claim 1, is characterized in that, described start time information comprises: the initial time of described streaming media playing; Described end time information comprises: the finish time of described streaming media playing; Described abnormal time information comprises: described player is in the duration of abnormal broadcast state; The finish time of described computing module also for calculating described streaming media playing deducts the initial time of described streaming media playing, then deducts the difference that described player is in the duration gained of abnormal broadcast state, to obtain described actual play duration.
8. the acquisition device of streaming media playing duration according to claim 7, is characterized in that, described first acquisition module comprises:
First obtains submodule, for when the broadcast state of described player is abnormal, obtains the initial time of the broadcast state exception of described player;
Second obtains submodule, for when the broadcast state of described player recovers normal, obtains the finish time of the broadcast state exception of described player;
Calculating sub module, the finish time for calculating described broadcast state exception deducts time difference of the initial time of described broadcast state exception, to obtain the duration that described player is in abnormal broadcast state.
9. the acquisition device of streaming media playing duration according to claim 7, is characterized in that, described first acquisition module comprises:
Promoter module, for when the broadcast state of described player is abnormal, timer resets and starts and starts timing;
Control submodule, for when the broadcast state of described player recovers normal, terminate when controlling timer;
3rd obtains submodule, for obtaining the timing length of described timer, to obtain the duration that described player is in abnormal broadcast state.
10. the acquisition device of the streaming media playing duration according to any one of claim 6 to 9, is characterized in that,
Described device also comprises: the 3rd acquisition module, and for obtaining the broadcast mode of described player, wherein, described broadcast mode comprises program request and live,
Described monitoring modular comprises: the first monitoring submodule, for when described broadcast mode is program request, monitors described player and whether be in card state or by the state pulled, wherein, if described player is in a card state or by the state pulled, then the broadcast state of described player is abnormal; Second monitoring submodule, during for being live at described broadcast mode, monitoring described player and whether being in a card state, and wherein, if described player is in a card state, then the broadcast state of described player is abnormal.
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 true CN104702563A (en) 2015-06-10
CN104702563B 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)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681212A (en) * 2016-03-21 2016-06-15 广州盈可视电子科技有限公司 Video playing state monitoring method and device
CN105893247A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Player test method, device and system
CN105893246A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Player test method, device and system
CN105912705A (en) * 2016-04-27 2016-08-31 乐视控股(北京)有限公司 Acquisition method and device of multimedia file playing duration
CN107071522A (en) * 2017-05-17 2017-08-18 聚好看科技股份有限公司 Multimedia program request amount recording method and device, server
CN107844285A (en) * 2017-11-03 2018-03-27 中广热点云科技有限公司 A kind of giant-screen scenic picture splicing display method
CN108882056A (en) * 2018-07-18 2018-11-23 深圳市茁壮网络股份有限公司 Streaming media playing condition detection method and device
CN109996117A (en) * 2019-03-04 2019-07-09 青岛海信传媒网络技术有限公司 A kind of method and apparatus obtaining streaming media playing duration
CN105933732B (en) * 2016-06-14 2019-08-27 天脉聚源(北京)传媒科技有限公司 A kind of video playing duration statistical method and system
CN110602561A (en) * 2019-08-01 2019-12-20 何晨亮 Payment method and system of network video platform based on user watching degree
CN111045914A (en) * 2018-10-11 2020-04-21 北京国双科技有限公司 Player test method, device, medium and equipment
CN111327964A (en) * 2018-12-17 2020-06-23 中国移动通信集团北京有限公司 Method and equipment for positioning video playing card pause
CN112073714A (en) * 2020-09-09 2020-12-11 福建新大陆软件工程有限公司 Video playing quality automatic detection method, device, equipment and readable storage medium
CN113949894A (en) * 2021-10-18 2022-01-18 上海哔哩哔哩科技有限公司 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
CN114173195A (en) * 2021-12-10 2022-03-11 聚好看科技股份有限公司 Display device and method for counting effective playing time of media assets

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143673A1 (en) * 2003-01-18 2004-07-22 Kristjansson Trausti Thor Multimedia linking and synchronization method, presentation and editing apparatus
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
US20130304776A1 (en) * 2009-11-23 2013-11-14 Clear Channel Management Services, Inc. Managing under-filled spot blocks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143673A1 (en) * 2003-01-18 2004-07-22 Kristjansson Trausti Thor Multimedia linking and synchronization method, presentation and editing apparatus
CN101631389A (en) * 2009-07-28 2010-01-20 中兴通讯股份有限公司 Method and system for playing abnormal prompt tone media of IP multimedia subsystem
US20130304776A1 (en) * 2009-11-23 2013-11-14 Clear Channel Management Services, Inc. Managing under-filled spot blocks
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

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893247A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Player test method, device and system
CN105893246A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Player test method, device and system
CN105681212A (en) * 2016-03-21 2016-06-15 广州盈可视电子科技有限公司 Video playing state monitoring method and device
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
CN107844285A (en) * 2017-11-03 2018-03-27 中广热点云科技有限公司 A kind of giant-screen scenic picture splicing display method
CN107844285B (en) * 2017-11-03 2020-09-08 中广热点云科技有限公司 Large screen scene picture splicing display method
CN108882056A (en) * 2018-07-18 2018-11-23 深圳市茁壮网络股份有限公司 Streaming media playing condition detection method and device
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
CN111327964A (en) * 2018-12-17 2020-06-23 中国移动通信集团北京有限公司 Method and equipment for positioning video playing card pause
CN109996117A (en) * 2019-03-04 2019-07-09 青岛海信传媒网络技术有限公司 A kind of method and apparatus obtaining streaming media playing duration
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
CN113949894A (en) * 2021-10-18 2022-01-18 上海哔哩哔哩科技有限公司 Live broadcast related duration recording method and device
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
CN114173195A (en) * 2021-12-10 2022-03-11 聚好看科技股份有限公司 Display device and method for counting effective playing time of media assets
CN114173195B (en) * 2021-12-10 2024-04-12 聚好看科技股份有限公司 Display equipment and method for counting effective playing time of media assets

Also Published As

Publication number Publication date
CN104702563B (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN104702563A (en) Method and device for acquiring streaming media play time
US11627351B2 (en) Synchronizing playback of segmented video content across multiple video playback devices
KR102296064B1 (en) Reception device, reception method, transmission device, and transmission method
US20180063213A1 (en) Hypermedia Apparatus and Method
CN106791956B (en) Network live broadcast card pause processing method and device
CN111010614A (en) Method, device, server and medium for displaying live caption
CN106998485B (en) Video live broadcasting method and device
CN108347580B (en) Method for processing video frame data and electronic equipment
KR20100106383A (en) Apparatus and method for simulcast over a variable bandwidth channel
CN104125482A (en) Streaming media playing method and device
CN113891175B (en) Live broadcast push flow method, device and system
CN106375859B (en) A kind of media processing method, device and terminal
CN113225585A (en) Video definition switching method and device, electronic equipment and storage medium
CN111200757A (en) Video playing method, set top box, system and storage medium
CN110662017B (en) Video playing quality detection method and device
CN106658065B (en) Audio and video synchronization method, device and system
JP2014090419A (en) Method for downloading content according to communication parameter, and related content receiver
WO2012034430A1 (en) Method and device for controlling bandwidth of set top boxes in internet protocol television (iptv) system
CN114257771A (en) Video playback method and device for multi-channel audio and video, storage medium and electronic equipment
CN104869474A (en) Expansible mobile streaming media system and application method thereof
CN110572703A (en) Multimedia data synchronous playing method, system, terminal and storage medium
CN113556612A (en) Method and system for playing H.265 video stream on browser
CN112565906A (en) On-demand video processing method and system
CN104780124A (en) Resource management method for dynamically adjusting reserved bandwidth by time interval
WO2015086222A1 (en) Process for increasing the resolution and the visual quality of video streams exchanged between users of a video conference service

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