摘要 |
<p>The present invention discloses a method and a device for inputting data in a multimedia service database on an embedded device. The method includes: when multimedia file scanning is performed, storing generated directory information of a multimedia file in a RAM-DB, and performing a RAM-DB to BAK-DB data backup operation in a scanning process; and if an interruption occurs in the scanning process, and when the scanning continues after the scanning interruption ends, copying data in a BAK-DB to the RAM-DB, and continuing to scan, according to existing data in the RAM-DB, a multimedia file that is not scanned. In the present invention, two database files RAM-DB and BAK-DB are configured in a multimedia service system, so as to avoid a problem of multimedia file scanning error caused by an interruption, thereby achieving high efficiency, data persistence and reliability of a multimedia service, and improving user experience of an embedded multimedia service, having a high practicability.</p> |