CN104239151A - Resource management method and system - Google Patents

Resource management method and system Download PDF

Info

Publication number
CN104239151A
CN104239151A CN201410478765.6A CN201410478765A CN104239151A CN 104239151 A CN104239151 A CN 104239151A CN 201410478765 A CN201410478765 A CN 201410478765A CN 104239151 A CN104239151 A CN 104239151A
Authority
CN
China
Prior art keywords
resource
hardware
hardware resource
resource management
player
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
CN201410478765.6A
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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201410478765.6A priority Critical patent/CN104239151A/en
Publication of CN104239151A publication Critical patent/CN104239151A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to a resource management method and system. The resource management method comprises the following steps: establishing resource management service; counting all hardware resources played by equipment for management; synchronously performing allocation and release management on the equipment in a process; firstly releasing the occupied hardware resource during occupation of the hardware resources and then allocating to avoid conflict, thereby avoiding the problem of incapability of playing of the hardware resource due to the mistake caused by the fact that the resource is initialized before the resource is released completely in case of asynchronous application of two processes for the hardware resource and guaranteeing the normal use of users.

Description

A kind of method for managing resource and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of method for managing resource and system.
Background technology
Along with the intelligent development of audio & video equipment, the audio & video equipment of increasing intelligent system is there is above present market, such as Android intelligent set top box, Android intelligent television etc., this intelligent sound video equipment not only supports that this locality of primary Android intelligent system is play (equipment itself store with the network media), also supports the broadcasting of DVB (digital video broadcasting) real-time streams.
Playing function due to DVB real-time streams is not the primary support of Android intelligent system, so the system of most of Android intelligent equipment plays DVB separately as a service, operates in inside a process.Primary local playing function is then operated in another process.The viewing effect obtained to allow user, current DVB plays and the decoding of local broadcasting is all adopt hard mode of separating (hardware decode), and the hardware resource needed for the player application of equipment carries out DVB broadcasting or local broadcasting.
Due to employing is firmly separate mode, in time repeatedly switching DVB fast and play with local broadcasting, there will be this locality or DVB plays the situation that cannot play back, this is because the release of the hardware resources such as player needs the time, and two applications of process to resource are asynchronous, this will cause resource not discharge, and starts initialization again, thus lead to errors, cannot play.
Summary of the invention
In view of this, be necessary to play for the above-mentioned quick DVB of switching repeatedly to play with local, cause the problem that cannot play, a kind of method for managing resource and system are provided.
A kind of method for managing resource provided by the invention, comprises the steps:
S10: build resource management service, adds up all hardware resource of current device for playing by resource management service;
S20: when having DVB broadcasting or local playing request, controls corresponding player to the hardware resource needed for resource management service application broadcasting, by resource management service to the hardware resource needed for player distribution broadcasting;
S30: when there being new player application hardware resource, judges whether new player has the whole hardware resources needed for broadcasting, if do not possessed, distributes hardware resource by resource management service remaining in the hardware resource that is not assigned with;
S40: judge whether have enough hardware resources to distribute to new player in remaining hardware resource, if do not had, then discharges by resource management service the hardware resource that other players have distributed, then the hardware resource of release is distributed to new player.
A kind of resource management system provided by the invention, comprises the steps:
Service construction unit, builds resource management service, adds up all hardware resource of current device for playing by resource management service;
Resource allocation unit, when having DVB broadcasting or local playing request, controls corresponding player to the hardware resource needed for resource management service application broadcasting, by resource management service to the hardware resource needed for player distribution broadcasting;
Resource judgment unit, when there being new player application hardware resource, judges whether new player has the whole hardware resources needed for broadcasting, if do not possessed, distributes hardware resource by resource management service remaining in the hardware resource that is not assigned with;
Resource releasing unit, judge in remaining hardware resource, whether have enough hardware resources to distribute to new player, if no, then discharge by resource management service the hardware resource that other players have distributed, then the hardware resource of release is distributed to new player.
Method for managing resource of the present invention and system, establishing resource management service, the all hardware resource that statistics equipment carries out playing manages, the management synchronously equipment being distributed, discharges in a process, first occupied hardware resource is discharged time occupied in hardware resource, distribute again, conflict can not be produced, thus avoid two processes to the asynchronous application of hardware resource, cause resource not discharge and start initialization and lead to errors, the problem that cannot play, ensures that user normally uses.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for managing resource in an embodiment;
Fig. 2 is the structural drawing of the resource management system in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 is the process flow diagram of the method for managing resource in an embodiment.As shown in Figure 1, the method comprises the steps:
S10: build resource management service, adds up all hardware resource of current device for playing by resource management service.
Usually, an equipment can possess multiple even many covers for the hardware resource that DVB plays or this locality is play.The method, before DVB plays or local broadcasting starts, first builds resource management service.Resource management service is used for adding up all hardware resource for playing that possesses of current device, such as there are several player, several tuner, window resource and demoder etc., so that understand for the hardware resource play current device, hardware resource is distributed unitedly and manages.
In further embodiment, this step S10 also comprised step before structure resource management service: build DVB and play service object, the hardware resource needed for playing for initialization DVB.Like this carrying out as user very rapidly, the time of initializing resource to be decreased when DVB plays, also can not affect local hardware resource initialization of playing simultaneously, but being initialized local playing resource simultaneously, also improving the speed of local broadcasting.
Further, all hardware resource status is distinguished classified and stored among a resource management object by resource management service.Resource management object statistics stores the using state of all hardware resource.Free time represents hardware resource and can use, and the busy hardware resource that represents has been assigned with and takies.Due in most original state, all hardware resource does not all use, therefore the using state of all hardware resource is initially all set to the free time by resource management object.By resource management object, follow-uply just can distribute hardware resource according to resource using status or discharge, realize hardware resource and distribute, DVB play and local play both to switch fast or both mix broadcasting.
S20: when having DVB broadcasting or local playing request, controls corresponding player to the hardware resource needed for resource management service application broadcasting, by resource management service to the hardware resource needed for player distribution broadcasting.
When user needs DVB to play or this locality is play, DVB can be sent to equipment to play or local playing request, when there being request, DVB broadcasting or the player (DVB player or local media player) corresponding to local broadcasting are to hardware resources such as tuner, demoder and the window resources required for resource management service application broadcasting, resource management service is receiving the hardware resource needed for application rear guard player distribution broadcasting, thus makes player can carry out DVB broadcasting or local broadcasting.
In further embodiment, the hardware resource behaviour in service of distributing to player is set to busy by resource management service.The resource that this makes it possible to and be assigned with manages, and better manages not having occupied resource.
S30: when there being new player application hardware resource, judges whether new player has the whole hardware resources needed for broadcasting, if do not possessed, distributes hardware resource by resource management service remaining in the hardware resource that is not assigned with.
Play or local broadcasting when user opens new DVB, or when switching DVB broadcasting and local broadcasting, have corresponding new player application hardware resource, new player may be assigned with hardware resource before, also may not be assigned with, need to judge whether new player has the whole hardware resources needed for broadcasting, if do not possessed, illustrate and initially do not distribute hardware resource, now by the using state of resource management service according to hardware resource, hardware resource is selected in the remaining hardware resource be not assigned with, distribute to new player.This makes it possible to first make full use of the hardware resource be not assigned with, avoid discharging occupied hardware resource, produce conflict.
S40: judge whether have enough hardware resources to distribute to new player in remaining hardware resource, if do not had, then discharges by resource management service the hardware resource that other players have distributed, then the hardware resource of release is distributed to new player.
When resource management service distributes hardware resource in the hardware resource that residue is not assigned with, if the whole hardware resources needed for new player plays can not be distributed in remaining hardware resource, this just needs to go first to discharge the hardware resource be assigned with, will be assigned with the still current hardware resource used that do not need again to discharge, to distribute to new player.Like this by resource management service to hardware resource unified management, in same process, release reallocation is first carried out to hardware resource, conflict can not be produced, thus avoid two processes to the asynchronous application of hardware resource, cause resource not discharge and start initialization and lead to errors, the problem that cannot play, ensures that user normally uses.
In further embodiment, the step discharging by resource management service the hardware resource that other players have distributed in this step S40 is specially: the fractional hardware resource being discharged other players by resource management service, or look for the player identical with new player types, whole hardware resources of player identical for type are distributed to new player, the hardware resource of the player of such same type directly distributes, and can distribute all resources fast for new player.
This method for managing resource, establishing resource management service, the all hardware resource that statistics equipment carries out playing manages, the management synchronously distributing equipment, discharge in a process, first discharges occupied hardware resource time occupied in hardware resource, distribute again, can not conflict be produced, thus avoid two processes to the asynchronous application of hardware resource, cause resource not discharge and start initialization leading to errors, the problem that cannot play, ensures that user normally uses.
Meanwhile, the present invention also provides a kind of resource management system.As shown in Figure 2, comprising:
Service construction unit 100, builds resource management service, adds up all hardware resource of current device for playing by resource management service.
Usually, an equipment can possess multiple even many covers for the hardware resource that DVB plays or this locality is play.This system, before DVB plays or local broadcasting starts, first service construction unit 100 builds resource management service.Resource management service is used for adding up all hardware resource for playing that possesses of current device, such as there are several player, several tuner, window resource and demoder etc., so that understand for the hardware resource play current device, hardware resource is distributed unitedly and manages.
In further embodiment, service construction unit 100 also builds DVB and plays service object, the hardware resource needed for playing for initialization DVB.Like this carrying out as user very rapidly, the time of initializing resource to be decreased when DVB plays, also can not affect local hardware resource initialization of playing simultaneously, but being initialized local playing resource simultaneously, also improving the speed of local broadcasting.
Further, classified and stored is among a resource management object respectively by all hardware resource status for resource management service, and resource management object statistics stores the using state of all hardware resource.Free time represents hardware resource and can use, and the busy hardware resource that represents has been assigned with and takies.Due in most original state, all hardware resource does not all use, therefore the using state of all hardware resource is initially all set to the free time by resource management object.By resource management object, follow-uply just can distribute hardware resource according to resource using status or discharge, realize hardware resource and distribute, DVB play and local play both to switch fast or both mix broadcasting.
Resource allocation unit 200, when having DVB broadcasting or local playing request, controls corresponding player to the hardware resource needed for resource management service application broadcasting, by resource management service to the hardware resource needed for player distribution broadcasting.
When user needs DVB to play or this locality is play, DVB can be sent to equipment to play or local playing request, when there being request, resource allocation unit 200 control DVB broadcasting or the player (DVB player or local media player) corresponding to local broadcasting are to hardware resources such as tuner, demoder and the window resources required for resource management service application broadcasting, resource management service is receiving the hardware resource needed for application rear guard player distribution broadcasting, thus makes player can carry out DVB broadcasting or local broadcasting.
In further embodiment, the hardware resource behaviour in service of distributing to player is set to busy by resource management service.The resource that this makes it possible to and be assigned with manages, and better manages not having occupied resource.
Resource judgment unit 300, when there being new player application hardware resource, judges whether new player has the whole hardware resources needed for broadcasting, if do not possessed, distributes hardware resource by resource management service remaining in the hardware resource that is not assigned with.
Play or local broadcasting when user opens new DVB, or when switching DVB broadcasting and local broadcasting, have corresponding new player application hardware resource, new player may be assigned with hardware resource before, also may not be assigned with, resource judgment unit 300 needs to judge whether new player has the whole hardware resources needed for broadcasting, if do not possessed, illustrate and initially do not distribute hardware resource, now by the using state of resource management service according to hardware resource, hardware resource is selected in the remaining hardware resource be not assigned with, distribute to new player.This makes it possible to first make full use of the hardware resource be not assigned with, avoid discharging occupied hardware resource, produce conflict.
Resource releasing unit 400, judge in remaining hardware resource, whether have enough hardware resources to distribute to new player, if no, then discharge by resource management service the hardware resource that other players have distributed, then the hardware resource of release is distributed to new player.
When resource management service distributes hardware resource in the hardware resource that residue is not assigned with, if the whole hardware resources needed for new player plays can not be distributed in remaining hardware resource, resource releasing unit 400 just needs to go first to discharge the hardware resource be assigned with, will be assigned with the still current hardware resource used that do not need again to discharge, to distribute to new player.Like this by resource management service to hardware resource unified management, in same process, release reallocation is first carried out to hardware resource, conflict can not be produced, thus avoid two processes to the asynchronous application of hardware resource, cause resource not discharge and start initialization and lead to errors, the problem that cannot play, ensures that user normally uses.
In further embodiment, the fractional hardware resource of other players is discharged by resource management service, or look for the player identical with new player types, whole hardware resources of player identical for type are distributed to new player, the hardware resource of the player of such same type directly distributes, and can distribute all resources fast for new player.
This resource management system, establishing resource management service, the all hardware resource that statistics equipment carries out playing manages, the management synchronously distributing equipment, discharge in a process, first discharges occupied hardware resource time occupied in hardware resource, distribute again, can not conflict be produced, thus avoid two processes to the asynchronous application of hardware resource, cause resource not discharge and start initialization leading to errors, the problem that cannot play, ensures that user normally uses.
Method for managing resource of the present invention and system, establishing resource management service, the all hardware resource that statistics equipment carries out playing manages, the management synchronously equipment being distributed, discharges in a process, first occupied hardware resource is discharged time occupied in hardware resource, distribute again, conflict can not be produced, thus avoid two processes to the asynchronous application of hardware resource, cause resource not discharge and start initialization and lead to errors, the problem that cannot play, ensures that user normally uses.
These are only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for managing resource, is characterized in that, comprises the steps:
S10: build resource management service, adds up all hardware resource of current device for playing by resource management service;
S20: when having DVB broadcasting or local playing request, controls corresponding player to the hardware resource needed for resource management service application broadcasting, by resource management service to the hardware resource needed for player distribution broadcasting;
S30: when there being new player application hardware resource, judges whether new player has the whole hardware resources needed for broadcasting, if do not possessed, distributes hardware resource by resource management service remaining in the hardware resource that is not assigned with;
S40: judge whether have enough hardware resources to distribute to new player in remaining hardware resource, if do not had, then discharges by resource management service the hardware resource that other players have distributed, then the hardware resource of release is distributed to new player.
2. method for managing resource according to claim 1, is characterized in that, described step S10 also comprises: build DVB and play service object, the hardware resource needed for playing for initialization DVB.
3. method for managing resource according to claim 1, it is characterized in that, classified and stored is among a resource management object respectively by all hardware resource status for described resource management service, and described resource management object statistics stores the using state of all hardware resource.
4. method for managing resource according to claim 3, is characterized in that, the hardware resource behaviour in service of distributing to player is set to busy by described resource management service.
5. method for managing resource according to claim 1, it is characterized in that, described step S40 is specially: the fractional hardware resource being discharged other players by resource management service, or look for the player identical with new player types, whole hardware resources of player identical for type are distributed to new player.
6. a resource management system, is characterized in that, comprises the steps:
Service construction unit, builds resource management service, adds up all hardware resource of current device for playing by resource management service;
Resource allocation unit, when having DVB broadcasting or local playing request, controls corresponding player to the hardware resource needed for resource management service application broadcasting, by resource management service to the hardware resource needed for player distribution broadcasting;
Resource judgment unit, when there being new player application hardware resource, judges whether new player has the whole hardware resources needed for broadcasting, if do not possessed, distributes hardware resource by resource management service remaining in the hardware resource that is not assigned with;
Resource releasing unit, judge in remaining hardware resource, whether have enough hardware resources to distribute to new player, if no, then discharge by resource management service the hardware resource that other players have distributed, then the hardware resource of release is distributed to new player.
7. resource management system according to claim 6, is characterized in that, described service construction cell formation DVB plays service object, the hardware resource needed for playing for initialization DVB.
8. resource management system according to claim 6, it is characterized in that, classified and stored is among a resource management object respectively by all hardware resource status for described resource management service, and described resource management object statistics stores the using state of all hardware resource.
9. resource management system according to claim 8, is characterized in that, the hardware resource behaviour in service of distributing to player is set to busy by described resource management service.
10. resource management system according to claim 6, it is characterized in that, discharged the fractional hardware resource of other players by resource management service, or look for the player identical with new player types, whole hardware resources of player identical for type are distributed to new player.
CN201410478765.6A 2014-09-18 2014-09-18 Resource management method and system Pending CN104239151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410478765.6A CN104239151A (en) 2014-09-18 2014-09-18 Resource management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410478765.6A CN104239151A (en) 2014-09-18 2014-09-18 Resource management method and system

Publications (1)

Publication Number Publication Date
CN104239151A true CN104239151A (en) 2014-12-24

Family

ID=52227282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410478765.6A Pending CN104239151A (en) 2014-09-18 2014-09-18 Resource management method and system

Country Status (1)

Country Link
CN (1) CN104239151A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028144A (en) * 2016-06-15 2016-10-12 青岛海信宽带多媒体技术有限公司 Method and device for monitoring audio and video resources in television terminal, and television terminal
CN106155828A (en) * 2016-07-13 2016-11-23 微鲸科技有限公司 For play-back application resource control method and equipment
CN106210870A (en) * 2016-07-12 2016-12-07 青岛海信电器股份有限公司 A kind of local media is play and pushes processing method and the TV that media play is conflicted
CN108111520A (en) * 2017-12-28 2018-06-01 青岛海信电器股份有限公司 Media playing resources processing method, device and terminal
CN108833960A (en) * 2018-06-14 2018-11-16 青岛海信传媒网络技术有限公司 A kind of method and device of audiovisual applications switching
CN110881143A (en) * 2018-09-05 2020-03-13 中兴通讯股份有限公司 Set top box management method, device and equipment and computer readable storage medium
CN111031357A (en) * 2019-11-28 2020-04-17 晶晨半导体(深圳)有限公司 Play resource management system
CN111290792A (en) * 2018-12-07 2020-06-16 成都鼎桥通信技术有限公司 Method for carrying out system switching in multi-container domain at top speed
CN111866555A (en) * 2020-07-24 2020-10-30 展讯半导体(南京)有限公司 Digital television resource management method, system, electronic device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266554A (en) * 2008-04-22 2008-09-17 中兴通讯股份有限公司 Embedded terminal multimedia application processing method and embedded terminal
CN101600011A (en) * 2008-06-03 2009-12-09 中兴通讯股份有限公司 The concurrent playing method and device of mobile multimedia terminal
CN103024551A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Resource management method of intelligent television system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266554A (en) * 2008-04-22 2008-09-17 中兴通讯股份有限公司 Embedded terminal multimedia application processing method and embedded terminal
CN101600011A (en) * 2008-06-03 2009-12-09 中兴通讯股份有限公司 The concurrent playing method and device of mobile multimedia terminal
CN103024551A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Resource management method of intelligent television system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028144A (en) * 2016-06-15 2016-10-12 青岛海信宽带多媒体技术有限公司 Method and device for monitoring audio and video resources in television terminal, and television terminal
CN106210870A (en) * 2016-07-12 2016-12-07 青岛海信电器股份有限公司 A kind of local media is play and pushes processing method and the TV that media play is conflicted
CN106155828A (en) * 2016-07-13 2016-11-23 微鲸科技有限公司 For play-back application resource control method and equipment
CN108111520A (en) * 2017-12-28 2018-06-01 青岛海信电器股份有限公司 Media playing resources processing method, device and terminal
CN108111520B (en) * 2017-12-28 2021-02-26 海信视像科技股份有限公司 Media playing resource processing method, device and terminal
CN108833960A (en) * 2018-06-14 2018-11-16 青岛海信传媒网络技术有限公司 A kind of method and device of audiovisual applications switching
CN110881143A (en) * 2018-09-05 2020-03-13 中兴通讯股份有限公司 Set top box management method, device and equipment and computer readable storage medium
CN111290792A (en) * 2018-12-07 2020-06-16 成都鼎桥通信技术有限公司 Method for carrying out system switching in multi-container domain at top speed
CN111031357A (en) * 2019-11-28 2020-04-17 晶晨半导体(深圳)有限公司 Play resource management system
WO2021103746A1 (en) * 2019-11-28 2021-06-03 晶晨半导体(深圳)有限公司 Playback resource management system
CN111866555A (en) * 2020-07-24 2020-10-30 展讯半导体(南京)有限公司 Digital television resource management method, system, electronic device and medium

Similar Documents

Publication Publication Date Title
CN104239151A (en) Resource management method and system
US9781486B2 (en) RS-DVR systems and methods for unavailable bitrate signaling and edge recording
US9554166B2 (en) Methods and apparatus for providing multi-source bandwidth sharing management
CN103888832A (en) Processing method and device for switching of data sources to which to player terminal has access
CN106604086B (en) The played in full screen method and system of preview video in Android application
CN106534935A (en) Method and device for controlling hardware resource conflict
KR20110116031A (en) Managing resources to display media content
CN106131671A (en) A kind of method and device regulating video definition
KR101627273B1 (en) Broadcast receiver and Method for managementing memory
CN103269442B (en) Content on-demand broadcasting method, content on-demand broadcasting system and content on-demand broadcasting equipment
CN104618795A (en) Method and system for changing television program playback channel
US9160467B2 (en) Method and system for assigning definitions to media network channels
KR101719563B1 (en) Broadcast reciver and method for managementing memory
CN105611427A (en) Method and device for play control of audio and video
US8830400B2 (en) Method, apparatus, and system for implementing picture in picture in home network
US20080101359A1 (en) Multicast communication resource management apparatus and methods
CN103002339B (en) Obtain the method and apparatus of demultiplexed data
CN102447954B (en) Method for managing channel number resource in network television system and device
CN110572697A (en) remote teaching method and device for multiple video channels and server
WO2017198185A1 (en) Method and apparatus for receiving electronic program guide information
CN102209038B (en) A kind of implementation method of interactive stream media buffering and device thereof
WO2023015427A1 (en) Method for switching standards, apparatus, computer device, and storage medium
CN105376227B (en) A kind of media resource method for releasing, apparatus and system based on DLNA agreement
CN100375512C (en) Method for playing back audio/video
CN102843606A (en) Implementation method, equipment and system of mosaic business

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

Application publication date: 20141224

RJ01 Rejection of invention patent application after publication