WO2017206648A1 - Procédé et dispositif permettant de partager un fichier dans un réseau dlna et système dlna - Google Patents
Procédé et dispositif permettant de partager un fichier dans un réseau dlna et système dlna Download PDFInfo
- Publication number
- WO2017206648A1 WO2017206648A1 PCT/CN2017/082704 CN2017082704W WO2017206648A1 WO 2017206648 A1 WO2017206648 A1 WO 2017206648A1 CN 2017082704 W CN2017082704 W CN 2017082704W WO 2017206648 A1 WO2017206648 A1 WO 2017206648A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- dmp
- media file
- shared
- dms
- record table
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Definitions
- the present disclosure relates to the field of communication technologies, for example, to a method, apparatus, and DLNA system for sharing files in a DLNA network.
- DMS Digital Living Network Alliance
- DMP Digital Media Player
- DLNA technology is usually applied in a local area network (LAN).
- LAN local area network
- DMS digital media server
- Other devices with media playback capabilities in the local area network are used as digital media players DMP.
- DMP uses the Simple Service Discovery Protocol (SSDP) to advertise their information to the DLNA devices on the LAN.
- SSDP Simple Service Discovery Protocol
- DMP uses the Hyper Text Transfer Protocol (HTTP) to request media files on the shared server. After receiving the request, the DMS transmits the requested file to the DMP.
- HTTP Hyper Text Transfer Protocol
- the present disclosure provides a method, apparatus, and DLNA system for sharing files in a DLNA network to solve the problem that the digital media server is overloaded to reduce the rate of sharing media files, and the use cost of the entire DLNA network is increased.
- the embodiment provides a method for sharing a file in a digital living network alliance DLNA network, including: the digital media server DMS acquires a first sharing request for a media file sent by the first digital media player DMP; The second DMP provides the shared media file for the first DMP; and when the DMS determines that the result is yes, the second DMP is selected from the shared record table of the media file, and the redirect message is sent to the first DMP.
- the redirect message includes address information of the second DMP
- the shared record table records address information of a plurality of DMPs that have been shared by the media file.
- the step of determining, by the DMS, whether the media file is shared by the first DMP by using the second DMP includes: determining, by the DMS, the load according to the self load and the shared record table, where the load exceeds a load threshold And when the address information of the DMP that has been shared by the media file is recorded in the shared record table, it is determined that the media file shared by the DMP is provided by the DMP, and the load is not exceeded in the load. When the DMP address information of the media file is not recorded in the threshold or the shared record table, it is determined that the shared media file is not provided by the second DMP for the first DMP.
- the method further includes: determining, by the DMS, that the first DMP is not provided by the second DMP.
- the media file is shared, the media file is directly shared with the first DMP, and the address information of the first DMP is maintained in the shared record table of the media file.
- the method further includes: when receiving, by the DMS, the notification message that the first DMP is sent to the second DMP to obtain the media file failure, Maintaining the address information of the second DMP in the shared record table of the media file.
- the method may further include: the DMS monitors the traffic load of the DMP in the DLNA network in real time, and maintains at least one of processing performance and traffic information of the device of each DMP.
- the step of selecting a second DMP from the shared record table of the media file includes: from the shared record table of the media file, according to at least one of processing performance and traffic information of each DMP device One, choose the second DMP.
- the embodiment provides a method for sharing a file in a digital living network alliance DLNA network.
- the method may include: the first DMP sends a first sharing request to the media file to the DMS; and the first DMP acquires the redirect message sent by the DMS.
- the redirect message includes the address information of the second DMP; and the first DMP sends a second sharing request to the media file to the second DMP according to the redirect message.
- the method may further include: receiving, by the first DMP, locally saving the second DMP transmission The media file.
- the method may further include: receiving, by the first DMP, a third share of the media file sent by the third DMP The first DMP sends the locally saved media file to the third DMP according to the third sharing request.
- the method may further include: when the first DMP is to the When the second DMP fails to acquire the media file, the fourth sharing request is sent to the DMS, where the fourth sharing request includes a notification message that the media file fails to be acquired by the second DMP.
- the embodiment further provides an apparatus for sharing a file in a DLNA network, which is applicable to the DMS, and includes: a first acquiring module, configured to acquire a first sharing request for the media file sent by the first digital media player DMP. a judging module, configured to determine whether the shared media file is provided for the first DMP by using the second DMP; and the message sending module is configured to: when determining to provide the shared media file for the first DMP by using the second DMP, Selecting a second DMP in the shared record table of the media file, and The first DMP sends a redirect message, where the redirect message includes address information of the second DMP, and the shared record table records address information of the media player DMP that has shared the media file. .
- the determining module may be configured to: determine, according to the self load and the shared record table, that the load exceeds the load threshold, and the shared record table records the DMP that has been shared by the media file.
- the address information is determined, it is determined that the media file shared by the first DMP is provided by the second DMP, and the DMP address information of the media file is not recorded when the load does not exceed the load threshold or the shared record table is not recorded.
- the second DMP provides the shared media file for the first DMP.
- the device may further include: a sharing processing module, configured to directly share the media file to the first DMP when determining that the shared media file is not provided by the second DMP for the first DMP, and The address information of the first DMP is maintained in the shared record table of the media file.
- a sharing processing module configured to directly share the media file to the first DMP when determining that the shared media file is not provided by the second DMP for the first DMP, and The address information of the first DMP is maintained in the shared record table of the media file.
- the device may further include: an information maintenance module, configured to: after the sending the message module sends the redirect message to the first DMP, acquire the to the second DMP after receiving the first DMP transmission When the media file fails to notify the message, the address information of the second DMP is maintained in the shared record table of the media file.
- an information maintenance module configured to: after the sending the message module sends the redirect message to the first DMP, acquire the to the second DMP after receiving the first DMP transmission When the media file fails to notify the message, the address information of the second DMP is maintained in the shared record table of the media file.
- the apparatus may further include: a monitoring module configured to monitor a traffic load of the DMP in the DLNA network in real time, and maintain at least one of processing performance and traffic information of each DMP device;
- the message sending module is configured to select, according to at least one of processing performance and traffic information of the device of the DMP, the second DMP from the shared record table of the media file.
- the embodiment further provides an apparatus for sharing a file in a DLNA network, which is applicable to the DMP, and includes: a first sending module, configured to send a first sharing request to the media file to the DMS; and a second acquiring module, configured to Obtaining a redirect message sent by the DMS, where the redirect message includes address information of the second DMP; and the second sending module is configured to send a second sharing request for the media file according to the redirect message To the second DMP.
- a first sending module configured to send a first sharing request to the media file to the DMS
- a second acquiring module configured to Obtaining a redirect message sent by the DMS, where the redirect message includes address information of the second DMP
- the second sending module is configured to send a second sharing request for the media file according to the redirect message To the second DMP.
- the second obtaining module may be further configured to: after the first DMP sends the second sharing request for the media file to the second DMP, receive and locally save the second DMP sending The media file.
- the device may further include: a receiving module, configured to: after the second acquiring module saves the media file, receive a third sharing request for the media file sent by the third DMP; and the third sending module is configured to be configured according to the The third sharing request sends the locally cached media file to the third DMP.
- a receiving module configured to: after the second acquiring module saves the media file, receive a third sharing request for the media file sent by the third DMP; and the third sending module is configured to be configured according to the The third sharing request sends the locally cached media file to the third DMP.
- the apparatus may further include: a fourth sending module, configured to: after the second sending module sends the second sharing request for the media file to the second DMP according to the redirect message, When the media file fails to be acquired by the second DMP, the fourth sharing request is sent to the DMS, where the fourth sharing request includes a notification message that the media file fails to be acquired by the second DMP.
- a fourth sending module configured to: after the second sending module sends the second sharing request for the media file to the second DMP according to the redirect message, When the media file fails to be acquired by the second DMP, the fourth sharing request is sent to the DMS, where the fourth sharing request includes a notification message that the media file fails to be acquired by the second DMP.
- the present embodiment also provides a DLNA system, which may include the apparatus for sharing files in the DLNA network applied to the DMP side as described above and the apparatus for sharing files in the DLNA network applied to the DMS side as described above.
- the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the method on the DMS side or the method on the DMP side.
- the embodiment also provides a digital media server DMS comprising one or more processors, a memory and one or more programs, the one or more programs being stored in the memory when being processed by one or more processors When executed, the above method applied to the DMS side is performed.
- DMS digital media server
- the embodiment further provides a digital media player DMP comprising one or more processors, a memory and one or more programs, the one or more programs being stored in the memory when processed by one or more When the device is executed, the above method applied to the DMP side is performed.
- DMP digital media player
- the embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer And causing the computer to perform any of the above methods applied to the DMS side or the DMP side.
- the media player sharing the same media file is used as the temporary server of the next media player that requires sharing the media file, which reduces the load of the server (DMS) itself to read/write data. , also reducing the bandwidth load of the server egress link, will be completely
- the DMS bears the load balancing to the devices in the entire DLNA network, so that the media servers in the DLNA network do not have to carry excessive load in the same time period, improve the shared file rate and user experience, improve the file sharing capability of the overall DLNA network, and improve System processing performance while reducing network deployment costs.
- Fig. 1 is a flow chart showing the first embodiment.
- Fig. 2 is a diagram showing the message interaction between the DMS and the DMP in the first embodiment.
- FIG. 3 is a schematic diagram 1 showing the flow of message interaction between the DMS and the DMP and the TDMS of the present embodiment.
- FIG. 4 is a schematic diagram 2 showing the flow of message interaction between the DMS and the DMP and the TDMS according to the embodiment.
- FIG. 5 is a schematic diagram showing the flow of message interaction between the DMS and the DMP and the TDMS when there is an abnormality in the DMP device in the DLNA network in this embodiment.
- FIG. 6 is a schematic flow chart of the DMS performing message interaction with the DMP and the TDMS according to the traffic information in the DLNA network in this embodiment.
- Fig. 7 is a flow chart showing the second embodiment.
- Fig. 8 is a block diagram showing the structure of the third embodiment.
- Fig. 9 is a block diagram showing the structure of the third embodiment.
- FIG. 10 is a diagram showing the general hardware structure of the digital media server DMS of this embodiment.
- FIG. 11 is a diagram showing the general hardware structure of the digital media player DMP of the present embodiment.
- a method for sharing a file in a digital living network alliance DLNA network is disclosed. As shown in FIG. 1, the method may include: steps 110-130.
- step 110 the digital media server DMS obtains a first sharing request for the media file sent by the first digital media player DMP.
- the destination address is a multicast address.
- the SSDP message announces the information of its own device to the full LAN device.
- One of the DMP devices requests the DMS to share a media file.
- the DMS obtains a sharing request for the media file sent by the DMP, and transmits the requested media file to the DMP when the situation permits.
- message interaction can be performed through a unicast Hyper Text Transfer Protocol (HTTP).
- HTTP Hyper Text Transfer Protocol
- the DMS can be a storage device.
- step 120 the DMS determines if the media file needs to be shared by the second DMP.
- the second DMP may be a DMP other than the DMS that has shared the media file.
- the DMS may be in the process of sharing the media file with the second DMP, and the DMS may not be able to load more sharing processes at this time. Therefore, before processing the sharing request sent by the DMS, the DMS needs to determine whether the DMS itself can load the sharing request. If the DMS is overloaded, the sharing process of the media file can be performed by other DMPs that have shared the media file.
- step 130 when determining that the media file needs to be shared by the second DMP, the DMS selects a second DMP from the shared record table of the media file, and sends a redirect message to the first DMP.
- the redirect message may include address information of the second DMP, where the address information of the media player DMP that has shared the media file is recorded in the shared record table.
- the DMS selects a second DMP from the shared record table corresponding to the media file, and sends a redirect message including the address of the second DMP to the first DMP, so that the first DMP obtains the media file from the second DMP.
- the DMP information of the media file has been recorded in the shared record table of the media file, and the DMP information may include: address information of the DMP.
- the shared record table can be recorded by the DMS in the share Recorded, or formed by the system automatically recorded.
- the DMS transmits the requested file to DMP1 according to the file sharing request of DMP1, and at this time, DMP2 also starts to request the DMS to share the same media file. If the DMS is in a high load state at this time, the DMS sends a redirect message to DMP2, and the destination destination address is the address of DMP1, and informs DMP2 that the requested file is also present on DMP1, and the DMP1 can initiate a sharing request, at which time DMP1 becomes DMP2's Temporary Digital Media Server (Temporary DMS, TDMS).
- Temporary DMS Temporary Digital Media Server
- DMP1 when DMP2 requests DMP1 to share the file according to the redirect message of the DMS, DMP1 transmits the requested file to DMP2 according to the request, and at this time, DMP3 also starts to request the DMS to share the same media file. .
- the DMS can issue a redirect message to DMP3, and the destination destination address is the address of DMP2, and inform DMP3 that the requested file is also present on DMP2, and can be directed to the DMP2. Initiate a sharing request.
- DMP3 After receiving the redirect message, DMP3 starts to initiate a file request to DMP2. At this time, DMP2 acts as a temporary media server (TDMS) of DMP3, and DMP2 transmits the requested file to DMP3 as a temporary media server (TDMS).
- TDMS temporary media server
- DMP1 when DMP1 shares the media file from the DMS, DMP1 can provide this media file to DMP2 as TDMS1.
- DMP2 shares this file, it can also provide this media file to DMP3 as TDMS2.
- the shared file is performed in the DLNA network, and the plurality of media players in the DLNA network are selected, so that the media player sharing the same media file is used as the next media player that needs to share the media file.
- the temporary server of the device which reduces the load of the read/write data of the digital media server (DMS) itself, and also reduces the bandwidth load of the server egress link, and the load that is completely borne by the DMS is balanced to the devices in the entire DLNA network.
- DMS digital media server
- the load sharing method is used to share files, so that the media servers in the DLNA network do not have to carry excessive load in the same time period, improve the shared file rate and user experience, improve the file sharing capability of the overall DLNA network, and improve the processing performance of the system. At the same time, the network deployment cost and the use cost of the DLNA network are reduced.
- the method may further include: when the DMS determines that the media file does not need to be shared by the second DMP, to the first DMP sharing station. Media files and maintain the first DMP in the shared record table of the media files Address information.
- the DMS when the current working condition and the running condition of the DMS satisfy the direct sharing of the first DMP media file, the DMS directly shares the media file with the first DMP, and the shared record table corresponding to the media file.
- the operation of directly recording the DMS to the first DMP shared media file is performed.
- the maintaining the address information of the first DMP may be: adding the address information of the first DMP to the shared record table of the media file, or marking the address information of the first DMP, marking the first DMP as having been The media player that has shared the media file, or prioritizes the address information of the first DMP, and performs focused recording in the shared record table.
- multiple DMPs may be arranged in a certain order.
- the DMP arranged at the top of the shared record table may be limited as a temporary digital media server compared to the DMP arranged at the bottom of the shared record table.
- the DMP priorities are ranked from top to bottom in order from high to low. It should be noted that the arrangement of multiple DMPs in the shared record table is merely an example, and other reasonable arrangements may also be applied to this embodiment.
- the step of determining, by the DMS in the step 120, whether the media file needs to be shared by the DMP may include: determining, by the DMS according to the self load and the shared record table, that the load exceeds a load threshold, and the shared record When the address information of the DMP is recorded in the table, it is determined that the media file needs to be shared by the second DMP. When the load does not exceed the load threshold or the DMP address information of the media file is not recorded in the shared record table, it is determined that the media file does not need to be recorded. The media file is shared by the second DMP.
- DMP devices will have many abnormal situations when sharing files: for example, offline completion occurs during sharing or sharing, DMP software does not support retaining local cache files, or local cache files are encrypted and cannot be shared. Give other equipment and so on.
- the method may further include: after the DMS sends the redirect message to the first DMP, the method may further include: Receiving the notification message of the failure of the first DMP to obtain the media file by the first DMP, maintaining the location of the second DMP in the shared record table of the media file Address information.
- the notification message may be included in a sharing request (which may be referred to as a fourth sharing request) that is resent to the DMS after the first DMP fails to acquire the sharing to the second DMP.
- a sharing request (which may be referred to as a fourth sharing request) that is resent to the DMS after the first DMP fails to acquire the sharing to the second DMP.
- the DMS obtains a fourth sharing request of the media file sent by the first DMP, where the fourth sharing request includes: the second DMP notifying the message that the abnormality occurs during the sharing of the media file to the first DMP.
- the DMS performs the sharing process of the media file according to the fourth sharing request, and proceeds to the processing of steps 110, 120, and 130. And according to the notification message, the DMS deletes the address of the second DMP from the shared record table corresponding to the media file.
- the maintaining the address information of the second DMP may be: deleting the address information of the second DMP in the shared record table of the media file, or marking the address information of the second DMP, marking the second DMP
- the address information is invalid address information, or the priority is added to the second DMP, so that the DMP is sorted in the shared record table of the media file, that is, when the DMS selects DMP from the shared record table of the media file.
- you first select the DMP with the highest priority (high priority) avoid first selecting the second DMP as the temporary digital media server to share the media file with other DMPs.
- the above processing may include the following operations.
- DMP1 requests to share a media file to a storage device that is a DMS.
- message interaction can be performed by unicast HTTP.
- the DMS transmits the requested file to DMP1; at this time, DMP2 also starts to request the DMS to share the same media file; therefore, the DMS sends a redirect message to DMP2, and the destination destination address is the address of DMP1, informing DMP2 that the requested file is on DMP1.
- a sharing request can be initiated to DMP1.
- DMP2 After receiving the redirect message, DMP2 starts to initiate a file request to DMP1, but at this time DMP1 has an exception during the work process, offline or does not generate a valid local cache file. After DMP2 fails to request a shared file from DMP1, it requests the DMS to share this file again. At the same time, the message is sent to inform the DMS device that DMP1 has an abnormality and cannot be used as a temporary media server (TDMS). After receiving the message, the DMS deletes the address of DMP1 from the shared record list of the media file and no longer advertises it to other DMP devices as a temporary media server.
- TDMS temporary media server
- the file requested to be shared can be transmitted by DMS to DMP2 or redirected to the shared record
- the other DMPs recorded in the table are used by other DMPs as temporary media servers to share the requested media files.
- DMP3 or more DMP devices request to share the same media file with the DMS, the DMS will no longer redirect the DMP1 address to these DMP devices, but may redirect to an address such as DMP2.
- DMP3 starts to initiate a file request to DMP2.
- DMP2 acts as a temporary media server (TDMS) of DMP3; DMP2 transmits the requested file to DMP3 as a temporary media server (TDMS).
- TDMS temporary media server
- the DMS can monitor the traffic load of the entire network and perform dynamic resource allocation.
- the process may include: the DMS monitors the traffic load of all DMPs in the DLNA network in real time, and maintains each At least one of processing performance and traffic information of a DMP device.
- the DMS monitors the traffic load of all DMPs in the DLNA network, and dynamically allocates resources according to the traffic load, so that at least one of the processing performance and traffic information of each DMP device is ordered and balanced.
- the maintenance may be performed by monitoring data traffic of all DMPs in the DLNA network, obtaining traffic load of all DMPs, and acquiring at least one of processing performance and traffic information of the DMP device, for each DMP device. Process at least one of performance and traffic information for timely update, or comprehensively sort at least one of device processing performance and traffic information of each DMP, or mark DMP with good performance and low load, etc.
- the maintenance result selects the preferred DMP according to the preset policy.
- the step of selecting the second DMP from the shared record table of the media file may include: from the shared record table of the media file, according to processing performance and traffic information of the DMP device At least one of the options, choose the second DMP.
- a second DMP is selected.
- the second DMP may be the DMP with the best performance among the multiple DMPs in the shared record table, or the DMP with the smallest traffic load among the multiple DMPs, or balance the performance and traffic of multiple DMPs in the shared record table. , thereby selecting a DMP that satisfies the condition as the second DMP.
- the second DMP can be the root Sort results based on at least one of the processing performance and traffic information of the DMP device.
- the DMP is processed according to the processing performance and the traffic information, for example, the DMPs are arranged in order according to the network traffic load from small to large.
- the DMS can prioritize the DMP with the highest ranking as the second DMP.
- the second DMP network has a small traffic load and the device has strong processing performance.
- the processing procedure corresponding to the foregoing solution may include: when there are a large number of DMPs in the network, for example, including a digital media playing device from DMP1 to DMP7, when a target DMP initiates a file sharing request to the DMS, for example, When DMP7 initiates a file sharing request to the DMS; at the same time, the DMS turns on the traffic monitoring function to monitor the traffic and load status of the entire network in real time.
- the DMS receives a new file sharing request (referring to DMP7's file sharing request)
- the DMS can select a low-load, bandwidth-rich DMP as the TDMS from the monitoring list. Redirect new file sharing requests to this low-load TDMS.
- DMP7 initiates a file sharing request to the low load TDMS.
- the DMS performs a comprehensive comparison and selects DMP1 as a temporary media server (TDMS) to transmit the requested file to DMP7.
- TDMS temporary media server
- a method for sharing a file in a digital living network alliance DLNA network is disclosed. As shown in FIG. 7, the method may include: steps 201-203.
- step 201 the first DMP sends a first sharing request to the media file to the DMS.
- step 202 the first DMP obtains a redirect message sent by the DMS, where the redirect message includes address information of the second DMP.
- the first DMP acquires the media file shared by the DMS.
- the DMS directly shares the media file to the first DMP.
- step 203 the first DMP sends a second sharing request to the media file to the second DMP according to the redirect message.
- the cache file of the media file is locally generated.
- DMP2 After DMP2 receives the redirect message, it starts to initiate a file request to DMP1. At this time, DMP1 acts as a temporary media server (TDMS) for DMP2. When DMP2 receives the shared file sent by DMP1, it generates a cache file locally.
- TDMS temporary media server
- the method for sharing the file in the DLNA network may include the following steps.
- the first DMP receives a third sharing request for the media file sent by the third DMP.
- the first DMP sends the locally cached media file to the third DMP according to the third sharing request.
- This process implements DMP1 as a temporary media server (TDMS) to transfer the requested file to DMP2 to reduce the network load of the DMS, and DMP2 also starts to generate a local cache file when the shared media file is successfully obtained.
- TDMS temporary media server
- the DMP when the file is shared in the DLNA network, when the load of the digital media server is high, the DMP can request the file from the other digital media player SMP sharing the same media file through the received redirect message. Sharing, the digital media player DMP sharing the media file as a temporary server, which reduces the load of reading/writing data of the digital media server (DMS) itself, and reduces the bandwidth load of the server egress link, which will be completely.
- DMS digital media server
- the load balancing by the DMS to the devices in the entire DLNA network makes it unnecessary for the media servers in the DLNA network to carry excessive load in the same time period, improve the shared file rate and user experience, and improve the file sharing capability of the overall DLNA network. Improve system processing performance while reducing network deployment costs.
- the first DMP may further include: when the first DMP obtains the second DMP When the media file fails, the fourth sharing request is sent to the DMS, and the fourth sharing request includes a notification message that the media file fails to be acquired by the second DMP.
- DMP2 After DMP2 receives the redirect message, it starts to initiate a file request to DMP1, but at this time, DMP1 is abnormal during the work process, and offline or no valid local cache file is generated.
- DMP2 fails to request the shared file from DMP1, it requests the DMS to share the file again, that is, sends a fourth sharing request to the DMS, and carries a message to inform the DMS device that DMP1 has an abnormality and cannot be used as a temporary media server (TDMS).
- TDMS temporary media server
- the DMS deletes the address of DMP1 from the TDMS list and no longer advertises it to other DMP devices as a temporary media server.
- the DMP1 notifies the DMS of the failure of the second DMP to obtain the media file, so that the DMS maintains the shared record table in time, and keeps the information recorded in the shared record table as valid information, thereby avoiding DMS.
- a redirect message containing the address of the second DMP is sent to the DMP device requesting the media file.
- an apparatus for sharing files in a Digital Living Network Alliance DLNA network is disclosed, and the apparatus can be applied to a DNS.
- the apparatus may include: a first obtaining module 301, a determining module 302, and a message sending module 303.
- the first obtaining module 301 is configured to acquire a first sharing request for the media file sent by the first media player DMP.
- the determining module 302 is configured to determine whether the media file needs to be shared by the second DMP.
- the message sending module 303 is configured to: when determining that the media file needs to be shared by the second DMP, select a second DMP from the shared record table of the media file, and send a redirect message to the first DMP.
- the redirect message may include address information of the second DMP, where the address information of the media player DMP that has been shared by the media file may be recorded in the shared record table.
- the determining module 302 may be configured to: determine, according to the self load and the shared record table, that when the load exceeds the load threshold, and the address information of the DMP is recorded in the shared record table, the judgment needs to be passed.
- the second DMP shares the media file, and when the load does not exceed the load threshold or the DMP address information of the media file is not recorded in the shared record table, it is determined that the media file does not need to be shared by the second DMP.
- the apparatus may further include: a sharing processing module.
- the sharing processing module may be configured to share the media file with the first DMP when the media file is not required to be shared by the second DMP, and maintain the address information of the first DMP in the shared record table of the media file. .
- the apparatus may further include: an information maintenance module.
- the information maintenance module may be configured to obtain the first DMP transmission to the second DMP after receiving the first DMP When the notification message of the media file failure is taken, the address information of the second DMP is maintained in the shared record table of the media file.
- the apparatus may further include: a listening module.
- the listening module can be set to listen to the traffic load of all DMPs in the DLNA network, and maintain device processing performance and/or traffic information of each DMP.
- the message sending module 303 may be configured to select, according to at least one of processing performance and traffic information of the device of the DMP, from the shared record table of the media file, the second DMP.
- the apparatus may include: a first sending module 401, a second obtaining module 402, and a second sending module 403.
- the first sending module 401 is arranged to send a first sharing request for the media file to the DMS.
- the second obtaining module 402 is configured to obtain a redirect message sent by the DMS, where the redirect message includes address information of the second DMP.
- the second sending module 403 is configured to send a second sharing request to the media file to the second DMP according to the redirect message.
- the apparatus may further include: a receiving module and a third transmitting module.
- the receiving module is configured to receive a third sharing request for the media file sent by the third DMP.
- the third sending module is configured to send the locally cached media file to the third DMP according to the third sharing request.
- the apparatus may further include: a fourth transmitting module.
- the fourth sending module is configured to send a fourth sharing request to the DMS when the media file fails to be acquired by the second DMP, where the fourth sharing request includes acquiring the media to the second DMP A notification message that the file failed.
- the device is a media player DMP device in a DLNA network.
- a DLNA system which may include: a device for sharing files in a Digital Living Network Alliance DLNA network applied to a DMS as described above, and an application as described above A device for sharing files in a Digital Living Network Alliance DLNA network in DMP.
- the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the above method.
- the DMS may include: a processor 510 and a memory 520; Communication Interface 530 and bus 540.
- the processor 510, the memory 520, and the communication interface 530 can complete communication with each other through the bus 540.
- Communication interface 530 can be used for information transfer.
- the processor 510 can call the logic instructions in the memory 520 to perform the method applied to the DMS side in the above embodiment.
- the logic instructions in the memory 520 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
- the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in this embodiment.
- the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- a medium that can store program code, or a transitory storage medium including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- the DMP may include a processor 610 and a memory 620.
- a communication interface 630 and a bus 640 are included.
- the processor 610, the memory 620, and the communication interface 630 can complete communication with each other through the bus 640.
- Communication interface 630 can be used for information transmission.
- the processor 610 can call the logic instructions in the memory 620 to perform the method applied to the DMS side in the above embodiment.
- the logic instructions in the memory 620 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
- the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in this embodiment.
- the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- a medium that can store program code, or a transitory storage medium including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- the program when executed, may include a flow of an embodiment of the method described above, wherein the computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory. (RAM), etc.
- the computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory. (RAM), etc.
- the present disclosure provides a method, an apparatus, and a DLNA system for sharing files in a DLNA network, which can improve the file sharing capability of the DLNA network as a whole, improve the processing performance of the system, and reduce the network deployment cost.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
La présente invention porte sur un procédé et sur un dispositif permettant de partager un fichier dans un réseau DLNA, ainsi que sur un système DLNA. Le procédé consiste : à acquérir, au moyen d'un serveur multimédia (DMS), une première demande de partage demandant de partager un fichier multimédia et transmise par un premier lecteur multimédia (DMP) ; à déterminer, au moyen du serveur DMS, si le fichier multimédia doit être ou non partagé au moyen d'un second lecteur DMP ; et si le serveur DMS détermine que le fichier multimédia doit être partagé, à sélectionner, à partir d'une table d'enregistrement partagée par rapport au fichier multimédia, un second lecteur DMP et à transmettre un message de redirection au premier lecteur DMP, le message de redirection comportant des informations d'adresse du second lecteur DMP et la table d'enregistrement partagée stockant des informations d'adresse associées à de multiples lecteurs DMP ayant partagé le fichier multimédia.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610387185.5 | 2016-06-01 | ||
| CN201610387185.5A CN107454127A (zh) | 2016-06-01 | 2016-06-01 | 在dlna网络中共享文件的方法、装置及dlna系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017206648A1 true WO2017206648A1 (fr) | 2017-12-07 |
Family
ID=60479654
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/082704 Ceased WO2017206648A1 (fr) | 2016-06-01 | 2017-05-02 | Procédé et dispositif permettant de partager un fichier dans un réseau dlna et système dlna |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107454127A (fr) |
| WO (1) | WO2017206648A1 (fr) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102546616A (zh) * | 2011-12-28 | 2012-07-04 | Tcl集团股份有限公司 | 一种媒体共享互动的实现方法及数字家庭媒体服务器 |
| CN102833365A (zh) * | 2012-08-23 | 2012-12-19 | Tcl集团股份有限公司 | 基于dlna的文件播放方法及系统、主、从dlan设备 |
| EP2562966A1 (fr) * | 2011-08-25 | 2013-02-27 | Samsung Electronics Co., Ltd. | Procédé et appareil permettant de partager un contenu dans un environnement de réseau domestique |
| CN103338263A (zh) * | 2013-07-08 | 2013-10-02 | 广东欧珀移动通信有限公司 | 基于播放器的共享音视频文件的方法及系统 |
| CN104660650A (zh) * | 2013-11-25 | 2015-05-27 | 乐视网信息技术(北京)股份有限公司 | 一种p2p连接方法、服务器、终端以及一种通信系统 |
-
2016
- 2016-06-01 CN CN201610387185.5A patent/CN107454127A/zh not_active Withdrawn
-
2017
- 2017-05-02 WO PCT/CN2017/082704 patent/WO2017206648A1/fr not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2562966A1 (fr) * | 2011-08-25 | 2013-02-27 | Samsung Electronics Co., Ltd. | Procédé et appareil permettant de partager un contenu dans un environnement de réseau domestique |
| CN102546616A (zh) * | 2011-12-28 | 2012-07-04 | Tcl集团股份有限公司 | 一种媒体共享互动的实现方法及数字家庭媒体服务器 |
| CN102833365A (zh) * | 2012-08-23 | 2012-12-19 | Tcl集团股份有限公司 | 基于dlna的文件播放方法及系统、主、从dlan设备 |
| CN103338263A (zh) * | 2013-07-08 | 2013-10-02 | 广东欧珀移动通信有限公司 | 基于播放器的共享音视频文件的方法及系统 |
| CN104660650A (zh) * | 2013-11-25 | 2015-05-27 | 乐视网信息技术(北京)股份有限公司 | 一种p2p连接方法、服务器、终端以及一种通信系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107454127A (zh) | 2017-12-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10555253B2 (en) | Method and system for selection of an access and mobility management function in an access network environment | |
| US10419531B2 (en) | Method for setting gateway device identity, and management gateway device | |
| US9262287B2 (en) | Computer information system and dynamic disaster recovery method therefor | |
| US10979285B2 (en) | Service transmission method, device, and system | |
| CN110234140B (zh) | 一种通信方法、装置、实体及存储介质 | |
| US9392081B2 (en) | Method and device for sending requests | |
| US11251981B2 (en) | Communication method and apparatus | |
| WO2018090386A1 (fr) | Procédé, dispositif et système de traitement d'anomalies de modules nf | |
| US12206567B2 (en) | Dynamic cloning of application infrastructures | |
| WO2019134649A1 (fr) | Procédé et appareil de mise en œuvre pour une migration de ressource de plan de commande, et entité fonctionnelle de réseau | |
| CN103458013A (zh) | 一种流媒体服务器集群负载均衡系统及均衡方法 | |
| US9900359B2 (en) | System and method for supporting video processing load balancing for user account management in a computing environment | |
| CN114338650A (zh) | 文件传输方法、装置、电子设备及可读存储介质 | |
| CN113194518B (zh) | 重定向分配方法、装置和系统 | |
| WO2018000202A1 (fr) | Procédé, appareil et système de migration de charge | |
| CN115412530A (zh) | 一种多集群场景下服务的域名解析方法及系统 | |
| WO2020252724A1 (fr) | Procédé et dispositif de traitement de journal et support d'informations lisible par ordinateur | |
| WO2016206513A1 (fr) | Procédé de priorisation de traitement de données, et dispositif et commutateur d'attribution utilisant celui-ci | |
| WO2018233679A1 (fr) | Procédé et appareil d'équilibrage de charge | |
| US20160154722A1 (en) | Access point group controller failure notification system | |
| US12147845B2 (en) | Virtual machine migration based on network usage | |
| CN105681266B (zh) | 一种多媒体电话MMTel的通讯集群方法及装置 | |
| CN107667513A (zh) | 用于远程网络拓扑发现的系统和方法 | |
| CN111385324A (zh) | 一种数据通信方法、装置、设备和存储介质 | |
| WO2017206648A1 (fr) | Procédé et dispositif permettant de partager un fichier dans un réseau dlna et système dlna |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17805593 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17805593 Country of ref document: EP Kind code of ref document: A1 |