CN106101856B - The playing method and device of media file - Google Patents

The playing method and device of media file Download PDF

Info

Publication number
CN106101856B
CN106101856B CN201610474166.6A CN201610474166A CN106101856B CN 106101856 B CN106101856 B CN 106101856B CN 201610474166 A CN201610474166 A CN 201610474166A CN 106101856 B CN106101856 B CN 106101856B
Authority
CN
China
Prior art keywords
media file
window
target media
browser
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.)
Active
Application number
CN201610474166.6A
Other languages
Chinese (zh)
Other versions
CN106101856A (en
Inventor
徐刚
王贤骏
王平
阳丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201610474166.6A priority Critical patent/CN106101856B/en
Publication of CN106101856A publication Critical patent/CN106101856A/en
Application granted granted Critical
Publication of CN106101856B publication Critical patent/CN106101856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-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/47202End-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 requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of playing method and devices of media file.Wherein, this method comprises: receiving the first request, wherein the first request is for requesting playing video file in the client;It obtains and the matched media file order of video file, wherein media file order is used to indicate the broadcast start time of target media file and target media file to be played;When the play time of video file reaches broadcast start time, target media file is played in the first window of browser, wherein the first window of browser is located on the second window of client, the area of first window is less than the area of the second window, and the second window is for playing video file.The present invention solves the relevant technologies in the media file indentation video source for needing to show, shows media file when playing video, if necessary to edit media file, needs to remake video source, the technical problem for causing media file editorial efficiency lower.

Description

The playing method and device of media file
Technical field
The present invention relates to computer fields, in particular to a kind of playing method and device of media file.
Background technique
Currently, conventional media file is shown by the way that footmark animation to be pressed into video source.It is broadcasting Media file is shown when putting video, if necessary to edit to media file, needs to remake entire video source, nothing every time Method flexibly changes the time of occurrence of video.
Dynamic effect may be implemented when showing in conventional media file, but needs to carry out dynamic using video production software The design of effect, it is time-consuming and laborious.Dynamic effect after making cannot neatly adjustment effect, for example, cannot be neatly The fast, slow of animation, residence time and other effects are controlled, keeps the editorial efficiency of media file lower.
The media file to be shown after completing, the presentation time of media file be it is fixed, cannot neatly determine Presentation time processed, and dynamic effect is unable to self-control according to length is showed, and keeps the editorial efficiency of media file lower.
For above-mentioned the relevant technologies by the media file indentation video source for needing to show, matchmaker is shown when playing video Body file needs to remake video source if necessary to editing media file, cause media file editorial efficiency compared with Low problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of playing method and devices of media file, need at least to solve the relevant technologies In the media file to be shown indentation video source, media file is shown when playing video, if necessary to carry out to media file Editor then needs to remake video source, the technical problem for causing media file editorial efficiency lower.
According to an aspect of an embodiment of the present invention, a kind of playback method of media file is provided.The media file Playback method includes: to receive the first request, wherein the first request is for requesting playing video file in the client;Obtain with The matched media file order of video file, wherein media file order be used to indicate target media file to be played and The broadcast start time of target media file;When the play time of video file reaches broadcast start time, in browser Target media file is played in first window, wherein the first window of browser is located on the second window of client, and first The area of window is less than the area of the second window, and the second window is for playing video file.
According to another aspect of an embodiment of the present invention, a kind of playing device of media file is additionally provided.The media file Playing device include: receiving unit 10, for receive first request, wherein first request for request broadcast in the client Put video file.First acquisition unit 20, for obtaining and the matched media file order of video file, wherein media file Order is used to indicate the broadcast start time of target media file and target media file to be played.Broadcast unit 30 is used In when the play time of video file reaches broadcast start time, target medium text is played in the first window of browser Part, wherein the first window of browser is located on the second window of client, and the area of first window is less than the second window Area, the second window are used for playing video file.
In embodiments of the present invention, using a kind of playback method of media file, the first request is received, wherein first asks It asks for requesting playing video file in the client;It obtains and the matched media file order of video file, wherein media text Part order is used to indicate the broadcast start time of target media file and target media file to be played;When video file When play time reaches broadcast start time, target media file is played in the first window of browser, wherein browser First window is located on the second window of client, area of the area less than the second window of first window, the second window use In playing video file, achieve the purpose that play out target media file, to realize the broadcasting when playing video Media file does not need to remake video source, has reached raising media file if necessary to be edited to media file Editorial efficiency technical effect, and then solve the relevant technologies by need show media file indentation video source in, broadcasting Media file is shown when putting video, if necessary to be edited to media file, is needed to remake video source, is led to media The lower technical problem of Document Editing efficiency.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of the playback method of media file according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the playback method of media file according to an embodiment of the present invention;
Fig. 3 is the flow chart of the playback method of another media file according to an embodiment of the present invention;
Fig. 4 is the stream of the method in the storage path according to an embodiment of the present invention that target media file is obtained by browser Cheng Tu;
Fig. 5 is the flow chart of the playback method of another media file according to an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of the media file of dynamic two-dimension code footmark type according to an embodiment of the present invention;
Fig. 7 is the schematic diagram of the media file of another dynamic two-dimension code footmark type according to an embodiment of the present invention;
Fig. 8 is the schematic diagram of the media file of another dynamic two-dimension code footmark type according to an embodiment of the present invention;
Fig. 9 is the flow chart of the playback method of another media file according to an embodiment of the present invention;
Figure 10 is the flow chart of the playback method of another media file according to an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of the playing device of media file according to an embodiment of the present invention;
Figure 12 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention;
Figure 13 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention;
Figure 14 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention;
Figure 15 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention;And
Figure 16 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's all other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method for the playback method of media file is provided.
Optionally, in the present embodiment, the playback method of above-mentioned media file can be applied to as shown in Figure 1 by servicing In the hardware environment that device 102 and terminal 104 are constituted.Wherein, Fig. 1 is the broadcasting side of media file according to an embodiment of the present invention The schematic diagram of the hardware environment of method.As shown in Figure 1, server 102 is attached by network with terminal 104, above-mentioned network packet Include but be not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, terminal 104 are not limited to PC, mobile phone, tablet computer etc..The present invention is real The playback method for applying the media file of example can be executed by server 102, can also be executed, be can also be by terminal 104 It is executed jointly by server 102 and terminal 104.Wherein, terminal 104 executes the playback method of the media file of the embodiment of the present invention It is also possible to be executed by client mounted thereto.
Fig. 2 is a kind of flow chart of the playback method of media file according to an embodiment of the present invention.As shown in Fig. 2, the matchmaker The playback method of body file may comprise steps of:
Step S202 receives the first request.
In the technical solution that the application above-mentioned steps S202 is provided, the first request is received, wherein the first request is for asking Playing video file in the client is sought, that is, the video file shown in the client.The client can be OTT (Over The Top, referred to as OTT) equipment, it is equipped with and applies APP, the video file, that is, video for playing video file Source.OTT device is provides the client of various application services to client by internet, can be with merely with the network of operator For internet television, computer, set-top box, PAD, the smart phone etc. serviced in a manner of OTT.It can be mutual by first request Network television, set-top box, PAD, requests playing video file in smart phone at computer.Optionally, user passes through OTT device, peace Tencent's Video Applications are filled, after Tencent's Video Applications successfully are installed, open Tencent's Video Applications, select the video text of viewing Part.After the video file that user selects viewing, the first request is generated, to receive first request.
Step S204 is obtained and the matched media file order of video file.
In the technical solution that the application above-mentioned steps S204 is provided, acquisition is ordered with the matched media file of video file It is single, wherein media file order is used to indicate when starting to play of target media file and target media file to be played Between.
Target media file is media file to be played.Target medium can be played during video file plays File.Video file has matched media file order, is got according to the configuration of the media file order and matchmaker The relevant data of body file, wherein video file, that is, video positive.
Media file order is used to indicate target media file to be played.Optionally, the media file order is for referring to Show that the target media file of footmark type, the target media file of footmark type can be during video playing, in visitor The picture media file that family end is shown.The target media file of the footmark type is supported more by region, crowd, channel, channel etc. Kind oriented approach is supported to sell by critical path mode (Critical Path Method, referred to as CPM), supports frequency control, together When also support third party's monitoring, support data statistics etc..
Media file order is also used to indicate the beginning of target media file other than being used to indicate target media file Play time.Optionally, the target media file of footmark type has broadcast start time when playing, the media text of the embodiment Part order also can indicate that the target media file of footmark type other than it can indicate the target media file of footmark type Broadcast start time.
After reception first is requested, media file is edited, according to first request and video file Matched media file order, and then get and be used to indicate opening for target media file and target media file to be played Beginning play time.
It should be noted that the embodiment of the present invention is not specifically limited the type for the media file that server is launched, clothes The media file that business device is launched can be video file, audio file, picture file or text file etc., and it is several to be also possible to this Any combination of kind file, for example, the combination of the combination of text file and picture file, video file and text file.Specifically Product form can be such as video ads, primary advertisement, search advertisements.
Step S206, when the play time of video file reaches broadcast start time, in the first window of browser Play target media file.
In the technical solution that the application above-mentioned steps S206 is provided, when the play time arrival of video file starts to play When the time, target media file is played in the first window of browser, wherein the first window of browser is located at client On second window, less than the area of the second window, the second window is used for playing video file, realizes for the area of first window The effect of target media file is inserted directly into video file.
When the play time of video file reaches broadcast start time, browser is loaded in the client.Browse utensil There is first window, which is the play position of target media file, plays target media file in the first window. Client has the second window, which is the broadcast window of client, and the playing video file in second window is clear The first window of device look at is located on the second window of client, also, the area of first window is less than the area of the second window, First window can be located at the lower right corner of the second window, so that not influencing user watches the corresponding video content of video file.
Optionally, when the play time of video file reaches broadcast start time, by loading browser in client With downloading, load and play target media file, wherein target media file is the media file of footmark type, is played in On the angle of the first window of browser.Target media file is played in the play position in the second window of client, In, play position is located on angle.Target media file and target matchmaker of the media file order in addition to being used to indicate footmark type It except the broadcast start time of body file, is also used to indicate first window, which can be the second window of client On position, which is located on the angle of the second window, is the video file finger that target media file plays when playing Positioning is set.Optionally, target media file can configure from the background its play position in the second window of client, default It is played in the lower right corner in the second window of client, the lower left corner in the first window of browser can also be played in.
Optionally, play time of the detection video file in playing process, when the play time of video file reaches mesh It, can be by load one rich matchmaker the page (webview) portal page, by footmark class when marking the broadcast start time of media file Then parameter definition required for the target media file of type obtains according to content of parameter and adds in the webview portal page Path and the custom content parameter for carrying the material of target media file, according to the road of the material of load target media file Diameter obtains load material, plays the target media file in a browser according to load material.
The target media file of the embodiment can be played to preset time in video file by way of getting ready from the background When point, in the client by load browser to download, load and play target media file, which is target Media file starts the time played.Optionally, the time that target media file occurs gets system ready by Tencent come real Existing, each video file can stamp specific time point, when video file is played to this time point, in browser First window in play target media file, to reach the time of occurrence for accurately controlling target media file and very clever The effect that ground living plays out target media file in designated position.
S202 to step S206 through the above steps receives the first request, wherein the first request is for requesting in client Middle playing video file;It obtains and the matched media file order of video file, wherein media file order is used to indicate wait broadcast The broadcast start time of the target media file and target media file put;When the play time arrival of video file starts to broadcast When putting the time, target media file is played in the first window of browser, wherein the first window of browser is located at client The second window on, less than the area of the second window, the second window is used for playing video file for the area of first window.It can be with The relevant technologies are solved by the media file indentation video source for needing to show, media file are shown when playing video, if needed Media file is edited, need to remake video source, the technical problem for causing media file editorial efficiency lower, And then reach the technical effect for improving media file editorial efficiency.
As an alternative embodiment, after acquisition with the matched media file order of video file, and regarding Before the play time of frequency file reaches broadcast start time, target medium text is downloaded by the storage path of target media file Part, and load target media file.
Fig. 3 is the flow chart of the playback method of another media file according to an embodiment of the present invention.As shown in figure 3, should The playback method of media file the following steps are included:
Step S301, loads browser in the client.
In the technical solution that the application above-mentioned steps S301 is provided, browser is loaded in the client.
Start after acquisition with the matched media file order of video file, and in the arrival of the play time of video file Before play time, browser is loaded in the client.Optionally, browser is loaded in the client using Html5.The implementation Example is not limited to the type of browser and the version of browser.
Step S302 obtains the storage path of target media file by browser.
In the technical solution that the application above-mentioned steps S302 is provided, target media file is pre-set with storage The media file in path.After loading browser in the client, the storage path of target media file is obtained by browser. Optionally, by the parameter definition of target media file in the page of browser, target media file is obtained according to content of parameter Storage path.
Step S303 downloads target media file from storage path, and loads target media file.
In the technical solution that the application above-mentioned steps S303 is provided, target media file is downloaded from storage path, and Load target media file.
After the storage path for obtaining target media file by browser, from the storage path of target media file The material for downloading target media file, to download target media file, and target media file is added in a browser Load gets target media file.
The embodiment is by after obtaining with the matched media file order of video file, and in the broadcasting of video file Before time reaches broadcast start time, browser is loaded in the client;Depositing for target media file is obtained by browser Put path;Target media file is downloaded from storage path, and loads target media file, to realize to target medium text The acquisition of part.
As an alternative embodiment, load browser includes: to load browser in the client in the client Page Template, wherein include one or more page areas in Page Template, each page area is for playing one or more A target media file;Loading target media file includes: that target media file is loaded into the corresponding page in Page Template In region.
Browser has Page Template, and the Page Template is for playing target media file.It is obtaining and video file After the media file order matched, and the play time of video file reach broadcast start time before, in the client plus The Page Template of browser is carried, which includes one or more page areas, and each page area is for playing one Target media file is loaded into Page Template in corresponding page area by a or multiple target media files.
Optionally, Page Template is webview portal page.Configured with for obtaining target in webview portal page The material of media file and the parameter of play parameter, by loading webview portal page, by webview portal page The parameter of configuration obtains the material and play parameter of target media file.The material of the target media file can be footmark picture Material, the play parameter are the parameter for playing out to target media file, when can be the broadcasting of target media file It is long.After the parameter by configuring in webview portal page obtains material and the play parameter of target media file, according to Play parameter plays out the material of target media file.
The embodiment obtains mesh by load webview portal page, by the parameter configured in webview portal page The material and play parameter for marking media file realize the load to target media file.
As an alternative embodiment, obtaining the storage path of target media file by browser includes: clear Look at device and client interface module establish interactive relation in the case where, obtained by browser and interface module from server The storage path of target media file.
Fig. 4 is the stream of the method in the storage path according to an embodiment of the present invention that target media file is obtained by browser Cheng Tu.As shown in figure 4, should by browser obtain target media file store path method the following steps are included:
Step S401, judges whether browser with the interface module of client establishes interactive relation.
The application above-mentioned steps S401 provide technical solution in, judge browser whether the interface module with client Establish interactive relation, wherein interface module with the server for storing target media file for being communicated.
Browser can be interacted with client, can be interacted by the interface module of client, the interface mould Block is the interface of client, establishes and communicates to connect with the server for storing target media file, wherein server is that backstage takes Business device, is carried out data transmission by communication connection.Judge whether browser with the interface module of client establishes interactive relation.
Optionally, which is Software Development Kit (Softwore Development Kit, referred to as SDK) Module is media file interface module, is realized based on SDK Rich Media frame.This frame is based on IAB (Interactive Advertising Bureau) standard MRAID protocol development a set of JavaScript interface and primary frame realize, in addition to Support outside the interface of the consensus standard, also directed to pressure stream IVB advertisement characteristic extended, allow Rich Media's page more just It is prompt, efficiently interacted by Rich Media's frame and client.
Optionally, after webview portal page is loaded, (Interactive is affixed one's name to according to Internet advertising first Advertising Bureau, referred to as IAB) formulate Mraid agreement, judge the webview page whether with SDK interface Interactive relation is established between module.If interactive relation is successfully established, indicate that this interactive relation can be passed through between webview Data interaction is carried out with native applications APP, then can get broadcasting required for target media file from SDK interface module Parameter.After getting play parameter required for target media file in SDK interface module, play parameter is solved Analysis loads that is, can carry out the load of the material of target media file according to play parameter in the material of target media file After success, so that it may carry out human-computer interaction and the displaying of animation according to the configuration requirement customized in advance.
Step S402 obtains target medium from server by browser and interface module if interactive relation has been established The storage path of file.
In the technical solution that the application above-mentioned steps S402 is provided, if the interface module of browser and client has been built Interactive relation has been found, then has obtained the storage path of target media file from server by browser and interface module.
Optionally, a webview portal page is embedded in when video file is played to preset time point, webview enters The mouth page can default the mraid.js file of load rich-media ads agreement (mraid) to provide to the material of target media file Interface module, that is, media framework interface, this mraid.js file can will acquire the request conversion of the material of target media file For data interchange format (JavaScript Object Notation, referred to as JSON) character string of lightweight, pass through Android (Android) interface that the system of javascript calls prompt and MraidAdView to provide is communicated, and obtains target matchmaker The storage path of body file.Wherein, the request parsed can be transferred to corresponding handler to go to handle by MraidAdView, Handler is mainly used for the processing of asynchronous message, that is, initially entering a message queue after issuing a message, sends out The function of message is sent to return at once, and message is one by one taken out in message queue in another part, then carries out to message Processing, that is, send message and receive message and be not synchronized processing.The request parsed can be handed in MraidAdView After going processing by corresponding handler, neutralizes the relevant interface meeting calling interface module of video file broadcasting and goes to handle, And equally convert return value to JSON character string.After equally converting JSON character string for return value, target matchmaker is returned The material of body file.
After the storage path that server obtains target media file, passing through browsing by browser and interface module Device and interface module download target media file from the storage path of server.
The embodiment is by judging whether browser with the interface module of client establishes interactive relation, if built grade separation Mutual relation then obtains the storage path of target media file by browser and interface module from server, by browser and Interface module downloads target media file from the storage path of server, realizes and obtains target media file by browser Storage path purpose.
As an alternative embodiment, interacting pass judging whether browser establishes with the interface module of client After system, further includes: if not setting up interactive relation, prompt that target media file can not be played.
Optionally, the interface module of browser and client is established interactive relation and is embodied with interactive relation.In webview After portal page is loaded, first according to MRAID agreement, judge the webview page whether between SDK interface module Interactive relation is established, if interactive relation establishes failure, error message of dishing out, which can not play for prompting Target media file, that is, target media file can not be demonstrated.
Fig. 5 is the flow chart of the playback method of another media file according to an embodiment of the present invention.As shown in figure 5, should The playback method of media file the following steps are included:
Step S501 detects the predetermined image whether being played in video file in the second window, alternatively, in predetermined image Some or all of whether blocked by first window.
In the technical solution that the application above-mentioned steps S501 is provided, detect in the second window whether be played to video file In predetermined image, alternatively, whether being blocked by first window some or all of in predetermined image.
The broadcasting picture material of video file is related to the broadcasting content of target media file.When the broadcasting of video file Between reach broadcast start time when, browser first window play target media file.Video file is video positive, tool There is predetermined image, during target media file is played in the first window of browser, detects and whether broadcast in the second window The predetermined image being put into video file detects the part in predetermined image when detecting the predetermined image in video file Or all whether blocked by first window.
Step S502, if it is detected that predetermined image is played to, alternatively, by first window some or all of in predetermined image It blocks, then first window is moved to target position from the current location in the second window.
In the technical solution that the application above-mentioned steps S502 is provided, if it is detected that predetermined image is played to, alternatively, predetermined It is blocked some or all of in image by first window, then first window is moved to target from the current location in the second window Position.
If detect the predetermined image being played in video file in the second window, by first window from the second window The current location of mouth is moved to target position.For example, first window is currently located at the lower right corner of the second window, played when detecting When predetermined image in video file, the broadcasting content degree of correlation of the predetermined image and target media file is big, then by first Window is moved to the upper right corner of the second window from the lower right corner of the second window, with prompt user watch target media file, with Predetermined image in video file is associated, and enhancing user watches the good experience impression of video.
If some or all of detect in predetermined image to be blocked by first window, by first window from the second window Current location be moved to target position.When the first predetermined image is the important image in video file, in predetermined image It is partly or entirely blocked by first window, for example, first window is located at the lower right corner of the second window, such user cannot be normal The predetermined image in first window is watched, first window is moved to the upper right corner from the lower right corner of the second window, makes user just The often predetermined image in viewing first window.
During the embodiment plays target media file in the first window of browser, detecting in the second window is The no predetermined image being played in video file, alternatively, whether being blocked by first window some or all of in predetermined image;If Detect to be played to predetermined image, alternatively, blocked some or all of in predetermined image by first window, then by first window from Current location in second window is moved to target position, to neatly control the play position of target media file.
As an alternative embodiment, the first window of browser be located on the second window of client include with At least one lower: first window is located at the lower left corner of the second window;First window is located at the lower right corner of the second window;First window Positioned at the upper left corner of the second window;First window is located at the upper right corner of the second window.
Target media file is played on the angle of the broadcast window of client there are many mode, and first window is located at second The lower right corner of window, target media file are played in the lower right corner of the broadcast window of client;First window is located at the second window The lower left corner of mouth, target media file are played in the lower left corner of the broadcast window of client;First window is located at the second window The upper left corner, target media file is played in the upper left corner of the broadcast window of client;First window is located at the second window The upper right corner, target media file are played in the upper right corner of the broadcast window of client.
Optionally, target media file is configuring its play position in the broadcast window of client from the background, defaults quilt The lower right corner in the broadcast window of client is played, the lower left corner in the broadcast window of client can also be played in.
The broadcast window that the embodiment of the present invention can use various ways that target media file be made to be played in client On angle, aforesaid way is merely a preferred embodiment of the present invention, and the target media file for not representing the embodiment of the present invention is played Method on the angle of the broadcast window of client only includes aforesaid way.In order to improve the editorial efficiency of media file, this hair Bright embodiment can also include the mode on the angle for the broadcast window that other target media files are played in client, herein not Another one illustrates.
As an alternative embodiment, played out according to material of the play parameter to target media file, including According to the material of play parameter playing animation type;According to the material of play parameter playing pictures type;It is broadcast according to play parameter Put the material of text type;According to playing duration playing material indicated by play parameter.
Optionally, play parameter is related to the material of animation types, and the material of the animation types can be to apply hypertext 5th material alteration (Html5) dynamic footmark of markup language shows that the dynamic footmark media file is opened with Html5 technology Hair has animation effect, when video positive plays, appears in the picture-text advertisement in the lower left corner or the lower right corner.It is broadcast in video file When putting, the lower left corner or the lower right corner of the first window of browser are appeared in, reaches the dynamic footmark displaying to target media file Effect.Optionally, the animation period of customized target media file is divided into multiple animation periods to show animation effect Fruit, for example, the animation effects such as retraction, expansion, can control the fast, slow of animation, residence time.According to play parameter playing animation The material of type can be realized in the form of TV footmark according to the material of play parameter playing animation type using Html5 technology, be somebody's turn to do The material of animation types can allow angle in the form of dynamic two-dimension code footmark according to the material of play parameter playing animation type The media file for marking type realizes the animation effects such as retraction, expansion.
Optionally, play parameter is related to the material of picture type, can according to the material of play parameter playing pictures type Think according to play parameter playing pictures advertisement, that is, the advertisement of footmark type, can also play two-dimension code image.
Optionally, play parameter is related to the material of text type, can according to the material that play parameter plays text type Think and plays the target media file including caption text, subtitle text, content text according to play parameter.
Optionally, play parameter indicates playing duration, according to playing duration playing material indicated by play parameter.It makes by oneself The corresponding playing material of adopted multistage playing duration shows target medium text according to the corresponding playing material of multistage playing duration Part can control fast, the slow, residence time etc. of target media file broadcasting.The embodiment can be with flexible customization target medium text The play time of part can set the different playing durations such as 30 seconds, 60 seconds, 90 seconds.
Optionally, which can count the number of target media file broadcasting, two-dimentional when playing according to play parameter The material of code picture, can count the scanned number of the two dimensional code.
The above-mentioned material according to play parameter playing animation type is pressed according to the material of play parameter playing pictures type The material for playing text type according to play parameter can be mutual group according to playing duration playing material indicated by play parameter Conjunction plays out to realize according to material of the play parameter to target media file.For example, can be with customized playing animation type Material playing duration, be divided into the corresponding playing material of multistage playing duration to show the material or picture category of animation types The material of type can control fast, the slow, residence time etc. that the material of animation types plays, can be with flexible customization playing material It shows the time, the different playing durations such as 30 seconds, 60 seconds, 90 seconds can be set, and the dynamic effect of playing material is according to displaying Playing duration is adjusted.
The embodiment of the present invention can be played out according to a plurality of types of materials of the play parameter to target media file, on The material for stating type is merely a preferred embodiment of the present invention, and it only includes above-mentioned for not representing the material of the type of the embodiment of the present invention Type.In order to improve the editorial efficiency of media file, the embodiment of the present invention can also include other editors for improving media file The mode of efficiency, no longer illustrates one by one herein.
The target media file of the embodiment can according to need when it being allowed to appear in the video that operator wants to allow it to show Between section, the content of video file can be cooperated to carry out the result of broadcast of corresponding brand media file, realized video file The purpose that content and the content of media file combine has reached and has neatly been inserted into the broadcasting of target media file to view client On the angle of window, and the effect of the play time of target media file is accurately controlled, it, can by standardizing dynamic effect Target media file is neatly supplied to each different operator, when can be with the animation of customized target media file Between section, be divided into playing duration to show animation effect or picture, can control the fast, slow of animation, residence time and other effects. The playing duration of target media file can also be neatly customized, and adjusts the dynamic of target media file according to playing duration State effect solves the relevant technologies in the media file indentation video source for needing to show, media text is shown when playing video Part needs to remake video source, causes media file editorial efficiency lower if necessary to be edited to media file Technical problem improves the editorial efficiency to target media file.
Embodiment 2
Technical solution of the present invention is illustrated below with reference to preferred embodiment.
The footmark type of the target media file of the embodiment can be TV footmark form, be realized using Html5 technology;It should The footmark type of the target media file of embodiment can allow footmark to realize retraction, expansion for dynamic two-dimension code footmark form Etc. animation effects.
Target media file can configure from the background the position occurred in the client.Preferably, target media file quilt It plays in the lower right corner of the broadcast window of client, the lower left corner of the broadcast window of client can also be played in.
The time that target media file is shown on the client can getting system ready and realize by Tencent, each video File can stamp specific time point, when video file is played to this time point, show target media file.
Target media file is supported by a variety of oriented approach such as region, crowd, channel, channels;Support is sold by CPM mode It sells;It supports frequency to control, supports third party's monitoring;Support data statistics.
Time that target media file is shown in client, residence time all realized by backstage and configured, to improve pair The scalability of target media file.
The target media file of the embodiment can be the media file of dynamic two-dimension code footmark type, below to the dynamic The media file of two dimensional code footmark type is illustrated.
Fig. 6 is a kind of schematic diagram of the media file of dynamic two-dimension code footmark type according to an embodiment of the present invention.Such as Fig. 6 Shown, video file can be video positive during broadcasting, in the broadcast window of client during broadcasting First object media file is played on the lower right corner, that is, playing on second window in the lower right corner of the first window of browser First object media file, the first object media file are about " Dior real self's series perfume " media file, first matchmaker Body file is the media file that picture and text combine.According to the corresponding playing duration of the first media file play this first The material of target media file, to realize the purpose played out to target media file.
Fig. 7 is the schematic diagram of the media file of another dynamic two-dimension code footmark type according to an embodiment of the present invention.Such as Shown in Fig. 7, video file plays first on second window in the lower right corner of the first window of browser during broadcasting After target media file, first object media file is removed on second window in the lower right corner of the first window of browser It presses, plays the second target media file, which is the media file about " sweep to sweep and buy immediately ", can To provide the letter of the corresponding publicity product of the first media file for user after user enjoys first object media file Breath, for example, the price " $1299 of publicity product ".When according to broadcasting indicated by the corresponding play parameter of the second media file The long material for playing second target media file.
Fig. 8 is the schematic diagram of the media file of another dynamic two-dimension code footmark type according to an embodiment of the present invention.Such as Shown in Fig. 8, for video file during broadcasting, the second window on the lower right corner of the first window of browser plays second After target media file, the second target media file is removed, plays third target media file, the third target media file For the media file for showing two-dimensional graph code, purchase can be provided for user after user enjoys the second target media file The approach of the corresponding publicity product of first media file can start pair that is, user is swept by terminal sweeps the two-dimensional graph code It publicizes product and carries out process of purchase.According to playing duration indicated by the corresponding play parameter of third media file play this The material of two target media files.
The displaying of above-mentioned first object media file, the second target media file and third target media file in client The area size of position is 590x260px.
The target media file of the embodiment can throw list on backstage, from the background can be with the configuration information of rich, this is matched Confidence breath includes: the position of target media file, for example, the first window of browser is located at the lower left corner and bottom right of the second window Angle, picture that first object media file is shown, caption text, subtitle text, content text, the second target media file Picture, caption text, subtitle text, the content text shown, the two dimensional code that third target media file is shown, including two Tie up the configuration etc. of advertiser's logo icon among code.
The playback method of the media file of the embodiment can be checked to data are realized.Optionally, target medium is counted The number of document presentation can count the scanned number of two dimensional code.
The target media file of the embodiment can be realized by front-end technology such as HTML5+JS+CSS3.Its bottom is view Frequency is applied, and the broadcasting logic to video file can be realized by Tencent's Video Applications.Player plug-in sheet is as a webview Portal page is layered on video playing layer after being created by Video Applications, then realizes picture in webview portal page The institute such as material load and animation play is functional.
Fig. 9 is the flow chart of the playback method of another media file according to an embodiment of the present invention.As shown in figure 9, should The playback method of media file the following steps are included:
Step S901 installs Video Applications.
In this embodiment, client is OTT device, which can be Tencent's Video Applications, installs and opens Tencent's Video Applications.
Step S902 loads video playing layer.
After Video Applications are installed, video playing layer is loaded.It sends for requesting playing video file in the client First request, request target media file SDK with obtain with the matched media file order of video file, according to video file Matched media file order configuration gets the related data of target media file.
Step S903 is created and is loaded webview portal page.
It, can root if media file order is the target media file of footmark type after loading video playing layer It creates after video file is played to corresponding time point according to the specific time in the configuration of media file order and loads one Webview portal page.
Step S904, according to the material of play parameter creation target media file.
After creating and loading webview portal page, mesh is obtained by the parameter configured in webview portal page The material and play parameter of media file are marked, by parameter definition required for footmark project in webview portal page, then Path and the play parameter of load material are obtained according to content of parameter, which is custom content parameter, according to Play parameter plays out the material of target media file.
The embodiment loads video playing layer by installation Video Applications, loads webview portal page, passes through The parameter configured in webview portal page obtains the material and play parameter of target media file;According to play parameter to mesh The material of mark media file plays out, and realizes the broadcasting to target media file, improves the volume to target media file Collect efficiency.
The target media file of the embodiment is realized based on media file SDK Rich Media frame.This frame is to be based on A set of JavaScript interface of IAB standard Mraid protocol development and primary frame are realized, in addition to supporting connecing for the consensus standard It is mouthful outer, extended also directed to the characteristic of IVB advertisement, allow Rich Media's page it is more convenient, efficiently by Rich Media's frame It is interacted with Video Applications.
In this embodiment, for target media file, Rich Media's frame can be played to particular point in time in video file When load a webview portal page, webview portal page can default load mraid.js file to target media file Material interface module is provided, that is, providing Rich Media's framework interface, this mraid.js file can will acquire target media file The request of material be converted into JSON character string, by the system of the javascript of Android call prompt and The interface that MraidAdView is provided is communicated, and MraidAdView can asking the material of the target media file parsed It asks and corresponding handler is transferred to go to handle.Wherein, the interface that client-side can be called to provide with the relevant interface of video playing It goes to handle, and equally converts return value in the material for returning to target media file after json goes here and there.
Figure 10 is the flow chart of the playback method of another media file according to an embodiment of the present invention.As shown in Figure 10, The playback method of the media file the following steps are included:
Step S1001 loads webview portal page.
Step S1002 judges whether to establish default interactive relation with target media file.
After webview portal page is loaded, first according to Mraid agreement, whether webview portal page is judged Interactive relation is established between target media file SDK, the interactive relation namely interaction protocol.If it is judged that Webview portal page establishes interactive relation between target media file SDK, executes step S1003, judges whether Get parameter required for webview portal page is shown.If it is judged that webview portal page does not have and target medium Interactive relation is established between file SDK, executes step S1006, and error event of dishing out removes plug-in unit.
Step S1003 judges whether to get parameter required for webview portal page is shown.
If it is judged that webview portal page establishes interactive relation between target media file SDK, indicate Data interaction can be carried out by this interaction protocol and primary Video Applications between webview portal page, then it can be from target The parameter configured in webview portal page is got at media file SDK.If it is judged that getting webview portal page Parameter required for face is shown executes step S1004, loads the material of target media file.If it is judged that not getting Parameter required for webview portal page is shown, executes step S1006, and error event of dishing out removes plug-in unit.
Step S1004 loads the material of target media file.
Judging to get parameter required for webview portal page is shown, institute is shown to webview portal page After the parameter needed is parsed, then parameter carries out parsing no problem required for showing to webview portal page, Ji Kegen The load of the material of target media file is carried out according to the parameter of configuration.If the material of load target media file loads successfully, Step S1005 is executed, shows target media file.If the material for loading target media file loads failure, step is executed S1006, error event of dishing out remove plug-in unit.
Step S1005 shows target media file.
After the material of target media file is loaded successfully, so that it may according to configuration requirement, show target media file, For example, carrying out illustrating for human-computer interaction (User Interface, referred to as UI) and animation.
Step S1006, error event of dishing out remove plug-in unit.
It dishes out error event, removes plug-in unit, that is, removing the webview page, error message of dishing out, the error message is used It cannot be played in prompt target media file.
The embodiment is by load webview portal page, needed for judging whether that getting webview portal page shows The parameter wanted loads target media file after judging to get parameter required for webview portal page is shown Material, load target media file material success after, show target media file, reached to target media file into The purpose that row plays, shows media file when playing video to realize, if necessary to be edited then to media file It does not need to remake video source, has reached the technical effect for improving the editorial efficiency of media file.
Embodiment 3
The application environment of the embodiment of the present invention can be, but not limited to referring to the application environment in above-described embodiment, the present embodiment In this is repeated no more.The embodiment of the invention provides the optional tools of one kind of the playback method for implementing above-mentioned media file Body application.
The embodiment receives the first request, and the first request is for requesting playing video file in the client;It obtains and regards The matched media file order of frequency file, wherein media file order is used to indicate target media file and mesh to be played Mark the broadcast start time of media file;When the play time of video file reaches broadcast start time, the of browser Target media file is played in one window, wherein the first window of browser is located on the second window of client, the first window The area of mouth is less than the area of the second window, and the second window is used for playing video file, below in the advertisement of footmark type Technical solution of the present invention is illustrated.
The advertisement of the footmark type is TV footmark form, is realized using Html5 technology.Dynamic two-dimension code footmark form can be with The advertisement of footmark type is allowed to realize the animation effects such as retraction, expansion.
The advertisement of the footmark type is played in the first window of browser, can be in the position that backstage configuration occurs, default It shows in the lower right corner of the second window of client, also can choose the lower left corner of the second window of client.
Play time of the advertisement of footmark type when playing out can get system ready by Tencent come real Existing, each video file can stamp specific point, occur the advertisement of footmark type when being played to this point.
The advertisement of the footmark type is supported as bumper advertisements by a variety of orientation sides such as region, crowd, channel, channels Formula, support are sold by CPM mode, and frequency is supported to control, and are supported third party's monitoring, are supported data statistics.
It time, the residence time of the advertisement appearance of the footmark type, is all realized and is configured by backstage, to facilitate to footmark The extension of the advertisement of type.
Backstage can include: the display location of the advertisement of footmark type with the configuration information of rich, the configuration information, than Such as, it shows in the lower right corner of the second window of client, also can choose the lower left corner of the second window.Footmark class can also be configured Picture, caption text, subtitle text, the content text of first screen of the advertisement of type, the second screen of the advertisement of footmark type The two dimensional code of picture, caption text, subtitle text, content text, the third screen of the advertisement of footmark type generates, including two dimension The configuration of the intermediate advertiser's logo icon of code.
The playback method of the advertisement of the footmark type can count the number that footmark shows, for example, two dimensional code can be counted Scanned number.
The advertisement of footmark type can be OTT Corner Sign Advertisement, be realized by front-end technology such as HTML5+JS+CSS3.Footmark class The bottom of the advertisement of type is the APP that applies of Tencent's video, and the broadcasting logic of main view frequency is realized by application APP.Plug-in unit sheet It is then real in the webview page by being layered on video playing layer after application APP creation as a webview page Now to functions such as the load of picture materials and animation plays.
The basic procedure shown below to OTT Corner Sign Advertisement is introduced.
User installs and opens Tencent Video Applications APP by OTT device first, some video is watched in selection.It is selecting It watches after some video, generates the first request, go request advertisement SDK to obtain publicity orders according to the first request, according to wide The configuration for accusing order gets the related data of advertisement.If this publicity orders is the advertisement of footmark type, can be according to order The specific time in configuration loads a webview portal page, by footmark type when video playing is to corresponding time point Advertisement required for parameter definition in the page, the load path of material and customized is then obtained according to content of parameter Content parameters.
OTT Corner Sign Advertisement is realized based on OTT advertisement SDK Rich Media frame, this frame is based on IAB standard Mraid A set of JavaScript interface of protocol development and primary frame are realized, other than the interface for supporting the consensus standard, also directed to The characteristic of pressure stream IVB advertisement is extended, allow Rich Media's page it is more convenient, efficiently by Rich Media's frame and client Interact using APP.
For OTT Corner Sign Advertisement, Rich Media's frame can load a webview when screen, which is played to specified point, is, Webview can default load mraid.js file and provide Rich Media's framework interface, this mraid.js file meeting to Multi-media Material By the request of material be converted into JSON character string by the system of the javascript of Android call prompt and The interface that MraidAdView is provided is communicated, and the request parsed can be transferred to corresponding handler by MraidAdView It goes to handle, the interface that neutralizing the relevant interface of video playing can call player side to provide goes to handle, and return value is same Ad material is returned after being converted into json string.
After webview portal page is loaded, first according to Mraid agreement, judge the webview page whether Interactive relation is established between advertisement SDK, if establishing failure, error message of dishing out, OTT Corner Sign Advertisement can not be broadcast It puts.If interactive relation is successfully established, indicate that data friendship can be carried out by this interactive relation and primary APP between webview Mutually, then the parameter of OTT Corner Sign Advertisement required for being got from advertisement SDK.Solution is executed to the parameter of OTT Corner Sign Advertisement Analysis can carry out footmark picture according to the parameter of OTT Corner Sign Advertisement after the Parameter analysis of electrochemical no problem of required OTT Corner Sign Advertisement The load in material path, after material is loaded successfully, so that it may according to configuration requirement, carry out the displaying of UI and animation, reach To the purpose that the advertisement of footmark type plays out, to realize the mesh for showing the advertisement of footmark type when playing video , if necessary to be edited to the advertisement of footmark type, does not need to remake video source, reached raising footmark type Advertisement editorial efficiency technical effect.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is 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 be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage Medium, such as read-only memory (Read-Only Memory, referred to as ROM)/random access device (Random Access Memory, referred to as RAM), magnetic disk, in CD, including some instructions are used so that a terminal device (can be mobile phone, count Calculation machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 4
According to embodiments of the present invention, it additionally provides a kind of for implementing the media file of the playback method of above-mentioned media file Playing device.Figure 11 is a kind of schematic diagram of the playing device of media file according to an embodiment of the present invention.As shown in figure 11, The playing device of the media file may include: receiving unit 10, first acquisition unit 20 and broadcast unit 30.
It should be noted that the receiving unit 10 in the embodiment can be used for executing the step in the embodiment of the present application 1 S202, the first acquisition unit 20 in the embodiment can be used for executing the step S204 in the embodiment of the present application 1, the embodiment In broadcast unit 30 can be used for executing the step S206 in the embodiment of the present application 1.
Receiving unit 10, for receiving the first request, wherein the first request plays video text for requesting in the client Part.
First acquisition unit 20, for obtaining and the matched media file order of video file, wherein media file order It is used to indicate the broadcast start time of target media file and target media file to be played.
Broadcast unit 30, for when video file play time reach broadcast start time when, the first of browser Target media file is played in window, wherein the first window of browser is located on the second window of client, first window Area less than the second window area, the second window be used for playing video file.
Figure 12 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention.As shown in figure 12, The playing device of the media file may include: receiving unit 10, first acquisition unit 20 and broadcast unit 30, the media file Playing device further include loading unit 40, second acquisition unit 50 and processing unit 60.
It should be noted that the receiving unit 10 of the embodiment, first acquisition unit 20 and broadcast unit 30 and Figure 11 institute Show that the effect in the playing device of the media file of embodiment is identical, details are not described herein again.
Loading unit 40 is used for after acquisition with the matched media file order of video file, and in video file Before play time reaches broadcast start time, browser is loaded in the client.
Second acquisition unit 50, for obtaining the storage path of target media file by browser.
Processing unit 60 for downloading target media file from storage path, and loads target media file.
Optionally, loading unit 40 for loading the Page Template of browser in the client, wherein wraps in Page Template One or more page areas are included, each page area is for playing one or more target media files;Processing unit 60 is used In target media file being loaded into Page Template in corresponding page area.
Figure 13 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention.As shown in figure 13, The playing device of the media file includes: receiving unit 10, first acquisition unit 20 and broadcast unit 30, loading unit 40, Two acquiring units 50 and processing unit 60, wherein second acquisition unit 50 includes: judgment module 51 and acquisition module 52.
It should be noted that the receiving unit 10 of the embodiment, first acquisition unit 20 and broadcast unit 30, loading unit 40, second acquisition unit 50 and processing unit 60 and the effect phase in the playing device of the media file of embodiment illustrated in fig. 12 Together, details are not described herein again.
Judgment module 51 interacts pass for judging whether the browser establishes with the interface module of the client System, wherein the interface module with the server for storing the target media file for being communicated.
Module 52 is obtained, for when the interactive relation has been established, then passing through the browser and the interface module The storage path of the target media file is obtained from the server.
The processing unit 60 is used for the storage by the browser and the interface module from the server The target media file is downloaded in path.
Figure 14 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention.As shown in figure 14, The playing device of the media file includes: receiving unit 10, first acquisition unit 20, broadcast unit 30, loading unit 40, second Acquiring unit 50 and processing unit 60, wherein second acquisition unit 50 includes: judgment module 51 and acquisition module 52, the media The playing device of file further include: prompt unit 70.
It should be noted that the receiving unit 10 of the embodiment, first acquisition unit 20, broadcast unit 30, prompt unit 70, implement shown in loading unit 40, second acquisition unit 50, processing unit 60, judgment module 51 and acquisition module 52 and Figure 13 Effect in the playing device of the media file of example is identical, and details are not described herein again.
Prompt unit 70, for after judging whether browser establishes interactive relation with the interface module of client, If not setting up interactive relation, prompt that target media file can not be played.
Figure 15 is the schematic diagram of the playing device of another media file according to an embodiment of the present invention.As shown in figure 15, The playing device of the media file includes: receiving unit 10, first acquisition unit 20 and broadcast unit 30, which broadcasts Put device further include: detection unit 80 and mobile unit 90.
It should be noted that the receiving unit 10 of the embodiment, first acquisition unit 20 and broadcast unit 30 and Figure 11 institute Show that the effect in the playing device of the media file of embodiment is identical, details are not described herein again.
Detection unit 80, during for playing target media file in the first window of browser, detection second The predetermined image whether being played in window in video file, alternatively, whether by the first window some or all of in predetermined image Mouth blocks.
Mobile unit 90, for if it is detected that predetermined image is played to, alternatively, by some or all of in predetermined image One window blocks, then first window is moved to target position from the current location in the second window.
Optionally, it includes at least one of on the second window of client that the first window of browser, which is located at: first Window is located at the lower left corner of the second window;First window is located at the lower right corner of the second window;First window is located at the second window The upper left corner;First window is located at the upper right corner of the second window.
The embodiment receives the first request by receiving unit 10, wherein the first request is broadcast in the client for requesting Video file is put, is obtained by first acquisition unit 20 and is used with the matched media file order of video file, media file order In the broadcast start time for indicating target media file and target media file to be played, video is worked as by broadcast unit 30 When the play time of file reaches broadcast start time, target media file is played in the first window of browser, wherein clear The first window of device look at is located on the second window of client, the area of first window less than the second window area, second Window is used for playing video file, realizes and plays media file when playing video, if necessary to compile to media file It collects and does not need then to remake video source, reached the technical effect for improving the editorial efficiency of media file, and then solve phase Pass technology shows media file when playing video, if necessary to matchmaker in the media file indentation video source for needing to show Body file is edited, and needs to remake video source, the technical problem for causing media file editorial efficiency lower.
Herein it should be noted that said units are identical as example and application scenarios that corresponding step is realized, but not It is limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
By above-mentioned module, it can solve the relevant technologies in the media file indentation video source for needing to show, broadcast Media file is shown when putting video, if necessary to be edited to media file, is needed to remake video source, is led to media The lower technical problem of Document Editing efficiency, and then reach the technical effect for improving media file editorial efficiency.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization, wherein hardware environment includes network Environment.
Embodiment 5
According to embodiments of the present invention, additionally provide a kind of server for implementing the playback method of above-mentioned media file or Terminal.
Figure 16 is a kind of structural block diagram of terminal according to an embodiment of the present invention.As shown in figure 16, which may include: One or more (one is only shown in figure) processors 161, processing memory 163 and (such as above-mentioned implementation of transmitting device 165 Sending device in example), as shown in figure 16, which can also include input-output equipment 167.
Wherein, processing memory 163 can be used for storing software program and module, such as the media text in the embodiment of the present invention Corresponding program instruction/the module of the playing method and device of part, processor 161 are stored in processing memory 163 by operation Software program and module realize broadcasting for above-mentioned media file thereby executing various function application and data processing Put method.Handle memory 163 may include high speed random access memory, can also include nonvolatile memory, such as one or Multiple magnetic storage devices, flash memory or other non-volatile solid state memories.In some instances, processing memory 163 can It further comprise the memory remotely located relative to processor 161, these remote memories can pass through network connection to end End.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 165 is used to that data to be received or sent via network, can be also used for processor with Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example, Transmitting device 165 includes a network adapter (Network Interface Controller, referred to as NIC), can be led to Cable is crossed to be connected with other network equipments with router so as to be communicated with internet or local area network.In an example, Transmitting device 165 be radio frequency (Radio Frequency, referred to as RF) module, be used for wirelessly with internet into Row communication.
Wherein, specifically, processing memory 163 is for storing application program.
The application program that processor 161 can call processing memory 163 to store by transmitting device 165, under executing State step:
Receive the first request, wherein the first request is for requesting playing video file in the client;
It obtains and the matched media file order of video file, wherein media file order is used to indicate mesh to be played Mark the broadcast start time of media file and target media file;
When the play time of video file reaches broadcast start time, target matchmaker is played in the first window of browser Body file, wherein the first window of browser is located on the second window of client, and the area of first window is less than the second window The area of mouth, the second window are used for playing video file.
Processor 161 is also used to execute following step: after acquisition with the matched media file order of video file, and Before the play time of video file reaches broadcast start time, browser is loaded in the client;It is obtained by browser The storage path of target media file;Target media file is downloaded from storage path, and loads target media file.
Processor 161 is also used to execute following step: loading the Page Template of browser in the client, wherein the page It include one or more page areas in template, each page area is for playing one or more target media files;Load Target media file includes: that target media file is loaded into Page Template in corresponding page area.
Processor 161 is also used to execute following step: judging whether browser with the interface module of client establishes friendship Mutual relation, wherein interface module with the server for storing target media file for being communicated;If interactive pass has been established System then obtains the storage path of target media file by browser and interface module from server;Pass through browser and interface Module downloads target media file from the storage path of server.
Processor 161 is also used to execute following step: judging whether browser establishes with the interface module of client After interactive relation, if not setting up interactive relation, prompt that target media file can not be played.
Processor 161 is also used to execute following step: the mistake of target media file is played in the first window of browser Cheng Zhong detects the predetermined image whether being played in video file in the second window, alternatively, some or all of in predetermined image Whether blocked by first window;If it is detected that predetermined image is played to, alternatively, by the first window some or all of in predetermined image Mouth blocks, then first window is moved to target position from the current location in the second window.
Using the embodiment of the present invention, a kind of broadcasting scheme of media file is provided.Receive the first request, wherein first Request is for requesting playing video file in the client;It obtains and the matched media file order of video file, wherein media File order is used to indicate the broadcast start time of target media file and target media file to be played;Work as video file Play time reach broadcast start time when, play target media file in the first window of browser, wherein browser First window be located on the second window of client, area of the area less than the second window of first window, the second window For playing video file, achieve the purpose that play out target media file, broadcast to realize when playing video Media file is put, if necessary to edit media file, does not need to remake video source, has reached raising media text The technical effect of the editorial efficiency of part, and then solve the relevant technologies and the media file for needing to show is pressed into video source, Media file is shown when playing video, if necessary to be edited to media file, is needed to remake video source, is led to matchmaker The lower technical problem of body Document Editing efficiency.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
It will appreciated by the skilled person that structure shown in Figure 16 is only to illustrate, terminal can be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet Devices, referred to as MID), the terminal devices such as PAD.Figure 16 it does not cause to limit to the structure of above-mentioned electronic device.For example, Terminal may also include than shown in Figure 16 more perhaps less component (such as network interface, display device) or have with Different configuration shown in Figure 16.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium In, storage medium may include: flash disk, read only memory ROM, random access device RAM, disk or CD etc..
Embodiment 6
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can With the program code of the playback method for executing media file.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
Receive the first request, wherein the first request is for requesting playing video file in the client;
It obtains and the matched media file order of video file, wherein media file order is used to indicate mesh to be played Mark the broadcast start time of media file and target media file;
When the play time of video file reaches broadcast start time, target matchmaker is played in the first window of browser Body file, wherein the first window of browser is located on the second window of client, and the area of first window is less than the second window The area of mouth, the second window are used for playing video file.
Optionally, storage medium is also configured to store the program code for executing following steps: in acquisition and video After the matched media file order of file, and before the play time of video file reaches broadcast start time, in client Browser is loaded in end;The storage path of target media file is obtained by browser;Target medium is downloaded from storage path File, and load target media file.
Optionally, storage medium is also configured to store the program code for executing following steps: judging that browser is It is no to establish interactive relation with client interface module, wherein interface module is used for and the clothes that store target media file Business device is communicated;If interactive relation has been established, target media file is obtained from server by browser and interface module Storage path;Target media file is downloaded from the storage path of server by browser and interface module.
Optionally, storage medium is also configured to store the program code for executing following steps: judging browser After whether establishing interactive relation with the interface module of client, if not setting up interactive relation, prompt that target can not be played Media file.
Optionally, storage medium is also configured to store the program code for executing following steps: the of browser During playing target media file in one window, the predetermined figure whether being played in video file in the second window is detected Picture, alternatively, whether being blocked by first window some or all of in predetermined image;If it is detected that it is played to predetermined image, alternatively, It is blocked, is then moved to first window from the current location in the second window by first window some or all of in predetermined image Target position.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read only memory ROM, with Machine accesses the various media that can store program code such as memory RAM, mobile hard disk, magnetic or disk.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (15)

1. a kind of playback method of media file characterized by comprising
Receive the first request, wherein first request is for requesting playing video file in the client;
It obtains and the matched media file order of the video file, wherein the media file order is used to indicate to be played Target media file and the target media file broadcast start time;
When the play time of the video file reaches the broadcast start time, institute is played in the first window of browser State target media file, wherein the first window of the browser is located on the second window of the client, and described first The area of window is less than the area of second window, and second window is for playing the video file;
Wherein, the target media file is played in the first window of the browser includes: in the target medium In the case that file includes the media file of animation types, in the playing duration for playing the target media file, The target media file is played in the first window of the browser, wherein the playing duration is divided into multistage broadcasting Duration plays animation types corresponding with each section of playing duration in each section of playing duration of the multistage playing duration Media file or picture type media file.
2. the method according to claim 1, wherein in the acquisition and the matched media text of the video file After part order, and before the play time of the video file reaches the broadcast start time, which comprises
The browser is loaded in the client;
The storage path of the target media file is obtained by the browser;
The target media file is downloaded from the storage path, and loads the target media file.
3. according to the method described in claim 2, it is characterized in that,
It includes: the Page Template that the browser is loaded in the client that the browser is loaded in the client, It wherein, include one or more page areas in the Page Template, each page area is for playing one or more The target media file;
The load target media file include: the target media file is loaded into it is corresponding in the Page Template In page area.
4. according to the method described in claim 2, it is characterized in that,
By the storage path that the browser obtains the target media file include: judge the browser whether with it is described The interface module of client establishes interactive relation, wherein the interface module is used for and stores the target media file Server communicated;If the interactive relation has been established, by the browser and the interface module from the clothes Business device obtains the storage path of the target media file;
It includes: by the browser and the interface module from institute that the target media file is downloaded from the storage path It states in the storage path of server and downloads the target media file.
5. according to the method described in claim 4, it is characterized in that, judging whether the browser connects with the client Mouth mold block establishes after interactive relation, further includes:
If not setting up the interactive relation, prompt that the target media file can not be played.
6. the method according to claim 1, wherein described in being played in the first window of the browser During target media file, the method also includes:
The predetermined image whether being played in the video file in second window is detected, alternatively, in the predetermined image Some or all of whether blocked by the first window;
If it is detected that the predetermined image is played to, alternatively, by the first window some or all of in the predetermined image It blocks, then the first window is moved to target position from the current location in second window.
7. method according to any one of claim 1 to 6, which is characterized in that the first window of the browser is located at Include at least one of on second window of the client:
The first window is located at the lower left corner of second window;
The first window is located at the lower right corner of second window;
The first window is located at the upper left corner of second window;
The first window is located at the upper right corner of second window.
8. a kind of playing device of media file characterized by comprising
Receiving unit, for receiving the first request, wherein first request plays video text for requesting in the client Part;
First acquisition unit, for obtaining and the matched media file order of the video file, wherein the media file is ordered Singly it is used to indicate the broadcast start time of target media file and the target media file to be played;
Broadcast unit, for when the play time of the video file reaches the broadcast start time, the of browser The target media file is played in one window, wherein the first window of the browser is located at the second window of the client On mouthful, the area of the first window is less than the area of second window, and second window is for playing the video File;
Wherein, the broadcast unit is realized by following steps plays the target in the first window of the browser Media file: in the case where the target media file includes the media file of animation types, for playing the target In the playing duration of media file, the target media file is played in the first window of the browser, wherein institute It states playing duration and is divided into multistage playing duration, in each section of playing duration of the multistage playing duration, play and described each section The media file of the corresponding animation types of playing duration or the media file of picture type.
9. device according to claim 8, which is characterized in that described device includes:
Loading unit is used for after the acquisition with the matched media file order of the video file, and in the video Before the play time of file reaches the broadcast start time, the browser is loaded in the client;
Second acquisition unit, for obtaining the storage path of the target media file by the browser;
Processing unit for downloading the target media file from the storage path, and loads the target media file.
10. device according to claim 9, which is characterized in that
The loading unit is used to load the Page Template of the browser in the client, wherein the Page Template In include one or more page areas, each page area is for playing one or more target media files;
The processing unit is for the target media file to be loaded into the Page Template in corresponding page area.
11. device according to claim 9, which is characterized in that the second acquisition unit includes:
Judgment module, for judging whether the browser with the interface module of the client establishes interactive relation, wherein The interface module with the server for storing the target media file for being communicated;
Module is obtained, for when the interactive relation has been established, then by the browser and the interface module from described Server obtains the storage path of the target media file,
The processing unit is used for through the browser and the interface module from the storage path of the server Download the target media file.
12. device according to claim 11, which is characterized in that described device further include:
Prompt unit, for judge the browser whether with the interface module of the client establish interactive relation it Afterwards, it if not setting up the interactive relation, prompts that the target media file can not be played.
13. device according to claim 8, which is characterized in that described device further include:
Detection unit, during for playing the target media file in the first window of the browser, inspection The predetermined image whether being played in the video file in second window is surveyed, alternatively, the part in the predetermined image Or all whether blocked by the first window;
Mobile unit, for if it is detected that the predetermined image is played to, alternatively, quilt some or all of in the predetermined image The first window blocks, then the first window is moved to target position from the current location in second window.
14. the device according to any one of claim 8 to 13, which is characterized in that the first window position of the browser Include at least one of on the second window of the client:
The first window is located at the lower left corner of second window;
The first window is located at the lower right corner of second window;
The first window is located at the upper left corner of second window;
The first window is located at the upper right corner of second window.
15. a kind of storage medium, which is characterized in that be stored with program code in the storage medium, wherein said program code It is arranged to perform claim when operation and requires method described in 1 to 7 any one.
CN201610474166.6A 2016-06-24 2016-06-24 The playing method and device of media file Active CN106101856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610474166.6A CN106101856B (en) 2016-06-24 2016-06-24 The playing method and device of media file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610474166.6A CN106101856B (en) 2016-06-24 2016-06-24 The playing method and device of media file

Publications (2)

Publication Number Publication Date
CN106101856A CN106101856A (en) 2016-11-09
CN106101856B true CN106101856B (en) 2019-05-24

Family

ID=57252657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610474166.6A Active CN106101856B (en) 2016-06-24 2016-06-24 The playing method and device of media file

Country Status (1)

Country Link
CN (1) CN106101856B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600346A (en) * 2017-01-03 2017-04-26 深圳铂睿智恒科技有限公司 Advertisement pushing method and system for intelligent terminal, and intelligent terminal
CN107690084B (en) * 2017-04-11 2019-11-08 腾讯科技(北京)有限公司 The playing method and device of media file
CN107682713B (en) * 2017-04-11 2020-11-03 腾讯科技(北京)有限公司 Media file playing method and device
CN109101148A (en) * 2018-06-28 2018-12-28 珠海麋鹿网络科技有限公司 A kind of window response method and its device based on the mobile acquisition object of operation object
CN110798711B (en) * 2018-08-01 2022-07-08 腾讯科技(深圳)有限公司 Advertisement information processing method, device, computer equipment and storage medium
CN109756764A (en) * 2019-01-28 2019-05-14 湖南快乐阳光互动娱乐传媒有限公司 The control method of advertisement dispensing, apparatus and system
CN111698547A (en) * 2019-03-11 2020-09-22 腾讯科技(深圳)有限公司 Video interaction method and device, storage medium and computer equipment
CN111836093B (en) * 2019-04-16 2022-05-31 百度在线网络技术(北京)有限公司 Video playing method, device, equipment and medium
CN111815363A (en) * 2020-07-13 2020-10-23 湖南快乐阳光互动娱乐传媒有限公司 Advertisement dotting method and device, storage medium and electronic equipment
CN113345208A (en) * 2021-06-11 2021-09-03 上海中通吉网络技术有限公司 Order reminding method
CN114282081A (en) * 2021-12-27 2022-04-05 京东方科技集团股份有限公司 Media file display processing method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111413A (en) * 2011-02-18 2011-06-29 武汉宽信科技有限公司 Media data stream link advertisement notification method
CN103297840A (en) * 2012-03-01 2013-09-11 阿里巴巴集团控股有限公司 Additional information display method and system based on video moving focus
CN104618663A (en) * 2014-05-26 2015-05-13 腾讯科技(北京)有限公司 Video processing method, terminal and system
CN104811814A (en) * 2015-04-28 2015-07-29 腾讯科技(北京)有限公司 Video playing-based information processing method and system, client and server
CN105163164A (en) * 2015-08-31 2015-12-16 腾讯科技(北京)有限公司 Information presentation item display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833635B (en) * 2012-09-14 2016-03-09 高亿实业有限公司 Control method of televising and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111413A (en) * 2011-02-18 2011-06-29 武汉宽信科技有限公司 Media data stream link advertisement notification method
CN103297840A (en) * 2012-03-01 2013-09-11 阿里巴巴集团控股有限公司 Additional information display method and system based on video moving focus
CN104618663A (en) * 2014-05-26 2015-05-13 腾讯科技(北京)有限公司 Video processing method, terminal and system
CN104811814A (en) * 2015-04-28 2015-07-29 腾讯科技(北京)有限公司 Video playing-based information processing method and system, client and server
CN105163164A (en) * 2015-08-31 2015-12-16 腾讯科技(北京)有限公司 Information presentation item display method and device

Also Published As

Publication number Publication date
CN106101856A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106101856B (en) The playing method and device of media file
KR102053128B1 (en) Live streaming image generating method and apparatus, live streaming service providing method and apparatus, live streaming system
CN110647303B (en) Multimedia playing method and device, storage medium and electronic equipment
US7933809B2 (en) Method, medium, and system for automatically embedding information concerning items appearing in video using RFID tags
CN109391834B (en) Playing processing method, device, equipment and storage medium
CN111405343A (en) Live broadcast interaction method and device, electronic equipment and storage medium
CN105163164B (en) Information shows item methods of exhibiting and device
US20130205322A1 (en) Method and system for synchronization of dial testing and audience response utilizing automatic content recognition
CN103747293A (en) Television program-associated product recommending method and recommending device
CN103501449A (en) Method and device for recommending video source associated with television program
CN106998486A (en) Video broadcasting method and device
CN104079989A (en) Television program associated information push method, equipment and system
CN103702211A (en) Television playing content-based advertisement serving method and system
CN107690084B (en) The playing method and device of media file
CN108632676A (en) Display methods, device, storage medium and the electronic device of image
JP6089828B2 (en) Information processing system and information processing method
JP6115987B2 (en) Video display device, video display method, and program
CN113129045A (en) Video data processing method, video data display method, video data processing device, video data display device, electronic equipment and storage medium
US20120136701A1 (en) Method and system for faciliating interactive commercials in real time
CN110827073A (en) Data processing method and device
CN106604056B (en) Video broadcasting method and device
CN106162353A (en) Interface processing method, Apparatus and system
CN104035953A (en) Method And System For Seamless Navigation Of Content Across Different Devices
CN107547934A (en) Information transferring method and device based on video
CN106341735A (en) Information pushing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant