CN107682713A - media file playing method and device - Google Patents
media file playing method and device Download PDFInfo
- Publication number
- CN107682713A CN107682713A CN201710233299.9A CN201710233299A CN107682713A CN 107682713 A CN107682713 A CN 107682713A CN 201710233299 A CN201710233299 A CN 201710233299A CN 107682713 A CN107682713 A CN 107682713A
- Authority
- CN
- China
- Prior art keywords
- target
- file
- video file
- target video
- media file
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000009877 rendering Methods 0.000 claims description 2
- 230000004044 response Effects 0.000 abstract description 12
- 238000003780 insertion Methods 0.000 abstract description 3
- 230000037431 insertion Effects 0.000 abstract description 3
- 230000004048 modification Effects 0.000 description 12
- 238000012986 modification Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 230000008859 change Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000001788 irregular Effects 0.000 description 4
- 239000007787 solid Substances 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000008439 repair process Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 230000002194 synthesizing effect Effects 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000002513 implantation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4621—Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of media file playing method and device.Wherein, this method includes:The playing request that target video file is played in client end of playing back is obtained, wherein, the file identification of target video file is carried in playing request;Response playing request obtains the played data for the target video file that file identification is identified respectively, and there is the target media file of incidence relation with target video file, wherein, the played data of target video file includes target video file and the configuration information for indicating incidence relation;The broadcasting content of target media file is drawn in the broadcasting content of target video file according to configuration information, wherein, the part in coverage goal video file is played content by the broadcasting content of target media file.The present invention solves the insertion that prior art provided and plays the relatively low technical problem of playing efficiency present in media file.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of media file playing method and device.
Background technology
Nowadays, during positive video file is played by client end of playing back, some can usually be used for by server
The paster media file of popularization is combined together with positive video file, a complete video flowing is formed, with the shape of flow data
Formula is sent to client end of playing back and played out.
That is, client end of playing back is after above-mentioned flow data is got in presently relevant technology, in playing process, such as
Paster media file need to be changed, can only by way of recombining new paster media file and positive video file, with for
The flow data changed in whole video flowing, and can not realize and the paster media file being incorporated in timely is changed, repair
It is complex to change operation, so as to cause the playing efficiency of media file to become the problem of relatively low.
For it is above-mentioned the problem of, not yet propose effective solution at present.
The content of the invention
The embodiments of the invention provide a kind of media file playing method and device, is provided with least solving prior art
Insertion play the relatively low technical problem of playing efficiency present in media file.
One side according to embodiments of the present invention, there is provided a kind of media file playing method, including:Acquisition is playing
The playing request of client terminal playing target video file, wherein, above-mentioned target video file is carried in above-mentioned playing request
File identification;Respond the broadcasting number that above-mentioned playing request obtains the above-mentioned target video file that above-mentioned file identification is identified respectively
According to, and there is with above-mentioned target video file the target media file of incidence relation, wherein, above-mentioned target video file it is above-mentioned
Played data includes above-mentioned target video file and the configuration information for indicating above-mentioned incidence relation;According to above-mentioned configuration information
The broadcasting content of above-mentioned target media file is drawn in the broadcasting content of above-mentioned target video file, wherein, above-mentioned target matchmaker
The part covered in above-mentioned target video file is played content by the broadcasting content of body file.
Another aspect according to embodiments of the present invention, a kind of playback of media files device is additionally provided, including:First obtains
Unit, the playing request of target video file is played in client end of playing back for obtaining, wherein, carried in above-mentioned playing request
The file identification of above-mentioned target video file;Second acquisition unit, above-mentioned file is obtained respectively for responding above-mentioned playing request
The played data of the above-mentioned target video file identified, and there is with above-mentioned target video file the target of incidence relation
Media file, wherein, the above-mentioned played data of above-mentioned target video file includes above-mentioned target video file and for instruction
State the configuration information of incidence relation;Broadcast unit is drawn, for the broadcasting in above-mentioned target video file according to above-mentioned configuration information
The broadcasting content that above-mentioned target media file is drawn in content is put, wherein, the broadcasting content of above-mentioned target media file will cover
Part in above-mentioned target video file plays content.
In embodiments of the present invention, response playing request obtain respectively asked target video file and with the target
After target media file corresponding to video file, according to the configuration information got, the mesh played in client end of playing back is realized
The broadcasting content that target media file is drawn in the broadcasting content of video file is marked, wherein, the broadcasting content of target media file
Part in coverage goal video file is played into content.Target video file and target medium are being got respectively so as to realize
After file, the content of target media file is plotted in the broadcasting content of target video file according to configuration information, without
Being limited to again can only be by recombining new paster media file and positive video file, to replace the fluxion in whole video flowing
According to mode, can not realize the paster media file being incorporated in timely is changed to overcome, modification operation is more
Complexity, and then the problem of influence playing efficiency;Multiple mesh are played in addition, can be drawn in the broadcasting content of target video file
Media file is marked, further improves the playing efficiency of media file.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of application environment schematic diagram of optional media file playing method according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of optional media file playing method according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram of optional media file playing method according to embodiments of the present invention;
Fig. 4 is the schematic diagram of the optional media file playing method of another kind according to embodiments of the present invention;
Fig. 5 is a kind of schematic diagram of optional playback of media files device according to embodiments of the present invention;
Fig. 6 is the schematic diagram of another optional media file playing method according to embodiments of the present invention;
Fig. 7 is a kind of schematic diagram of optional playback of media files terminal according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
In embodiments of the present invention, there is provided a kind of embodiment of above-mentioned media file playing method.As a kind of optional
Embodiment, the media file playing method can be, but not limited to be applied to application environment as shown in Figure 1 in, terminal 102
Upper operation has client end of playing back, and the terminal 102 is got after the playing request that client end of playing back plays target video file,
Wherein, the file identification of target video file is carried in the playing request, responds the playing request by network 104 from service
Device 106 obtains the played data for the target video file that above-mentioned file identification is identified respectively, and has with target video file
The target media file of incidence relation, wherein, the played data of above-mentioned target video file includes target video file, and
For indicating the configuration information of above-mentioned incidence relation.Then, terminal 102 according to above-mentioned configuration information broadcasting in target video file
The broadcasting content that above-mentioned target media file is drawn in content is put, wherein, the broadcasting content of target media file is by coverage goal
Part in video file plays content.It should be noted that above-mentioned target media file can be located at above-mentioned video file
Identical server, different servers can also be located at.Above-mentioned is only a kind of example, and any limit is not done to this in the present embodiment
It is fixed.
In the present embodiment, asked target video file and mesh corresponding with the target video file are being obtained respectively
After marking media file, according to the configuration information got, the broadcasting of the target video file played in client end of playing back is realized
The broadcasting content of target media file is drawn in content, wherein, the broadcasting content of target media file is literary by coverage goal video
Part in part plays content.So as to realize after target video file and target media file is got respectively, according to
The content of target media file is plotted in the broadcasting content of target video file by confidence breath, and is no longer confined to that weight can only be passed through
New paster media file and positive video file are newly combined, in a manner of replacing the flow data in whole video flowing, to overcome
It can not realize and the paster media file being incorporated in timely is changed, modification operation is complex, and then influences to broadcast
The problem of putting efficiency;Multiple target media files are played in addition, can be drawn in the broadcasting content of target video file, enter one
Step improves the playing efficiency of media file.
Alternatively, in the present embodiment, above-mentioned terminal can include but is not limited at least one of:Mobile phone, flat board electricity
Brain, notebook computer, desktop PC and DTV other be used for playback of media files hardware device.Above-mentioned network can wrap
Include but be not limited at least one of:Wide area network, Metropolitan Area Network (MAN), LAN.Above-mentioned simply a kind of example, the present embodiment are not done to this
Any restriction.
According to embodiments of the present invention, there is provided a kind of media file playing method, as shown in Fig. 2 this method includes:
S202, the playing request that target video file is played in client end of playing back is obtained, wherein, carried in playing request
The file identification of target video file;
S204, response playing request obtain the played data of the target video file that file identification is identified respectively, and with
Target video file has the target media file of incidence relation, wherein, the played data of target video file regards including target
Frequency file and the configuration information for indicating incidence relation;
S206, drawn according to configuration information in the broadcasting content of target video file in the broadcasting of target media file
Hold, wherein, the part in coverage goal video file is played content by the broadcasting content of target media file.
Alternatively, in the present embodiment, above-mentioned media file playing method can be, but not limited to be applied to video playback visitor
Family end, wherein, the video playback client can be the video playback application in terminal, or embedded in webpage
Video playback plug-in unit.On the other hand, any restriction is not done in the present embodiment.It should be noted that in the present embodiment, to server
The type for the target media file launched is not specifically limited, and the target media file that above-mentioned server is launched can be video
Any combination of file, audio file, picture file or text etc. or this several file, for example, text
With the combination of picture file, combination of video file and text etc..Wherein, for example, the target media file can be
Applied to the class pressure stream advertisement in video playback client, being plotted on positive video.Above-mentioned is only a kind of example, the present embodiment
In do not do any restriction to this.
It should be noted that in the present embodiment, asked target video file is obtained respectively in response playing request
And after target media file corresponding with the target video file, according to the configuration information got, realize and playing client
The broadcasting content that target media file is drawn in the broadcasting content of the target video file played is held, wherein, target media file
Broadcasting content by coverage goal video file part play content.Target video file is being got respectively so as to realize
And after target media file, the content of target media file is plotted in the broadcasting of target video file according to configuration information
Rong Shang, and be no longer confined to can only be by recombining new paster media file and positive video file, to replace whole video
The mode of flow data in stream, it can not realize the paster media file being incorporated in timely is changed to overcome, repair
The problem of it is complex to change operation, and then influences playing efficiency;In addition, it can be drawn in the broadcasting content of target video file
Multiple target media files are played, further improve the playing efficiency of media file.
Furthermore, it is necessary to explanation, for common pressure files in stream media in correlation technique, often by media file with
Video file forms video flowing by pressing stream mode to be synthesized in same video source, so that client end of playing back is when playing, directly
Connect the flow data in the video flowing after playing synthesis.However, by synthesizing the content to be played with video file, because
And when needing the material of redjustment and modification media file, it is necessary to new video source is synthesized by way of pressing stream again, is formed
New video flowing, so not only complex operation, it is unfavorable for modification extension, and playing efficiency will be largely effected on.In the present embodiment
In, by obtaining target video file and target media file respectively, using the configuration information for indicating the two incidence relation,
The broadcasting control to target media file is realized, allows target media file and target video file association, but independently of mesh
Video file is marked, without performing synthetic operation, while operation is simplified, the result of broadcast of class pressure stream is realized, so as to reach
To the effect for improving playing efficiency.Further, since target media file is to be plotted in target video text in addition in client end of playing back
Part, thus, the modification that would be even more beneficial to the content, quantity of pair target media file to match with target video file is replaced
Change, improve the autgmentability of broadcasting, in order to draw the target media file of more multi-form contents, further increase media
The playing efficiency of file.
In other words, in the present embodiment, using for indicating target video file and target media file incidence relation
Configuration information, realize to the association between two independent files, so as to remain pressure files in stream media demonstrate one's ability and it is special
Property, such as target media file is played out in client end of playing back independently of target video file, without pause
Target video file;Further, it is also possible to receive the clicking operation performed to the target media file played in client end of playing back, hold
Operated corresponding to row, to reach interactive, report the purpose of specified data, and then make up and playing the situation of pressure files in stream media
Under, existing data processing amount is larger, reports the problems such as difficulty.
Alternatively, in the present embodiment, before the playing request for playing target video file is obtained, configured in server
The above-mentioned configuration information for being used to indicate the incidence relation between target video file and target media file, wherein, above-mentioned configuration
Information can include but is not limited at least one of:The broadcasting initial time of target media file, target media file are being broadcast
Put the play frame rate of the display location of client, the play mode of target media file and target media file.Wherein, it is above-mentioned to broadcast
Mode playback can include but is not limited to:Mouth is broadcast, footmark, scene are implanted into, tear page etc..Above-mentioned display location can be, but not limited to basis
It is arranged in the broadcast interface of client end of playing back and is determined relative to the abscissa and ordinate of reference point.Above-mentioned is only that one kind is shown
, do not do any restriction to this in the present embodiment.
Alternatively, in the present embodiment, the play frame rate of above-mentioned target media file can be, but not limited to and target video
The play frame rate of file is different, can also but be not limited to identical with the play frame rate of target video file.For example, by configuring
Configure target media file in information to be plotted in client end of playing back according to the play frame rate of target video file, to ensure target
The result of broadcast of media file.For example, as shown in figure 3, getting target video file, target media file and relevant configuration
After information, when target video file is played to predetermined broadcasting moment 30s, mesh is drawn in predetermined display positions (such as figure lower right corner)
Media file is marked, wherein, the part of the target media file coverage goal video file plays content.
That is, in the present embodiment, initial time is played in identical, can be, but not limited in target video file
Play and draw one or more target media files in content, wherein, the playing durations of above-mentioned multiple target media files can be with
It is identical, can also be different;The play mode of above-mentioned multiple target media files can be with identical, can also be different.In the present embodiment
Any restriction is not done to this.So that more various forms of target media files can be drawn in client end of playing back, to improve
The playing efficiency of target media file.
Alternatively, in the present embodiment, target matchmaker is drawn in the broadcasting content of target video file according to configuration information
The broadcasting content of body file includes:
1) in the case where including predetermined gray channel during configuration information indicates target media file, led to according to predetermined gray scale
The half-tone information configured in road draws the broadcasting content of target media file.
It should be noted that in the present embodiment, above-mentioned predetermined gray channel can be, but not limited to alpha channel
(Alpha Channel), the passage record transparence information by half-tone information, define transparent region, zone of opacity and half
Transparent region.That is, target media file is drawn according to different transparencies by above-mentioned predetermined gray channel, to realize
Target media file is drawn in nontransparent first object region, and target is put in transparent the second target area relaying continued broadcasting
Video file.So that target media file can include irregular edge solid on target video file, on
It is only a kind of example to state, and any restriction is not done to this in the present embodiment.
2) in the case where not including predetermined gray channel during configuration information indicates target media file, in specified rectangle region
The broadcasting content of target media file is drawn in domain.
It should be noted that in the present embodiment, except for showing the target matchmaker in above-mentioned specified rectangular area
The region of broadcasting content in body file, other background areas are black region.Above-mentioned is only a kind of example, right in the present embodiment
This does not do any restriction.
Alternatively, in the present embodiment, after getting to the download request of target video file, can be, but not limited to
When downloading target video file, above-mentioned target media file is synchronously downloaded to local, so that target video file and mesh
Mark media file can realize offline broadcasting.
Alternatively, in the present embodiment, the operational order generated in acquisition to target media file execution clicking operation
Afterwards, can be, but not limited to jump to the target interface associated with above-mentioned target media file.So as to be embodied as target medium text
Part configures redirected link, to jump to the interface associated with target media file, and then extends for display and target
The display space of the related content of media file, to improve display space utilization rate.
Alternatively, in the present embodiment, obtain be used for adjust target video file playing progress rate adjust instruction it
Afterwards, control targe media file and target video file be can be, but not limited to while adjust each self-corresponding playing progress rate.As incited somebody to action
The playing progress rate of target video file is adjusted to second from the first broadcasting moment and played the moment, while corresponding adjustment plays second
The broadcasting content for the target media file that moment is drawn.Above-mentioned is only a kind of example, during according to the broadcasting of target media file
Long and starting plays the playing progress rate for determining the target media file after adjustment at the moment.Any limit is not done in the present embodiment to this
It is fixed.
By the application provide embodiment, response playing request obtain respectively asked target video file and with
After target media file corresponding to the target video file, according to the configuration information got, realize and broadcast in client end of playing back
The broadcasting content of target media file is drawn in the broadcasting content for the target video file put, wherein, target media file is broadcast
Put content and the part in coverage goal video file is played into content.Target video file and mesh are being got respectively so as to realize
After marking media file, the content of target media file is plotted in the broadcasting content of target video file according to configuration information
On, and be no longer confined to can only be by recombining new paster media file and positive video file, to replace whole video flowing
In flow data mode, can not realize the paster media file being incorporated in timely is changed to overcome, change
Operate it is complex, and then influence playing efficiency the problem of;Broadcast in addition, can be drawn in the broadcasting content of target video file
Multiple target media files are put, further improve the playing efficiency of media file.
As a kind of optional scheme, target medium is drawn in the broadcasting content of target video file according to configuration information
The broadcasting content of file includes:
S1, in the case where including predetermined gray channel during configuration information indicates target media file, according to predetermined gray scale
The half-tone information configured in passage draws the broadcasting content of target media file.
Alternatively, in the present embodiment, target media file is drawn according to the half-tone information configured in predetermined gray channel
Broadcasting content include:
S21, half-tone information is designated as nontransparent region as first object region, drawn in first object region
The broadcasting content of target media file;
S22, half-tone information is designated as transparent region as the second target area, continued broadcasting is relayed in the second target area
Put the broadcasting content of target video file.
It should be noted that in the present embodiment, above-mentioned predetermined gray channel can be, but not limited to alpha channel
(Alpha Channel), the passage record transparence information by half-tone information, define transparent region, zone of opacity and half
Transparent region.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
Specifically illustrated with reference to shown in Fig. 3, it is assumed that by taking Alpha's Alpha passages as an example, pass through above-mentioned Alpha passages
Half-tone information instruction draws target media file according to different transparencies, is painted with realizing in nontransparent first object region
Target media file processed, and put target video file in transparent the second target area relaying continued broadcasting.So that target medium
File can include irregular edge solid on target video file, and to reduce, target video file is capped to be shown
Show region.
It should be noted that in the present embodiment, except for showing the target matchmaker in above-mentioned specified rectangular area
The region of broadcasting content in body file, other background areas are black region.For example, in target media file comprising Ah
In the case of your method Alpha passages, then the result of broadcast of the target media file of required drafting can be as shown in Figure 4.It is above-mentioned only
It is a kind of example, any restriction is not done to this in the present embodiment.
The embodiment provided by the application, by the drafting of predetermined gray channel control targe media file, to improve
Effect is drawn, reaches saving display space, improves the effect for showing utilization rate.
As a kind of optional scheme, during client end of playing back plays target video file, or client is being played
Before end plays target video file, or after client end of playing back plays target video file, in addition to:
S1, obtain the download request for asking download target video file;
S2, response download request download target video file and have the target medium of incidence relation with target video file
File, so that target video file and target media file play in the local of client end of playing back.
Specifically illustrated with reference to the example below, it is assumed that the download request for asking download target video file S is obtained,
Then client end of playing back will download target media file corresponding with target video file S while target video file S is downloaded
A and target media file B, wherein, configuration information indicates target media file A when the client end of playing back lower right corner is from predetermined broadcasting
Carve 5s to commence play out, playing duration 15s, and target media file B among the client end of playing back below open from playing moment 30s
Begin to play, playing duration 30s.
Further, it is assumed that in target media file S playing process (for example, playing progress rate is 30%), get and be used for
Target media file S download request is downloaded, then while client end of playing back will download above-mentioned target video file S, is downloaded
Target media file A and target media file B corresponding with target video file S, and locally playing target video file S's
During, draw above-mentioned target media file A and target media file B according to configuration information control.
The embodiment provided by the application, according to the configuration information got, while target video file is downloaded,
Corresponding target media file can be downloaded, so as to realize target media file and target video file can together with broadcast offline
Put, the problem of can only playing target media file in correlation technique offline to overcome.
As a kind of optional scheme, during client end of playing back plays target video file, in addition to:
S1, obtain the operational order that target media file is performed clicking operation and generated;
S2, response operational order jump to the target interface associated with target media file.
Alternatively, in the present embodiment, the target media file that client end of playing back is drawn can be, but not limited to configure phase
The redirected link of pass, so as to realize get to target media file perform clicking operation operational order after, redirect as
The associated target interface of target media file, wherein, the broadcasting content of target media file with it is interior shown by target interface
Hold for related content, for example, to belong to the content of same or similar theme.
The embodiment provided by the application, the target media file drawn by clicking on client end of playing back can be with
The target interface related to target media file is jumped to, so as to realize the effect of the display space of extension target media file.
As a kind of optional scheme, during client end of playing back plays target video file, in addition to:
S1, obtain the adjust instruction of the playing progress rate for adjusting target video file;
S2, response adjust instruction by the playing progress rate of target video file from first broadcasting the moment adjust to second play when
Carve, while the corresponding broadcasting content for adjusting the target media file drawn at the second broadcasting moment.
It should be noted that in the present embodiment, it can be, but not limited to control targe media file and target video file be same
When adjust each self-corresponding playing progress rate.
For example, it can be, but not limited to include following at least one adjustment adjustment situation:
1) the target media file playing duration drawn be more than or equal to second play the moment with first play the moment it
Between duration difference in the case of, then target video file adjust to second play the moment when, also target media file is adjusted
Draw media image frame corresponding with the above-mentioned second broadcasting moment;
2) it is less than second in the target media file playing duration drawn to play between moment and the first broadcasting moment
Duration difference, and the broadcasting initial time of target media file earlier than equal to first play the moment in the case of, then regarded in target
When frequency file was adjusted to the second broadcasting moment, target media file should have been completed to play according to playing progress rate, thus, playing
Client will no longer draw the media image frame of target media file;
3) it is less than second in the target media file playing duration drawn to play between moment and the first broadcasting moment
Duration difference, the broadcasting initial time of target media file was later than for the first broadcasting moment, and target media file completes what is played
In the case that moment plays the moment earlier than second, then when target video file adjusts and plays the moment to second, target medium text
Part should have been completed to play according to playing progress rate, thus, it will no longer draw the medium map of target media file in client end of playing back
As frame;
4) it is less than second in the target media file playing duration drawn to play between moment and the first broadcasting moment
Duration difference, the broadcasting initial time of target media file was later than for the first broadcasting moment, and target media file completes what is played
In the case that moment was later than for the second broadcasting moment, then when target video file adjusts and plays the moment to second, also by target matchmaker
Media image frame corresponding with the above-mentioned second broadcasting moment is drawn in the adjustment of body file.
By the application provide embodiment, get progress adjustment is played out to target video file adjustment it
Afterwards, while the playing progress rate of target video file is adjusted to the second broadcasting moment from the first broadcasting moment, corresponding adjustment
In the broadcasting content for the target media file that the second broadcasting moment was drawn, target media file synchronous adjustment is broadcast so as to realize
The effect of degree of putting into.
As a kind of optional scheme, drawing target media file in client end of playing back according to configuration information includes:
S1, according to configuration information when target video file was played to the predetermined broadcasting moment, in the predetermined of client end of playing back
Target media file is drawn according to predetermined play mode in display location.
Alternatively, in the present embodiment, above-mentioned play mode can include but is not limited to:Mouth is broadcast, footmark, scene are implanted into,
Tear page etc..Above-mentioned display location can be, but not limited to according to being configured in configuration information in the broadcast interface of client end of playing back
Determined relative to the abscissa and ordinate of reference point.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
That is, in the present embodiment, initial time is played in identical, can be, but not limited in target video file
Play and draw one or more target media files in content, wherein, the playing durations of above-mentioned multiple target media files can be with
It is identical, can also be different;The play mode of above-mentioned multiple target media files can be with identical, can also be different.So that play
More various forms of target media files can be drawn in client, to improve the playing efficiency of target media file.
The embodiment provided by the application, when target video file was played to the predetermined broadcasting moment, according to confidence
Breath draws target media file in predetermined play position according to predetermined play mode, consequently facilitating modification extension is in target video text
The quantity and pattern for the target media file that part is drawn, to improve the flexibility played.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of media file for being used to implement above-mentioned media file playing method is additionally provided to broadcast
Device is put, as shown in figure 5, the device includes:
1) first acquisition unit 502, the playing request of target video file is played in client end of playing back for obtaining, its
In, the file identification of target video file is carried in playing request;
2) second acquisition unit 504, the target video text for obtaining file identification respectively for responding playing request and being identified
The played data of part, and there is with target video file the target media file of incidence relation, wherein, target video file is broadcast
Putting data includes target video file and the configuration information for indicating incidence relation;
3) broadcast unit 506 is drawn, for drawing target in the broadcasting content of target video file according to configuration information
The broadcasting content of media file, wherein, the broadcasting content of target media file plays the part in coverage goal video file
Content.
Alternatively, in the present embodiment, above-mentioned playback of media files device can be, but not limited to be applied to video playback visitor
Family end, wherein, the video playback client can be the video playback application in terminal, or embedded in webpage
Video playback plug-in unit.On the other hand, any restriction is not done in the present embodiment.It should be noted that in the present embodiment, to server
The type for the target media file launched is not specifically limited, and the target media file that above-mentioned server is launched can be video
Any combination of file, audio file, picture file or text etc. or this several file, for example, text
With the combination of picture file, combination of video file and text etc..Wherein, for example, the target media file can be
Applied to the class pressure stream advertisement in video playback client, being plotted on positive video.Above-mentioned is only a kind of example, the present embodiment
In do not do any restriction to this.
It should be noted that in the present embodiment, asked target video file is obtained respectively in response playing request
And after target media file corresponding with the target video file, according to the configuration information got, realize and playing client
The broadcasting content that target media file is drawn in the broadcasting content of the target video file played is held, wherein, target media file
Broadcasting content by coverage goal video file part play content.Target video file is being got respectively so as to realize
And after target media file, the content of target media file is plotted in the broadcasting of target video file according to configuration information
Rong Shang, and be no longer confined to can only be by recombining new paster media file and positive video file, to replace whole video
The mode of flow data in stream, it can not realize the paster media file being incorporated in timely is changed to overcome, repair
The problem of it is complex to change operation, and then influences playing efficiency;In addition, it can be drawn in the broadcasting content of target video file
Multiple target media files are played, further improve the playing efficiency of media file.
Furthermore, it is necessary to explanation, for common pressure files in stream media in correlation technique, often by media file with
Video file forms video flowing by pressing stream mode to be synthesized in same video source, so that client end of playing back is when playing, directly
Connect the flow data in the video flowing after playing synthesis.However, by synthesizing the content to be played with video file, because
And when needing the material of redjustment and modification media file, it is necessary to new video source is synthesized by way of pressing stream again, is formed
New video flowing, so not only complex operation, it is unfavorable for modification extension, and playing efficiency will be largely effected on.In the present embodiment
In, by obtaining target video file and target media file respectively, using the configuration information for indicating the two incidence relation,
The broadcasting control to target media file is realized, allows target media file and target video file association, but independently of mesh
Video file is marked, without performing synthetic operation, while operation is simplified, the result of broadcast of class pressure stream is realized, so as to reach
To the effect for improving playing efficiency.Further, since target media file is to be plotted in target video text in addition in client end of playing back
Part, thus, the modification that would be even more beneficial to the content, quantity of pair target media file to match with target video file is replaced
Change, improve the autgmentability of broadcasting, in order to draw the target media file of more multi-form contents, further increase media
The playing efficiency of file.
In other words, in the present embodiment, using for indicating target video file and target media file incidence relation
Configuration information, realize to the association between two independent files, so as to remain pressure files in stream media demonstrate one's ability and it is special
Property, such as target media file is played out in client end of playing back independently of target video file, without pause
Target video file;Further, it is also possible to receive the clicking operation performed to the target media file played in client end of playing back, hold
Operated corresponding to row, to reach interactive, report the purpose of specified data, and then make up and playing the situation of pressure files in stream media
Under, existing data processing amount is larger, reports the problems such as difficulty.
Alternatively, in the present embodiment, before the playing request for playing target video file is obtained, configured in server
The above-mentioned configuration information for being used to indicate the incidence relation between target video file and target media file, wherein, above-mentioned configuration
Information can include but is not limited at least one of:The broadcasting initial time of target media file, target media file are being broadcast
Put the play frame rate of the display location of client, the play mode of target media file and target media file.Wherein, it is above-mentioned to broadcast
Mode playback can include but is not limited to:Mouth is broadcast, footmark, scene are implanted into, tear page etc..Above-mentioned display location can be, but not limited to basis
It is arranged in the broadcast interface of client end of playing back and is determined relative to the abscissa and ordinate of reference point.Above-mentioned is only that one kind is shown
, do not do any restriction to this in the present embodiment.
Alternatively, in the present embodiment, the play frame rate of above-mentioned target media file can be, but not limited to and target video
The play frame rate of file is different, can also but be not limited to identical with the play frame rate of target video file.Such as draw broadcast unit
506 include:Second drafting module, for being drawn according to the play frame rate of target video file in the broadcasting of target media file
Hold.For example, it is plotted to broadcasting according to the play frame rate of target video file by configuring target media file in configuration information
In client, to ensure the result of broadcast of target media file.As shown in figure 3, getting target video file, target medium
After file and relevant configuration information, when target video file is played to predetermined broadcasting moment 30s, in predetermined display positions (such as
The figure lower right corner) target media file is drawn, wherein, the part of the target media file coverage goal video file plays content.
That is, in the present embodiment, initial time is played in identical, can be, but not limited in target video file
Play and draw one or more target media files in content, wherein, the playing durations of above-mentioned multiple target media files can be with
It is identical, can also be different;The play mode of above-mentioned multiple target media files can be with identical, can also be different.In the present embodiment
Any restriction is not done to this.So that more various forms of target media files can be drawn in client end of playing back, to improve
The playing efficiency of target media file.
Alternatively, in the present embodiment, target matchmaker is drawn in the broadcasting content of target video file according to configuration information
The broadcasting content of body file includes:
1) in the case where including predetermined gray channel during configuration information indicates target media file, led to according to predetermined gray scale
The half-tone information configured in road draws the broadcasting content of target media file.
It should be noted that in the present embodiment, above-mentioned predetermined gray channel can be, but not limited to alpha channel
(Alpha Channel), the passage record transparence information by half-tone information, define transparent region, zone of opacity and half
Transparent region.That is, target media file is drawn according to different transparencies by above-mentioned predetermined gray channel, to realize
Target media file is drawn in nontransparent first object region, and target is put in transparent the second target area relaying continued broadcasting
Video file.So that target media file can include irregular edge solid on target video file, on
It is only a kind of example to state, and any restriction is not done to this in the present embodiment.
2) in the case where not including predetermined gray channel during configuration information indicates target media file, in specified rectangle region
The broadcasting content of target media file is drawn in domain.
It should be noted that in the present embodiment, except for showing the target matchmaker in above-mentioned specified rectangular area
The region of broadcasting content in body file, other background areas are black region.Above-mentioned is only a kind of example, right in the present embodiment
This does not do any restriction.
Alternatively, in the present embodiment, after getting to the download request of target video file, can be, but not limited to
When downloading target video file, above-mentioned target media file is synchronously downloaded to local, so that target video file and mesh
Mark media file can realize offline broadcasting.
Alternatively, in the present embodiment, the operational order generated in acquisition to target media file execution clicking operation
Afterwards, can be, but not limited to jump to the target interface associated with above-mentioned target media file.So as to be embodied as target medium text
Part configures redirected link, to jump to the interface associated with target media file, and then extends for display and target
The display space of the related content of media file, to improve display space utilization rate.
Alternatively, in the present embodiment, obtain be used for adjust target video file playing progress rate adjust instruction it
Afterwards, control targe media file and target video file be can be, but not limited to while adjust each self-corresponding playing progress rate.As incited somebody to action
The playing progress rate of target video file is adjusted to second from the first broadcasting moment and played the moment, while corresponding adjustment plays second
The broadcasting content for the target media file that moment is drawn.Above-mentioned is only a kind of example, during according to the broadcasting of target media file
Long and starting plays the playing progress rate for determining the target media file after adjustment at the moment.Any limit is not done in the present embodiment to this
It is fixed.
By the application provide embodiment, response playing request obtain respectively asked target video file and with
After target media file corresponding to the target video file, according to the configuration information got, realize and broadcast in client end of playing back
The broadcasting content of target media file is drawn in the broadcasting content for the target video file put, wherein, target media file is broadcast
Put content and the part in coverage goal video file is played into content.Target video file and mesh are being got respectively so as to realize
After marking media file, the content of target media file is plotted in the broadcasting content of target video file according to configuration information
On, and be no longer confined to can only be by recombining new paster media file and positive video file, to replace whole video flowing
In flow data mode, can not realize the paster media file being incorporated in timely is changed to overcome, change
Operate it is complex, and then influence playing efficiency the problem of;Broadcast in addition, can be drawn in the broadcasting content of target video file
Multiple target media files are put, further improve the playing efficiency of media file.
As a kind of optional scheme, drawing broadcast unit 506 includes:
1) the first drafting module, for the situation for including predetermined gray channel in indicating target media file in configuration information
Under, according to the broadcasting content of the half-tone information drafting target media file configured in predetermined gray channel.
Alternatively, in the present embodiment, drafting module includes:
(1) first rendering submodule, for half-tone information to be designated as into nontransparent region as first object region,
The broadcasting content of target media file is drawn in first object region;
(2) submodule is played, for half-tone information to be designated as into transparent region as the second target area, in the second mesh
The broadcasting content of target video file is put in the relaying continued broadcasting of mark region.
It should be noted that in the present embodiment, above-mentioned predetermined gray channel can be, but not limited to alpha channel
(Alpha Channel), the passage record transparence information by half-tone information, define transparent region, zone of opacity and half
Transparent region.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
Specifically illustrated with reference to shown in Fig. 3, it is assumed that by taking Alpha's Alpha passages as an example, pass through above-mentioned Alpha passages
Half-tone information instruction draws target media file according to different transparencies, is painted with realizing in nontransparent first object region
Target media file processed, and put target video file in transparent the second target area relaying continued broadcasting.So that target medium
File can include irregular edge solid on target video file, and to reduce, target video file is capped to be shown
Show region.
It should be noted that in the present embodiment, except for showing the target matchmaker in above-mentioned specified rectangular area
The region of broadcasting content in body file, other background areas are black region.For example, in target media file comprising Ah
In the case of your method Alpha passages, then the result of broadcast of the target media file of required drafting can be as shown in Figure 4.It is above-mentioned only
It is a kind of example, any restriction is not done to this in the present embodiment.
The embodiment provided by the application, by the drafting of predetermined gray channel control targe media file, to improve
Effect is drawn, reaches saving display space, improves the effect for showing utilization rate.
As a kind of optional scheme, in addition to:
1) the 3rd acquiring unit, during playing target video file in client end of playing back, or client is being played
Before end plays target video file, or after client end of playing back plays target video file, obtain for asking to download mesh
Mark the download request of video file;
2) download unit, pass is associated for responding download request download target video file and having with target video file
The target media file of system, so that target video file and target media file play in the local of client end of playing back.
Specifically illustrated with reference to the example below, it is assumed that the download request for asking download target video file S is obtained,
Then client end of playing back will download target media file corresponding with target video file S while target video file S is downloaded
A and target media file B, wherein, configuration information indicates target media file A when the client end of playing back lower right corner is from predetermined broadcasting
Carve 5s to commence play out, playing duration 15s, and target media file B among the client end of playing back below open from playing moment 30s
Begin to play, playing duration 30s.
Further, it is assumed that in target media file S playing process (for example, playing progress rate is 30%), get and be used for
Target media file S download request is downloaded, then while client end of playing back will download above-mentioned target video file S, is downloaded
Target media file A and target media file B corresponding with target video file S, and locally playing target video file S's
During, draw above-mentioned target media file A and target media file B according to configuration information control.
The embodiment provided by the application, according to the configuration information got, while target video file is downloaded,
Corresponding target media file can be downloaded, so as to realize target media file and target video file can together with broadcast offline
Put, the problem of can only playing target media file in correlation technique offline to overcome.
As a kind of optional scheme, in addition to:
1) the 4th acquiring unit, during playing target video file in client end of playing back, obtain to target matchmaker
Body file performs the operational order that clicking operation is generated;
2) jump-transfer unit, the target interface associated with target media file is jumped to for responding operational order.
Specifically illustrated with reference to the example below, it is assumed that the download request for asking download target video file S is obtained,
Then client end of playing back will download target media file corresponding with target video file S while target video file S is downloaded
A and target media file B, wherein, configuration information indicates target media file A when the client end of playing back lower right corner is from predetermined broadcasting
Carve 5s to commence play out, playing duration 15s, and target media file B among the client end of playing back below open from playing moment 30s
Begin to play, playing duration 30s.
Further, it is assumed that in target media file S playing process (for example, playing progress rate is 30%), get and be used for
Target media file S download request is downloaded, then while client end of playing back will download above-mentioned target video file S, is downloaded
Target media file A and target media file B corresponding with target video file S, and locally playing target video file S's
During, draw above-mentioned target media file A and target media file B according to configuration information control.
The embodiment provided by the application, according to the configuration information got, while target video file is downloaded,
Corresponding target media file can be downloaded, so as to realize target media file and target video file can together with broadcast offline
Put, the problem of can only playing target media file in correlation technique offline to overcome.
As a kind of optional scheme, in addition to:
1) the 5th acquiring unit, during playing target video file in client end of playing back, obtain for adjusting
The adjust instruction of the playing progress rate of target video file;
2) adjustment unit, the playing progress rate of target video file is played into moment adjustment from first for responding adjust instruction
Played the moment to second, while the corresponding broadcasting content for adjusting the target media file drawn at the second broadcasting moment.
It should be noted that in the present embodiment, it can be, but not limited to control targe media file and target video file be same
When adjust each self-corresponding playing progress rate.
For example, it can be, but not limited to include following at least one adjustment adjustment situation:
1) the target media file playing duration drawn be more than or equal to second play the moment with first play the moment it
Between duration difference in the case of, then target video file adjust to second play the moment when, also target media file is adjusted
Draw media image frame corresponding with the above-mentioned second broadcasting moment;
2) it is less than second in the target media file playing duration drawn to play between moment and the first broadcasting moment
Duration difference, and the broadcasting initial time of target media file earlier than equal to first play the moment in the case of, then regarded in target
When frequency file was adjusted to the second broadcasting moment, target media file should have been completed to play according to playing progress rate, thus, playing
Client will no longer draw the media image frame of target media file;
3) it is less than second in the target media file playing duration drawn to play between moment and the first broadcasting moment
Duration difference, the broadcasting initial time of target media file was later than for the first broadcasting moment, and target media file completes what is played
In the case that moment plays the moment earlier than second, then when target video file adjusts and plays the moment to second, target medium text
Part should have been completed to play according to playing progress rate, thus, it will no longer draw the medium map of target media file in client end of playing back
As frame;
4) it is less than second in the target media file playing duration drawn to play between moment and the first broadcasting moment
Duration difference, the broadcasting initial time of target media file was later than for the first broadcasting moment, and target media file completes what is played
In the case that moment was later than for the second broadcasting moment, then when target video file adjusts and plays the moment to second, also by target matchmaker
Media image frame corresponding with the above-mentioned second broadcasting moment is drawn in the adjustment of body file.
By the application provide embodiment, get progress adjustment is played out to target video file adjustment it
Afterwards, while the playing progress rate of target video file is adjusted to the second broadcasting moment from the first broadcasting moment, corresponding adjustment
In the broadcasting content for the target media file that the second broadcasting moment was drawn, target media file synchronous adjustment is broadcast so as to realize
The effect of degree of putting into.
As a kind of optional scheme, drawing broadcast unit 506 includes:
1) the 3rd drafting module, for according to configuration information target video file play to it is predetermined broadcasting the moment when,
The predetermined display positions of client end of playing back draw target media file according to predetermined play mode.
Alternatively, in the present embodiment, above-mentioned play mode can include but is not limited to:Mouth is broadcast, footmark, scene are implanted into,
Tear page etc..Above-mentioned display location can be, but not limited to according to being configured in configuration information in the broadcast interface of client end of playing back
Determined relative to the abscissa and ordinate of reference point.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
That is, in the present embodiment, initial time is played in identical, can be, but not limited in target video file
Play and draw one or more target media files in content, wherein, the playing durations of above-mentioned multiple target media files can be with
It is identical, can also be different;The play mode of above-mentioned multiple target media files can be with identical, can also be different.So that play
More various forms of target media files can be drawn in client, to improve the playing efficiency of target media file.
The embodiment provided by the application, when target video file was played to the predetermined broadcasting moment, according to confidence
Breath draws target media file in predetermined play position according to predetermined play mode, consequently facilitating modification extension is in target video text
The quantity and pattern for the target media file that part is drawn, to improve the flexibility played.
Embodiment 3
The application environment of the embodiment of the present invention can be, but not limited to reference to the application environment in embodiment 1, in the present embodiment
This is repeated no more.
Alternatively, in the present embodiment, above-mentioned media file playing method can be, but not limited to be applied to as shown in Figure 6
In media file-playing system, the system is used to play the class pressure stream advertisement provided in the present embodiment, wherein, the system includes:
The client 604 of server 602 and front end applications.Step S602-S616 as shown in Figure 6, detailed process can be as follows:
Server 602 can provide the video for supporting transparent region, such as provide when launching advertisement (such as class pressure stream advertisement)
The video of the passage containing alpha, such as mov forms, to play displaying class pressure stream advertisement;And for the video without alpha passages, then
Designated shape (such as rectangle) region can be shown on client end of playing back, for playing displaying class pressure stream advertisement.In addition, it can also carry
For the positional information of advertisement (such as class pressure stream advertisement) displaying, for example, (x, y, t), wherein x and y are advertisement (such as class pressure stream advertisement)
Plane display location on positive video, when t is the starting that advertisement (such as class pressure stream advertisement) commences play out in positive video
Between point (such as insertion point).Further, video is pre-processed, including video format conversion, the extraction of alpha passages, compression, beat
The processing such as bag;Then publicity orders are synthesized, the acquisition address comprising video, ad material, and the configuration information of class pressure stream advertisement
(including positional information) etc..
The above-mentioned class pressure stream advertisement of the acquisition request before positive video playback of client 604, in a manner of similar video playback,
By the mode of drawing, press the advertisement frames of stream advertisement to be plotted on the frame of video of the passage containing alpha class by frame per second, broadcast in video
Put in device and play out.Then, carry out pressing class the interaction of stream advertisement and data the operation processing such as to report on video player.
, wherein it is desired to explanation, above-mentioned class pressure stream advertisement is applied to herein below:
1) pattern is shown:Support mouth broadcast pressure stream, footmark pressure stream, pressure stream IVB, scene implantation, video tear page etc. pass through press stream
The advertisement pattern that mode is realized;
2) display form:Static images, dynamic video;
3) display location:Can be according to selling demand fixed position, or configuration precalculated position;
4) time is shown:(it can be believed the position that class pressure stream advertisement plays in video according to self-defined get ready of the demand of selling
Breath), for example, class pressure stream advertisement can be shown in video playback in pre-configured position, can also be in video display process
Whole process displaying;
5) duration is shown:The displaying time can be fixed according to demand of selling, or self-defined displaying duration;
6) offline displaying:Advertisement when supporting offline is synchronously downloaded, and can also show advertisement during viewing offline.
Embodiment 4
According to embodiments of the present invention, a kind of media file for being used to implement above-mentioned media file playing method is additionally provided to broadcast
Terminal is put, as shown in fig. 7, the terminal includes:
1) communication interface 702, it is arranged to obtain the playing request for playing target video file in client end of playing back, wherein,
The file identification of target video file is carried in playing request;It is also configured to response playing request and obtains file identification institute respectively
The played data of the target video file of mark, and there is with target video file the target media file of incidence relation, wherein,
The played data of target video file includes target video file and the configuration information for indicating incidence relation;
2) processor 704, it is connected with communication interface 702, is arranged to the broadcasting in target video file according to configuration information
The broadcasting content of target media file is drawn in content, wherein, the broadcasting content of target media file is literary by coverage goal video
Part in part plays content;
3) memory 706, it is connected with communication interface 702, processor 704, is arranged to store target video file, target matchmaker
Body file and configuration information.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2
Example, the present embodiment will not be repeated here.
Embodiment 5
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
With at least one network equipment in multiple network equipments in network.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1, the playing request that target video file is played in client end of playing back is obtained, wherein, mesh is carried in playing request
Mark the file identification of video file;
S2, response playing request obtain the played data for the target video file that file identification is identified, and and mesh respectively
Mark video file has the target media file of incidence relation, wherein, the played data of target video file includes target video
File and the configuration information for indicating incidence relation;
S3, the broadcasting content of target media file is drawn in the broadcasting content of target video file according to configuration information,
Wherein, the part in coverage goal video file is played content by the broadcasting content of target media file.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2
Example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product
Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention
The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft
The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are causing one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention
State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side
Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one
Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (15)
- A kind of 1. media file playing method, it is characterised in that including:The playing request that target video file is played in client end of playing back is obtained, wherein, carried in the playing request described The file identification of target video file;The played data that the playing request obtains the target video file that the file identification is identified respectively is responded, and There is the target media file of incidence relation with the target video file, wherein, the broadcasting of the target video file Data include the target video file and the configuration information for indicating the incidence relation;The broadcasting of the target media file is drawn in the broadcasting content of the target video file according to the configuration information Content, wherein, the part covered in the target video file is played content by the broadcasting content of the target media file.
- 2. according to the method for claim 1, it is characterised in that described literary in the target video according to the configuration information The broadcasting content of the target media file is drawn in the broadcasting content of part to be included:In the case where including predetermined gray channel during the configuration information indicates the target media file, according to described predetermined The half-tone information configured in gray channel draws the broadcasting content of the target media file.
- 3. according to the method for claim 2, it is characterised in that described according to the gray scale configured in the predetermined gray channel The broadcasting content that information draws the target media file includes:The half-tone information is designated as nontransparent region as first object region, drawn in the first object region The broadcasting content of the target media file;The half-tone information is designated as transparent region as the second target area, continued broadcasting is relayed in second target area Put the broadcasting content of the target video file.
- 4. according to the method for claim 1, it is characterised in that described literary in the target video according to the configuration information The broadcasting content of the target media file is drawn in the broadcasting content of part to be included:The broadcasting content of the target media file is drawn according to the play frame rate of the target video file.
- 5. according to the method for claim 1, it is characterised in that play the target video file in the client end of playing back During, or play institute before the client end of playing back plays the target video file, or in the client end of playing back After stating target video file, in addition to:Obtain the download request for asking the download target video file;The download request is responded to download the target video file and there is the incidence relation with the target video file The target media file so that the sheet of the target video file and the target media file in the client end of playing back Ground plays.
- 6. according to the method for claim 1, it is characterised in that play the target video file in the client end of playing back During, in addition to:Obtain the operational order that the target media file is performed clicking operation and generated;Respond the operational order and jump to the target interface associated with the target media file.
- 7. according to the method for claim 1, it is characterised in that play the target video file in the client end of playing back During, in addition to:Obtain the adjust instruction of the playing progress rate for adjusting the target video file;Respond the adjust instruction by the playing progress rate of the target video file from first broadcasting the moment adjust to second Play the moment, while the corresponding broadcasting content for adjusting the target media file drawn at the described second broadcasting moment.
- 8. according to the method for claim 1, it is characterised in that it is described according to the configuration information in the client end of playing back Drawing the target media file includes:According to the configuration information when the target video file was played to the predetermined broadcasting moment, in the client end of playing back Predetermined display positions draw the target media file according to predetermined play mode.
- A kind of 9. playback of media files device, it is characterised in that including:First acquisition unit, the playing request of target video file is played in client end of playing back for obtaining, wherein, the broadcasting The file identification of the target video file is carried in request;Second acquisition unit, the target video for obtaining the file identification respectively for responding the playing request and being identified The played data of file, and there is with the target video file target media file of incidence relation, wherein, the target regards The played data of frequency file includes the target video file and the configuration information for indicating the incidence relation;Broadcast unit is drawn, for drawing the mesh in the broadcasting content of the target video file according to the configuration information The broadcasting content of media file is marked, wherein, the broadcasting content of the target media file will be covered in the target video file Part play content.
- 10. device according to claim 9, it is characterised in that the drafting broadcast unit includes:First drafting module, for the feelings for including predetermined gray channel in indicating the target media file in the configuration information Under condition, the broadcasting content of the target media file is drawn according to the half-tone information configured in the predetermined gray channel.
- 11. device according to claim 10, it is characterised in that first drafting module includes:First rendering submodule, for the half-tone information to be designated as into nontransparent region as first object region, in institute State the broadcasting content that the target media file is drawn in first object region;Submodule is played, for the half-tone information to be designated as into transparent region as the second target area, described second The broadcasting content of the target video file is put in target area relaying continued broadcasting.
- 12. device according to claim 9, it is characterised in that the drafting broadcast unit includes:Second drafting module, for drawing the broadcasting of the target media file according to the play frame rate of the target video file Content.
- 13. device according to claim 9, it is characterised in that also include:3rd acquiring unit, broadcast during playing the target video file in the client end of playing back, or described Before putting target video file described in client terminal playing, or after the client end of playing back plays the target video file, Obtain the download request for asking the download target video file;Download unit, for responding the download request download target video file and having with the target video file The target media file of the incidence relation, so that the target video file and the target media file are broadcast described Put the local broadcasting of client.
- 14. device according to claim 9, it is characterised in that also include:5th acquiring unit, during playing the target video file in the client end of playing back, obtain for adjusting The adjust instruction of the playing progress rate of the whole target video file;Adjustment unit, for responding the adjust instruction by the playing progress rate of the target video file from during the first broadcasting Adjust at quarter to second and play the moment, while correspond to the target media file that adjustment is drawn at the described second broadcasting moment Play content.
- 15. device according to claim 9, it is characterised in that the drafting broadcast unit includes:3rd drafting module, for according to the configuration information the target video file play to it is predetermined broadcasting the moment when, In the predetermined display positions of the client end of playing back target media file is drawn according to predetermined play mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233299.9A CN107682713B (en) | 2017-04-11 | 2017-04-11 | Media file playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233299.9A CN107682713B (en) | 2017-04-11 | 2017-04-11 | Media file playing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107682713A true CN107682713A (en) | 2018-02-09 |
CN107682713B CN107682713B (en) | 2020-11-03 |
Family
ID=61133566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710233299.9A Active CN107682713B (en) | 2017-04-11 | 2017-04-11 | Media file playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107682713B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166801A (en) * | 2019-04-25 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Processing method, device and the storage medium of media file |
CN110198485A (en) * | 2018-08-21 | 2019-09-03 | 腾讯科技(北京)有限公司 | Playing method and device, storage medium and the electronic device of video resource |
CN110300275A (en) * | 2018-03-21 | 2019-10-01 | 腾讯科技(深圳)有限公司 | Video record, playback method, device, terminal and storage medium |
CN110944218A (en) * | 2018-09-25 | 2020-03-31 | 阿里巴巴集团控股有限公司 | Multimedia information playing system, method, device, equipment and storage medium |
CN111429871A (en) * | 2020-03-20 | 2020-07-17 | 腾讯音乐娱乐科技(深圳)有限公司 | Media file acquisition method and device and storage medium |
CN114697724A (en) * | 2020-12-31 | 2022-07-01 | 华为技术有限公司 | Media playing method and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102131090A (en) * | 2010-11-22 | 2011-07-20 | 华为技术有限公司 | Video file playing method and system and media resource server |
CN103702180A (en) * | 2014-01-14 | 2014-04-02 | 北京奇艺世纪科技有限公司 | Media file playing method and device |
US20140280784A1 (en) * | 2013-03-15 | 2014-09-18 | General Instrument Corporation | File Transfer Based Upon Streaming Format |
CN104104971A (en) * | 2013-04-02 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Video file processing method and system |
CN105933776A (en) * | 2016-06-12 | 2016-09-07 | 腾讯科技(北京)有限公司 | Method and device for playing attached media file |
CN106101856A (en) * | 2016-06-24 | 2016-11-09 | 腾讯科技(北京)有限公司 | The playing method and device of media file |
-
2017
- 2017-04-11 CN CN201710233299.9A patent/CN107682713B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102131090A (en) * | 2010-11-22 | 2011-07-20 | 华为技术有限公司 | Video file playing method and system and media resource server |
US20140280784A1 (en) * | 2013-03-15 | 2014-09-18 | General Instrument Corporation | File Transfer Based Upon Streaming Format |
CN104104971A (en) * | 2013-04-02 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Video file processing method and system |
CN103702180A (en) * | 2014-01-14 | 2014-04-02 | 北京奇艺世纪科技有限公司 | Media file playing method and device |
CN105933776A (en) * | 2016-06-12 | 2016-09-07 | 腾讯科技(北京)有限公司 | Method and device for playing attached media file |
CN106101856A (en) * | 2016-06-24 | 2016-11-09 | 腾讯科技(北京)有限公司 | The playing method and device of media file |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110300275A (en) * | 2018-03-21 | 2019-10-01 | 腾讯科技(深圳)有限公司 | Video record, playback method, device, terminal and storage medium |
CN110300275B (en) * | 2018-03-21 | 2021-09-21 | 腾讯科技(深圳)有限公司 | Video recording and playing method, device, terminal and storage medium |
CN110198485A (en) * | 2018-08-21 | 2019-09-03 | 腾讯科技(北京)有限公司 | Playing method and device, storage medium and the electronic device of video resource |
CN110944218A (en) * | 2018-09-25 | 2020-03-31 | 阿里巴巴集团控股有限公司 | Multimedia information playing system, method, device, equipment and storage medium |
CN110944218B (en) * | 2018-09-25 | 2022-04-12 | 阿里巴巴集团控股有限公司 | Multimedia information playing system, method, device, equipment and storage medium |
CN110166801A (en) * | 2019-04-25 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Processing method, device and the storage medium of media file |
CN111429871A (en) * | 2020-03-20 | 2020-07-17 | 腾讯音乐娱乐科技(深圳)有限公司 | Media file acquisition method and device and storage medium |
CN114697724A (en) * | 2020-12-31 | 2022-07-01 | 华为技术有限公司 | Media playing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107682713B (en) | 2020-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107682713A (en) | media file playing method and device | |
CN105701217A (en) | Information processing method and server | |
CN108093310B (en) | Sharing method and device, storage medium, the electronic device of information | |
CN107690084A (en) | The playing method and device of media file | |
CN106294816A (en) | The treating method and apparatus of page info | |
FR2795901B1 (en) | METHOD FOR CREATING INTERACTIVE AUDIO-VISUAL BANDS | |
CN101339715B (en) | Advertisement demonstration method and promotion desk applying the method | |
CN105847882A (en) | Method, mobile terminal and system for pushing related commodity information of television program | |
WO2020064026A1 (en) | Game advertisement production method and platform, storage medium | |
CN106101856A (en) | The playing method and device of media file | |
JP2006295898A (en) | Information communication method by mobile terminal | |
CN107818490A (en) | Equipment choosing guidance method, device, computer-readable recording medium and terminal | |
CN104602029A (en) | Online video file generating method and device | |
US9514718B2 (en) | Information processing system, information processing apparatus, and information processing method | |
CN107872691A (en) | A kind of advertisement loading processing method, apparatus and system | |
CN106162353A (en) | Interface processing method, Apparatus and system | |
CN106303601A (en) | The playing method and device of multimedia file | |
CN107817701A (en) | Apparatus control method, device, computer-readable recording medium and terminal | |
CN105049910B (en) | A kind of method for processing video frequency and device | |
CN107168996A (en) | A kind of multimedia promotion method of third party and device | |
CN106878760B (en) | Draw and parse the method and device of present | |
CN108769261A (en) | A kind of Multi-screen interaction system, method and interactive screen equipment | |
CN207182878U (en) | A kind of display device | |
CN106028086A (en) | Multimedia information display method, terminal and server | |
CN107133030A (en) | Dynamic event performs method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |