The content of the invention
The embodiment of the present invention provides the method and device that a kind of multimedia programming is recorded, to solve to exist in the prior art
If carrying out hot plug to the storage device stored to the multimedia programming of recording, the record of multimedia programming can be interrupted
The problem of processed.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
A kind of method that multimedia programming is recorded, including:
When being recorded to multimedia programming, a conduct the is chosen in local registered at least one storage device
One target storage device, and by recorded content storage into the first object storage device;
Detect that user carries out hot plug in recording process to the first object storage device;
Again a target storage device of conduct second is chosen in local registered at least one storage device, and will
The recorded content obtained after the hot plug is stored into second target storage device.
Optionally, before being recorded to multimedia programming, further comprise:
Determine that user inserts at least one storage device, obtain each storage device at least one storage device
Identification information;
One virtual memory space is set, in the virtual memory space, respectively by each described storage device at this
Ground is mapped as storing subspace accordingly, and establish each storage device identification information and it is corresponding storage subspace it
Between corresponding relation.
Optionally, chosen in local registered at least one storage device one as first object storage device it
Before, further comprise:
Judge locally to whether there is at least one storage subspace;
If, it is determined that it is local at least one registered storage device to be present;
Otherwise, user is prompted to insert at least one storage device.
Optionally, when being recorded to multimedia programming, one is chosen in local registered at least one storage device
It is individual to be used as first object storage device, and by recorded content storage into the first object storage device, including:
Multimedia programming is recorded, obtains recorded content, and recorded content storage is cached to recorded file
In;
It is determined that when locally at least one registered storage device be present, at least one registered storage device
In screened, a storage device of screening conditions will be met as first object storage device;
Recorded content during recorded file is cached is stored into the first object storage device.
Optionally, a storage device of screening conditions will be met as first object storage device, including:
Using a maximum storage device of residual memory space as first object storage device, wherein, the residue is deposited
Storage space is up to the screening conditions that determination is indicated according to user;Or
Using a most fast storage device of transmission speed as first object storage device, wherein, the transmission speed is most
Fast is the screening conditions for being indicated according to user determination.
Optionally, conduct the second target storage is chosen in local registered at least one storage device again to set
It is standby, and the recorded content obtained after the hot plug is stored into second target storage device, including:
During the recorded content storage obtained after the hot plug is cached to recorded file;
Again detected locally, judge it is local when at least one storage subspace be present, it is determined that it is local still suffer to
A few registered storage device;
Screening is re-started according to the screening conditions at least one registered storage device, by meeting
A storage device of screening conditions is stated as the second target storage device;
Recorded content during recorded file is cached is stored into the second target storage device.
Optionally, after during the recorded content storage obtained after the hot plug is cached to recorded file, it is determined that this
Before ground still suffers from least one registered storage device, further comprise:
It is determined that when the data volume size for storing to recorded file the recorded content in caching reaches default amount data threshold,
Stop the recording to the multimedia programming;Or/and
It is determined that the duration that the recorded content obtained after hot plug storage is cached to this process to recorded file reaches
During to default duration thresholding, stop the recording to the multimedia programming.
The device that a kind of multimedia programming is recorded, is comprised at least:First memory cell, detection unit, the second memory cell,
Wherein:
First memory cell, when being recorded to multimedia programming, in local registered at least one storage device
Choose one and be used as first object storage device, and by recorded content storage into the first object storage device;
Detection unit, detect that user carries out hot plug in recording process to the first object storage device;
Second memory cell, choose a target of conduct second in local registered at least one storage device again
Storage device, and the recorded content obtained after the hot plug is stored into second target storage device.
Optionally, before being recorded to multimedia programming, first memory cell is further used for:
Determine that user inserts at least one storage device, obtain each storage device at least one storage device
Identification information;
One virtual memory space is set, in the virtual memory space, respectively by each described storage device at this
Ground is mapped as storing subspace accordingly, and establish each storage device identification information and it is corresponding storage subspace it
Between corresponding relation.
Optionally, chosen in local registered at least one storage device one as first object storage device it
Before, first memory cell is further used for:
Judge locally to whether there is at least one storage subspace;
If, it is determined that it is local at least one registered storage device to be present;
Otherwise, user is prompted to insert at least one storage device.
Optionally, when being recorded to multimedia programming, one is chosen in local registered at least one storage device
It is individual be used as first object storage device, and by recorded content storage into the first object storage device when, described first deposits
Storage unit is used for:
Multimedia programming is recorded, obtains recorded content, and recorded content storage is cached to recorded file
In;
It is determined that when locally at least one registered storage device be present, at least one registered storage device
In screened, a storage device of screening conditions will be met as first object storage device;
Recorded content during recorded file is cached is stored into the first object storage device.
Optionally, a storage device of screening conditions will be met as during first object storage device, described first deposits
Storage unit is used for:
Using a maximum storage device of residual memory space as first object storage device, wherein, the residue is deposited
Storage space is up to the screening conditions that determination is indicated according to user;Or
Using a most fast storage device of transmission speed as first object storage device, wherein, the transmission speed is most
Fast is the screening conditions for being indicated according to user determination.
Optionally, conduct the second target storage is chosen in local registered at least one storage device again to set
It is standby, and when the recorded content obtained after the hot plug is stored into second target storage device, described second deposits
Storage unit is used for:
During the recorded content storage obtained after the hot plug is cached to recorded file;
Again detected locally, judge it is local when at least one storage subspace be present, it is determined that it is local still suffer to
A few registered storage device;
Screening is re-started according to the screening conditions at least one registered storage device, by meeting
A storage device of screening conditions is stated as the second target storage device;
Recorded content during recorded file is cached is stored into the second target storage device.
Optionally, after during the recorded content storage obtained after the hot plug is cached to recorded file, it is determined that this
Before ground still suffers from least one registered storage device, second memory cell is further used for:
It is determined that when the data volume size for storing to recorded file the recorded content in caching reaches default amount data threshold,
Stop the recording to the multimedia programming;Or/and
It is determined that the duration that the recorded content obtained after hot plug storage is cached to this process to recorded file reaches
During to default duration thresholding, stop the recording to the multimedia programming.
The present invention has the beneficial effect that:
Virtual disk equipment is installed, at least one storage that can be inserted to user in the embodiment of the present invention, on TV
Equipment carries out registration management, and TV can be chosen when being recorded to multimedia programming in local registered storage device
One is used as first object storage device, and by recorded content storage into above-mentioned first object storage device, TV is detecting
After carrying out hot plug to first object storage device to user, one can be chosen in local registered storage device again
As the second target storage device, and by the recorded content obtained after hot plug storage into the second target storage device, this
Sample, if avoid user carries out hot plug to the storage device being used unintentionally, cause to interrupt multimedia programming recording
Situation, accurately ensure that program is completely recorded, improve the service quality and efficiency of service of performance recording, meanwhile, lifting
Consumer's Experience.
Embodiment
When TV is recorded to multimedia programming, in order to record the multimedia programming of big data quantity, it will usually in TV
Upper insertion is to lack a storage device, in the embodiment of the present invention, virtual disk system is provided with TV, TV passes through virtual magnetic
At least one storage device that disc system inserts to user carries out registration management, also, TV is set in virtual disk system
One virtual memory space, each storage device is mapped as in virtual memory space storing subspace accordingly respectively, this
Sample, TV locally whether there is at least one storage subspace by detecting, it may be determined that locally with the presence or absence of at least one
Storage device, and then recorded content can be stored by least one storage device existing for local.
In practical application, storage device can be different types of equipment, e.g., USB flash disk, mobile hard disk etc..
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
As shown in fig.1, in the embodiment of the present invention, in preprocessing process, TV is by virtual disk system at least one
The idiographic flow that individual storage device is registered is as follows:
Step 101:TV detects that user inserts at least one storage device.
Step 102:TV carries out registration management to above-mentioned at least one storage device.
Specifically, after TV determines that user inserts at least one storage device, by virtual disk system obtain it is above-mentioned extremely
The identification information of each storage device, completes the registration pipe to above-mentioned at least one storage device in a few storage device
Reason.
Step 103:Each storage device is mapped as storing subspace accordingly by TV locally respectively.
Specifically, TV sets a virtual memory space in virtual disk system, then, each storage is set respectively
It is standby to be mapped as storing subspace accordingly in virtual memory space, and the identification information for establishing each hard disk is deposited with corresponding
Store up the corresponding relation between subspace.
Such as:Refering to shown in table 1, after succeeding in registration, the identification information and storage of the storage device preserved on TV are empty
Between between corresponding relation it is as follows:
The identification information of storage device 1 is equipment 1, and corresponding storage subspace is subspace 1, the mark of storage device 2
Information is equipment 2, and corresponding storage subspace is subspace 2, and the identification information of storage device 3 is equipment 3, corresponding storage
Space is subspace 3.
Table 1
Hard disc apparatus title |
Identification information |
Corresponding storage subspace |
Hard disc apparatus 1 |
Equipment 1 |
Subspace 1 |
Hard disc apparatus 2 |
Equipment 2 |
Subspace 2 |
Hard disc apparatus 3 |
Equipment 3 |
Subspace 3 |
Based on above-described embodiment, after storage device succeeds in registration, TV can be recorded with beginning to use storage device to preserve
The multimedia programming of system.As shown in fig.2, in the embodiment of the present invention, specific stream that TV is recorded to multimedia programming
Journey is as follows:
Step 200:TV is recorded to multimedia programming, obtains recorded content.
Step 201:During TV caches the recorded content storage of acquisition to recorded file.
Specifically, being provided with virtual disk system on TV, and it is provided with recorded file in virtual disk system and delays
Deposit, TV first passes through the caching of the recorded file in virtual disk system and recorded content is stored after recorded content is obtained.
Step 202:TV judges locally to whether there is at least one registered storage device, if so, performing step
204, otherwise, perform step 203.
Specifically, after completing registration management at least one storage device by virtual disk system because of TV, in void
Intend in memory space, each storage device can have a corresponding storage subspace local, so TV can be
Locally detected, judge it is local whether there is at least one storage subspace, if so, then explanation local exist it is at least one
The storage device of registration, otherwise, illustrate at least one registered storage device locally is not present, it is determined that needing to send user
Prompting.
Step 203:Television reminding user inserts at least one storage device, and it is determined that user inserts at least one storage
After equipment, at least one storage device is registered, then, return to step 202.
Specifically, TV after it is determined that at least one registered storage device locally is not present, can be carried to user
Show, optionally, TV ejects a window on screen, and display content is " please insert storage device " in the window, Yong Hutong
The display content crossed in window, know that now at least one registered storage device is locally not present, it is necessary to be inserted into TV
A few storage device.
Step 204:TV is chosen one as first object in local registered at least one storage device and stored
Equipment, and the recorded content during recorded file is cached is stored into first object storage device, then performs step 205.
, can be from being locally registered after TV starts recording multimedia program specifically, be previously provided with screening conditions on TV
Multiple storage devices in choose and meet the storage devices of screening conditions as target storage device.
Specifically, when setting screening conditions, TV can use but be not limited in the following manner:
Mode one:User selects " residual memory space is maximum " being used as screening conditions.
Assuming that local have three registered storage devices, it is respectively:Storage device 1, storage device 2 and storage device
3.So, TV it is determined that user select will be registered to local three after " residual memory space maximum " be used as screening conditions
The residual memory space of storage device detected.TV determines that the residual memory space of storage device 1 is after tested
8G, the residual memory space of storage device 2 is 7G, and the residual memory space of storage device 3 is 11G, so that it is determined that storage device 3
Residual memory space it is maximum, so using storage device 3 as first object storage device, and the record during recorded file is cached
Content storage processed is into storage device 3.
Mode two:" transmission speed is most fast " is used as exemplified by screening conditions by user's selection.
Assuming that local have three registered storage devices, it is respectively:Storage device 1, storage device 2 and storage device
3.So, TV is it is determined that user selects registered to deposit local for three after " transmission speed is most fast " be used as screening conditions
The transmission performance of storage equipment is detected.TV determines that the transmission speed of storage device 1 is 10Mb/s after tested, storage
The transmission speed of equipment 2 is 30Mb/s, and the transmission speed of storage device 3 is 15Mb/s, may thereby determine that the biography of storage device 2
Defeated fastest, so using storage device 2 as first object storage device, and the content storage during recorded file is cached is arrived
In storage device 2.
Step 205:TV detects that user carries out hot plug in recording process to first object storage device.
Step 206:TV is detected locally again, judges locally whether still suffer from least one registered one
Storage device, if so, performing step 207, otherwise, return to step 203.
Specifically, TV is after detecting that user carries out hot plug in recording process to first object storage device, it is first
By the recorded content obtained after above-mentioned hot plug storage to recorded file cache in because TV by virtual disk system to extremely
After a few storage device completes registration management, in virtual memory space, each storage device can have one local
Individual storage subspace accordingly, so TV can detect again locally, judge whether to still suffer from least one storage sky
Between, if so, then explanation is local still suffers from least one registered storage device, otherwise, illustrate local be not present at least
One storage device, it is determined that needing to prompt user.
Step 207:TV is after it is determined that locally still suffer from least one registered storage device, above-mentioned at least one
Screening is re-started according to screening conditions in registered storage device, a storage device of screening conditions will be met as
Two target storage devices, and the recorded content during recorded file is cached is stored into the second target storage device.
Specifically, TV determines screening conditions, institute it is determined that during first object storage device according to user's instruction
So that TV, can be according to screening bar selected before user after it is determined that locally still suffering from least one registered storage device
Part, screened again in above-mentioned at least one storage device, and a storage device of screening conditions will be met as
Two target storage devices.
In addition, in actual applications, TV indicates according to user, can be with preset data amount thresholding or/and duration door
Limit, TV in the case where not can determine that the second target storage device for a long time, however, it is determined that in the recording that will be obtained after hot plug
Hold this operation during storage caches to recorded file, reach above-mentioned amount data threshold or/and duration thresholding, then stop to multimedia
The recording of program.
So that preset data amount thresholding is 2G as an example, the recorded content in TV has determined that storage caches to recorded file
Data volume size when reaching default amount data threshold 2G, if not determining the second target storage device yet, stop to more matchmakers
Body segment purpose is recorded.
Again by taking preset duration thresholding 300s as an example, had determined in TV and recorded content storage is cached this to recorded file
When the duration of one process reaches default duration thresholding 300s, if not determining the second target storage device yet, stopping pair
The recording of multimedia programming.
Step 208:TV judges whether recorded content stores successfully in above-mentioned at least one registered storage device,
If so, perform step 209, otherwise, return to step 202.
Step 209:TV judges whether the recording to multimedia programming terminates, if so, performing step 210, otherwise, returns
Step 200.
Specifically, in recording process, TV can be monitored in real time to the process of the recording of multimedia programming, judgement pair
Whether the recording of multimedia programming is completed.
Step 210:The recording of television reminding customer multi-media program has been completed.
Specifically, TV can eject a window on screen, window display content is " recording terminates ", and user can lead to
The display content crossed in window, know that the recording of multimedia programming is over, now, user can to it is local it is at least one
The storage device of registration carries out hot plug.Based on above-described embodiment, as shown in fig.3, the device that a kind of multimedia programming is recorded,
Comprise at least:First memory cell 30, detection unit 31, the second memory cell 32, wherein:
First memory cell 30, when being recorded to multimedia programming, in local registered at least one storage device
It is middle to choose one as first object storage device, and by recorded content storage into the first object storage device;
Detection unit 31, detect that user carries out hot plug in recording process to the first object storage device;
Second memory cell 32, choose a mesh of conduct second in local registered at least one storage device again
Storage device is marked, and the recorded content obtained after the hot plug is stored into second target storage device.
Optionally, before being recorded to multimedia programming, first memory cell 30 is further used for:
Determine that user inserts at least one storage device, obtain each storage device at least one storage device
Identification information;
One virtual memory space is set, in the virtual memory space, respectively by each described storage device at this
Ground is mapped as storing subspace accordingly, and establish each storage device identification information and it is corresponding storage subspace it
Between corresponding relation.
Optionally, chosen in local registered at least one storage device one as first object storage device it
Before, first memory cell 30 is further used for:
Judge locally to whether there is at least one storage subspace;
If, it is determined that it is local at least one registered storage device to be present;
Otherwise, user is prompted to insert at least one storage device.
Optionally, when being recorded to multimedia programming, one is chosen in local registered at least one storage device
It is individual be used as first object storage device, and by recorded content storage into the first object storage device when, described first deposits
Storage unit 30 is used for:
Multimedia programming is recorded, obtains recorded content, and recorded content storage is cached to recorded file
In;
It is determined that when locally at least one registered storage device be present, at least one registered storage device
In screened, a storage device of screening conditions will be met as first object storage device;
Recorded content during recorded file is cached is stored into the first object storage device.
Optionally, a storage device of screening conditions will be met as during first object storage device, described first deposits
Storage unit 30 is used for:
Using a maximum storage device of residual memory space as first object storage device, wherein, the residue is deposited
Storage space is up to the screening conditions that determination is indicated according to user;Or
Using a most fast storage device of transmission speed as first object storage device, wherein, the transmission speed is most
Fast is the screening conditions for being indicated according to user determination.
Optionally, conduct the second target storage is chosen in local registered at least one storage device again to set
It is standby, and when the recorded content obtained after the hot plug is stored into second target storage device, described second deposits
Storage unit 32 is used for:
During the recorded content storage obtained after the hot plug is cached to recorded file;
Again detected locally, judge it is local when at least one storage subspace be present, it is determined that it is local still suffer to
A few registered storage device;
Screening is re-started according to the screening conditions at least one registered storage device, by meeting
A storage device of screening conditions is stated as the second target storage device;
Recorded content during recorded file is cached is stored into the second target storage device.
Optionally, after during the recorded content storage obtained after the hot plug is cached to recorded file, it is determined that this
Before ground still suffers from least one registered storage device, second memory cell 32 is further used for:
It is determined that when the data volume size for storing to recorded file the recorded content in caching reaches default amount data threshold,
Stop the recording to the multimedia programming;Or/and
It is determined that the duration that the recorded content obtained after hot plug storage is cached to this process to recorded file reaches
During to default duration thresholding, stop the recording to the multimedia programming.
In summary, virtual disk equipment is installed in the embodiment of the present invention, on TV, user can be inserted at least
One storage device carries out registration management, and TV can be set when being recorded to multimedia programming in local registered storage
Standby middle selection one is used as first object storage device, and by recorded content storage into above-mentioned first object storage device, electricity
, can be again in local registered storage device after apparent detects that user carries out hot plug to first object storage device
A target storage device of conduct second is chosen, and the recorded content obtained after hot plug is stored to the second target storage and set
In standby, so, if avoid user carries out hot plug to the storage device being used unintentionally, cause to interrupt multimedia section
It the situation of catalogue, accurately ensure that program is completely recorded, improve the service quality and efficiency of service of performance recording, together
When, improve Consumer's Experience.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.So, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.