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
node device
area network
local area
lan
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

A kind of multimedia resource shares method and apparatus
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of multimedia resource and share method and apparatus.
Background technology
Along with the development of mobile terminal technology, play multimedia content, as video, audio frequency etc. have become an important application of mobile terminal.
But, when being in mobile terminal close quarters or being in fast moving situation when mobile terminal, due to the bandwidth of existing mobile communication technology, the restriction of the factor such as peak value or base station switching, make network condition undesirable, and then the broadcasting of mobile terminal to content of multimedia is also affected, often occur playing discontinuous or buffer memory slowly, even cannot the situation of buffer memory; In addition, free Wireless Fidelity (WIFI is not had when being in, WIreless-FIdelity) network or when not having the region of WIFI network completely, consider the cost issues of Mobile data flow, most users also can not be selected directly to utilize Mobile data flow to carry out play multimedia content.
In this case, most of mobile phone users all can select the multimedia file downloaded in broadcasting mobile terminal or buffer memory is good, but, owing to restricting by mobile terminal memory capacity, the content of multimedia stored in mobile terminal often limited amount, make user's selectivity few, the broadcasting demand of user cannot be met, thus Consumer's Experience reduces greatly.
Summary of the invention
For solving the technical problem of existing existence, the embodiment of the present invention is expected to provide a kind of multimedia resource to share method and apparatus.
The invention discloses a kind of multimedia resource and share method, comprising:
Host node device in local area network (LAN) obtains one or more multimedia resource information from node device in described local area network (LAN), and the multimedia resource information according to obtained one or more multimedia resource information from node device and host node device this locality generates multimedia resource list;
Described multimedia resource list notification is given in described local area network (LAN) one or more from node device by described host node device, to obtain multimedia resource in described local area network (LAN) to make one or more in described local area network (LAN) from node device.
In such scheme, the multimedia resource information of described one or more multimedia resource information from node device or described host node device this locality at least comprises the title of multimedia resource.
In such scheme, described host node device is by described multimedia resource list notification to one or more after node device in local area network (LAN), and described method also comprises:
Described host node device receives one or more multimedia resource from node device and obtains request, obtains request process described multimedia resource.
In such scheme, when described host node device receives the acquisition of the multimedia resource from a node device request, described host node device obtains request to described multimedia resource in such a way and processes:
Described host node device determines the described memory location from the multimedia resource of node device acquisition request;
When determined memory location is one, determine the transmission state of the described multimedia resource on described memory location, if transmission state be idle the information of described memory location is sent to described from node device; When determined memory location is multiple, determining the transmission state of the described multimedia resource on described multiple memory location, is that the information of the memory location of idle described multimedia resource sends to described from node device by transmission state on described multiple memory location.
In such scheme, described host node device is create the node device of described local area network (LAN) or the highest node device of marking for described local area network (LAN) is interior.
In another embodiment of the invention, described method also comprises:
Described host node device obtains the facility information from node device in described local area network (LAN), the list of devices in described local area network (LAN) is generated according to the facility information of equipment of itself information and described acquisition, when detect in described local area network (LAN) one or more leave from node device time, described list of devices and described multimedia resource list are upgraded.
In such scheme, described described list of devices and described multimedia resource list to be upgraded, comprising:
By described leave delete from described list of devices from node device, and by described leave delete from described multimedia resource list from the multimedia resource information node device.
According to another aspect of the present invention, provide a kind of multimedia resource sharing means, comprising: multimedia resource data obtaining module, multimedia resource information generating module and notification module; Wherein,
Described multimedia resource data obtaining module, for obtaining one or more multimedia resource information from node device in described local area network (LAN);
Described multimedia resource information generating module, generates multimedia resource list for the multimedia resource information according to described one or more multimedia resource information from node device and host node device this locality;
Described notification module, for giving in described local area network (LAN) one or more from node device by described multimedia resource list notification, to obtain multimedia resource in described local area network (LAN) to make one or more in described local area network (LAN) from node device.
In such scheme, the multimedia resource information of described one or more multimedia resource information from node device or described host node device this locality at least comprises the title of multimedia resource
In such scheme, described device also comprises: multimedia resource obtains request receiving module and multimedia resource request processing module; Wherein,
Described multimedia resource obtains request receiving module, obtains request for receiving described one or more multimedia resource from node device;
Described multimedia resource request processing module, processes for obtaining request to described multimedia resource.
In such scheme, described multimedia resource request processing module, for after described multimedia resource acquisition request receiving module receives the acquisition of the multimedia resource from a node device request, in such a way request is obtained to described multimedia resource and processes:
Determine the described memory location from the multimedia resource of node device acquisition request;
When determined memory location is one, determine the transmission state of the multimedia resource that the described request on described memory location obtains, when transmission state is idle, the information of described memory location is sent to described from node device; When determined memory location is multiple, determining the transmission state of the described multimedia resource on described multiple memory location, is that the information of the memory location of idle multimedia resource sends to described from node device by transmission state on described multiple memory location.
In such scheme, described host node device is create the node device of described local area network (LAN) or the highest node device of marking for described local area network (LAN) is interior.
In such scheme, described device also comprises: apparatus information acquiring module, list of devices generation module and information updating module; Wherein,
Described apparatus information acquiring module, for obtaining the facility information from node device in described local area network (LAN);
Described list of devices generation module, the facility information for obtaining according to equipment of itself information and the described apparatus information acquiring module of described host node device generates the list of devices in described local area network (LAN);
Described information updating module, for when detect in described local area network (LAN) one or more leave from node device time, described list of devices and described multimedia resource list are upgraded.
In such scheme, described information updating module, for upgrading described list of devices and described multimedia resource list in the following manner:
By described leave delete from described list of devices from node device, and by described leave delete from described multimedia resource list from the multimedia resource information of node device.
Compared with prior art, the embodiment of the present invention comprises following advantage:
The embodiment of the present invention can be shared by the multimedia resource achieved in local area network (LAN) between multiple node device, and the multimedia resource both meeting user to the full extent plays demand, in turn saves customer flow, thus greatly improves Consumer's Experience; In addition, it is simple, convenient that multimedia resource provided by the invention shares method implementation, has very high ease for operation.
Accompanying drawing explanation
Fig. 1 shows the flow chart of steps that a kind of multimedia resource of the present invention shares embodiment of the method one;
Fig. 2 shows the flow chart of steps that a kind of multimedia resource of the present invention shares embodiment of the method two;
Fig. 3 shows the structured flowchart of a kind of multimedia resource sharing means of the present invention;
Fig. 4 shows a kind of exemplary application scene graph of the embodiment of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Embodiment one
With reference to Fig. 1, show the flow chart of steps that a kind of multimedia resource of the present invention shares embodiment of the method one, specifically can comprise:
Step 101: the host node device in local area network (LAN) obtains one or more multimedia resource information from node device in described local area network (LAN), the multimedia resource information according to obtained one or more multimedia resource information from node device and host node device this locality generates multimedia resource list;
Concrete, described local area network (LAN) can be by PAN (Personal Area Network) technology, such as, the local area network (LAN) that the WiFiDirect function that such as ios7 system provides Mulit-point Connection (MultipeerConnectivity) technology, android system provide and low-power consumption bluetooth (BluetoothLowEnergy) technology etc. are set up.
Concrete, described host node device and be from node device and possess multimedia resource and store, identify and the node device of ability to play, in practical application, described node device can be the mobile terminals such as mobile phone, panel computer, portable computer.
In a step 101, the host node device in local area network (LAN) to obtain in described local area network (LAN) after one or more multimedia resource information from node device, generates multimedia resource list according to obtained multimedia resource information.Enumerate the multimedia resource information in local area network (LAN) on all node devices in described multimedia resource list, as multimedia resource title, can know in local area network (LAN) to have which multimedia resource by this list.
In this step, host node device can also generate the multimedia resource information in local area network (LAN) according to obtained multimedia resource information, the multimedia resource information in described local area network (LAN) comprises: the multimedia resource information of described host node device this locality and the described multimedia resource information from node device.Concrete, host node device generates the multimedia resource information in local area network (LAN) in the following manner: the multimedia resource information from node device one or more in local area network (LAN) combined with the multimedia resource of host node device this locality, generate multimedia resource information (the multimedia resource information namely, in local area network (LAN)) total in local area network (LAN); Concrete, in local area network (LAN), the summation of the multimedia resource information of one or more multimedia resource information from node device and host node device this locality constitutes the multimedia resource information in whole local area network (LAN).When specific implementation, one or morely can write a tables of data from the multimedia resource information of node device and the multimedia resource information of host node device this locality by described, this tables of data is for carrying the multimedia resource information in local area network (LAN).
In this step, host node device in local area network (LAN) can obtain one or more multimedia resource information from node device in local area network (LAN) in several ways, such as: described host node device is to the described acquisition request sending multimedia resource information from node device, afterwards, should ask from node device the multimedia resource information returning self to host node device by described; Or, described by initiatively reporting self multimedia resource information to host node device from node device.
Multimedia resource information in the multimedia resource information of the above one or more multimedia resource information from node device or host node device this locality or local area network (LAN) at least comprises the title of multimedia resource, can further include the memory location of multimedia resource.Concrete, the title of described multimedia resource is used for the content of identification of multimedia resource, and the memory location of described multimedia resource is specially the memory address of multimedia resource.In such scheme, the multimedia resource information in the multimedia resource information of described one or more multimedia resource information from node device or host node device this locality or local area network (LAN) can further include the information such as size, form of multimedia resource.
The above multimedia resource can be following multiple resources type at least one of them: video resource, audio resource and textual resources.
Like this, by step 101, host node device can obtain the multimedia resource information all retrievable node devices in local area network (LAN) (comprise host node device itself and one or more from node device), thus can manage by all multimedia resources in local area network.
Step 102: described multimedia resource list notification to one or more from node device in local area network (LAN), to be obtained multimedia resource in local area network (LAN) to make one or more in described local area network (LAN) by described host node device from node device.
In step 102, host node device by generate multimedia resource list notification to one or more from node device in local area network (LAN), like this, the same with host node device, also can know multimedia resource information in local area network (LAN) all node devices from node device in local area network (LAN).And then, the host node device in local area network (LAN) and from node device can both according to self need select need multimedia resource and obtain respective resources.
To sum up, the embodiment of the present invention can be shared by the multimedia resource achieved in local area network (LAN) between multiple node device, and the multimedia resource both meeting user to the full extent plays demand, in turn saves customer flow, thus greatly improves Consumer's Experience; In addition, it is simple, convenient that multimedia resource provided by the invention shares method implementation, has very high ease for operation.
Embodiment two
With reference to Fig. 2, show the flow chart of steps that a kind of multimedia resource of the present invention shares embodiment of the method two, specifically can comprise:
Step 201: the host node device in local area network (LAN) obtains one or more multimedia resource information from node device in described local area network (LAN), multimedia resource information according to obtained one or more multimedia resource information from node device and host node device this locality generates multimedia resource list, described multimedia resource information, at least comprises the title of multimedia resource.
In this step, described local area network (LAN) can be by PAN (Personal Area Network) technology, such as, the local area network (LAN) that the WiFiDirect function that such as ios7 system provides MultipeerConnectivity technology, android system provide and BluetoothLowEnergy technology etc. are set up.
In this step, described multimedia resource information can further include the memory location of multimedia resource.
Concrete, the title of described multimedia resource is used for the content of identification of multimedia resource; The memory location of described multimedia resource is specially the memory address of multimedia resource.In such scheme, described multimedia resource information can further include the information such as size, form of multimedia resource.
Concrete, described host node device and be from node device and possess multimedia resource and store, identify and the node device of ability to play, in practical application, described node device can be the mobile terminals such as mobile phone, panel computer, portable computer.
Usually, in the same time, only have a node device to be host node device in local area network (LAN), other node device is then from node device.Host node device can be set to by creating the node device of local area network (LAN) or by certain preset rules determination host node device, such as, Stochastic choice one is as host node device from all node devices in practical application.
The equipment being defined as host node device can be selected exit or leave local area network (LAN) or initiatively abandon host node device identity, at this moment, host node device can be determined in several ways, such as, by a node device in the random designated local area network of host node device as host node device, also the highest node device of marking in local area network (LAN) can be appointed as host node device or the node device the longest inherent for the local area network (LAN) net time is appointed as host node device.Concrete, describedly refer to the continuous time of staying of node device in local area network (LAN) in the net time, actually to realize, can get and after node device adds local area network (LAN), keep the maximum duration of network connection state as in the net time.
Concrete, above in said local area network (LAN) the highest node device of scoring can determine in the following manner:
To all node devices in the net time, upload number of times, download time, resource use amount, the liveness uploading download and contribution degree etc. and carry out Integrated comparative.Concrete, longer in the net time, upload that number of times, download time are more, the liveness of uploading download and the higher then score value of contribution degree higher, the node device that final score is the highest is the node device that in local area network (LAN), scoring is the highest.
In step 201, the host node device in local area network (LAN) to obtain in described local area network (LAN) after one or more multimedia resource information from node device, generates multimedia resource list according to obtained multimedia resource information.Enumerate the multimedia resource information in local area network (LAN) on all node devices in described multimedia resource list, as multimedia resource title, can know in local area network (LAN) to have which multimedia resource by this list.
In this step, host node device can also generate the multimedia resource information in local area network (LAN) according to obtained multimedia resource information, the multimedia resource information in described local area network (LAN) comprises: the multimedia resource information of described host node device this locality and the described multimedia resource information from node device.Concrete, host node device generates the multimedia resource information in local area network (LAN) in the following manner: the multimedia resource information from node device one or more in local area network (LAN) combined with local multimedia resource, generate multimedia resource information (the multimedia resource information namely, in local area network (LAN)) total in local area network (LAN).
Host node device in local area network (LAN) can obtain one or more multimedia resource information from node device in regional network in several ways, such as: described host node device is to the described acquisition request sending multimedia resource information from node device, afterwards, should ask from node device the multimedia resource information returning self to host node device by described; Or, described by initiatively reporting self multimedia resource information to host node device from node device.
Therefore, by step 201, host node device can obtain the multimedia resource information all retrievable node devices in local area network (LAN) (comprise host node device itself and one or more from node device), thus can manage by all multimedia resources in local area network, and by object that the acquisition request conforms reaching all node devices in local area network to multimedia resource management manages.Thus, carry out managing the multimedia resource that can realize in local area network (LAN) between different node device by the acquisition request conforms of node devices all in local area network and share.
Step 202: described host node device by described multimedia resource list notification to one or more from node device in local area network (LAN);
In step 202, host node device by generate multimedia resource list notification to one or more from node device in local area network (LAN), like this, the same with host node device, also can know in local area network (LAN), which multimedia resource all node devices have from node device in local area network (LAN).And then, the host node device in local area network (LAN) and from node device can both according to self need select need multimedia resource and obtain respective resources.
Step 203: host node device receives one or more multimedia resource from node device and obtains request, obtain request to described multimedia resource to process, to obtain multimedia resource in local area network (LAN) from node device to make one or more in described local area network (LAN).
Concrete, when host node device receives the multimedia resource acquisition request from node device, described host node device obtains request to described multimedia resource in such a way and processes:
Host node device determines the described memory location from the multimedia resource of node device acquisition request;
When determined memory location is one, determine the transmission state of the described multimedia resource on described memory location, if transmission state is idle, the information of described memory location is sent to from node device; Corresponding, if the transmission state of the described multimedia resource on described memory location is busy, then to returning response message from node device with instruction without available multimedia resource;
When determined memory location is multiple, determine the transmission state of the described multimedia resource on described multiple memory location, be that the information of idle memory location sends to from node device by the transmission state of described multimedia resource on described multiple memory location, namely, host node device is only by determined memory location, transmission state is that the stored position information of the memory location at idle multimedia resource place sends to from node device, thus improve the efficiency obtaining multimedia resource from node device, avoid going transmission state to be the multimedia resource that busy position obtains needs from node device, and lose time, corresponding, if the transmission state of the described multimedia resource on described multiple memory location is busy, then to returning response message from node device with instruction without available multimedia resource.
In such scheme, before the transmission state of the multimedia resource in host node device determination respective memory locations, further comprising the steps of: host node device obtains the transmission state of one or more multimedia resource from node device in local area network (LAN); The acquisition of this transmission state can for initiatively maybe asking from node device the transmission state sending self multimedia resource to host node device.
In another kind of embodiment of the present invention, said method also comprises: host node device obtains the facility information from node device in local area network (LAN), facility information according to equipment of itself information and described acquisition generates list of devices in local area network (LAN), when detect in local area network (LAN) one or more leave from node device time, list of devices in described local area network (LAN) and local area network (LAN) inner multimedia resource information are upgraded.
Concrete, described list of devices in described local area network (LAN) and local area network (LAN) inner multimedia resource information to be upgraded, comprising:
By described leave delete from list of devices from node device, and by described leave delete from described multimedia resource list from the multimedia resource information node device.
In another embodiment of the present invention, when being made up of from the multimedia resource of node device request multiple resource segment, described method also comprises:
From node device, described multiple resource segment is spliced.
Concrete, describedly from node device, described multiple resource segment to be spliced, comprising:
The described lowest resolution determining described multiple resource segment from node device;
By described multiple resource segment according to after described lowest resolution transcoding, splice.
Device embodiment
With reference to Fig. 3, show a kind of multimedia resource sharing means of the present invention, the structured flowchart of embodiment, this device is positioned at host node device, specifically can comprise: multimedia resource data obtaining module 31, multimedia resource information generating module 32 and notification module 33; Wherein,
Multimedia resource data obtaining module 31, for obtaining one or more multimedia resource information from node device in described local area network (LAN);
Multimedia resource information generating module 32, multimedia resource information for obtaining according to multimedia resource data obtaining module 31 generates multimedia resource list, and the multimedia resource information in described local area network (LAN) comprises: the multimedia resource information of described host node device this locality and the described multimedia resource information from node device;
Described notification module 33, for by described multimedia resource list notification to one or more from node device in local area network (LAN), to obtain multimedia resource in local area network (LAN) from node device to make one or more in described local area network (LAN).
Concrete, described multimedia resource information, at least comprises the title of multimedia resource, can further include the memory location of multimedia resource.
In another kind of embodiment of the present invention, described device also comprises: multimedia resource obtains request receiving module 34 and multimedia resource request processing module 35; Wherein,
Multimedia resource obtains request receiving module 34, obtaining request, obtaining request process described multimedia resource for receiving one or more multimedia resource from node device;
Multimedia resource request processing module 35, processes for obtaining request to described multimedia resource.
Concrete, described multimedia resource request processing module 35, for after multimedia resource acquisition request receiving module 34 receives the acquisition of the multimedia resource from a node device request, obtains request to described multimedia resource in such a way and processes:
Determine the described memory location from the multimedia resource of node device acquisition request;
When determined memory location is one, determine the transmission state of the described multimedia resource on described memory location, if transmission state is idle, the information of described memory location is sent to from node device; When determined memory location is multiple, determining the transmission state of the described multimedia resource on described multiple memory location, is that the information of the memory location of idle multimedia resource sends to from node device by transmission state on described multiple memory location.
In another embodiment of the present invention, described device also comprises: apparatus information acquiring module 36, list of devices generation module 37 and information updating module 38; Wherein,
Described apparatus information acquiring module 36, for obtaining the facility information from node device in local area network (LAN);
Described list of devices generation module 37, generates list of devices in local area network (LAN) for the facility information obtained according to facility information and the described apparatus information acquiring module of host node device;
Described information updating module 38, for when detect in local area network (LAN) one or more leave from node device time, list of devices in described local area network (LAN) and multimedia resource list are upgraded.
Concrete, described information updating module 38, for upgrading list of devices in described local area network (LAN) and multimedia resource list in the following manner:
By described leave delete from list of devices from node device, and by described leave delete from described multimedia resource list from the multimedia resource information node device.
In specific implementation process, above-mentioned multimedia resource data obtaining module 31, multimedia resource information generating module 32, notification module 33, multimedia resource obtains request receiving module 34, multimedia resource request processing module 35, apparatus information acquiring module 36, list of devices generation module 37 and information updating module 38 all can by the central processing unit (CPU in host node device, CentralProcessingUnit), microprocessor (MPU, MicroProcessingUnit), digital signal processor (DSP, or programmable logic array (FPGA DigitalSignalProcessor), Field-ProgrammableGateArray) at least one of them realizes.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Application example
Fig. 4 is a kind of exemplary application scene of the embodiment of the present invention, and as shown in Figure 4, this scene comprises multiple node device: node device C1, node device C2, node device C3 and node device C4.Be shared as example with video resource below, method shared to multimedia resource of the present invention and describes in detail.
Node device C1, C2, C3 and C4 all can pass through Network Capture Online Video resource, when network disconnects, first C1 detects the local area network (LAN) existed around, when detecting unsuccessfully, C1 utilizes PAN (Personal Area Network) technology to create a local area network (LAN), as the node device creating this local area network (LAN), namely C1 becomes host node device.Afterwards, local area network (LAN) inside is managed by following scheme:
1, network management is safeguarded
1.1 node device registrations
After C1 creates local area network (LAN), node device C2, C3 and C4 all find by search the local area network (LAN) that C1 creates and add; At this moment, host node device C1 can regularly self-identity information by LAN broadcast, at this moment, other node device receiving described broadcast all can determine the host node device identity of C1, and self also can determine from node device identity; Afterwards, multiplely to register from node device C2, C3 and C4 respectively to host node device C1.
1.2 from node device information reporting
From node device C2, C3 and C4 to after host node device C1 has registered, report self facility information and multimedia resource information to host node device C1.
For example, as shown in Figure 4, C4, to after C1 registration, except informing the facility information of self, also informs the information of local A1 and the A2 resource stored; Accordingly, C2 informs the information of C1 equipment of itself information and the local A2 resource stored; Wherein, A1 and A2 forms A resource jointly, and namely, A resource is made up of A1 and A2 two parts.C3 informs the information of C1 equipment of itself information and the local B resource stored, and C4 informs the information of C1 equipment of itself information and the local C resource stored.Like this, C1 is also just aware of the distribution situation of all video resources in local area network (LAN).
Further, in local area network (LAN) in process resource access, respectively also can report the transmission state of local resource to host node device from node device, this state can be busy or idle, busyly refers to that resource is just occupied and takies, and the free time refers to that resource is unoccupied.
1.3 local area network (LAN) internal informations are integrated
The list of devices of host node device C1 by existing in the facility information determination local area network (LAN) that reports from node device, and the multimedia resource information by reporting from node device, determine the multimedia resource information in local area network (LAN), comprise title and the memory location of the multimedia resource in local area network (LAN), all node devices stored; Host node device can generate multimedia resource list according to the multimedia resource information in above-mentioned local area network (LAN), and video resources all in local area network (LAN) is enumerated out in this multimedia resource list.
1.4 scoring
After adding network, from node device also can timing or not timing the action message of self is fed back to host node device by heartbeat, described action message comprises: in the net time, upload number of times, download time, resource use amount, upload the liveness and contribution degree etc. of download, and host node device also can according to the action message of timing acquiring self, and above action message can as the standard of equipment scoring, the node device that comprehensive grading is higher is node device more stable in this local area network (LAN), the priority of download can be had, also can as the candidate of next host node device.
1.5 guard node device
Inner at local area network (LAN), except this key node device of host node device, also can arrange and one or morely guard node device.The effect of guarding node device whether is responsible for detection host node device also in local area network (LAN) inside.Therefore, guarding node device itself also needs to possess higher stability, so be also made up of the highest N number of node of marking, here, N be more than or equal to 1 positive integer, N value is maximum can be 20% of total nodes, ratio at net if any 10 equipment, needs 2 and guards node.
1.6 host node devices are replaced
Host node device in local area network (LAN) can leave local area network (LAN) under many circumstances, such as host node device leaves local area network (LAN) scope, at this moment, guarding node device will detect less than host node device or host node device hydraulic performance decline, initiatively exit local area network (LAN) or too much cause the puzzlement of other node device user in order to avoid host node device contribution, host node device is initiatively retired or after host node device reaches default military service duration, automatically retired.Equipment leave or retired after, the highest node device of guarding of scoring can be automatically upgraded to host node device, and by the host node device newly determined, self information be broadcast to all node devices of local area network (LAN).
2, resource sharing control
2.1 multimedia resources obtain request
The multimedia resource list of generation is handed down to each in local area network (LAN) from node device by host node device, thus respectively can know video resources all in local area network (LAN) from node device, and the resource as required in the list of acquisition request multimedia resource;
2.2 multimedia resources obtain request process
Host node can obtain request to described multimedia resource in such a way and process after receiving the multimedia resource acquisition request sent from node device:
Host node device determines the described memory location from the multimedia resource of node device acquisition request;
When determined memory location is one, determine the transmission state of the described multimedia resource on described memory location, if transmission state is idle, the information of described memory location is sent to from node device; Corresponding, if the transmission state of the described multimedia resource on described memory location is busy, then to returning response message from node device with instruction without available multimedia resource;
When determined memory location is multiple, determining the transmission state of the described multimedia resource on described multiple memory location, is that the information of the memory location of idle multimedia resource sends to from node device by transmission state on described multiple memory location; Corresponding, if the transmission state of the described multimedia resource on described multiple memory location is busy, then to returning response message from node device with instruction without available multimedia resource.
In another kind of Alternate embodiments of the present invention, host node also directly can determine the described memory location from the multimedia resource of node device acquisition request after receiving the multimedia resource acquisition request sent from node device; And directly the memory location of determined multimedia resource is sent to from node device.
2.3 multimedia resources obtain
After node device receives the multimedia resource stored position information that host node device returns, acquisition request conforms can be initiated to an object from node device according to described stored position information, if the resource of relevant position is occupied, then acquisition request resource from node device then to other position initiate acquisition request conforms, if the resource on all positions is all occupied, then acquisition request resource from after node device can wait for the corresponding time, again send acquisition request conforms to each object from node device in turn; Or each object of polling is from the service condition of respective resources node device, when respective resources is idle, namely carry out the acquisition of resource.
It should be noted that, in order to control the battery loss to node device, can upload control to resource in such scheme, such as, in each moment, each equipment can not give two or more node device upload multimedia resource simultaneously.
Video resource to be obtained is made up of two or more files, and during the resolution of file difference, can splice two or more video resources or according to the lowest resolution in two or more video segments, transcoding be carried out to each video file, thus strengthen viewing experience.
In the acquisition process of multimedia resource, when multiple ask identical multimedia resource from node device simultaneously time, in order to equipment of encouraging is marked high node device, can arrange corresponding mechanism, that is, marking high preferentially can obtain multimedia resource from node device.
For Fig. 4, node device C2 user request selecting plays B video resource, B Resource Storage, in node device C3, is supposed meanwhile, and host node device C1 also just in time asks to play B resource, but, owing to uploading control, C3 can only transmit to a node device, and due to host node device C1 mark high, node device C1 can preferentially obtain B resource and play, and C2 can only slightly wait for.
For above application example, it should be noted that, in local area network (LAN), each node device (comprise host node device and from node device) all can carry out the acquisition of multimedia resource between any two.For host node device C1, can think that C1 has two services, one is master control service, and another is the service of playing.
When C1 needs displaying video, the corresponding video resource of master control service request of the broadcasting service access this locality on C1, thus by master control service, broadcasting service requested resource is controlled; When C1 requested resource is local resource, then C1 directly reads the local resource stored; When the resource of C1 request is other from video resource node device; After then C1 obtains the stored position information of respective resources, can to store respective resources from node device acquisition request respective resources, and then, determined whether to transmit respective resources to host node device from node device, that is, when asked video resource is idle by corresponding, to host node device transmission corresponding video resource, and work as asked video resource busy time, return response message to host node device, notice host node device this resource is just busy.After then host node device can wait for a period of time, again initiate request to corresponding from node device.
Visible, the acquisition request conforms that host node device is initiated and being only from the difference of acquisition request conforms that node device is initiated, the acquisition request conforms that host node device is initiated processes in this locality, and need, by after local area network (LAN) access master control node, to be processed by master control node from the acquisition request conforms of node device.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, terminal equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computer or other programmable data processing terminal equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computer or other programmable terminal equipment, thus the instruction performed on computer or other programmable terminal equipment is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other identical element.
Above method and apparatus is shared to a kind of multimedia resource provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (14)

1. multimedia resource shares a method, it is characterized in that, described method comprises:
Host node device in local area network (LAN) obtains one or more multimedia resource information from node device in described local area network (LAN), and the multimedia resource information according to obtained one or more multimedia resource information from node device and host node device this locality generates multimedia resource list;
Described multimedia resource list notification is given in described local area network (LAN) one or more from node device by described host node device, to obtain multimedia resource in described local area network (LAN) to make one or more in described local area network (LAN) from node device.
2. the method for claim 1, is characterized in that, the multimedia resource information of described one or more multimedia resource information from node device or described host node device this locality at least comprises the title of multimedia resource.
3. method as claimed in claim 2, it is characterized in that, described host node device is by described multimedia resource list notification to one or more after node device in local area network (LAN), and described method also comprises:
Described host node device receives one or more multimedia resource from node device and obtains request, obtains request process described multimedia resource.
4. method as claimed in claim 3, is characterized in that, when described host node device receives the acquisition of the multimedia resource from a node device request, described host node device obtains request to described multimedia resource in such a way and processes:
Described host node device determines the described memory location from the multimedia resource of node device acquisition request;
When determined memory location is one, determine the transmission state of the described multimedia resource on described memory location, if transmission state be idle the information of described memory location is sent to described from node device; When determined memory location is multiple, determining the transmission state of the described multimedia resource on described multiple memory location, is that the information of the memory location of idle described multimedia resource sends to described from node device by transmission state on described multiple memory location.
5., as the method for Claims 1-4 according to any one of it, it is characterized in that, described host node device be create described local area network (LAN) node device or be the highest node device of scoring in described local area network (LAN).
6., as the method for Claims 1-4 according to any one of it, it is characterized in that, described method also comprises:
Described host node device obtains the facility information from node device in described local area network (LAN), the list of devices in described local area network (LAN) is generated according to the facility information of equipment of itself information and described acquisition, when detect in described local area network (LAN) one or more leave from node device time, described list of devices and described multimedia resource list are upgraded.
7. method as claimed in claim 6, is characterized in that, describedly upgrades described list of devices and described multimedia resource list, comprising:
By described leave delete from described list of devices from node device, and by described leave delete from described multimedia resource list from the multimedia resource information node device.
8. a multimedia resource sharing means, is characterized in that, described device comprises: multimedia resource data obtaining module, multimedia resource information generating module and notification module; Wherein,
Described multimedia resource data obtaining module, for obtaining one or more multimedia resource information from node device in described local area network (LAN);
Described multimedia resource information generating module, generates multimedia resource list for the multimedia resource information according to described one or more multimedia resource information from node device and host node device this locality;
Described notification module, for giving in described local area network (LAN) one or more from node device by described multimedia resource list notification, to obtain multimedia resource in described local area network (LAN) to make one or more in described local area network (LAN) from node device.
9. device as claimed in claim 8, it is characterized in that, the multimedia resource information of described one or more multimedia resource information from node device or described host node device this locality at least comprises the title of multimedia resource.
10. device as claimed in claim 9, it is characterized in that, described device also comprises: multimedia resource obtains request receiving module and multimedia resource request processing module; Wherein,
Described multimedia resource obtains request receiving module, obtains request for receiving described one or more multimedia resource from node device;
Described multimedia resource request processing module, processes for obtaining request to described multimedia resource.
11. devices as claimed in claim 10, it is characterized in that, described multimedia resource request processing module, for after described multimedia resource acquisition request receiving module receives the acquisition of the multimedia resource from a node device request, in such a way request is obtained to described multimedia resource and processes:
Determine the described memory location from the multimedia resource of node device acquisition request;
When determined memory location is one, determine the transmission state of the multimedia resource that the described request on described memory location obtains, when transmission state is idle, the information of described memory location is sent to described from node device; When determined memory location is multiple, determining the transmission state of the described multimedia resource on described multiple memory location, is that the information of the memory location of idle multimedia resource sends to described from node device by transmission state on described multiple memory location.
12., as the device of claim 8 to 11 according to any one of it, is characterized in that, described host node device be create described local area network (LAN) node device or be the highest node device of scoring in described local area network (LAN).
13. as the device of claim 8 to 11 according to any one of it, and it is characterized in that, described device also comprises: apparatus information acquiring module, list of devices generation module and information updating module; Wherein,
Described apparatus information acquiring module, for obtaining the facility information from node device in described local area network (LAN);
Described list of devices generation module, the facility information for obtaining according to equipment of itself information and the described apparatus information acquiring module of described host node device generates the list of devices in described local area network (LAN);
Described information updating module, for when detect in described local area network (LAN) one or more leave from node device time, described list of devices and described multimedia resource list are upgraded.
14. devices as claimed in claim 13, is characterized in that, described information updating module, for upgrading described list of devices and described multimedia resource list in the following manner:
By described leave delete from described list of devices from node device, and by described leave delete from described multimedia resource list from the multimedia resource information of node device.
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 (7)

* 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 北京雷石天地电子技术有限公司 Method and system for synchronizing 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

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 (13)

* 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 ***通信集团浙江有限公司 Hot 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 北京雷石天地电子技术有限公司 Method and system for synchronizing 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

Similar Documents

Publication Publication Date Title
CN105245500A (en) Multimedia resource sharing method and device
US11212742B2 (en) UPF selection method and device
CN109673037B (en) Network function discovery method and equipment
CN103036597B (en) Method and device of sharing resources among devices in close range
US11991036B2 (en) Communication method and apparatus, entity, and computer-readable storage medium
US20180227139A1 (en) Method of Terminal-Based Conference Load-Balancing, and Device and System Utilizing Same
CN107819615B (en) Equipment self-adaptive access method and device and master control equipment
US20130148596A1 (en) Resource management system and method of centralized base station in mobile communication network
CN103888512A (en) Method and device for downloading resources
CN101421967A (en) Method and apparatus for synchronizing contents of home network devices
US9229762B2 (en) Host providing system and host providing method
CN112631780A (en) Resource scheduling method and device, storage medium and electronic equipment
CN103810010A (en) Information processing method and first electronic device terminal
US10755707B2 (en) Selectively blacklisting audio to improve digital assistant behavior
CN108282668B (en) Video acquisition method and system
CN111431818B (en) Cross-domain request flow distribution method and device, storage medium and computer equipment
US20140204753A1 (en) Wireless communication device
CN102325367B (en) Data packet synchronizing device and method for client application
CN103425684A (en) Method and device for database operation
CN105703987A (en) Control method and apparatus for audio and video playing system
CN110875947A (en) Data processing method and edge node equipment
US20150237466A1 (en) Radio access system, controlling apparatus, and terminal apparatus
US20150302321A1 (en) Unit-based licensing for event and digital content access
CN110300182A (en) Network node dispatching method and device, computer installation and storage medium
CN105554731A (en) OTA upgrading method and OTA upgrading device

Legal Events

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

Application publication date: 20160113