Method and system for media sharing and data protection
Through a decentralized device discovery mechanism and media sharing network, it solves the hardware dependency and data transmission security issues of multiple devices shared within a local area network, enables instant media sharing and continuous and effective data transmission, and supports flexible networking and encryption protection of multiple terminal devices.
Patent Information
- Application Number
- CN202210010875.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-28
- Filing Date
- 2022-01-06
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2042-01-06
AI Technical Summary
Existing media sharing technologies have problems such as hardware dependence, distance limitations, poor continuity, and insufficient data transmission security when shared by multiple devices within a local area network.
It adopts a decentralized device discovery mechanism and media sharing network, and forms a media node network through the inter-device discovery mechanism to realize the encrypted transmission and decryption processing of media data. The master and slave devices can be flexibly switched to ensure the continuous and effective operation of the system.
It realizes instant media sharing among multiple devices in the local area network, ensures the security of data transmission and the continuous and effective operation of the system, and supports flexible networking of different types of terminal devices and encryption protection of media data.
Smart Images

Figure CN116405232B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of media technology, and in particular relates to a method and system for media sharing and data protection. Background Art
[0002] With the rapid development of the internet and media technologies, media application terminals are becoming increasingly diverse. From traditional televisions and computers to mobile phones and tablets, elevator screens, outdoor large screens, and smart cockpits, the presentation methods of media applications on these terminals are also becoming increasingly diverse. Screens of all sizes are breaking free from their original functions of work, commercial promotion, or personal entertainment, and are trending towards integration, interconnection, and sharing. This is especially true in shared spaces on local area networks, where people want to watch TV shows and sports games together, and share personal or online media content at any time. To meet these needs, multi-terminal media sharing technology is needed.
[0003] Existing mainstream media sharing technologies, such as those used in shopping malls and supermarkets, are implemented through traditional video dividers and distributors, which are highly dependent on hardware and are also limited in physical distance. For example, wireless screen projection related to MiraCast (a wireless display standard based on Wi-Fi Direct developed by the Wi-Fi Alliance in 2012), DLNA (DIGITAL LIVING NETWORK ALLIANCE), and AirPlay (Apple's airplay technology) are mainly aimed at point-to-point data delivery from small screens to large screens, and do not support multi-device applications.
[0004] To meet this media sharing demand, one possible implementation method is for all terminal devices to access a shared data source individually and use a certain synchronization mechanism to achieve the effect of simultaneous viewing. However, the limitation of this implementation is that it repeatedly obtains the same data source, which wastes both traffic and authorization.
[0005] A further implementation technology is to use yourself as the initiator of sharing to distribute the content to other devices participating in the sharing. The disadvantage of this is that the central device is firmly bound to the shared resources. Once the central device malfunctions or wants to do other things, the current sharing will end prematurely. To continue, you have to re-initiate the sharing, which is a very bad experience in terms of the continuity and smoothness of sharing.
[0006] Furthermore, in the process of sharing content, data transmission is a very important part, and capturing data in transmission is likely to cause leakage of the transmitted data. Summary of the Invention
[0007] The technical problem to be solved by the present invention is to provide a method and system for media sharing and data protection, so as to realize instant media sharing among multiple devices in a local area network anytime and anywhere, and to perform encryption protection during the data transmission process.
[0008] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0009] In a first aspect, an embodiment of the present invention provides a method for media sharing and data protection, comprising the following steps:
[0010] Devices supporting media sharing in the LAN form a media node network through an inter-device discovery mechanism;
[0011] After forming a media node network through the inter-device discovery mechanism, the devices initiate media sharing and build a media sharing network;
[0012] The data source node pulls the media data from the data source and delivers the media data source to each participating data presentation node based on the media sharing network composed of the data source node and the data presentation node. If the media data source is unencrypted data, the data source node first encrypts the media data source and transmits the encrypted data and key to the data presentation node respectively. If the media data source is data encrypted by a third party, the data source node determines whether the data presentation node supports the corresponding decryption. If so, the media data source is transmitted to the data presentation node. If the data presentation node does not support the corresponding decryption, the data source node first decrypts the data according to the third-party decryption process, then encrypts the media data source, and then transmits the encrypted data and key to the data presentation node respectively.
[0013] The data presentation node is responsible for receiving and processing the media data received from the data source for presentation. If the data is encrypted by the data source node, the data is decrypted according to the received key and then presented. If the media data source is encrypted by a third party, it is decrypted according to the corresponding decryption method and then presented.
[0014] In one possible design of the first aspect, devices supporting the media sharing function in a local area network form a media node network through an inter-device discovery mechanism, including:
[0015] Based on the given multicast network address, the new device is announced to be online;
[0016] After receiving the new device online information packet, other online devices in the multicast network process and determine the networking conditions in the packet. If the conditions are not met, no processing is done. If the conditions are met, the new device's information and communication address are recorded, and the new device is added to the online device list maintained by the device. At the same time, the device information and the information of other devices that meet the networking conditions maintained by the device are used as the response content. According to the communication address provided by the new device, the new device sends back the response information. After receiving the response packet from the online device, the new device adds the response device and other devices included in the information packet to the online device list maintained by the device.
[0017] New devices and existing online devices form a media node network.
[0018] In a possible design of the first aspect, the online information includes the device's unique identifier, the device's communication address, the device's performance indicators, the device's online regular update cycle, and response requirements from other online devices used for networking judgment conditions, and the response requirements include specifying the application type as media sharing.
[0019] In one possible design of the first aspect, after a media node network is formed through an inter-device discovery mechanism, a device initiates media sharing. Building the media sharing network includes:
[0020] The device that initiates media sharing becomes the master device, creates a media sharing session, and starts the session management module, which is used to manage the current media sharing session;
[0021] Using the inter-device communication address information provided by device discovery as a signaling channel, the master device notifies other devices on the network to join the media sharing session;
[0022] The device that agrees to join the session becomes the slave device;
[0023] The master device creates a data source node on a specific terminal, and each slave device that joins the session creates a data presentation node;
[0024] The session management module of the master device records and manages the information of each device and its member nodes, plans and records the data transmission path from the data source node to the data presentation node, and sends it to each node through the signaling channel;
[0025] A media data distribution channel is established between the data source node and each data presentation node according to the planned transmission path, completing the media sharing network associated with the current session.
[0026] In a possible design of the first aspect, during the media data sharing process, if the device of the data source node leaves, the master device selects other suitable devices in the current session and notifies the device to create a new data source node; the master device re-plans and records the path from the new data source node to other data presentation nodes through the session management module, and distributes it to each node; each data node establishes a media sharing network according to the new path, and sends or receives data based on the new network.
[0027] In a possible design of the first aspect, during the media data sharing process, if the master device leaves or does not want to assume the responsibilities of the master device, the authority of the master device is transferred to other devices in the current session. The succeeding slave device becomes the master device, and a session management module is created and run on the new master device.
[0028] In a possible design of the first aspect, if the device to which the running data source node belongs is a master device, the data source node is migrated to another device in the session before transferring the master device authority.
[0029] In a second aspect, an embodiment of the present invention provides a system for media sharing and data protection, including multiple terminals,
[0030] The multiple terminals are arranged in a local area network and support media sharing, and form a media node network through an inter-device discovery mechanism;
[0031] The device initiating media sharing becomes the master device, creates a media sharing session, and starts the session management module. Using the inter-device communication address information provided by device discovery as a signaling channel, the master device notifies other devices on the network to join the media sharing session. The device joining the session becomes a slave device. The master device sets the data source node and sets the other devices joining the session as data presentation nodes. The master device's session management module plans a data transmission path based on the information of each member node and sends it to each node via a signaling channel. A media data distribution channel is established between the data source node and each data presentation node according to the planned transmission path, completing the media sharing network associated with the current session.
[0032] The data source node is used to pull media data from the data source, process it, and distribute it to the data presentation nodes participating in the sharing. The data source node delivers the media data source to the data presentation nodes participating in the sharing. If the media data source is unencrypted data, the data source node first encrypts the media data source and transmits the encrypted data and key to the data presentation node respectively. If the media data source is data encrypted by a third party, it determines whether the data presentation node supports the corresponding decryption. If so, the media data source is transmitted to the data presentation node. If the data presentation node does not support the corresponding decryption, the data source node first decrypts it according to the third-party decryption process, and then encrypts the media data source. The encrypted data and key are then transmitted to the data presentation node respectively.
[0033] The data presentation node is responsible for receiving and processing the media data received from the data source for presentation. If the data is encrypted by the data source node, the data is decrypted according to the received key and then presented. If the media data source is encrypted by a third party, it is decrypted according to the corresponding decryption method and then presented.
[0034] In a possible design of the second aspect, during the media data sharing process, if the device of the data source node leaves, the master device selects other suitable devices in the current session and notifies the device to create a new data source node; the master device re-plans and records the path from the new data source node to other data presentation nodes through the session management module, and distributes it to each node; each data node establishes a media sharing network according to the new path, and sends or receives data based on the new network.
[0035] In a possible design of the second aspect, during the media data sharing process, if the master device leaves or does not want to assume the responsibilities of the master device, the authority of the master device is transferred to other devices in the current session. The succeeding slave device becomes the master device, and a session management module is created and run on the new master device.
[0036] In a possible design of the second aspect, if the device to which the running data source node belongs is a master device, the data source node is migrated to another device in the session before transferring the master device authority.
[0037] The present invention has the following beneficial effects:
[0038] (1) Decentralized device discovery mechanism. This customized lightweight device discovery mechanism does not require additional registration or management server deployment and participation. It ensures that different types of terminal devices in the local area network can flexibly configure networking conditions based on their own unique needs, quickly and reliably discover each other across terminals, and build a decentralized media node network, laying the foundation for the subsequent implementation of media sharing functions.
[0039] (2) The decentralized media sharing mechanism ensures the continuous and effective operation of the media sharing system: the master device responsible for sharing session management is separated from the data source node to optimize the system's operational capabilities. The data source node is responsible for pulling, processing, and distributing media data, and has the heaviest workload in the media sharing system. The master device can evaluate the capabilities of each device participating in the session, including itself, and select the most suitable device to serve as the data source node, thereby maximizing the capacity allocation of the system as a whole.
[0040] (3) The data source node is decoupled from the actual physical device, and the master and slave devices can be flexibly switched to ensure the continuous and effective operation of the media sharing system. During the sharing process, if the device where the data source node is located is abnormal or leaves, the master device can migrate the data source node to other devices through the session management module; if the master device wants to become a slave device or wants to leave the session, it can promptly transfer the master device authority to other slave devices participating in the session to ensure that sharing continues effectively.
[0041] (4) The shared data content is encrypted and protected to ensure the security of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of the steps of the method for media sharing and data protection according to an embodiment of the present invention;
[0043] Figure 2 A flowchart of the steps of device discovery and networking in the method for media sharing and data protection according to an embodiment of the present invention;
[0044] Figure 3 A flowchart of the steps of media sharing networking in the method for media sharing and data protection according to an embodiment of the present invention;
[0045] Figure 4 This is a flowchart of another step of media sharing networking in the method for media sharing and data protection according to an embodiment of the present invention;
[0046] Figure 5 A diagram illustrating the relationship between data source nodes, data presentation nodes, and physical devices in a media sharing and data protection system according to an embodiment of the present invention;
[0047] Figure 6 This is a relationship diagram of another data source node, data presentation node, and physical device in the media sharing and data protection system according to an embodiment of the present invention;
[0048] Figure 7 A schematic diagram of data source node switching in a media sharing and data protection system according to an embodiment of the present invention;
[0049] Figure 8 A schematic diagram of master device switching in a media sharing and data protection system according to an embodiment of the present invention;
[0050] Figure 9 This is a schematic diagram of a first implementation process of media data source encryption and decryption in a media sharing and data protection system according to an embodiment of the present invention;
[0051] Figure 10 This is a schematic diagram of a second implementation process of media data source encryption and decryption in the media sharing and data protection system according to an embodiment of the present invention;
[0052] Figure 11 This is a schematic diagram of a third implementation process of media data source encryption and decryption in the media sharing and data protection system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0054] The following technical terms are defined in the embodiments of the present invention: A device refers to a hardware terminal capable of transmitting and receiving data or encoding, decoding, rendering, and outputting audio and video. A node refers to a software or hardware module that participates in the sharing process and has the corresponding audio and video reception, processing, and playback capabilities. Networking refers to the process of determining the connection and communication method between nodes, which can generally be Ethernet, wireless networks (including but not limited to WiFi, Bluetooth, and cellular data networks), etc. A data source can be an audio or video file, a streaming link transmitted over the network, a camera on a device, a screen projection, or a list of multiple data sources. A data source node is responsible for reading data from a data source and sending it to other nodes in a session. A data presentation node is responsible for receiving and processing data from a data source node and presenting the processed data content. A session corresponds to a sharing instance and includes at least one data source node and one or more data presentation nodes. A master device is a participant in the current session and has administrative privileges (running a management module, which may or may not include any nodes). A slave device is a participant in the current session (including at least one node of any type). It should be further explained that a physical device can run one or more nodes.
[0055] Reference Figure 1 , which is a flowchart of a method for media sharing and data protection according to an embodiment of the present invention, includes the following steps:
[0056] Device discovery and networking: Devices supporting media sharing within the LAN form a media node network through an inter-device discovery mechanism.
[0057] Media sharing networking: After forming a media node network through the inter-device discovery mechanism, devices initiate media sharing to build a media sharing network;
[0058] Media sharing process: The data source node pulls the media data from the data source, and based on the media sharing network composed of the data source node and the data presentation node, delivers the media data source to each data presentation node participating in the sharing. If the media data source is unencrypted data, the data source node first encrypts the media data source and transmits the encrypted data and key to the data presentation node respectively. If the media data source is data encrypted by a third party, it determines whether the data presentation node supports the corresponding decryption. If so, the media data source is transmitted to the data presentation node. If the data presentation node does not support the corresponding decryption, the data source node first decrypts it according to the third-party decryption process, and then encrypts the media data source, and then transmits the encrypted data and key to the data presentation node respectively.
[0059] The data presentation node is responsible for receiving and processing the media data received from the data source for presentation. If the data is encrypted by the data source node, the data is decrypted according to the received key and then presented. If the media data source is encrypted by a third party, it is decrypted according to the corresponding decryption method and then presented.
[0060] A media sharing and data protection method using the above settings is applied within a local area network to achieve instant sharing of specific multimedia resource content, such as pictures, audio or video, among multiple devices, and encrypts and protects the shared data content to ensure data security.
[0061] See also Figure 2 , which shows a process in which devices supporting the media sharing function in a local area network form a media node network through an inter-device discovery mechanism in a method for media sharing and data protection according to an embodiment of the present invention, and mainly includes the following steps:
[0062] Based on a given multicast network address, a new device announces that it is online. The online information includes the device's unique identification information; device communication address information, such as the address and port associated with HTTP / TCP / UDP; basic device performance indicators, including but not limited to CPU and memory information; response requirements of other online devices for networking judgment conditions, such as device type, application type, custom fields, etc. The present invention must specify the application type as media sharing; and a regular update cycle for the device to facilitate other online devices to detect whether the device is online normally.
[0063] When other online devices in the multicast network receive the online information packet of the new device, the packet is processed and the network conditions in the packet are judged, if the conditions are not met, the packet is not processed, if the conditions are met, the information and communication address of the new device are recorded, the new device is added to the online device list maintained by the device, the information of the device and other devices satisfying the network conditions maintained by the device are taken as the response content, and the response information is sent back according to the communication address provided by the new device.
[0064] When the new device receives the response packet of the online device, the responding device and other devices contained in the information packet are added to the online device list maintained by the device. By means of the other devices attached to the response device information packet, the online devices that cannot respond in time due to packet loss can be quickly found, and the problem of slow or impossible discovery of the devices is solved.
[0065] Through the above self-defined lightweight device discovery mechanism, the newly online device and the original online device form a decentralized media node network, the nodes can be freely connected, and each device is a node on the network and has equal status.
[0066] Referring to Figure 3 , a process of initiating media sharing by the device and building a media sharing network after the media node network is formed through the device discovery mechanism in the method for media sharing and data protection is shown, and the following describes a case of creating a media sharing session between devices, mainly including the following steps:
[0067] The local area network includes device A, device B, device C, device D, device E, device F and device G;
[0068] The device initiating the media sharing becomes a master device, creates a media sharing session and starts a session management module. The session management module is used for managing the current media sharing session, including but not limited to data transmission path planning, management of all member nodes including data source nodes and data presentation nodes, etc.
[0069] The address information of the device-to-device communication provided by the device discovery is taken as a signaling channel, and device A as the master device notifies other devices in the network to join the media sharing session.
[0070] Device B, device C and device D in the local area network agree to join the session, and the devices agreeing to join the session become slave devices; at this time, device A, device B, device C and device D form signaling channels with each other;
[0071] The master device creates a data source node on a specific terminal, and device A is the data source node here, which can also not be the local device;
[0072] Each slave device that joins the session creates a data presentation node. Here, devices B, C, and D become data presentation nodes. The master device A can also be a data presentation node.
[0073] The session management module of the master device records and manages the information of each device and its member nodes, plans and records the data transmission path from the data source node to the data presentation node, and sends it to each node through the signaling channel.
[0074] A media data distribution channel is established between the data source node and each data presentation node according to the planned transmission path, completing the media sharing network associated with the current session.
[0075] It is understood that multiple media sharing sessions can be created simultaneously between devices in the local area network, see Figure 4 Taking creating two media sharing sessions as an example, the following steps are included:
[0076] Multiple devices A, B, C, D, E, F, and G in the local area network discover each other through the inter-device discovery mechanism, building an interconnected media node network;
[0077] Device A receives the media sharing request instruction, becomes the master device, creates a media sharing session, and starts the session management module;
[0078] Based on the capability assessment between A, B, C, and D, the master device A creates a data source node and a data presentation node on its own end;
[0079] Devices B, C, and D join the session, become slave devices, and create data presentation nodes.
[0080] The main device A plans the media data sharing path. The data source node and data presentation node on device A, as well as the data presentation nodes on other devices B, C, and D, build a media sharing network 1.
[0081] At the same time, device E receives the media sharing request instruction, device E becomes the master device, creates a media sharing session, and starts the session management module;
[0082] Based on the capability assessment between E, F, and G, the master device E creates a data source node and a data presentation node on its own end;
[0083] Devices F and G join the session, become slave devices, and create data presentation nodes;
[0084] The master device E plans a media data sharing path. The data source node and data presentation node on the device E, as well as the data presentation nodes on other devices F and G, construct a media sharing network 2.
[0085] After building a media sharing network, the following focuses on the data sharing process. In a method for media sharing and data protection according to an embodiment of the present invention, the data sharing process is as follows:
[0086] The data source node pulls data from the data source, including images, audio, video, etc., depending on the data source. Based on the media sharing network composed of data source nodes and data presentation nodes, the original or processed media data is delivered to each data presentation node participating in the sharing;
[0087] The data presentation node is responsible for receiving and processing the media data received from the data source, and presenting the shared media data in an audible and visible form through hardware such as speakers or display screens.
[0088] Furthermore, during the media sharing process, if the device serving as the data source node leaves, the master device selects other suitable devices for the current session and notifies the other suitable devices to create a new data source node; the master device re-plans and records the path from the new data source node to other data presentation nodes through the session management module, and distributes it to each data node; each data node forms a media sharing network according to the new path, and sends or receives data based on the new network.
[0089] Furthermore, during the media sharing process, if the master device leaves or does not want to assume the responsibilities of the master device, it can transfer the master device's permissions to other devices in the current session. The succeeding slave device becomes the master device and creates and runs the session management module. If the master device contains a running data source node, it is necessary to migrate the data source node to another device in the session before transferring the master device's permissions. The migration-related operations are the same as the previous step, that is, the master device selects other suitable devices in the current session and notifies other suitable devices to create a new data source node; the master device re-plans and records the path from the new data source node to other data presentation nodes through the session management module and distributes it to each data node; each data node forms a media sharing network according to the new path and sends or receives data based on the new network.
[0090] Corresponding to the embodiment of the method of the present invention, the embodiment of the present invention provides a system for media sharing and data protection, including multiple devices, multiple devices are set in a local area network and support media sharing, and a media node network is formed through an inter-device discovery mechanism, that is, multiple devices with data transmission and reception and audio, video processing and presentation capabilities. Through a decentralized device discovery mechanism, each device is networked and can communicate with each other.
[0091] After device discovery and networking, some or all devices in the network can form a media sharing subsystem to implement media data sharing. Devices are divided into two types: master devices and slave devices. The master device is the manager of the media subsystem and is responsible for specifying the slave devices that participate in sharing, creating and managing data source nodes, and planning the network transmission paths between data source nodes and data sharing nodes. The slave devices are participants in media sharing and are responsible for creating and managing data presentation nodes. The data source nodes and data presentation nodes form a media sharing network based on the transmission paths planned by the master device.
[0092] The data source node is used to pull media data from the data source, process it, and distribute it to the data presentation nodes participating in the sharing. The data source node delivers the media data source to the data presentation nodes participating in the sharing. If the media data source is unencrypted data, the data source node first encrypts the media data source and transmits the encrypted data and key to the data presentation node respectively. If the media data source is data encrypted by a third party, it determines whether the data presentation node supports the corresponding decryption. If so, the media data source is transmitted to the data presentation node. If the data presentation node does not support the corresponding decryption, the data source node first decrypts it according to the third-party decryption process, and then encrypts the media data source. The encrypted data and key are then transmitted to the data presentation node respectively.
[0093] The data presentation node is responsible for receiving and processing the media data received from the data source for presentation. If the data is encrypted by the data source node, the data is decrypted according to the received key and then presented. If the media data source is encrypted by a third party, it is decrypted according to the corresponding decryption method and then presented.
[0094] The data source node and the data rendering node can be on the same or different physical devices. The data source node is not necessarily on the master device, and the master device can also optionally include a data rendering node. The relationship between the data source node and the data rendering node and the physical device is shown in Figure 5 and Figure 6 , Figure 5 In the example, device A is the master device and also the data source node, and devices B, C, and D are data presentation nodes; Figure 6 In the example, device A is the master device, which is both a data source node and a data presentation node; devices B, C, and D are data presentation nodes.
[0095] The device that initiates media sharing becomes the master device, creates a media sharing session, and starts the session management module; the address information for inter-device communication provided by device discovery is used as a signaling channel, and the master device notifies other devices on the network to join the media sharing session; the device that joins the session becomes a slave device; the master device sets the data source node and sets other devices that join the session as data presentation nodes; the session management module of the master device plans the data transmission path based on the information of each member node and sends it to each node through the signaling channel; a media data distribution channel is established between the data source node and each data presentation node according to the planned transmission path, completing the media sharing network associated with the current session.
[0096] The data source node is used to pull media data from the data source, process it, and distribute it to the participating data rendering nodes. The data rendering nodes are used to receive and process the media data received from the data source node. During the media data sharing process, if the device of the data source node leaves, the master device selects another suitable device in the current session and notifies it to create a new data source node. The master device replans and records the path from the new data source node to the other data rendering nodes through the session management module and distributes it to each node. Each data node forms a media sharing network according to the new path and sends or receives data based on the new network. Figure 7 , which shows a data source node switching process in one embodiment, including the following steps:
[0097] Multiple devices A, B, C, and D in the local area network discover each other through the inter-device discovery mechanism, building an interconnected media node network.
[0098] Device A receives a media sharing request, which contains a data source: a network video stream transmitted over HTTP. Device A becomes the master, creates a media sharing session, and starts the session management module. Based on the capabilities of devices ABCD, master A creates a data source node and a data presentation node on its own. Devices BCD become slaves and create data presentation nodes.
[0099] Master device A plans the media data sharing path. The data source node on device A and the data presentation nodes on other devices build a media sharing network.
[0100] The data source node on device A starts sharing the network video stream, processing the acquired audio and video data and distributing it to the participating data presentation nodes. Each data presentation node then plays the video stream synchronously.
[0101] During the sharing process, if the master device A does not want to take on the processing work of the data source node, it will hand over the data source node to device B, which contains the information of the data source and the current processing progress of the data source, such as the number of data bytes obtained through the HTTP request based on the current HTTP network flow;
[0102] Device A replans the data sharing transmission path and builds a new media sharing network based on the newly created data source node on device B and the data presentation nodes on other devices;
[0103] The data source node on device B continues to acquire and process the media data, and distributes the media data to the data presentation nodes in the sharing network according to the newly planned transmission path; the sharing process continues.
[0104] During media data sharing, if the master device leaves or does not want to assume the master device responsibilities, it will transfer the master device's permissions to other devices in the current session. The succeeding slave device will become the master device, and the session management module will be created and run on the new master device. If the device to which the running data source node belongs is the master device, the data source node will be migrated to another device in the session before transferring the master device permissions. Figure 8 , which shows the process of master-slave device switching, including the following steps:
[0105] Multiple devices A, B, C, and D in the local area network discover each other through the inter-device discovery mechanism, building an interconnected media node network;
[0106] Device A receives a media sharing request, which contains a video stream transmitted over HTTP. Device A becomes the master, creates a media sharing session, and starts the session management module.
[0107] Based on the capability check between ABCD, master device A specifies to create a data source node on device B; devices BCD become slave devices and create data presentation nodes;
[0108] Master device A plans the media data sharing path, and the data source node on device B and the data presentation nodes on other devices build a media sharing network;
[0109] The data source node on device B starts sharing the network video stream, processing the acquired audio and video data and distributing it to the participating data presentation nodes. Each data presentation node then plays the video stream synchronously.
[0110] During the sharing process, master device A cannot assume the work of the master device and transfers the master device's permissions and session management information to device B; device A becomes a slave device; device B creates a session management module and runs it. Since the data source node has not changed, data sharing can continue to operate effectively without any changes.
[0111] In order to make the process of improving the security of media data in the embodiment of the present invention more clearly understood, the process of data encryption and decryption will be further described in detail below.
[0112] See also Figure 9 , shown is the process of processing unencrypted media data source in the media sharing and data protection system of one embodiment of the present invention: if the data source node receives unencrypted media data source data, the data source node generates a key through the key management module and uses its own encryption protocol to encrypt the media data source. The data source node sends the encrypted data to the data rendering node. The data source node sends the key to the data rendering node in a secure manner. The data rendering node decrypts, decodes and renders the received data.
[0113] See also Figure 10 , shown is a processing process in which the media data source in the media sharing and data protection system of one embodiment of the present invention is data encrypted by a third party, and the data rendering node supports third-party decryption: the data source node receives the media data source encrypted by the third party, the data source node sends the encrypted data to the data rendering node, and the data rendering node decrypts, decodes and renders the received data.
[0114] See also Figure 11 , shown is a processing process in which the media data source in the media sharing and data protection system of one embodiment of the present invention is data encrypted by a third party and the data rendering node does not support third-party decryption: the data source node receives the media data source encrypted by the third party, the data source node decrypts the data using the third-party decryption, the data source node generates a key through the key management module, and encrypts the data source using its own encryption protocol, the data source node sends the encrypted data to the data rendering node, the data source node sends the key to the data rendering node in a secure manner, and the data rendering node decrypts, decodes and renders the received data.
[0115] Those skilled in the art will understand that in order to avoid redundant description of the implementation process of the technical solution, the technical details of the implementation process of the media sharing and data protection method and the media sharing and data protection system of the embodiment of the present invention can be referenced to each other and will not be repeated here.
[0116] It should be understood that the exemplary embodiments described herein are illustrative and not restrictive. Although one or more embodiments of the present invention have been described in conjunction with the accompanying drawings, it should be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the present invention as defined by the appended claims.
Claims
1. A method for media sharing and data protection, characterized in that: The following steps are involved: Devices supporting media sharing in the LAN form a media node network through an inter-device discovery mechanism; After forming a media node network through the inter-device discovery mechanism, the devices initiate media sharing and build a media sharing network; The data source node pulls the media data from the data source and delivers the media data source to each participating data presentation node based on the media sharing network composed of the data source node and the data presentation node. If the media data source is unencrypted, the data source node first encrypts the media data source and transmits the encrypted data and key to the data presentation node respectively. If the media data source is encrypted by a third party, the data presentation node determines whether it supports the corresponding decryption. If so, the media data source is transmitted to the data presentation node. If the data presentation node does not support the corresponding decryption, the data source node first decrypts the media data source according to the third-party decryption process, and then encrypts the media data source. The encrypted data and key are then transmitted to the data presentation node respectively. The data presentation node is responsible for receiving and processing the media data received from the data source for presentation. If the data is encrypted by the data source node, it will be decrypted according to the received key and presented; If the media data source is encrypted by a third party, it will be decrypted according to the corresponding decryption method before presentation; After forming a media node network through the inter-device discovery mechanism, devices initiate media sharing. Building a media sharing network includes: The device that initiates media sharing becomes the master device, creates a media sharing session, and starts the session management module, which is used to manage the current media sharing session; Using the inter-device communication address information provided by device discovery as a signaling channel, the master device notifies other devices on the network to join the media sharing session; The device that agrees to join the session becomes the slave device; The master device creates a data source node on a specific terminal, and each slave device that joins the session creates a data presentation node; The session management module of the master device records and manages the information of each device and its member nodes, plans and records the data transmission path from the data source node to the data presentation node, and sends it to each node through the signaling channel; A media data distribution channel is established between the data source node and each data presentation node according to the planned transmission path, completing the media sharing network associated with the current session.
2. The method for media sharing and data protection according to claim 1, wherein: Devices supporting media sharing in the LAN form a media node network through an inter-device discovery mechanism, including: Based on the given multicast network address, the new device is announced to be online; After receiving the new device online information packet, other online devices in the multicast network process and determine the networking conditions in the packet. If the conditions are not met, no processing is done. If the conditions are met, the new device's information and communication address are recorded, and the new device is added to the online device list maintained by the device. At the same time, the device information and the information of other devices that meet the networking conditions maintained by the device are used as the response content. According to the communication address provided by the new device, the new device sends back the response information. After receiving the response packet from the online device, the new device adds the response device and other devices included in the information packet to the online device list maintained by the device. New devices and existing online devices form a media node network.
3. The method for media sharing and data protection according to claim 2, wherein: The online information includes the device unique identifier, the device communication address, the device performance index, the device online regular update cycle and the response requirements of other online devices used for networking judgment conditions, and the response requirements include specifying the application type as media sharing.
4. The method for media sharing and data protection according to claim 1, wherein: During the media data sharing process, if the device of the data source node leaves, the master device selects another suitable device in the current session and notifies the device to create a new data source node; the master device re-plans and records the path from the new data source node to other data presentation nodes through the session management module and distributes it to each node; each data node establishes a media sharing network according to the new path and sends or receives data based on the new network.
5. The method for media sharing and data protection according to claim 1, wherein: During the media data sharing process, if the master device leaves or does not want to assume the responsibilities of the master device, it transfers the master device's permissions to other devices in the current session. The succeeding slave device becomes the master device and creates and runs the session management module on the new master device.
6. The method for media sharing and data protection according to claim 5, wherein: If the device to which the running data source node belongs is the master device, migrate the data source node to another device in the session before transferring the master device authority.
7. A system for media sharing and data protection, characterized in that: Including multiple terminals, The multiple terminals are arranged in a local area network and support media sharing, and form a media node network through an inter-device discovery mechanism; The device that initiates media sharing becomes the master device, creates a media sharing session, and starts the session management module; Using the inter-device communication address information provided by device discovery as a signaling channel, the master device notifies other devices on the network to join the media sharing session; the device that joins the session becomes a slave device; The master device sets up a data source node and sets up other devices joining the session as data presentation nodes. The master device's session management module plans a data transmission path based on the information of each member node and sends it to each node via a signaling channel. A media data distribution channel is established between the data source node and each data presentation node along the planned transmission path, completing the media sharing network associated with the current session. The data source node is used to pull media data from the data source, process it, and distribute it to the data presentation nodes participating in the sharing. The data source node delivers the media data source to the data presentation nodes participating in the sharing. If the media data source is unencrypted, the data source node will first encrypt the media data source and transmit the encrypted data and key to the data presentation nodes respectively. If the media data source is encrypted by a third party, the data presentation node determines whether it supports the corresponding decryption. If so, the media data source is transmitted to the data presentation node. If the data presentation node does not support the corresponding decryption, the data source node first decrypts the media data source according to the third-party decryption process, and then encrypts the media data source. The encrypted data and key are then transmitted to the data presentation node respectively. The data presentation node is responsible for receiving and processing the media data received from the data source for presentation. If the data is encrypted by the data source node, it will be decrypted according to the received key and presented; If the media data source is encrypted by a third party, it will be decrypted according to the corresponding decryption method and then presented.
8. The media sharing and data protection system according to claim 7, wherein: During the media data sharing process, if the device of the data source node leaves, the master device selects another suitable device in the current session and notifies the device to create a new data source node; the master device re-plans and records the path from the new data source node to other data presentation nodes through the session management module and distributes it to each node; each data node establishes a media sharing network according to the new path and sends or receives data based on the new network.
9. The media sharing and data protection system according to claim 7, wherein: During the media data sharing process, if the master device leaves or does not want to assume the responsibilities of the master device, it transfers the master device's permissions to other devices in the current session. The succeeding slave device becomes the master device and creates and runs the session management module on the new master device.
10. The media sharing and data protection system according to claim 9, wherein: If the device to which the running data source node belongs is the master device, migrate the data source node to another device in the session before transferring the master device authority.
Citation Information
Patent Citations
Local area network system for realizing streaming media switch among peer-to-peer devices and realization method thereof
CN101594594A
A data transmission method, system, and apparatus
CN102281261A