CN105245500A - Multimedia resource sharing method and device - Google Patents

Multimedia resource sharing method and device Download PDF

Info

Publication number
CN105245500A
CN105245500A CN201510549459.1A CN201510549459A CN105245500A CN 105245500 A CN105245500 A CN 105245500A CN 201510549459 A CN201510549459 A CN 201510549459A CN 105245500 A CN105245500 A CN 105245500A
Authority
CN
China
Prior art keywords
multimedia resource
area network
information
local area
multimedia
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.)
Pending
Application number
CN201510549459.1A
Other languages
Chinese (zh)
Inventor
刘俊晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201510549459.1A priority Critical patent/CN105245500A/en
Publication of CN105245500A publication Critical patent/CN105245500A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a multimedia resource sharing method and device. The method comprises the steps that master node equipment in a local area network acquires multimedia resource information of one or multiple slave node equipment in the local area network, and a multimedia resource list is generated according to the acquired multimedia resource information of one or multiple slave node equipment and local multimedia resource information of the master node equipment; and the master node equipment notifies the multimedia resource list to one or multiple slave node equipment in the local area network so that one or multiple slave node equipment in the local area network is enabled to acquire multimedia resource in the local area network. Compared with methods in the prior art, sharing of the multimedia resource between multiple node equipment can be realized in the local area network so that the multimedia resource playing requirement of users can be met to the greatest extent and flow of the users can be saved, and thus user experience can be greatly enhanced.

Description

Multimedia resource sharing method and device
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a multimedia resource sharing method and apparatus.
Background
With the continuous development of mobile terminal technology, playing multimedia contents, such as video, audio, etc., has become an important application of mobile terminals.
However, when the mobile terminal is located in a dense area of the mobile terminal or when the mobile terminal is in a fast moving condition, due to the restriction of factors such as bandwidth, peak value or base station switching of the existing mobile communication technology, the network condition is not ideal, and further the mobile terminal also affects the playing of multimedia content, and the situations that the playing is discontinuous, or the buffering is slow, or even the buffering cannot be performed often occur; in addition, when the mobile terminal is located in an area without a free WIreless FIdelity (WIFI) network or a WIFI network at all, most users may not choose to directly play multimedia contents using mobile data traffic in consideration of the cost of the mobile data traffic.
Under the condition, most mobile terminal users can select to play the multimedia files downloaded or cached in the mobile terminal, but due to the restriction of the storage capacity of the mobile terminal, the number of the multimedia contents stored in the mobile terminal is limited, so that the user selectivity is low, the playing requirements of the user cannot be met, and the user experience is greatly reduced.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention are expected to provide a multimedia resource sharing method and apparatus.
The invention discloses a multimedia resource sharing method, which comprises the following steps:
the method comprises the steps that a main node device in a local area network acquires multimedia resource information of one or more slave node devices in the local area network, and a multimedia resource list is generated according to the acquired multimedia resource information of the one or more slave node devices and the local multimedia resource information of the main node device;
and the master node device informs one or more slave node devices in the local area network of the multimedia resource list so that the one or more slave node devices in the local area network acquire the multimedia resources in the local area network.
In the above solution, the multimedia resource information of the one or more slave node devices or the multimedia resource information local to the master node device at least includes a name of the multimedia resource.
In the foregoing solution, after the master node device notifies the multimedia resource list to one or more slave node devices in a local area network, the method further includes:
the main node equipment receives multimedia resource acquisition requests of one or more slave node equipment and processes the multimedia resource acquisition requests.
In the above scheme, when the master node device receives a multimedia resource acquisition request from a slave node device, the master node device processes the multimedia resource acquisition request in the following manner:
the master node equipment determines the storage position of the multimedia resource requested to be acquired by the slave node equipment;
when the determined storage position is one, determining the transmission state of the multimedia resource on the storage position, and if the transmission state is idle, sending the information of the storage position to the slave node equipment; when the determined storage positions are multiple, the transmission states of the multimedia resources on the multiple storage positions are determined, and the information of the storage positions of the multimedia resources with the transmission states being idle on the multiple storage positions is sent to the slave node device.
In the above scheme, the master node device is a node device that creates the local area network or a node device that has the highest score in the local area network.
In another embodiment of the present invention, the method further comprises:
the main node device acquires the device information of the slave node devices in the local area network, generates a device list in the local area network according to the device information of the main node device and the acquired device information, and updates the device list and the multimedia resource list when detecting that one or more slave node devices in the local area network leave.
In the foregoing solution, the updating the device list and the multimedia resource list includes:
and deleting the leaving slave node equipment from the equipment list, and deleting the multimedia resource information on the leaving slave node equipment from the multimedia resource list.
According to another aspect of the present invention, there is provided a multimedia resource sharing apparatus, including: the system comprises a multimedia resource information acquisition module, a multimedia resource information generation module and a notification module; wherein,
the multimedia resource information acquisition module is used for acquiring multimedia resource information of one or more slave node devices in the local area network;
the multimedia resource information generating module is used for generating a multimedia resource list according to the multimedia resource information of the one or more slave node devices and the local multimedia resource information of the master node device;
the notifying module is configured to notify the multimedia resource list to one or more slave node devices in the local area network, so that the one or more slave node devices in the local area network acquire the multimedia resources in the local area network.
In the above solution, the multimedia resource information of the one or more slave node devices or the multimedia resource information local to the master node device at least includes a name of the multimedia resource
In the above scheme, the apparatus further comprises: the multimedia resource acquisition request receiving module and the multimedia resource request processing module; wherein,
the multimedia resource acquisition request receiving module is used for receiving multimedia resource acquisition requests of the one or more slave node devices;
the multimedia resource request processing module is used for processing the multimedia resource acquisition request.
In the foregoing solution, the multimedia resource request processing module is configured to, after the multimedia resource acquisition request receiving module receives a multimedia resource acquisition request from a slave node device, process the multimedia resource acquisition request in the following manner:
determining the storage position of the multimedia resource requested to be acquired by the slave node equipment;
when the determined storage position is one, determining the transmission state of the multimedia resource requested to be acquired in the storage position, and when the transmission state is idle, sending the information of the storage position to the slave node equipment; when the determined storage positions are multiple, the transmission states of the multimedia resources on the multiple storage positions are determined, and the information of the storage positions of the multimedia resources with the transmission states being idle on the multiple storage positions is sent to the slave node device.
In the above scheme, the master node device is a node device that creates the local area network or a node device that has the highest score in the local area network.
In the above scheme, the apparatus further comprises: the device comprises a device information acquisition module, a device list generation module and an information updating module; wherein,
the device information acquisition module is used for acquiring the device information of the slave node device in the local area network;
the device list generating module is configured to generate a device list in the local area network according to the device information of the master node device and the device information acquired by the device information acquiring module;
the information updating module is used for updating the equipment list and the multimedia resource list when detecting that one or more slave node equipment in the local area network leaves.
In the foregoing solution, the information updating module is configured to update the device list and the multimedia resource list in the following manner:
and deleting the leaving slave node equipment from the equipment list, and deleting the multimedia resource information of the leaving slave node equipment from the multimedia resource list.
Compared with the prior art, the embodiment of the invention has the following advantages:
the embodiment of the invention can realize the multimedia resource sharing among a plurality of node devices in the local area network, not only meets the multimedia resource playing requirement of a user to the maximum extent, but also saves the user flow, thereby greatly improving the user experience; in addition, the multimedia resource sharing method provided by the invention has the advantages of simple and convenient implementation mode and very high operability.
Drawings
Fig. 1 is a flow chart showing the steps of a first embodiment of a multimedia resource sharing method of the present invention;
FIG. 2 is a flow chart showing the steps of a second embodiment of the multimedia resource sharing method of the present invention;
FIG. 3 is a block diagram of a multimedia resource sharing apparatus according to the present invention;
fig. 4 illustrates an exemplary application scenario diagram of an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart illustrating a first step of a multimedia resource sharing method according to a first embodiment of the present invention is shown, which may specifically include:
step 101: the method comprises the steps that a main node device in a local area network acquires multimedia resource information of one or more slave node devices in the local area network, and a multimedia resource list is generated according to the acquired multimedia resource information of the one or more slave node devices and the local multimedia resource information of the main node device;
specifically, the lan may be a lan established by a personal lan technology, for example, a multipoint connection (multipoint connectivity) technology provided by the ios7 system, a wifi direct function provided by the Android system, a bluetooth low energy (bluetooth) technology, and the like.
Specifically, the master node device and the slave node device are both node devices having multimedia resource storage, identification and playing capabilities, and in practical application, the node devices may be mobile terminals such as mobile phones, tablet computers and portable computers.
In step 101, after acquiring multimedia resource information of one or more slave node devices in a local area network, a master node device in the local area network generates a multimedia resource list according to the acquired multimedia resource information. The multimedia resource list lists multimedia resource information, such as multimedia resource names, on all node devices in the local area network, and can know which multimedia resources are owned in the local area network through the list.
In this step, the master node device may further generate multimedia resource information in a local area network according to the acquired multimedia resource information, where the multimedia resource information in the local area network includes: the local multimedia resource information of the main node equipment and the multimedia resource information of the slave node equipment. Specifically, the master node device generates multimedia resource information in the local area network by the following method: combining the multimedia resource information of one or more slave node devices in the local area network with the local multimedia resource of the master node device to generate total multimedia resource information (namely, the multimedia resource information in the local area network) in the local area network; specifically, the sum of the multimedia resource information of one or more slave node devices in the local area network and the multimedia resource information local to the master node device constitutes the multimedia resource information in the entire local area network. In a specific implementation, the multimedia resource information of the one or more slave node devices and the multimedia resource information local to the master node device may be written into a data table, where the data table is used to carry the multimedia resource information in the local area network.
In this step, the master node device in the local area network may obtain the multimedia resource information of one or more slave node devices in the local area network in a plurality of ways, for example: the master node equipment sends a multimedia resource information acquisition request to the slave node equipment, and then the slave node equipment returns the multimedia resource information of the slave node equipment to the master node equipment in response to the request; or, the slave node device reports the multimedia resource information of itself to the master node device actively.
The multimedia resource information of the one or more slave node devices, or the multimedia resource information local to the master node device, or the multimedia resource information in the local area network at least includes a name of the multimedia resource, and may further include a storage location of the multimedia resource. Specifically, the name of the multimedia resource is used to identify the content of the multimedia resource, and the storage location of the multimedia resource is specifically the storage address of the multimedia resource. In the above scheme, the multimedia resource information of the one or more slave node devices, or the multimedia resource information local to the master node device, or the multimedia resource information in the local area network may further include information such as size and format of the multimedia resource.
The multimedia resource may be at least one of the following types of resources: video resources, audio resources, and text resources.
Thus, in step 101, the master node device may obtain multimedia resource information on all available node devices in the local area network (including the master node device itself and one or more slave node devices), so as to manage all multimedia resources in the local area network.
Step 102: and the master node device informs one or more slave node devices in the local area network of the multimedia resource list so that the one or more slave node devices in the local area network acquire the multimedia resources in the local area network.
In step 102, the master node device notifies the generated multimedia resource list to one or more slave node devices in the local area network, so that the slave node devices in the local area network can also acquire multimedia resource information on all the node devices in the local area network, as with the master node device. Furthermore, both the master node device and the slave node device in the local area network can select the required multimedia resource according to the self requirement and acquire the corresponding resource.
In summary, the embodiment of the invention can realize multimedia resource sharing among a plurality of node devices in the local area network, thereby not only meeting the multimedia resource playing requirement of the user to the maximum extent, but also saving the user flow, and greatly improving the user experience; in addition, the multimedia resource sharing method provided by the invention has the advantages of simple and convenient implementation mode and very high operability.
Example two
Referring to fig. 2, a flowchart illustrating steps of a second embodiment of a multimedia resource sharing method according to the present invention is shown, which may specifically include:
step 201: the method comprises the steps that a main node device in a local area network acquires multimedia resource information of one or more slave node devices in the local area network, and a multimedia resource list is generated according to the acquired multimedia resource information of the one or more slave node devices and the local multimedia resource information of the main node device, wherein the multimedia resource information at least comprises names of multimedia resources.
In this step, the lan may be a lan established by a personal lan technology, for example, a multipeerconnection technology provided by the ios7 system, a wifi direct function provided by the Android system, a bluetooth lowenergy technology, and the like.
In this step, the multimedia asset information may further include a storage location of the multimedia asset.
Specifically, the name of the multimedia resource is used for identifying the content of the multimedia resource; the storage location of the multimedia resource is specifically a storage address of the multimedia resource. In the above scheme, the multimedia resource information may further include information such as size and format of the multimedia resource.
Specifically, the master node device and the slave node device are both node devices having multimedia resource storage, identification and playing capabilities, and in practical application, the node devices may be mobile terminals such as mobile phones, tablet computers and portable computers.
Usually, only one node device in the local area network is a master node device at the same time, and other node devices are all slave node devices. In practical applications, the node device that creates the local area network may be set as a master node device, or the master node device may be determined by some preset rule, for example, one of all the node devices is randomly selected as the master node device.
The device that has been determined to be the master node device may choose to exit or leave the local area network, or actively give up the identity of the master node device, and at this time, the master node device may be determined in various ways, for example, the master node device randomly designates one node device in the local area network as the master node device, or designates the node device with the highest score in the local area network as the master node device, or designates the node device with the longest network time in the local area network as the master node device. Specifically, the network time refers to a continuous residence time of the node device in the local area network, and in actual implementation, the longest time for the node device to maintain the network connection state after joining the local area network may be taken as the network time.
Specifically, the node device with the highest score in the local area network may be determined by:
and comprehensively comparing the on-line time, the uploading times, the downloading times, the resource usage amount, the uploading and downloading activeness, the contribution degree and the like of all the node equipment. Specifically, the longer the network time is, the more the uploading times and the downloading times are, the higher the uploading and downloading activity and contribution degrees are, the higher the score is, and finally, the node device with the highest score is the node device with the highest score in the local area network.
In step 201, after acquiring multimedia resource information of one or more slave node devices in a local area network, a master node device in the local area network generates a multimedia resource list according to the acquired multimedia resource information. The multimedia resource list lists multimedia resource information, such as multimedia resource names, on all node devices in the local area network, and can know which multimedia resources are owned in the local area network through the list.
In this step, the master node device may further generate multimedia resource information in a local area network according to the acquired multimedia resource information, where the multimedia resource information in the local area network includes: the local multimedia resource information of the main node equipment and the multimedia resource information of the slave node equipment. Specifically, the master node device generates multimedia resource information in the local area network by the following method: the multimedia resource information of one or more slave node devices in the local area network is combined with the local multimedia resource to generate the total multimedia resource information in the local area network (i.e. the multimedia resource information in the local area network).
The master node device in the local area network may obtain the multimedia resource information of one or more slave node devices in the area network in various ways, for example: the master node equipment sends a multimedia resource information acquisition request to the slave node equipment, and then the slave node equipment returns the multimedia resource information of the slave node equipment to the master node equipment in response to the request; or, the slave node device reports the multimedia resource information of itself to the master node device actively.
Therefore, through step 201, the master node device may obtain multimedia resource information on all available node devices in the local area network (including the master node device itself and one or more slave node devices), so as to manage all multimedia resources in the local area network, and achieve the purpose of managing resource obtaining requests of all node devices in the local area network by managing multimedia resources. Therefore, multimedia resource sharing among different node devices in the local area network can be realized by managing resource acquisition requests of all the node devices in the local area network.
Step 202: the master node device informs one or more slave node devices in a local area network of the multimedia resource list;
in step 202, the master node device notifies the generated multimedia resource list to one or more slave node devices in the local area network, so that the slave node devices in the local area network can also know which multimedia resources are owned by all the node devices in the local area network, as with the master node device. Furthermore, both the master node device and the slave node device in the local area network can select the required multimedia resource according to the self requirement and acquire the corresponding resource.
Step 203: the method comprises the steps that a main node device receives multimedia resource acquisition requests of one or more slave node devices, and the multimedia resource acquisition requests are processed, so that the one or more slave node devices in the local area network can acquire multimedia resources in the local area network.
Specifically, when the master node device receives a multimedia resource acquisition request from the slave node device, the master node device processes the multimedia resource acquisition request in the following manner:
the master node equipment determines the storage position of the multimedia resource requested to be acquired by the slave node equipment;
when the determined storage position is one, determining the transmission state of the multimedia resource on the storage position, and if the transmission state is idle, sending the information of the storage position to slave node equipment; correspondingly, if the transmission state of the multimedia resource on the storage position is busy, a response message is returned to the slave node equipment to indicate that no multimedia resource is available;
when the determined storage positions are multiple, determining the transmission states of the multimedia resources on the multiple storage positions, and sending the information of the storage positions with the transmission states of the multimedia resources being idle on the multiple storage positions to the slave node device, that is, the master node device only sends the information of the storage positions with the transmission states of the multimedia resources being idle in the determined storage positions to the slave node device, so that the efficiency of obtaining the multimedia resources from the slave node device is improved, and the waste of time for obtaining the required multimedia resources from the positions with the transmission states being busy in the slave node device is avoided; correspondingly, if the transmission states of the multimedia resources on the plurality of storage positions are all busy, a response message is returned to the slave node equipment to indicate that no multimedia resources are available.
In the above solution, before the master node device determines the transmission status of the multimedia resource at the corresponding storage location, the method further includes the following steps: the method comprises the steps that a main node device obtains the transmission state of multimedia resources in one or more slave node devices in a local area network; the transmission state can be obtained by the slave node device actively or on request sending the transmission state of the multimedia resource to the master node device.
In another optional embodiment of the present invention, the method further comprises: the method comprises the steps that a main node device obtains device information of slave node devices in a local area network, a device list in the local area network is generated according to the device information of the main node device and the obtained device information, and when one or more slave node devices in the local area network are detected to leave, the device list in the local area network and multimedia resource information in the local area network are updated.
Specifically, the updating the device list in the local area network and the multimedia resource information in the local area network includes:
and deleting the leaving slave node equipment from the equipment list, and deleting the multimedia resource information on the leaving slave node equipment from the multimedia resource list.
In yet another optional embodiment of the invention, when the multimedia resource requested from the node apparatus is composed of a plurality of resource segments, the method further comprises:
and splicing the plurality of resource segments by the slave node equipment.
Specifically, the splicing the resource segments by the slave node device includes:
the slave node device determining a lowest resolution of the plurality of resource segments;
and transcoding the resource segments according to the lowest resolution ratio, and then splicing.
Device embodiment
Referring to fig. 3, a structural block diagram of an embodiment of a multimedia resource sharing apparatus according to the present invention is shown, where the apparatus is located in a master node device, and specifically may include: a multimedia resource information acquisition module 31, a multimedia resource information generation module 32 and a notification module 33; wherein,
a multimedia resource information obtaining module 31, configured to obtain multimedia resource information of one or more slave node devices in the local area network;
a multimedia resource information generating module 32, configured to generate a multimedia resource list according to the multimedia resource information acquired by the multimedia resource information acquiring module 31, where the multimedia resource information in the local area network includes: the local multimedia resource information of the master node equipment and the multimedia resource information of the slave node equipment;
the notifying module 33 is configured to notify the multimedia resource list to one or more slave node devices in a local area network, so that the one or more slave node devices in the local area network acquire the multimedia resource in the local area network.
Specifically, the multimedia resource information at least includes a name of the multimedia resource, and may further include a storage location of the multimedia resource.
In another optional embodiment of the invention, the apparatus further comprises: a multimedia resource acquisition request receiving module 34 and a multimedia resource request processing module 35; wherein,
a multimedia resource obtaining request receiving module 34, configured to receive a multimedia resource obtaining request from one or more slave node devices, and process the multimedia resource obtaining request;
a multimedia resource request processing module 35, configured to process the multimedia resource acquisition request.
Specifically, the multimedia resource request processing module 35 is configured to, after the multimedia resource obtaining request receiving module 34 receives a multimedia resource obtaining request from a node device, process the multimedia resource obtaining request in the following manner:
determining the storage position of the multimedia resource requested to be acquired by the slave node equipment;
when the determined storage position is one, determining the transmission state of the multimedia resource on the storage position, and if the transmission state is idle, sending the information of the storage position to slave node equipment; and when the determined storage positions are multiple, determining the transmission states of the multimedia resources on the multiple storage positions, and sending the information of the storage positions of the multimedia resources with the transmission states being idle on the multiple storage positions to the slave node equipment.
In yet another optional embodiment of the invention, the apparatus further comprises: a device information acquisition module 36, a device list generation module 37, and an information update module 38; wherein,
the device information obtaining module 36 is configured to obtain device information of a slave node device in a local area network;
the device list generating module 37 is configured to generate a device list in the local area network according to the device information of the master node device and the device information acquired by the device information acquiring module;
the information updating module 38 is configured to update the device list and the multimedia resource list in the local area network when it is detected that one or more slave node devices in the local area network leave.
Specifically, the information updating module 38 is configured to update the device list and the multimedia resource list in the local area network by:
and deleting the leaving slave node equipment from the equipment list, and deleting the multimedia resource information on the leaving slave node equipment from the multimedia resource list.
In a specific implementation process, the multimedia resource information obtaining module 31, the multimedia resource information generating module 32, the notification module 33, the multimedia resource obtaining request receiving module 34, the multimedia resource request processing module 35, the device information obtaining module 36, the device list generating module 37, and the information updating module 38 may be implemented by at least one of a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a programmable logic array (FPGA) in the master node device.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Application example
Fig. 4 is an exemplary application scenario according to the embodiment of the present invention, and as shown in fig. 4, the scenario includes a plurality of node devices: node device C1, node device C2, node device C3, and node device C4. The following describes the multimedia resource sharing method in detail by taking video resource sharing as an example.
The node devices C1, C2, C3, and C4 may all obtain online video resources through the network, when the network is disconnected, C1 first detects a local area network existing around, when the detection fails, C1 creates a local area network by using the personal area network technology, as a node device for creating the local area network, and C1 becomes a master node device. Then, the local area network is internally managed through the following scheme:
1. network management maintenance
1.1 node device registration
After the C1 creates a lan, the node devices C2, C3 and C4 all find the lan created by C1 through searching and join the lan; at this time, the master node device C1 may broadcast its own identity information periodically through the local area network, and at this time, other node devices that receive the broadcast message may all determine the master node device identity of C1, and the slave node device identity of itself may also determine; thereafter, the plurality of slave node devices C2, C3, and C4 are registered with the master node device C1, respectively.
1.2 Slave node device information reporting
After the slave node devices C2, C3, and C4 complete registration with the master node device C1, report their own device information and multimedia resource information to the master node device C1.
For example, as shown in fig. 4, after C4 registers with C1, in addition to informing own device information, it also informs the information of locally stored a1 and a2 resources; correspondingly, the C2 informs the C1 of the own equipment information and the information of the locally stored A2 resource; wherein A1 and A2 together form an A resource, that is, the A resource is composed of two parts, A1 and A2. C3 informs C1 of its own device information and locally stored information of B resources, and C4 informs C1 of its own device information and locally stored information of C resources. Thus, C1 knows the distribution of all video assets within the local area network.
Further, in the process of acquiring resources in the local area network, each slave node device reports the transmission state of the local resources to the master node device, where the transmission state may be busy or idle, busy means that the resources are occupied, and idle means that the resources are unoccupied.
1.3 information integration in LANs
The master node device C1 determines a device list existing in the local area network according to the device information reported by the slave node device, and determines multimedia resource information in the local area network according to the multimedia resource information reported by the slave node device, including names and storage locations of multimedia resources stored in all the node devices in the local area network; the master node device may generate a multimedia resource list according to the multimedia resource information in the local area network, where the multimedia resource list lists all video resources in the local area network.
1.4 Scoring mechanism
After joining the network, the slave node device will also feed back its own activity information to the master node device through heartbeat at regular or irregular time, the activity information includes: the master node equipment can also collect self activity information at regular time according to network time, uploading times, downloading times, resource usage, uploading and downloading activeness and contribution degree and the like, the activity information can be used as an equipment grading standard, node equipment with higher comprehensive grading is stable node equipment in the local area network, and can have downloading priority and also be used as a candidate of next master node equipment.
1.5 guard node device
In the local area network, one or more guard node devices are arranged in addition to the key node device, i.e., the master node device. The guard node device is responsible for detecting whether the main node device is still inside the local area network. Therefore, the daemon node device itself also needs to have higher stability, and therefore, the daemon node device also consists of N nodes with the highest score, where N is a positive integer greater than or equal to 1, and the value of N is 20% of the total number of nodes at the maximum, for example, if 10 devices are on the network, 2 daemon nodes are needed.
1.6 Master node device replacement
The main node device in the local area network may leave the local area network under many circumstances, for example, the main node device leaves the range of the local area network, and at this time, the guard node device may not detect the main node device, or the performance of the main node device may be degraded, and actively quit the local area network, or automatically retire the main node device after the main node device reaches a preset service duration, in order to avoid a trouble of other node device users caused by excessive contribution of the main node device. After the device leaves or is retired, the daemon node device with the highest score can be automatically upgraded to the main node device, and the newly determined main node device broadcasts the information of the daemon node device to all the node devices of the local area network.
2. Resource sharing control
2.1 multimedia resource acquisition request
The master node equipment issues the generated multimedia resource list to each slave node equipment in the local area network, so that each slave node equipment can know all video resources in the local area network and request to acquire resources in the multimedia resource list according to needs;
2.2 multimedia resource acquisition request processing
After receiving the multimedia resource acquisition request sent by the slave node device, the master node may process the multimedia resource acquisition request in the following manner:
the master node equipment determines the storage position of the multimedia resource requested to be acquired by the slave node equipment;
when the determined storage position is one, determining the transmission state of the multimedia resource on the storage position, and if the transmission state is idle, sending the information of the storage position to slave node equipment; correspondingly, if the transmission state of the multimedia resource on the storage position is busy, a response message is returned to the slave node equipment to indicate that no multimedia resource is available;
when the determined storage positions are multiple, determining the transmission states of the multimedia resources on the multiple storage positions, and sending the information of the storage positions of the multimedia resources with idle transmission states on the multiple storage positions to the slave node equipment; correspondingly, if the transmission states of the multimedia resources on the plurality of storage positions are all busy, a response message is returned to the slave node equipment to indicate that no multimedia resources are available.
In another optional implementation manner of the present invention, after receiving a multimedia resource acquisition request sent by a slave node device, a master node may also directly determine a storage location of a multimedia resource requested to be acquired by the slave node device; and directly transmits the determined storage location of the multimedia resource to the slave node device.
2.3 multimedia resource acquisition
After receiving the multimedia resource storage location information returned by the master node device, the slave node device may initiate a resource acquisition request to a target slave node device according to the storage location information, if the resource at the corresponding location is occupied, the slave node device requesting to acquire the resource initiates a resource acquisition request to other locations, and if the resources at all the locations are occupied, the slave node device requesting to acquire the resource may wait for a corresponding time and then alternately transmit the resource acquisition request to each target slave node device again; or inquiring the use condition of the corresponding resource on each destination slave node device at regular time, and acquiring the resource when the corresponding resource is idle.
It should be noted that, in order to control the battery consumption of the node device, the above scheme may perform upload control on the resource, for example, each device cannot upload a multimedia resource to two or more node devices at the same time.
For the video resources to be acquired which are composed of two or more files with different resolutions, the two or more video resources can be spliced or each video file can be transcoded according to the lowest resolution of two or more video clips, so that the viewing experience is enhanced.
In the process of acquiring the multimedia resource, when a plurality of slave node devices simultaneously request the same multimedia resource, in order to encourage the node device with high device score, a corresponding mechanism can be set, namely, the slave node device with high score can preferentially obtain the multimedia resource.
Taking fig. 4 as an example, the node device C2 requests the user to select to play the B video resource, and the B resource is stored in the node device C3, and it is assumed that at the same time, the master node device C1 also just requests to play the B resource, but due to the upload control, the node device C3 can only transmit to one node device, and due to the high score of the master node device C1, the node device C1 can preferentially acquire the B resource and play it, and the node device C2 can only wait a little.
For the above application example, it should be noted that, in the local area network, each node device (including the master node device and the slave node device) may obtain the multimedia resource between each two node devices. For the master node device C1, it can be considered that there are two services on C1, one is the master control service and the other is the play service.
When the C1 needs to play the video, the play service on the C1 accesses the local master control service to request the corresponding video resource, so that the master control service controls the resource requested by the play service; when the resource requested by the C1 is a local resource, the C1 directly reads the locally stored resource; when the resource requested by C1 is a video resource on other slave node devices; then, after the C1 obtains the storage location information of the corresponding resource, it may request the slave node device storing the corresponding resource to obtain the corresponding resource, and then the corresponding slave node device determines whether to transmit the corresponding resource to the master node device, that is, when the requested video resource is idle, the corresponding video resource is transmitted to the master node device, and when the requested video resource is busy, a response message is returned to the master node device to notify that the master node device is busy. The master node device may wait for a period of time before initiating a request to the corresponding slave node device again.
It can be seen that the difference between the resource acquisition request initiated by the master node device and the resource acquisition request initiated by the slave node device is only that the resource acquisition request initiated by the master node device is processed locally, and the resource acquisition request of the slave node device is processed by the master control node after accessing the master control node through the local area network.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and the device for sharing multimedia resources provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A method for sharing multimedia resources, the method comprising:
the method comprises the steps that a main node device in a local area network acquires multimedia resource information of one or more slave node devices in the local area network, and a multimedia resource list is generated according to the acquired multimedia resource information of the one or more slave node devices and the local multimedia resource information of the main node device;
and the master node device informs one or more slave node devices in the local area network of the multimedia resource list so that the one or more slave node devices in the local area network acquire the multimedia resources in the local area network.
2. The method of claim 1, wherein the multimedia asset information of the one or more slave node devices or the multimedia asset information local to the master node device comprises at least a name of a multimedia asset.
3. The method of claim 2, wherein after the master node device notifies one or more slave node devices within a local area network of the list of multimedia resources, the method further comprises:
the main node equipment receives multimedia resource acquisition requests of one or more slave node equipment and processes the multimedia resource acquisition requests.
4. The method of claim 3, wherein when the master node device receives a multimedia resource acquisition request from a slave node device, the master node device processes the multimedia resource acquisition request in the following manner:
the master node equipment determines the storage position of the multimedia resource requested to be acquired by the slave node equipment;
when the determined storage position is one, determining the transmission state of the multimedia resource on the storage position, and if the transmission state is idle, sending the information of the storage position to the slave node equipment; when the determined storage positions are multiple, the transmission states of the multimedia resources on the multiple storage positions are determined, and the information of the storage positions of the multimedia resources with the transmission states being idle on the multiple storage positions is sent to the slave node device.
5. The method of any of claims 1 to 4, wherein the master node device is a node device that creates the local area network or is a highest scoring node device within the local area network.
6. The method of any of claims 1 to 4, further comprising:
the main node device acquires the device information of the slave node devices in the local area network, generates a device list in the local area network according to the device information of the main node device and the acquired device information, and updates the device list and the multimedia resource list when detecting that one or more slave node devices in the local area network leave.
7. The method of claim 6, wherein the updating the device list and the multimedia asset list comprises:
and deleting the leaving slave node equipment from the equipment list, and deleting the multimedia resource information on the leaving slave node equipment from the multimedia resource list.
8. An apparatus for sharing multimedia resources, the apparatus comprising: the system comprises a multimedia resource information acquisition module, a multimedia resource information generation module and a notification module; wherein,
the multimedia resource information acquisition module is used for acquiring multimedia resource information of one or more slave node devices in the local area network;
the multimedia resource information generating module is used for generating a multimedia resource list according to the multimedia resource information of the one or more slave node devices and the local multimedia resource information of the master node device;
the notifying module is configured to notify the multimedia resource list to one or more slave node devices in the local area network, so that the one or more slave node devices in the local area network acquire the multimedia resources in the local area network.
9. The apparatus of claim 8, wherein the multimedia asset information of the one or more slave node devices or the multimedia asset information local to the master node device comprises at least a name of a multimedia asset.
10. The apparatus of claim 9, wherein the apparatus further comprises: the multimedia resource acquisition request receiving module and the multimedia resource request processing module; wherein,
the multimedia resource acquisition request receiving module is used for receiving multimedia resource acquisition requests of the one or more slave node devices;
the multimedia resource request processing module is used for processing the multimedia resource acquisition request.
11. The apparatus as claimed in claim 10, wherein the multimedia resource request processing module is configured to, after the multimedia resource obtaining request receiving module receives a multimedia resource obtaining request from a node device, process the multimedia resource obtaining request according to the following manner:
determining the storage position of the multimedia resource requested to be acquired by the slave node equipment;
when the determined storage position is one, determining the transmission state of the multimedia resource requested to be acquired in the storage position, and when the transmission state is idle, sending the information of the storage position to the slave node equipment; when the determined storage positions are multiple, the transmission states of the multimedia resources on the multiple storage positions are determined, and the information of the storage positions of the multimedia resources with the transmission states being idle on the multiple storage positions is sent to the slave node device.
12. The apparatus of any of claims 8 to 11, wherein the master node device is a node device that creates the local area network or is a highest scoring node device within the local area network.
13. The apparatus of any one of claims 8 to 11, further comprising: the device comprises a device information acquisition module, a device list generation module and an information updating module; wherein,
the device information acquisition module is used for acquiring the device information of the slave node device in the local area network;
the device list generating module is configured to generate a device list in the local area network according to the device information of the master node device and the device information acquired by the device information acquiring module;
the information updating module is used for updating the equipment list and the multimedia resource list when detecting that one or more slave node equipment in the local area network leaves.
14. The apparatus of claim 13, wherein the information update module is configured to update the device list and the multimedia asset list by:
and deleting the leaving slave node equipment from the equipment list, and deleting the multimedia resource information of the leaving slave node equipment from the multimedia resource list.
CN201510549459.1A 2015-08-31 2015-08-31 Multimedia resource sharing method and device Pending CN105245500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510549459.1A CN105245500A (en) 2015-08-31 2015-08-31 Multimedia resource sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510549459.1A CN105245500A (en) 2015-08-31 2015-08-31 Multimedia resource sharing method and device

Publications (1)

Publication Number Publication Date
CN105245500A true CN105245500A (en) 2016-01-13

Family

ID=55043000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510549459.1A Pending CN105245500A (en) 2015-08-31 2015-08-31 Multimedia resource sharing method and device

Country Status (1)

Country Link
CN (1) CN105245500A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872600A (en) * 2016-05-13 2016-08-17 天脉聚源(北京)传媒科技有限公司 Program pushing method and device
CN108234555A (en) * 2016-12-15 2018-06-29 广州市动景计算机科技有限公司 Web page resources acquisition device and method
CN108259521A (en) * 2016-12-28 2018-07-06 中国移动通信集团浙江有限公司 Hot point resource sharing method and device
CN109874037A (en) * 2019-01-17 2019-06-11 北京文香信息技术有限公司 A kind of multichannel audio-video frequency playback method, device, storage medium and terminal device
CN110856029A (en) * 2019-10-17 2020-02-28 北京雷石天地电子技术有限公司 A method and system for synchronization of local area network set-top box resources
CN113329047A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Distributed service scheduling method and related device
CN113472829A (en) * 2020-03-30 2021-10-01 华为技术有限公司 Resource sharing method and device, master device, slave device and chip system
CN115941698A (en) * 2022-09-30 2023-04-07 福建星网视易信息系统有限公司 Shared resource management method based on local area network and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036597A (en) * 2012-12-12 2013-04-10 华为终端有限公司 Method and device of sharing resources among devices in close range
CN104023055A (en) * 2014-05-30 2014-09-03 北京金山网络科技有限公司 Video sharing method and system, and terminal device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036597A (en) * 2012-12-12 2013-04-10 华为终端有限公司 Method and device of sharing resources among devices in close range
CN104023055A (en) * 2014-05-30 2014-09-03 北京金山网络科技有限公司 Video sharing method and system, and terminal device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872600A (en) * 2016-05-13 2016-08-17 天脉聚源(北京)传媒科技有限公司 Program pushing method and device
CN108234555A (en) * 2016-12-15 2018-06-29 广州市动景计算机科技有限公司 Web page resources acquisition device and method
CN108259521A (en) * 2016-12-28 2018-07-06 中国移动通信集团浙江有限公司 Hot point resource sharing method and device
CN108259521B (en) * 2016-12-28 2021-02-23 中国移动通信集团浙江有限公司 Hotspot resource sharing method and device
CN109874037A (en) * 2019-01-17 2019-06-11 北京文香信息技术有限公司 A kind of multichannel audio-video frequency playback method, device, storage medium and terminal device
CN110856029A (en) * 2019-10-17 2020-02-28 北京雷石天地电子技术有限公司 A method and system for synchronization of local area network set-top box resources
CN113329047A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Distributed service scheduling method and related device
WO2021169847A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Distributed service scheduling method and related apparatus
CN115086346A (en) * 2020-02-29 2022-09-20 华为技术有限公司 Distributed service scheduling method and related device
CN113329047B (en) * 2020-02-29 2023-04-18 华为技术有限公司 Distributed service scheduling method and related device
US11831713B2 (en) 2020-02-29 2023-11-28 Huawei Technologies Co., Ltd. Distributed service scheduling method and related apparatus
CN113472829A (en) * 2020-03-30 2021-10-01 华为技术有限公司 Resource sharing method and device, master device, slave device and chip system
CN113472829B (en) * 2020-03-30 2022-12-27 华为技术有限公司 Resource sharing method and device, master device, slave device and chip system
CN115941698A (en) * 2022-09-30 2023-04-07 福建星网视易信息系统有限公司 Shared resource management method based on local area network and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105245500A (en) Multimedia resource sharing method and device
US11212742B2 (en) UPF selection method and device
EP3255865B1 (en) Content distribution using ad hoc mesh networks
US20160381510A1 (en) Method of locating a mobile device and a cloud computer system employing same
US11251981B2 (en) Communication method and apparatus
US10728050B2 (en) Method of terminal-based conference load-balancing, and device and system utilizing same
US20120150808A1 (en) Method and system for performing data backup and restoration
CN112600693B (en) Service request processing method, system, electronic equipment and computer storage medium
CN103248504A (en) Cluster node matching method, cluster communicating module, equipment and system
CN104717527A (en) Video transmission method and video transmission device
CN103731281A (en) Frequency channel processing method and device
CN112540773B (en) A cloud game installation method, device, electronic equipment and storage medium
CN114327846B (en) Cluster expansion method, device, electronic device and computer-readable storage medium
US9686648B2 (en) Method, a server and a computer program for local discovery
RU2586598C2 (en) Data replication
CN105656978A (en) Resource sharing method and device
CN106790354B (en) Communication method and device for preventing data congestion
CN105681262A (en) Interaction message allocating method and system
JP2019041241A (en) Distribution system
CN101146107A (en) A method and device for downloading data
CN109905645A (en) Video surveillance equipment directory exchange method and networking platform
JP5687255B2 (en) Terminal device, method, program, and wireless communication system
JP2009159325A (en) Base station apparatus, and terminal device
JP2016197281A (en) Service redundancy method, information processing apparatus, and program
CN114124686B (en) Method and device for distributing user plane function network element UPF for UE session

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160113