CN105025096B - A kind of cross-domain file configuration method and device - Google Patents

A kind of cross-domain file configuration method and device Download PDF

Info

Publication number
CN105025096B
CN105025096B CN201510406768.3A CN201510406768A CN105025096B CN 105025096 B CN105025096 B CN 105025096B CN 201510406768 A CN201510406768 A CN 201510406768A CN 105025096 B CN105025096 B CN 105025096B
Authority
CN
China
Prior art keywords
video
cross
file
domain
target
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.)
Expired - Fee Related
Application number
CN201510406768.3A
Other languages
Chinese (zh)
Other versions
CN105025096A (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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510406768.3A priority Critical patent/CN105025096B/en
Publication of CN105025096A publication Critical patent/CN105025096A/en
Application granted granted Critical
Publication of CN105025096B publication Critical patent/CN105025096B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/59Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of cross-domain file configuration methods.Receive video playing request, if client judgement knows that source server corresponding with target video is unable to configuring cross-domain file, cross-domain file corresponding with target domain name where target video is then obtained by intermediate server, and video file associated with target video, so that the player in target domain name be made to play target video according to cross-domain file and video file.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, the flexibility of video playing is improved.The invention also discloses the devices of cross-domain file configuration method.

Description

A kind of cross-domain file configuration method and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of cross-domain file configuration method and devices.
Background technique
Cross-domain file (crossdomain.xml) is a kind of XML file, and XML file is designed to description data, Emphasis is what is data, how to store data.It all can include some XML files in many softwares, this is a kind of expansion in fact Malleability markup language file is for marking electronic document to make it have structural markup language.
Cross-domain file is a kind of license based on play right, and server authorizes certain domains according to the cross-domain file of configuration Player under one's name can be accessed when playing video storage on the server, resource relevant to video, such as some pictures, Or video flowing.
Domain name where player could use relevant resource to broadcast only in the cross-domain file for having got server side Put video.Therefore, if server side is not configured cross-domain file, player can not play stored on this server with to Play the relevant video file of video.
Summary of the invention
The embodiment of the present invention provides a kind of cross-domain file configuration method and device, for avoiding since server cannot match The limitation for setting cross-domain file bring video playing, improves the flexibility of video playing.
A kind of cross-domain file configuration method, includes the following steps:
Video playing request is received, the playing request includes:The video identifier of target video;
According to the first address corresponding with the target video, the cross-domain file configuration information prestored, judgement and institute are inquired Whether state the corresponding source server in the first address being capable of configuring cross-domain file, wherein be stored in the source server with it is described The associated video file of target video, the target domain name where the cross-domain file is used for authorized players play the target The video file is used when video;
If judgement knows that the source server cannot configure the cross-domain file, according to the second address prestored to institute The corresponding intermediate server in the second address is stated, the request message for obtaining cross-domain file is sent, the request message includes:Institute Target domain name and the video identifier are stated, so that the intermediate server generates the cross-domain file according to the target domain name, And the video file is obtained from the source server according to the video identifier;
The cross-domain file and the video file that the intermediate server returns are received, to apply the player The target video is played according to the cross-domain file and the video file.
Cross-domain file configuration method provided in this embodiment, if source service corresponding with target video is known in client judgement Device is unable to configuring cross-domain file, then obtains cross-domain file corresponding with target domain name where target video by intermediate server, And video file associated with target video, to make the player in target domain name according to cross-domain file and video file Play target video.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, improve The flexibility of video playing.
Optionally, before the cross-domain file configuration information inquired and prestored, the method also includes following steps:
According to the first address corresponding with the target video, institute is sent to source server corresponding with first address State request message;
Know that the source server cannot configure the cross-domain file according to the response message of the source server, then in institute It states label, source server corresponding with first address in cross-domain file configuration information and is unable to configuring cross-domain file.
Cross-domain file configuration method provided in this embodiment provides a kind of client and generates cross-domain file configuration information Method, thus client by inquire the server recorded in cross-domain file configuration information whether can configuring cross-domain file, really Surely it is directly to obtain cross-domain file from the server of storage video file, is still redirected directly to intermediate server and is obtained It takes, without being interacted with server.Improve operating efficiency.
Optionally, the method also includes following steps:
The cross-domain file is being locally stored.
The target video is played according to the cross-domain file and the video file using the player.
The cross-domain file obtained from intermediate server is localized by cross-domain file configuration method provided in this embodiment Storage simplifies operation, improves processing effect so that subsequent operation does not need frequently to obtain cross-domain file from intermediate server Rate.
A kind of cross-domain file configuration method, includes the following steps:
The request message for being used to obtain cross-domain file that client is sent is received, the request message includes:Player institute Target domain name and target video video identifier, the cross-domain file is for authorizing described in the target domain name plays When target video, using being stored on source server video file associated with the target video;
The cross-domain file is generated according to the target domain name;
The video file is obtained from the source server according to the video identifier;
The cross-domain file and the video file are sent to the client, to broadcast described in the client application It puts device and the target video is played according to the cross-domain file and the video file.
Cross-domain file configuration method provided in this embodiment, if source service corresponding with target video is known in client judgement Device is unable to configuring cross-domain file, then obtains cross-domain file corresponding with target domain name where target video by intermediate server, And video file associated with target video, to make the player in target domain name according to cross-domain file and video file Play target video.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, improve The flexibility of video playing.
Optionally, described that the video file is obtained from the source server according to the video identifier including following Step:
The associated video information table being locally stored is inquired, the first ground of source server corresponding with the video identifier is obtained Location;
Acquisition request is sent to the source server according to first address, the acquisition request includes:The video Mark, so that the source server is obtained according to the video identifier, video file associated with the target video;
Receive the video file that the source server returns.
Cross-domain file configuration method provided in this embodiment provides a kind of intermediate server and obtains video from source server The mode of file, the cross-domain file of video file and generation that intermediate file can will acquire return to client progress video and broadcast It puts.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, video playing is improved Flexibility.
A kind of cross-domain file configuration device, including:
First receiving module, for receiving video playing request, the playing request includes:The video mark of target video Know;
Processing module, for inquiring the cross-domain file configuration prestored according to the first address corresponding with the target video Information judges whether corresponding with first address source server being capable of configuring cross-domain file, wherein in the source server It is stored with video file associated with the target video, the cross-domain file is for authorizing described in the target domain name broadcasting The video file is used when target video;
First sending module, if for judging to know that the source server cannot configure the cross-domain file, according to pre- The second address deposited sends the request message for obtaining cross-domain file to intermediate server corresponding with second address, The request message includes:The target domain name and the video identifier, so that the intermediate server is according to the aiming field Name generates the cross-domain file, and the video file is obtained from the source server according to the video identifier;
Second receiving module, the cross-domain file and the video file returned for receiving the intermediate server, So that the application player plays the target video according to the cross-domain file and the video file.
Cross-domain file configuration device provided in this embodiment, if source service corresponding with target video is known in client judgement Device is unable to configuring cross-domain file, then obtains cross-domain file corresponding with target domain name where target video by intermediate server, And video file associated with target video, to make the player in target domain name according to cross-domain file and video file Play target video.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, improve The flexibility of video playing.
Optionally, further include:
Second sending module, for according to the first address corresponding with the target video, to first address pair The source server answered sends the request message;
Mark module, for according to the response message of the source server know the source server cannot configure it is described across Domain file then marks source server corresponding with first address to be unable to configuring cross-domain in the cross-domain file configuration information File.
Cross-domain file configuration device provided in this embodiment provides a kind of client and generates cross-domain file configuration information Method, thus client by inquire the server recorded in cross-domain file configuration information whether can configuring cross-domain file, really Surely it is directly to obtain cross-domain file from the server of storage video file, is still redirected directly to intermediate server and is obtained It takes, without being interacted with server.Improve operating efficiency.
Optionally, further include:
Memory module, for the cross-domain file to be locally stored.
Playing module plays the target according to the cross-domain file and the video file for the application player Video.
Cross-domain file configuration device provided in this embodiment, the cross-domain file obtained from intermediate server is localized Storage simplifies operation, improves processing effect so that subsequent operation does not need frequently to obtain cross-domain file from intermediate server Rate.
A kind of cross-domain file configuration device, including:
Third receiving module, for receiving the request message for being used to obtain cross-domain file of client transmission, the request Message includes:The video identifier of target domain name and target video where player, the cross-domain file are described for authorizing When target domain name plays the target video, using being stored on source server associated with target video video text Part;
Generation module, for generating the cross-domain file according to the target domain name;
Module is obtained, for obtaining the video file from the source server according to the video identifier;
Third sending module, for the cross-domain file and the video file to be sent to the client, with toilet It states player described in client application and the target video is played according to the cross-domain file and the video file.
Cross-domain file configuration device provided in this embodiment, if source service corresponding with target video is known in client judgement Device is unable to configuring cross-domain file, then obtains cross-domain file corresponding with target domain name where target video by intermediate server, And video file associated with target video, to make the player in target domain name according to cross-domain file and video file Play target video.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, improve The flexibility of video playing.
Optionally, the acquisition module, including:
Query unit obtains source corresponding with the video identifier for inquiring the associated video information table being locally stored First address of server;
Transmission unit, for sending acquisition request, the acquisition request to the source server according to first address Including:The video identifier, so that the source server obtains according to the video identifier, associated with the target video Video file;
Receiving unit, the video file returned for receiving the source server.
Cross-domain file configuration device provided in this embodiment provides a kind of intermediate server and obtains video from source server The mode of file, the cross-domain file of video file and generation that intermediate file can will acquire return to client progress video and broadcast It puts.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, video playing is improved Flexibility.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention one;
Fig. 2 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention two;
Fig. 3 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention three;
Fig. 4 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention four;
Fig. 5 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention five;
Fig. 6 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention six;
Fig. 7 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention seven;
Fig. 8 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention eight;
Fig. 9 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention nine;
Figure 10 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention ten.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention one, as shown in Figure 1, the cross-domain file is matched The method of setting comprises the following steps:
Step 101, video playing request is received, the playing request includes:The video identifier of target video;
Cross-domain file configuration method provided in this embodiment is configured to execute in the client.User is accessed by client Target domain name, the target video that user's triggering selection plays in target domain name send video playing request, the view to client Frequency playing request includes:The video identifier of target video.
Step 102, according to the first address corresponding with the target video, the cross-domain file configuration information prestored is inquired, Judge whether corresponding with first address source server being capable of configuring cross-domain file, wherein store in the source server Target domain name where having video file associated with the target video, the cross-domain file to be used for authorized players plays The video file is used when the target video;
Client is locally previously stored with cross-domain file configuration information, and cross-domain file configuration information has recorded at least one clothes The case where business device configuring cross-domain file.There are many tool avatar of cross-domain file configuration information, for example, with each server Address information labelling server, with " 0 " label can configuring cross-domain file, be unable to configuring cross-domain file with one token.It is cross-domain File configuration information can be what client locally generated, and the control centre for being also possible to manage each server is sent to client End.
Client parses the video playing request received, obtains the video identifier of target video, then obtains The first address corresponding with the target video.There are many mode for obtaining the first address, for example pass through control Servers-all resource Third-party platform, the first address of corresponding with video identifier source server is obtained, alternatively, passing through the association view being locally stored Frequency information table obtains the first address of source server corresponding with video identifier.
Client according to first address, inquire cross-domain file configuration information, judge source corresponding with first address Whether server being capable of configuring cross-domain file.It should be noted that being stored with view associated with target video in source server Frequency file, so-called associated video file just refer to the video resource that player needs to access when playing target video, Such as some pictures or video flowing.
However, not every player all has the access associated video resource from source server when putting target video Permission, the cross-domain file that player needs to have source server to configure, cross-domain file is used to authorize the player of certain domain names It is accessible when playing the target video be stored in source server, video file associated with target video.Namely It says, when the target domain name accessed by cross-domain file authorizing user, the player in target domain name is playing the target video Shi Caineng is used and is stored in video file in source server, associated with target video.
Step 103, if judgement knows that the source server cannot configure the cross-domain file, according to the second ground prestored Location sends the request message for obtaining cross-domain file to intermediate server corresponding with second address, and the request disappears Breath includes:The target domain name and the video identifier, so that the intermediate server is according to target domain name generation Cross-domain file, and the video file is obtained from the source server according to the video identifier;
Client is by inquiring cross-domain file configuration information, if judgement knows source server corresponding with first address not Can configuring cross-domain file, then illustrate that player in target domain name does not have permission to access and be located on source server and target video Associated video file.Therefore, client needs to obtain the cross-domain of authorization target domain name play right by intermediate server File.
Specifically, client is sent to intermediate server for obtaining according to the second address of the intermediate server prestored The request message of cross-domain file includes in the request message:The video identifier of target domain name and target video.
Intermediate server generates cross-domain file according to the target domain name, and the cross-domain file is for authorizing broadcasting in target domain name Put device when playing target video, using being stored on source server video file associated with target video.Also, it is intermediate Server obtains corresponding video file according to the video identifier from source server.
Step 104, the cross-domain file and the video file that the intermediate server returns are received, is broadcast so as to described It puts device and the target video is played according to the cross-domain file and the video file.
Intermediate server is sent to client by the cross-domain file of generation and from the video file that source server obtains, so as to When the player of client is when playing target video, according to the accessible video file of the cross-domain file, acquisition and target The associated video resource of video.
Cross-domain file configuration method provided in this embodiment, if source service corresponding with target video is known in client judgement Device is unable to configuring cross-domain file, then obtains cross-domain file corresponding with target domain name where target video by intermediate server, And video file associated with target video, to make the player in target domain name according to cross-domain file and video file Play target video.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, improve The flexibility of video playing.
Fig. 2 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention two, and the present embodiment provides a kind of clients The method for generating cross-domain file configuration information, as shown in Fig. 2, based on the above embodiment, in the cross-domain file inquired and prestored Before configuration information, the method also includes following steps:
Step 201, it according to the first address corresponding with the target video, is serviced to source corresponding with first address Device sends the request message;
After client receives video playing request, according to the first address corresponding with target video, taken to corresponding source Business device sends the request message for obtaining cross-domain file, which includes:Target domain name and video identifier, so as to from Cross-domain file is obtained on the corresponding source server in first address, the cross-domain file is for authorizing the player in target domain name broadcasting When putting target video, it is able to access that and is stored on source server video file associated with target video.
Step 202, know that the source server cannot configure the cross-domain text according to the response message of the source server Part, then label, source server corresponding with first address are unable to configuring cross-domain text in the cross-domain file configuration information Part.
After source server receives the request message of client transmission, it is unable to configuring cross-domain file due to local, Response message is sent to client, client source server is used to indicate and is unable to configuring cross-domain file.Client is according to the response Message marks in cross-domain file configuration information, source server corresponding with the first address is unable to configuring cross-domain file.To visitor Whether family end can first be inquired in cross-domain file configuration information and have recorded in subsequent operating process, video text to be obtained Server where part whether can configuring cross-domain file if being unable to configuring cross-domain file be just redirected directly to intermediate clothes Business device is obtained, without interacting with server.
Cross-domain file configuration method provided in this embodiment provides a kind of client and generates cross-domain file configuration information Method, thus client by inquire the server recorded in cross-domain file configuration information whether can configuring cross-domain file, really Surely it is directly to obtain cross-domain file from the server of storage video file, is still redirected directly to intermediate server and is obtained It takes, without being interacted with server.Improve operating efficiency.
Fig. 3 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention three, as shown in figure 3, being based on above-mentioned implementation Example, it is further comprising the steps of:
Step 301, the cross-domain file is being locally stored;
Step 302, the target video is played according to the cross-domain file and the video file using the player.
Specifically, client stores the cross-domain file obtained from intermediate server locally, when broadcasting for client Device is put when playing target video, is just checked whether with cross-domain file, it, just can according to the cross-domain file if there is cross-domain file To access the video file, video resource associated with target video is obtained.If without cross-domain file, it is necessary to redirect Cross-domain file is obtained to intermediate server.
The cross-domain file obtained from intermediate server is localized by cross-domain file configuration method provided in this embodiment Storage simplifies operation, improves processing effect so that subsequent operation does not need frequently to obtain cross-domain file from intermediate server Rate.
Fig. 4 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention four, as shown in figure 4, including the following steps:
Step 401, the request message for being used to obtain cross-domain file that client is sent is received, the request message includes: The video identifier of target domain name and target video where player, the cross-domain file is for authorizing the target domain name When playing the target video, using being stored on source server video file associated with the target video;
Step 402, the cross-domain file is generated according to the target domain name;
Step 403, the video file is obtained from the source server according to the video identifier;
Step 404, the cross-domain file and the video file are sent to the client, so that the client is answered The target video is played according to the cross-domain file and the video file with the player.
Specific implementation process in the cross-domain file configuration method of the present embodiment may refer to the technology of method shown in FIG. 1 Scheme, realization principle is similar, and details are not described herein again.
Cross-domain file configuration method provided in this embodiment, if source service corresponding with target video is known in client judgement Device is unable to configuring cross-domain file, then obtains cross-domain file corresponding with target domain name where target video by intermediate server, And video file associated with target video, to make the player in target domain name according to cross-domain file and video file Play target video.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, improve The flexibility of video playing.
Fig. 5 is the flow chart of the cross-domain file configuration method of the embodiment of the present invention five, and the present embodiment provides a kind of intermediate clothes Business device obtains the mode of video file from source server, as shown in figure 5, embodiment based on shown in Fig. 4, described according to the view Frequency marking knowledge obtains the video file from the source server, includes the following steps:
Step 501, the associated video information table being locally stored is inquired, source server corresponding with the video identifier is obtained The first address;
Step 502, acquisition request is sent to the source server according to first address, the acquisition request includes: The video identifier, so that the source server is obtained according to the video identifier, video associated with the target video File;
Step 503, the video file that the source server returns is received.
Specifically, it is previously stored with associated video information table on intermediate server, is had recorded in the associated video information table The video identifier of video file is stored in the address information of server and each server.
When the video identifier that intermediate server is sent according to client, inquires the associated video information table and can know and deposit Store up the source server of video file corresponding with the video identifier.To intermediate server according to first address to source server Acquisition request is sent, which includes:The video identifier.
Source server obtains according to the video identifier, video file associated with target video, and by the video file Return to intermediate server.
Cross-domain file configuration method provided in this embodiment provides a kind of intermediate server and obtains video from source server The mode of file, the cross-domain file of video file and generation that intermediate file can will acquire return to client progress video and broadcast It puts.So as to avoid the limitation for being unable to configuring cross-domain file bring video playing due to server, video playing is improved Flexibility.
Fig. 6 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention six, the cross-domain file configuration device It can be client, as shown in fig. 6, the device includes:First receiving module 11, processing module 12,13 and of the first sending module Second receiving module 14, wherein
First receiving module 11, for receiving video playing request, the playing request includes:The video mark of target video Know;
Processing module 12, for inquiring the cross-domain file prestored and matching according to the first address corresponding with the target video Confidence breath judges whether corresponding with first address source server being capable of configuring cross-domain file, wherein the source server In be stored with video file associated with the target video, the cross-domain file is for authorizing the target domain name to play institute The video file is used when stating target video;
First sending module 13, if for judging to know that the source server cannot configure the cross-domain file, basis The second address prestored disappears to intermediate server corresponding with second address, transmission for obtaining the request of cross-domain file Breath, the request message include:The target domain name and the video identifier, so that the intermediate server is according to the target Domain name generates the cross-domain file, and the video file is obtained from the source server according to the video identifier;
Second receiving module 14, for receiving the cross-domain file and video text that the intermediate server returns Part, so that the application player plays the target video according to the cross-domain file and the video file.
The cross-domain file configuration device of the present embodiment can execute the technical side of cross-domain file configuration method shown in FIG. 1 Case, realization principle and effect are similar, and details are not described herein again.
Fig. 7 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention seven, as shown in fig. 7, being based on Fig. 6 institute Show embodiment, which further includes:Second sending module 15 and mark module 16, wherein
Second sending module 15, for according to the first address corresponding with the target video, to first address Corresponding source server sends the request message;
Mark module 16, it is described for knowing that the source server cannot configure according to the response message of the source server Cross-domain file, then marked in the cross-domain file configuration information corresponding with first address source server cannot configure across Domain file.
The cross-domain file configuration device of the present embodiment can execute the technical side of cross-domain file configuration method shown in Fig. 2 Case, realization principle and effect are similar, and details are not described herein again.
Fig. 8 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention eight, as shown in figure 8, being based on Fig. 7 institute Show embodiment, which further includes:Memory module 17 and playing module 18, wherein
Memory module 17, for the cross-domain file to be locally stored.
Playing module 18 plays the mesh according to the cross-domain file and the video file for the application player Mark video.
The cross-domain file configuration device of the present embodiment can execute the technical side of cross-domain file configuration method shown in Fig. 3 Case, realization principle and effect are similar, and details are not described herein again.
Fig. 9 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention nine, the cross-domain file configuration device It can be intermediate server, as shown in figure 9, the device includes:Third receiving module 21, obtains 23 and of module at generation module 22 Third sending module 24, wherein
Third receiving module 21, it is described to ask for receiving the request message for being used to obtain cross-domain file of client transmission The message is asked to include:The video identifier of target domain name and target video where player, the cross-domain file is for authorizing institute State target domain name when playing the target video, using being stored on source server associated with target video video text Part;
Generation module 22, for generating the cross-domain file according to the target domain name;
Module 23 is obtained, for obtaining the video file from the source server according to the video identifier;
Third sending module 24, for the cross-domain file and the video file to be sent to the client, so as to Player described in the client application plays the target video according to the cross-domain file and the video file.
The cross-domain file configuration device of the present embodiment can execute the technical side of cross-domain file configuration method shown in Fig. 4 Case, realization principle and effect are similar, and details are not described herein again.
Figure 10 is the structural schematic diagram of the cross-domain file configuration device of the embodiment of the present invention ten, as shown in Figure 10, is based on Fig. 9 Illustrated embodiment, the acquisition module 23 include:Query unit 231, transmission unit 232 and receiving unit 233, wherein
Query unit 231 obtains corresponding with the video identifier for inquiring the associated video information table being locally stored First address of source server;
Transmission unit 232, for sending acquisition request to the source server according to first address, the acquisition is asked Ask including:The video identifier, so that the source server obtains according to the video identifier, associated with the target video Video file;
Receiving unit 233, the video file returned for receiving the source server.
The cross-domain file configuration device of the present embodiment can execute the technical side of cross-domain file configuration method shown in fig. 5 Case, realization principle and effect are similar, and details are not described herein again.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of cross-domain file configuration method, which is characterized in that include the following steps:
Video playing request is received, the playing request includes:The video identifier of target video;
According to the first address corresponding with the target video, the cross-domain file configuration information prestored is inquired, judgement and described the Whether the corresponding source server in one address being capable of configuring cross-domain file, wherein is stored in the source server and the target The associated video file of video, the target domain name where the cross-domain file is used for authorized players play the target video When use the video file;
If judgement knows that the source server cannot configure the cross-domain file, according to the second address prestored to described the The corresponding intermediate server of double-address, sends the request message for obtaining cross-domain file, and the request message includes:The mesh Domain name and the video identifier are marked, so that the intermediate server generates the cross-domain file according to the target domain name, and The video file is obtained from the source server according to the video identifier;
The cross-domain file and the video file that the intermediate server returns are received, so that the player is according to Cross-domain file and the video file play the target video.
2. cross-domain file configuration method according to claim 1, which is characterized in that in the cross-domain file inquired and prestored Before configuration information, the method also includes following steps:
According to the first address corresponding with the target video, asked to described in source server corresponding with first address transmission Seek message;
Know that the source server cannot configure the cross-domain file according to the response message of the source server, then it is described across Label, source server corresponding with first address are unable to configuring cross-domain file in domain file configuration information.
3. cross-domain file configuration method according to claim 1 or 2, which is characterized in that the method also includes following steps Suddenly:
The cross-domain file is being locally stored;
The target video is played according to the cross-domain file and the video file using the player.
4. a kind of cross-domain file configuration method, which is characterized in that include the following steps:
The request message for being used to obtain cross-domain file that client is sent is received, the request message includes:Where player The video identifier of target domain name and target video, the cross-domain file is for authorizing the target domain name to play the target When video, using being stored on source server video file associated with the target video;
The cross-domain file is generated according to the target domain name;
The video file is obtained from the source server according to the video identifier;
The cross-domain file and the video file are sent to the client, so as to player described in the client application The target video is played according to the cross-domain file and the video file.
5. cross-domain file configuration method according to claim 4, which is characterized in that it is described according to the video identifier from institute It states and obtains the video file on source server, include the following steps:
The associated video information table being locally stored is inquired, the first address of source server corresponding with the video identifier is obtained;
Acquisition request is sent to the source server according to first address, the acquisition request includes:The video identifier, So that the source server is obtained according to the video identifier, video file associated with the target video;
Receive the video file that the source server returns.
6. a kind of cross-domain file configuration device, which is characterized in that including:
First receiving module, for receiving video playing request, the playing request includes:The video identifier of target video;
Processing module, for inquiring the cross-domain file configuration information prestored according to the first address corresponding with the target video, Judge whether corresponding with first address source server being capable of configuring cross-domain file, wherein store in the source server There is video file associated with the target video, the cross-domain file is for authorizing target domain name to play the target video When use the video file;
First sending module, if for judging to know that the source server cannot configure the cross-domain file, according to what is prestored Second address sends the request message for obtaining cross-domain file to intermediate server corresponding with second address, described Request message includes:The target domain name and the video identifier, so that the intermediate server is raw according to the target domain name The video file is obtained from the source server at the cross-domain file, and according to the video identifier;
Second receiving module, the cross-domain file and the video file returned for receiving the intermediate server, so as to Application plays device plays the target video according to the cross-domain file and the video file.
7. cross-domain file configuration device according to claim 6, which is characterized in that further include:
Second sending module, for according to the first address corresponding with the target video, to corresponding with first address Source server sends the request message;
Mark module, for knowing that the source server cannot configure the cross-domain text according to the response message of the source server Part then marks source server corresponding with first address to be unable to configuring cross-domain text in the cross-domain file configuration information Part.
8. cross-domain file configuration device according to claim 6 or 7, which is characterized in that further include:
Memory module, for the cross-domain file to be locally stored;
Playing module plays the target according to the cross-domain file and the video file for the application player and regards Frequently.
9. a kind of cross-domain file configuration device, which is characterized in that including:
Third receiving module, for receiving the request message for being used to obtain cross-domain file of client transmission, the request message Including:The video identifier of target domain name and target video where player, the cross-domain file is for authorizing the target When domain name plays the target video, using being stored on source server video file associated with the target video;
Generation module, for generating the cross-domain file according to the target domain name;
Module is obtained, for obtaining the video file from the source server according to the video identifier;
Third sending module, for the cross-domain file and the video file to be sent to the client, so as to the visitor Family end plays the target video according to the cross-domain file and the video file using the player.
10. cross-domain file configuration device according to claim 9, which is characterized in that the acquisition module, including:
Query unit obtains source service corresponding with the video identifier for inquiring the associated video information table being locally stored First address of device;
Transmission unit, for sending acquisition request to the source server according to first address, the acquisition request includes: The video identifier, so that the source server is obtained according to the video identifier, video associated with the target video File;
Receiving unit, the video file returned for receiving the source server.
CN201510406768.3A 2015-07-10 2015-07-10 A kind of cross-domain file configuration method and device Expired - Fee Related CN105025096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510406768.3A CN105025096B (en) 2015-07-10 2015-07-10 A kind of cross-domain file configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510406768.3A CN105025096B (en) 2015-07-10 2015-07-10 A kind of cross-domain file configuration method and device

Publications (2)

Publication Number Publication Date
CN105025096A CN105025096A (en) 2015-11-04
CN105025096B true CN105025096B (en) 2018-11-20

Family

ID=54414790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510406768.3A Expired - Fee Related CN105025096B (en) 2015-07-10 2015-07-10 A kind of cross-domain file configuration method and device

Country Status (1)

Country Link
CN (1) CN105025096B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8103740B1 (en) * 2009-05-13 2012-01-24 Google Inc. Cross-domain linking of data types
CN102595209A (en) * 2012-01-19 2012-07-18 杭州华三通信技术有限公司 Cross-domain on-demand method in video monitoring system and video management server
CN103457857A (en) * 2012-06-04 2013-12-18 正文科技股份有限公司 Cross-domain multi-media resource identification system and method thereof
CN103856543A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Method for processing video, mobile terminal and server
CN104090820A (en) * 2013-11-26 2014-10-08 腾讯科技(深圳)有限公司 Method and device for playing webpage multimedia file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8103740B1 (en) * 2009-05-13 2012-01-24 Google Inc. Cross-domain linking of data types
CN102595209A (en) * 2012-01-19 2012-07-18 杭州华三通信技术有限公司 Cross-domain on-demand method in video monitoring system and video management server
CN103457857A (en) * 2012-06-04 2013-12-18 正文科技股份有限公司 Cross-domain multi-media resource identification system and method thereof
CN103856543A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Method for processing video, mobile terminal and server
CN104090820A (en) * 2013-11-26 2014-10-08 腾讯科技(深圳)有限公司 Method and device for playing webpage multimedia file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于身份认证的跨域文件传输系统的设计与实现;程璐;《第十七届全国青年通信学术年会论文集》;20121231;472-476 *

Also Published As

Publication number Publication date
CN105025096A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN106850699B (en) A kind of mobile terminal login authentication method and system
CN104980809B (en) A kind of barrage treating method and apparatus
CN104137520B (en) A kind of information push method and device
US9032497B2 (en) System and method for securing embedded media
CN102449976B (en) System and method for accessing private digital content
CN107077541A (en) Part URL signature systems and method applied to dynamic self-adapting Streaming Media
CN106170771A (en) For managing the method for notice, system and the medium pointing to the multiple application being installed on subscriber equipment
CN109088917A (en) The control of cloud queue accesses
CN108197891A (en) A kind of electronic signature device and method based on block chain
CN108092984A (en) A kind of authorization method of applications client, device and equipment
CN104796737B (en) Channel based on group plays implementation method, system and equipment
US8555401B2 (en) Content provision system
CN106330813A (en) Method, device and system for processing authorization
CN106060055A (en) Television video playing method and system
CN107222326A (en) Access method, collocation method and the device serviced for equipment room
WO2017101354A1 (en) Message pushing system and method
CN104052657B (en) Method and device for implementing instant messaging
CN109347637A (en) Authentication method, content delivery network (CDN) and content server
CN103905201B (en) Interaction method and device for master application and multiple slave applications
JP2007133877A (en) Digital copyright management method and system
CN108632399A (en) A kind of address distribution method and device
CN106791947A (en) Method and device for transmitting network video and electronic equipment
CN104284215B (en) A kind for the treatment of method and apparatus of video request
CN109618187A (en) A kind of acquisition methods and device of video data
CN105025096B (en) A kind of cross-domain file configuration 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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A cross domain file configuration method and device

Effective date of registration: 20210104

Granted publication date: 20181120

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: WUXI TVMINING MEDIA SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001517

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181120

Termination date: 20210710