WO2011140811A1 - 在多媒体文件控制过程中实现快速响应的方法及播放装置 - Google Patents

在多媒体文件控制过程中实现快速响应的方法及播放装置 Download PDF

Info

Publication number
WO2011140811A1
WO2011140811A1 PCT/CN2010/080249 CN2010080249W WO2011140811A1 WO 2011140811 A1 WO2011140811 A1 WO 2011140811A1 CN 2010080249 W CN2010080249 W CN 2010080249W WO 2011140811 A1 WO2011140811 A1 WO 2011140811A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
multimedia file
thread
multimedia
logic control
Prior art date
Application number
PCT/CN2010/080249
Other languages
English (en)
French (fr)
Inventor
陈有鑫
马伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP10851315.1A priority Critical patent/EP2538413B1/en
Priority to KR1020127024587A priority patent/KR101408021B1/ko
Priority to JP2013500310A priority patent/JP5537726B2/ja
Priority to US13/635,034 priority patent/US20130007005A1/en
Publication of WO2011140811A1 publication Critical patent/WO2011140811A1/zh

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/19Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
    • G11B27/28Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording
    • G11B27/30Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on the same track as the main recording
    • G11B27/3027Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on the same track as the main recording used signal is digitally coded
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/102Programmed access in sequence to addressed parts of tracks of operating record carriers
    • G11B27/105Programmed access in sequence to addressed parts of tracks of operating record carriers of operating discs

Definitions

  • the present invention relates to multimedia data processing techniques, and more particularly to a method and a playback apparatus for implementing a fast response in a multimedia file control process.
  • Multimedia playback devices are gradually moving from large to small, from home to portable, and small multimedia playback devices such as MP3, MP4, and mobile phones have largely replaced traditional large-scale multimedia devices.
  • portable computing devices have limited computing power and data processing capabilities.
  • Some large multimedia files (such as MP3, AAC, etc.) are opened or relocated (that is, the playback start time point is re-determined during file playback). When the response is slow, the user experience is often affected.
  • the portable playback device needs to create a file playback time index of the multimedia file.
  • This creation process requires traversing the frame data of the entire multimedia file, which takes a long time.
  • the bottleneck that affects the speed at which multimedia files are opened or relocated is the creation of the file play time index.
  • the file playback time index is not created, and the file playback time index is created when the user's relocation requirement is received.
  • the method of opening the file in this method is faster, but it takes a long time to relocate the file for the first time.
  • the technical problem to be solved by the present invention is to provide a method and a playback device for realizing rapid response in a multimedia file control process, which can quickly open and relocate multimedia files, and the response speed of the playback device Degree, improve the user experience.
  • the present invention provides a method for implementing a fast response in a multimedia file control process, the method comprising: the playback device creates a file play time index of the multimedia file in a parallel processing manner while opening the multimedia file.
  • the process of the multimedia device for opening the multimedia file includes a process of initializing and a process of starting the playback of the multimedia file.
  • the step of creating a file play time index of the multimedia file by the playback device in parallel processing while the multimedia file is opened includes: the playback device
  • the file play time index of the multimedia file is created in parallel processing during the initialization process or when the multimedia file is started.
  • the playback device implements the parallel processing in a multi-thread manner, and creates a file play time index of the multimedia file in one of the following manners: In the first mode, the playback device creates a logical control thread and an index in an initialization process.
  • a thread is created, in the initialization process, the initialization operation of opening the multimedia file is performed by the logic control thread, and the file play time index of the multimedia file is created by the thread creation thread; the second mode, the playback device is initialized a logic control thread and an index creation thread are created in the process, after the initialization operation of opening the multimedia file is completed by the logic control thread, when the multimedia file playback operation is started, the file creation time index of the thread creation multimedia file is triggered.
  • the method further includes: after the playback device receives the relocation indication in the process of playing the multimedia file, when the file play time index of the multimedia file has been created, the file is played according to the file of the multimedia file.
  • the time index performs a relocation operation.
  • the method further includes: determining, by the playback device, a plurality of preset time points within a duration of the multimedia file during an initialization process of opening the multimedia file; the playback device receiving the multimedia file during the process of playing the multimedia file After the relocation indication, when the file play time index of the multimedia file is not created, A preset time point closest to the positioning time in the relocation indication is taken as the newly determined positioning time, and a relocation operation is performed.
  • the present invention further provides a playback apparatus that implements a fast response in a multimedia file control process, which includes a logic control module and a media file parsing module; the logic control module is configured to: open a multimedia file At the same time, the file playback time index of the multimedia file is created by controlling the media file parsing module in parallel; the media file parsing module is configured to: create a file play time index of the multimedia file according to the control of the logic control module.
  • the process of the multimedia control module opening the multimedia file includes a process of initializing and a process of starting a multimedia file playing; the logic control module is configured to control the media file parsing module to create a multimedia during the initialization process or when the multimedia file is started to be played.
  • the file playback time index of the file is configured to control a file playback time index of a multimedia file created by the media file parsing module during initialization: creating a logic control thread and an index creation thread during initialization, during the initialization process,
  • the logic control thread performs an initialization operation of opening a multimedia file, and instructs the media file parsing module to use an index creation thread to create a file play time index of the multimedia file;
  • the media file parsing module is configured to follow the logic according to the following manner
  • the control of the control module creates a file play time index of the multimedia file: obtains the usage right of the index creation thread from the logic control module, and uses the index creation thread to create a file play time index of the multimedia file according to the instruction of the logic control module.
  • the logic control module is configured to control a file play time index of the media file parsing module to create a multimedia file during initialization: creating a logic control thread and an index creation thread during initialization, and controlling the thread by the logic
  • the media file parsing module is instructed to use the index creation thread to create a file play time index of the multimedia file; the media file parsing module is set as follows according to the following manner; Control of the logic control module Creating a file play time index of the multimedia file: obtaining the use right of the index creation thread from the logic control module, and using the index creation thread to create a file play time index of the multimedia file according to the instruction of the logic control module.
  • the logic control module is further configured to: after receiving the relocation indication in the process of playing the multimedia file, when the file play time index of the multimedia file has been created, according to the file play time of the multimedia file The bow I performs a repositioning operation.
  • the logic control module is further configured to: determine, during the initialization process of opening the multimedia file, a plurality of preset time points within a duration of the multimedia file; after receiving the relocation indication during the playing of the multimedia file, When the multimedia file play time index is not created, the preset time point closest to the positioning time in the relocation indication is used as the newly determined positioning time, and the relocation operation is performed.
  • a multimedia file play time index is created in a serial manner, that is, a time-consuming process of creating a multimedia file play time index directly affects an operation process of opening a file or relocating a file; compared with the serial mode in the prior art,
  • the invention uses the parallel processing method to complete the creation of the multimedia file play time index without affecting the operation process of opening or relocating the file, which can solve the long response time when the existing method opens the file or relocates the file. Defects, enabling fast opening and relocating of multimedia files, especially terminal devices such as mobile phones and portable media players with low processor capabilities, can quickly respond to users' open files or relocate multimedia files, and improve user experience. Important application value.
  • FIG. 1 is a structural diagram of a playback device that implements a fast response in a multimedia file control process in an embodiment
  • FIG. 2 is a message of a thread that uses a multi-threaded manner to implement a fast response in a multimedia file control process in an embodiment. Processing Flowchart
  • FIG. 3 is a flow chart of message processing of a logical control thread in an embodiment.
  • the playback device that implements fast response in the multimedia file control process includes a logic control module, a media file parsing module, a multimedia decoding module, and a media output module connected to the logic control module.
  • the logic control module is set to: control the file play time index of the multimedia file created by the media file parsing module in parallel while opening the multimedia file.
  • the media file parsing module is configured to: create a file play time index of the multimedia file according to the control of the logic control module.
  • the logic control module is a core control module of the playback device, and the process of opening the multimedia file includes a process of initialization and a process of starting multimedia file playback; the logic control module is configured to: control the media during initialization or when starting multimedia file playback
  • the file parsing module creates a file play time index of the multimedia file.
  • the initialization process of the logic control module is mainly responsible for controlling the initialization function of the media file parsing module for parsing the multimedia file, dynamically loading the decoding library, and the like.
  • the logic control module is further configured to: control the multimedia decoding module to decode the data of the multimedia file, drive the media output module to output the decoded audio and/or video data, and perform start play, pause, resume, relocate, stop playing, etc.
  • User logic control is a function supporting module of the logic control module, and the media file parsing module is further configured to: parse the multimedia file according to the instruction of the logic control module during the initialization process of the logic control module, including the format and size of the multimedia file, The analysis of information such as duration and load type, and parsing the multimedia file into a data segment of one frame in the process of performing multimedia playback by the logic control module.
  • the multimedia decoding module is another functional support module of the logic control module.
  • the multimedia decoding module is responsible for audio and/or video decoding of the data segment of the multimedia file, and decoding the data type available for output by the media output module.
  • the media output module is responsible for playing the decoded multimedia audio and/or video data at a rate specified by the logic control module according to an indication of the logic control module.
  • the logic control module implements parallel processing in a multi-threaded manner.
  • the specific implementation manner of the file play time index of the logic control module during the initialization process includes: The logic control module creates a logic control thread and an index creation thread in the process of initialization, and controls the thread through the logic during the initialization process.
  • the media file parsing module obtains the use right of the index creation thread from the logic control module, and according to the The instruction of the logic control module uses the index creation thread to create a file play time index of the multimedia file.
  • the specific implementation manner of the logic control module for creating a multimedia file play time index when the multimedia file is started is as follows: The logic control module creates a logic control thread and an index creation thread in the process of initialization, and completes initialization of the multimedia file by using the logic control thread. After the operation, when the multimedia file playing operation is started, the media file parsing module is instructed to use the index creation thread to create a multimedia file play time index; the media file parsing module obtains the use right of the index creation thread from the logic control module, and according to the The instruction of the logic control module uses the index creation thread to create a multimedia file play time index.
  • the logic control thread created by the logic control module is the main control thread, and is based on the logic control module, the file parsing module and the multimedia solution library module, and is responsible for process control of multimedia device management, file parsing, data decoding, and multimedia data output, and starts playing. User logic control such as pause, resume, relocation, and stop playback.
  • the index creation thread is a thread parallel to the logic control thread, and is dedicated to creating a file play time index by the file parsing module.
  • the logic control module also creates a media output thread during the initialization process, and the media output thread is also a thread parallel to the logic control thread, and the media output module is responsible for using the media output thread to decode the decoded multimedia audio and/or according to the instruction of the logic control module.
  • the video data is played at the rate specified by the logic control module.
  • the above three parallel threads can share a storage area to implement data sharing.
  • the index creation thread stores the created file play time index in the storage area
  • the logical control thread can check whether the index is created by checking the data of the storage area.
  • the relocation process after the logic control module receives the relocation indication in the process of playing the multimedia file, when the file play time index of the multimedia file has been created, the file play time of the multimedia file is calculated according to the file.
  • the cable I performs a relocation operation. In order to prevent the file playback time index of the multimedia file from being created when the relocation is performed, the relocation fails.
  • the logic control module determines a plurality of preset time points within the duration of the multimedia file during the initialization process of opening the multimedia file; after receiving the relocation indication in the process of playing the multimedia file, in the multimedia file
  • the preset time point closest to the positioning time in the relocation indication is taken as the newly determined positioning time, and the relocation operation is performed.
  • the playback device in the present invention may be a mobile communication terminal, a portable media player or the like.
  • the playing device creates a multimedia file playing time index in a parallel processing manner while opening the multimedia file.
  • the process of the playback device opening the multimedia file includes a process of initializing and a process of starting the playback of the multimedia file; the playback device creates a file play time index of the multimedia file in a parallel processing manner during the initialization process or when the multimedia file is started to be played.
  • the playback device can implement the parallel processing in a variety of ways.
  • the file play time index of the multimedia file is created in the background in the playback device; the parallel processing can also be implemented in a multi-thread manner, and the file play time index of the multimedia file is created in one of the following ways:
  • the playback device creates a logic control thread and an index creation thread in the process of initialization. During the initialization process, the initialization operation of opening the multimedia file is performed by the logic control thread, and the file is created by the thread to create a file of the multimedia file.
  • the playing device creates a logic control thread and an index creation thread in the process of initializing, and after the initialization operation of opening the multimedia file is completed by the logic control thread, when the multimedia file playing operation is started, the triggering device is triggered
  • the index creation thread creates a file playback time index of the multimedia file.
  • the method for creating a file play time index in the above parallel manner in the present invention does not affect the operation process when the multimedia file is opened, and improves the opening speed of the multimedia file.
  • the playback device plays according to the multimedia file.
  • the time index performs a relocation operation.
  • the created multimedia play time index can be directly queried, and the relocation operation is directly performed according to the index, thereby improving the response speed of the device.
  • the relocation fails.
  • the playback device determines a plurality of preset time points within the duration of the multimedia file during the initialization process of opening the multimedia file; after the playback device receives the relocation indication during the playing of the multimedia file, the playback device is in the file
  • the play time index is not created, the preset time point closest to the positioning time in the relocation indication is used as the newly determined positioning time, and the relocation operation is performed.
  • multiple preset time points can be determined in various ways.
  • the total duration can be divided into a plurality of time periods according to the total duration of the multimedia file, and the starting point of each time period is used as a preset time point; the time point with a fixed time interval can also be taken as a pre-start from the beginning of the multimedia file time.
  • Set the time point for example, the preset time points are 30 seconds, 60 seconds, 90 seconds, and 120 seconds, and so on.
  • the method for implementing the fast response in the multimedia file control process comprises the following steps: Step 1: The user selects a multimedia file, and the player uses the multimedia file as an operation target; Step 2, the player creates a logic control thread, and executes Open the initialization process of the multimedia file; Specifically, a file channel needs to be opened in the initialization process to parse the format, type, size, and duration of the file; initialization in the normal operation such as dynamic loading of the decoding library is required in the initialization process.
  • Step 1 The user selects a multimedia file, and the player uses the multimedia file as an operation target; Step 2, the player creates a logic control thread, and executes Open the initialization process of the multimedia file; Specifically, a file channel needs to be opened in the initialization process to parse the format, type, size, and duration of the file; initialization in the normal operation such as dynamic loading of the decoding library is required in the initialization process.
  • Step 1 The user selects a multimedia file, and the player uses the multimedia file as an operation target
  • Step 3 Create an index creation thread in the initialization process, start the index creation thread to create a file play time index of the multimedia file; the index creation thread runs in parallel with the logic control thread; in other embodiments, it may also be parsed according to the initialization process.
  • the file type to determine whether it is necessary to create an index that is, when the multimedia file belongs to a file that needs to create a file playback time index (for example, MP3, AAC, AMR, etc.), the index creation thread is created and started, and index creation is performed.
  • Step 4 according to the audio and/or video type of the parsed file, select to load the corresponding audio. And/or the video decoding library, creating a media output thread; at this point, the initialization process is completed, and the logic control thread message loop is entered; Step 5, the index creation thread creates the multimedia file play time index, and the index data is stored in the thread shared storage area. The logic control thread closes the index creation thread; Step 6. During the playback process, after the player receives the relocation indication, the logic control thread performs a corresponding relocation operation according to the completed multimedia file play time index.
  • the method for implementing fast response in the multimedia file control process comprises the following steps:
  • Step 1 The user selects a multimedia file, and the player uses the multimedia file as an operation target.
  • Step 2 The player creates a logic control thread to perform an initialization process of opening the multimedia file. Specifically, a file channel needs to be opened in the initialization process to parse the file. Information such as the format, type, size, and duration of the file; initialization steps in the normal operation such as dynamic loading of the decoding library are also required in the initialization process, and will not be described in detail here.
  • Step 3 According to the audio and/or video type of the parsed file, select to load the corresponding audio and/or video decoding library, and create a media output thread; at this point, the initialization process is completed, and the logic control thread message loop is entered; Step 4, logic The control thread starts the multimedia file playing, and simultaneously creates and triggers the index creation thread to create a file play time index of the multimedia file; the index creation thread runs in parallel with the logic control thread; in other implementation manners, according to the file type parsed in the initialization process Determine whether you need to create an index, that is, when the multimedia file belongs to a file that needs to create an index (for example, MP3, AAC, AMR, etc.), the index creation thread is created and started, and index creation is performed.
  • the file type parsed in the initialization process Determine whether you need to create an index, that is, when the multimedia file belongs to a file that needs to create an index (for example, MP3, AAC, AMR, etc.), the index creation thread is created and started, and index creation is performed.
  • Step 5 After the index creation thread creates the file play time index, the file play time index data is stored in the thread shared storage area, and the logic control thread closes the index creation thread; Step 6, during playback, the player receives the relocation After the indication, the logical control thread is based on The completed file playback time index performs the corresponding relocation operation.
  • Figure 2 is a flow chart of the message processing of the thread when the multi-thread is used in the multimedia file control process to realize fast response.
  • Procedure 1 Initialization process.
  • the logic control thread enters the message loop after performing operations such as media file initialization, opening a multimedia device, loading an audio and video decoding library, creating a media output thread, creating an index thread creation, and the like.
  • the index creation thread executes the opening of the media file, traversing the file for index creation, setting the index data to the currently playing file channel, closing the file, and exiting the thread operation in parallel with the logical control thread and the media output thread.
  • Process 2 Start the playback process, which is divided into the following steps:
  • the logic control thread requests a buffer for the multimedia data after receiving the start of the broadcast message
  • the logic control thread reads a piece of data from the multimedia file, performs audio or video decoding, and then outputs the decoded data to the buffer, and sends a media output message to the media output thread;
  • the media output thread After receiving the output message, the media output thread outputs the multimedia data to the multimedia device for playing, and then applies for the next data buffer, and sends the media decoding message to the logic control thread;
  • Procedure 3 Pause the playback process.
  • the logic control thread performs a pause process and sends a pause message to the media output thread, and the media output thread pauses the multimedia output device after receiving the pause message.
  • Process 4 Resume the playback process.
  • the logic control thread performs recovery processing and sends a recovery message to the media output thread, and the media output thread restores the multimedia output device after receiving the recovery message.
  • Process 5 Relocation process. In the case that the file play time index needs to be created and the file play time index is created, the logic control thread performs the process of clearing the current buffer and performing file relocation according to the user specified requirements.
  • Process 6 Stop the process.
  • the logic control thread executes the stop processing, and sends a stop message to the media output thread. After receiving the stop message, the media output thread stops the multimedia device, and releases the resource applied during the multimedia playback process;
  • Process 7 Close the process.
  • the logic control thread notifies the media output thread to exit the message loop.
  • the index creation thread is waited for to exit, and then the self message loop is exited.
  • Step 3 is a flow chart of message processing of a logic control thread in an embodiment.
  • the logic control thread waits for a message to judge the type of the received message. If it is a Start message, go to step 2; if it is a Pause message, go to step 3; if it is a Resume message, go to step 4; if it is a Stop message, go to step 5; If it is a relocation (Seek) message, go to step 6; if it is a Decode message, go to step 7; if it is a Close message, go to step 8; if it is not the above message type, then lose Discard the message, waiting to process the new message;
  • Step 2 the logic control thread applies for the media data buffer, reads the data from the multimedia file, and then decodes the read data into a buffer, and notifies the media output thread to perform Output, go to step 1;
  • Step 3 the logic control thread pauses processing, and informs the media output thread to pause playback, go to step 1; Step 4, the
  • Step 5 the logic control thread stops processing, releases the buffer, and notifies the media output thread Stop playback, and relocate the file to the starting position, go to step 1;
  • Step 6 the logic control thread determines whether the current file playback time index creation is completed. If the file playback time index has been created, the buffer is cleared and the file is heavy. Positioning to the user-specified location, and then going to step 2; if the file play time index is not created, the preset time point closest to the positioning time in the relocation indication is taken as the newly determined positioning time, and the relocation operation is performed, and then executed.
  • step 7 the logic control thread reads a piece of media data from the file, decodes the data into a buffer, and notifies the media output thread to output, step 1; 8.
  • the logic control thread notifies the media output thread to end playback and waits for it to exit. If the index creation thread does not end, the index creation flag is exited, waiting for the index creation thread to exit.
  • the present invention uses a parallel processing method to complete the creation of a multimedia file play time index without affecting the operation process of opening a file or relocating a file, and can solve the problem of the existing method when opening a file or relocating a file.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本发明公开了一种在多媒体文件控制过程中实现快速响应的方法,该方法包括:播放装置在打开多媒体文件的同时以并行处理的方式创建多媒体文件的文件播放时间索引。本发明还公开了一种在多媒体文件控制过程中实现快速响应的播放装置,其包括逻辑控制模块和媒体文件解析模块;所述逻辑控制模块设置为:在打开多媒体文件的同时采用并行方式控制媒体文件解析模块创建多媒体文件的文件播放时间索引;所述媒体文件解析模块设置为:根据所述逻辑控制模块的控制创建多媒体文件的文件播放时间索引。本发明可以解决现有方法打开文件或重定位文件时响应时间较长的缺陷,实现快速打开和重定位多媒体文件。

Description

在多媒体文件控制过程中实现快速响应的方法及播放装置
技术领域 本发明涉及多媒体数据处理技术, 更具体地说, 涉及在多媒体文件控制 过程中实现快速响应的方法及播放装置。
背景技术
随着电子技术与软件技术的发展, 多媒体信息技术已经深入到日常生活 的各个方面, 与此同时, 用户对多媒体信息的体验要求也日益提高。 多媒体 播放设备逐渐从大型走向小型, 从家用型走向便携型, MP3、 MP4、 以及手 机等小型多媒体播放设备很大程度上取代了传统的家用大型多媒体设备。 但 是, 便携式播放设备的计算能力和数据处理能力较为有限, 在打开或重定位 (即在文件播放过程中重新确定播放开始时间点)一些较大的多媒体文件(如 MP3、 AAC等格式的文件)时, 通常会出现响应较慢的情况, 从而影响用户 体验。 便携式播放设备为了支持用户对多媒体文件的重定位需求, 需要创建多 媒体文件的文件播放时间索引, 此创建过程需要遍历整个多媒体文件的各帧 数据, 花费较长的时间。 而影响多媒体文件打开或重定位速度的瓶颈即在于 此文件播放时间索引的创建过程。 目前广泛釆用的有两种方案: 一、 打开文 件后创建文件播放时间索引, 文件播放时间索引创建完成后, 继续播放此多 媒体文件。 此方案一中打开文件速度较慢, 但在播放过程中重定位时较快; 二、 打开文件时暂不创建文件播放时间索引, 在收到用户的重定位需求时再 创建文件播放时间索引, 此方法二中打开文件较快, 但第一次重定位文件需 要较长的时间。
发明内容 本发明要解决的技术问题是提供在多媒体文件控制过程中实现快速响应 的方法及播放装置, 实现快速打开和重定位多媒体文件, 播放装置的响应速 度, 提高用户体验。 为了解决上技术问题, 本发明提供了一种在多媒体文件控制过程中实现 快速响应的方法, 该方法包括: 播放装置在打开多媒体文件的同时以并行处理的方式创建多媒体文件的 文件播放时间索引。 所述播放装置打开多媒体文件的过程包括初始化的过程和启动多媒体文 件播放的过程; 播放装置在打开多媒体文件的同时以并行处理的方式创建多 媒体文件的文件播放时间索引的步骤包括: 所述播放装置在初始化的过程中 或者在启动多媒体文件播放时, 以并行处理的方式创建多媒体文件的文件播 放时间索引。 所述播放装置以多线程的方式实现所述并行处理, 并通过以下方式中的 一种创建多媒体文件的文件播放时间索引: 方式一, 所述播放装置在初始化的过程中创建逻辑控制线程和索引创建 线程, 在初始化过程中, 通过所述逻辑控制线程执行打开多媒体文件的初始 化操作, 同时通过所述索弓 I创建线程创建多媒体文件的文件播放时间索引; 方式二, 所述播放装置在初始化的过程中创建逻辑控制线程和索引创建 线程, 通过所述逻辑控制线程完成打开多媒体文件的初始化操作后, 在启动 多媒体文件播放操作时, 触发所述索弓 )创建线程创建多媒体文件的文件播放 时间索引。 所述的方法还包括: 所述播放装置在播放所述多媒体文件的过程中收到重定位指示后, 在所 述多媒体文件的文件播放时间索引已创建完成时, 根据所述多媒体文件的文 件播放时间索引执行重定位操作。 所述的方法还包括: 所述播放装置在打开多媒体文件的初始化过程中, 在所述多媒体文件的 时长范围内确定多个预设时间点; 所述播放装置在播放所述多媒体文件过程 中收到重定位指示后,在所述多媒体文件的文件播放时间索引未创建完成时, 将与所述重定位指示中定位时刻最接近的预设时间点作为新确定的定位时 刻, 并执行重定位操作。 为了解决上技术问题, 本发明还提供了一种在多媒体文件控制过程中实 现快速响应的播放装置, 其包括逻辑控制模块和媒体文件解析模块; 所述逻辑控制模块设置为: 在打开多媒体文件的同时釆用并行方式控制 媒体文件解析模块创建多媒体文件的文件播放时间索引; 所述媒体文件解析模块设置为: 根据所述逻辑控制模块的控制创建多媒 体文件的文件播放时间索引。 所述逻辑控制模块打开多媒体文件的过程包括初始化的过程和启动多媒 体文件播放的过程; 所述逻辑控制模块是设置为在初始化的过程中或者在启动多媒体文件播 放时, 控制媒体文件解析模块创建多媒体文件的文件播放时间索引。 所述逻辑控制模块是设置为按如下方式在初始化的过程中控制媒体文件 解析模块创建多媒体文件的文件播放时间索引: 在初始化的过程中创建逻辑 控制线程和索引创建线程, 在初始化过程中, 通过所述逻辑控制线程执行打 开多媒体文件的初始化操作, 同时指示所述媒体文件解析模块使用索引创建 线程创建多媒体文件的文件播放时间索引; 所述媒体文件解析模块是设置为按如下方式根据所述逻辑控制模块的控 制创建多媒体文件的文件播放时间索引: 从所述逻辑控制模块获得索引创建 线程的使用权, 并根据所述逻辑控制模块的指示使用索引创建线程创建多媒 体文件的文件播放时间索引。 所述逻辑控制模块是设置为按如下方式在初始化的过程中控制媒体文件 解析模块创建多媒体文件的文件播放时间索引: 在初始化的过程中创建逻辑 控制线程和索引创建线程, 通过所述逻辑控制线程完成打开多媒体文件的初 始化操作后, 在启动多媒体文件播放操作时, 指示所述媒体文件解析模块使 用索引创建线程创建多媒体文件的文件播放时间索引; 所述媒体文件解析模块是设置为按如下方式根据所述逻辑控制模块的控 制创建多媒体文件的文件播放时间索引: 从所述逻辑控制模块获得索引创建 线程的使用权, 并根据所述逻辑控制模块的指示使用索引创建线程创建多媒 体文件的文件播放时间索引。 所述逻辑控制模块还设置为: 在播放所述多媒体文件的过程中收到重定 位指示后, 在所述多媒体文件的文件播放时间索引已创建完成时, 根据所述 多媒体文件的文件播放时间索弓 I执行重定位操作。 所述逻辑控制模块还设置为: 在打开多媒体文件的初始化过程中, 在所 述多媒体文件的时长范围内确定多个预设时间点; 在播放所述多媒体文件过 程中收到重定位指示后, 在所述多媒体文件播放时间索引未创建完成时, 将 与所述重定位指示中定位时刻最接近的预设时间点作为新确定的定位时刻, 并执行重定位操作。
现有技术中以串行方式创建多媒体文件播放时间索引, 即创建多媒体文 件播放时间索引的耗时过程直接影响打开文件或重定位文件的操作进程; 与 现有技术中串行方式相比, 本发明釆用并行处理的方式, 在不影响打开文件 或重定位文件的操作进程的前提下, 完成多媒体文件播放时间索引的创建, 可以解决现有方法打开文件或重定位文件时响应时间较长的缺陷, 实现快速 打开和重定位多媒体文件, 尤其处理器能力较低的手机和便携式媒体播放器 等终端设备,可以对用户的打开文件或重定位多媒体文件操作做出快速响应, 对改善用户体验有重要的应用价值。
附图概述 图 1是实施例中在多媒体文件控制过程中实现快速响应的播放装置的组 成结构图; 图 2是实施例中在多媒体文件控制过程中使用多线程的方式实现快速响 应时线程的消息处理流程图; 图 3是实施例中逻辑控制线程的消息处理流程图。 本发明的较佳实施方式 下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。 如图 1所示, 在多媒体文件控制过程中实现快速响应的播放装置包括逻 辑控制模块, 与逻辑控制模块相连的媒体文件解析模块、 多媒体解码模块、 和媒体输出模块。 逻辑控制模块设置为: 在打开多媒体文件的同时釆用并行方式控制媒体 文件解析模块创建多媒体文件的文件播放时间索引。 媒体文件解析模块设置 为: 根据所述逻辑控制模块的控制创建多媒体文件的文件播放时间索引。
逻辑控制模块是播放装置的核心控制模块, 其打开多媒体文件的过程包 括初始化的过程和启动多媒体文件播放的过程; 逻辑控制模块设置为: 在初 始化的过程中或者在启动多媒体文件播放时, 控制媒体文件解析模块创建多 媒体文件的文件播放时间索引。 逻辑控制模块执行初始化的过程主要负责控 制媒体文件解析模块对多媒体文件进行解析、动态加载解码库等初始化功能。
逻辑控制模块还设置为: 控制多媒体解码模块对多媒体文件的数据进行 解码, 驱动媒体输出模块输出解码后的音频和 /或视频数据, 以及执行开始播 放、 暂停、 恢复、 重定位、 及停止播放等用户逻辑控制。 媒体文件解析模块是逻辑控制模块的功能支持模块, 媒体文件解析模块 还设置为: 在逻辑控制模块执行初始化过程中根据逻辑控制模块的指示对多 媒体文件进行解析, 包括对多媒体文件的格式、 大小、 时长、 以及负载类型 等信息的解析, 并且在逻辑控制模块执行多媒体播放过程中将多媒体文件解 析成一帧为单位的数据段。
多媒体解码模块是逻辑控制模块的另一功能支持模块, 多媒体解码模块 负责对多媒体文件的数据段进行音频和 /或视频解码,解码出可供媒体输出模 块输出的数据类型。 媒体输出模块负责根据逻辑控制模块的指示将解码后的多媒体音频和 / 或视频数据按照逻辑控制模块指定的速率播放。 本实施例中, 逻辑控制模块使用多线程的方式实现并行处理。 逻辑控制 模块在初始化的过程中创建多媒体文件的文件播放时间索引的具体实现方式 包括: 逻辑控制模块在初始化的过程中创建逻辑控制线程和索引创建线程, 在初始化过程中,通过所述逻辑控制线程执行打开多媒体文件的初始化操作, 同时指示所述媒体文件解析模块使用索引创建线程创建多媒体文件的文件播 放时间索引; 媒体文件解析模块从所述逻辑控制模块获得索引创建线程的使 用权, 并根据所述逻辑控制模块的指示使用索引创建线程创建多媒体文件的 文件播放时间索引。
逻辑控制模块在启动多媒体文件播放时创建多媒体文件播放时间索引的 具体实现方式包括: 逻辑控制模块在初始化的过程中创建逻辑控制线程和索 引创建线程, 通过所述逻辑控制线程完成打开多媒体文件的初始化操作后, 在启动多媒体文件播放操作时, 指示所述媒体文件解析模块使用索引创建线 程创建多媒体文件播放时间索引; 媒体文件解析模块从所述逻辑控制模块获 得索引创建线程的使用权, 并根据所述逻辑控制模块的指示使用索引创建线 程创建多媒体文件播放时间索引。
逻辑控制模块创建的逻辑控制线程为主控线程, 以逻辑控制模块、 文件 解析模块和多媒体解库模块为基础, 负责多媒体设备管理、 文件解析、 数据 解码、 及多媒体数据输出等流程控制以及开始播放、 暂停、 恢复、 重定位、 以及停止播放等用户逻辑控制。索引创建线程是与逻辑控制线程并行的线程, 由文件解析模块专用于创建文件播放时间索引。 逻辑控制模块在初始化的过 程中还创建媒体输出线程, 媒体输出线程也是与逻辑控制线程并行的线程, 媒体输出模块负责使用此媒体输出线程根据逻辑控制模块的指示将解码后的 多媒体音频和 /或视频数据按照逻辑控制模块指定的速率播放。上述三个并行 线程可以共用一存储区, 实现数据共享, 例如索引创建线程将创建的文件播 放时间索引存储于此存储区中, 逻辑控制线程可以通过检查此存储区的数据 判断索引是否创建完成。 在执行重定位过程中, 逻辑控制模块在播放多媒体文件的过程中收到重 定位指示后, 在所述多媒体文件的文件播放时间索引已创建完成时, 才艮据所 述多媒体文件的文件播放时间索 I执行重定位操作。 为了防止在执行重定位时多媒体文件的文件播放时间索引还未创建完成 而导致重定位失败的问题。逻辑控制模块在打开多媒体文件的初始化过程中, 在所述多媒体文件的时长范围内确定多个预设时间点; 在播放所述多媒体文 件过程中收到重定位指示后, 在在所述多媒体文件的文件播放时间索弓 )未创 建完成时, 将与所述重定位指示中定位时刻最接近的预设时间点作为新确定 的定位时刻, 并执行重定位操作。 本发明中播放装置可以是移动通信终端、 便携式媒体播放器等设备。
对应于上述播放装置,在多媒体文件控制过程中实现快速响应的方法为: 播放装置在打开多媒体文件的同时以并行处理的方式创建多媒体文件播放时 间索引。 播放装置打开多媒体文件的过程包括初始化的过程和启动多媒体文件播 放的过程; 播放装置在初始化的过程中或者在启动多媒体文件播放时, 以并 行处理的方式创建多媒体文件的文件播放时间索引。 实施例中, 播放装置可以使用多种方式实现所述并行处理。 例如使用播 放装置中的后台创建多媒体文件的文件播放时间索引; 还可以使用多线程的 方式实现所述并行处理, 并通过以下方式中的一种创建多媒体文件的文件播 放时间索引: 方式一, 所述播放装置在初始化的过程中创建逻辑控制线程和 索引创建线程, 在初始化过程中, 通过所述逻辑控制线程执行打开多媒体文 件的初始化操作, 同时通过所述索弓 I创建线程创建多媒体文件的文件播放时 间索引; 方式二, 所述播放装置在初始化的过程中创建逻辑控制线程和索引 创建线程, 通过所述逻辑控制线程完成打开多媒体文件的初始化操作后, 在 启动多媒体文件播放操作时, 触发所述索引创建线程创建多媒体文件的文件 播放时间索引。 本发明中上述并行方式创建文件播放时间索引的方式, 不影响打开多媒 体文件时的操作进程, 提高多媒体文件的打开速度。 另外, 对于重定位操作 的情况, 播放装置在播放所述多媒体文件的过程中收到重定位指示后, 在所 述多媒体文件的文件播放时间索引已创建完成时, 根据所述多媒体文件播放 时间索引执行重定位操作。 此方案中可以直接查询已创建的多媒体播放时间 索引, 根据此索引直接执行重定位操作, 提高装置的响应速度。 为了防止在执行重定位时多媒体文件的文件播放时间索引还未创建完成 而导致重定位失败的问题。 播放装置在打开多媒体文件的初始化过程中, 在 所述多媒体文件的时长范围内确定多个预设时间点; 播放装置在播放所述多 媒体文件过程中收到重定位指示后, 在在所述文件播放时间索引未创建完成 时, 将与所述重定位指示中定位时刻最接近的预设时间点作为新确定的定位 时刻, 并执行重定位操作。 其中, 可釆用多种方式确定多个预设时间点时。 可以根据多媒体文件的总时长将此总时长平均分成多个时间段, 将每个时间 段的起点作为预设时间点; 还可以从多媒体文件时间的起点开始将具有固定 时间间隔的时间点作为预设时间点, 例如, 预设时间点为 30秒、 60秒、 90 秒、 及 120秒等等。
具体实施例一中, 在多媒体文件控制过程中实现快速响应的方法包括以 下步骤: 步骤 1 , 用户选择多媒体文件, 播放器将此多媒体文件作为操作目标; 步骤 2, 播放器创建逻辑控制线程, 执行打开多媒体文件的初始化流程; 具体的, 初始化流程中需打开一个文件通道, 解析此文件的格式、类型、 大小、 和时长等信息; 初始化流程中还需执行动态加载解码库等常规操作中 的初始化步骤, 此处不再详细说明。 步骤 3 , 在初始化流程中创建索引创建线程, 启动此索引创建线程创建 此多媒体文件的文件播放时间索引;索引创建线程与逻辑控制线程并行运行; 在其它实施方式中, 还可以根据初始化过程中解析出的文件类型判断是 否需要创建索引 , 即此多媒体文件是属于需要创建文件播放时间索引的文件 时(例如 MP3 , AAC, AMR等类型的文件) , 才创建并启动索引创建线程, 进行索引创建。
步骤 4, 根据解析出的文件的音频和 /或视频类型, 选择加载相应的音频 和 /或视频解码库, 创建媒体输出线程; 至此, 初始化过程完成, 进入逻辑控 制线程消息循环; 步骤 5 , 索引创建线程创建多媒体文件播放时间索引完成后, 将索引数 据存储于线程共享的存储区, 逻辑控制线程关闭此索引创建线程; 步骤 6, 播放过程中, 播放器收到重定位指示后, 逻辑控制线程根据已 完成的多媒体文件播放时间索引进行相应的重定位操作。
具体实施例二中, 在多媒体文件控制过程中实现快速响应的方法包括以 下步骤:
步骤 1 , 用户选择多媒体文件, 播放器将此多媒体文件作为操作目标; 步骤 2, 播放器创建逻辑控制线程, 执行打开多媒体文件的初始化流程; 具体的, 初始化流程中需打开一个文件通道, 解析此文件的格式、类型、 大小、 和时长等信息; 初始化流程中还需执行动态加载解码库等常规操作中 的初始化步骤, 此处不再详细说明。 步骤 3 , 根据解析出的文件的音频和 /或视频类型, 选择加载相应的音频 和 /或视频解码库, 创建媒体输出线程; 至此, 初始化过程完成, 进入逻辑控 制线程消息循环; 步骤 4, 逻辑控制线程启动多媒体文件播放, 同时创建并触发索引创建 线程创建多媒体文件的文件播放时间索引; 索引创建线程与逻辑控制线程并 行运行; 在其它实施方式中, 还可以根据初始化过程中解析出的文件类型判断是 否需要创建索引,即此多媒体文件是属于需要创建索引的文件时 (例如 MP3, AAC, AMR等类型的文件) , 才创建并启动索引创建线程, 进行索引创建。 步骤 5 , 索引创建线程创建文件播放时间索引完成后, 将文件播放时间 索引数据存储于线程共享的存储区, 逻辑控制线程关闭此索引创建线程; 步骤 6, 播放过程中, 播放器收到重定位指示后, 逻辑控制线程根据已 完成的文件播放时间索引进行相应的重定位操作。
图 2是在多媒体文件控制过程中使用多线程的方式实现快速响应时线程 的消息处理流程图。 其中包括以下过程: 过程 1 : 初始化过程。 逻辑控制线程进行媒体文件初始化、 打开多媒体设备、 加载音视频解码 库、 创建媒体输出线程、 创建索引线程创建等操作后进入消息循环。 媒体输 出线程完成初始化过程后, 进入消息循环。 索引创建线程中执行打开媒体文 件、 遍历文件进行索引创建、 将索引数据设置到当前播放的文件通道、 关闭 文件、 退出线程操作, 这些操作与逻辑控制线程和媒体输出线程并行。 过程 2: 开始播放过程, 此过程分为以下步骤:
(1) . 逻辑控制线程收到开始播放消息后为多媒体数据申请緩冲区;
(2) . 逻辑控制线程从多媒体文件中读取一段数据,进行音频或视频解码, 而后将解码所得的数据输出到上述緩冲区, 并向媒体输出线程发送媒体输出 消息;
(3) . 媒体输出线程收到输出消息后将多媒体数据输出到多媒体设备进行 播放, 而后申请下一个数据緩冲区, 并向逻辑控制线程发送媒体解码消息;
(4) . 逻辑控制线程收到解码消息后, 转步骤 (2), 以此循环。 过程 3: 暂停播放过程。 逻辑控制线程执行暂停处理, 并向媒体输出线程发送暂停消息, 媒体输 出线程收到暂停消息之后, 暂停多媒体输出设备。 过程 4: 恢复播放过程。 逻辑控制线程执行恢复处理, 并向媒体输出线程发送恢复消息, 媒体输 出线程收到恢复消息之后, 恢复多媒体输出设备。 过程 5: 重定位过程。 在需要创建文件播放时间索引并且文件播放时间索引创建完毕的情况 下,逻辑控制线程执行清空当前緩冲区,按照用户指定要求进行文件重定位, 而后执行过程 2所述的开始播放流程; 在文件播放时间索引还没有创建结束 的情况下, 根据设置的预设时间点, 将与所述重定位指示中定位时刻最接近 的预设时间点作为新确定的定位时刻, 并执行重定位操作, 而后执行过程 2 所述的开始播放流程。 过程 6: 停止过程。 逻辑控制线程执行停止处理, 并向媒体输出线程发送停止消息, 媒体输 出线程收到停止消息之后, 停止多媒体设备, 释放多媒体播放过程中所申请 的资源;
过程 7: 关闭过程。 逻辑控制线程通知媒体输出线程退出消息循环, 在创建文件播放时间索 引且索引线程没有结束的情况下, 等待索引创建线程退出, 而后退出自身消 息循环。
图 3是实施例中逻辑控制线程的消息处理流程图。 步骤 1 , 逻辑控制线程等待消息, 对收到的消息类型进行判断。 如果是 开始 (Start ) 消息, 则转步骤 2; 如果是暂停(Pause ) 消息, 则转步骤 3; 如果是恢复(Resume ) 消息, 则转步骤 4; 如果是停止(Stop ) 消息, 则转 步骤 5; 如果是重定位(Seek )消息, 则转步骤 6; 如果是解码(Decode )消 息, 则转步骤 7; 如果是关闭 (Close ) 消息, 则转步骤 8; 如果不是上述消 息类型, 则丟弃该消息, 等待处理新的消息; 步骤 2,逻辑控制线程申请媒体数据緩冲区,从多媒体文件中读取数据, 而后将读出的数据解码输出到緩冲区, 并通知媒体输出线程进行输出, 转步 骤 1 ; 步骤 3 , 逻辑控制线程进行暂停处理, 并通知媒体输出线程暂停播放, 转步骤 1 ; 步骤 4, 逻辑控制线程进行恢复处理, 并通知媒体输出线程恢复播放, 转步骤 1 ;
步骤 5, 逻辑控制线程进行停止处理, 释放緩冲区, 通知媒体输出线程 停止播放, 并将文件重定位到开始位置, 转步骤 1 ; 步骤 6, 逻辑控制线程判断当前文件播放时间索引创建是否完成, 如果 文件播放时间索引已经创建完毕, 则清空緩冲区, 将文件重定位到用户指定 位置, 而后转步骤 2; 如果文件播放时间索引没有创建完毕, 将与重定位指 示中定位时刻最接近的预设时间点作为新确定的定位时刻, 并执行重定位操 作, 而后执行过程 2所述的开始播放流程, 转步骤 1 ; 步骤 7 , 逻辑控制线程从文件中读取一段媒体数据, 将数据解码输出到 緩冲区, 并通知媒体输出线程进行输出, 转步骤 1 ; 步骤 8, 逻辑控制线程通知媒体输出线程结束播放, 并等待其退出, 如 果索引创建线程没有结束,则置退出索引创建标志,等待索引创建线程退出。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保护 范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应包含在本发明的保护范围之内。
工业实用性 本发明釆用并行处理的方式, 在不影响打开文件或重定位文件的操作进 程的前提下, 完成多媒体文件播放时间索引的创建, 可以解决现有方法打开 文件或重定位文件时响应时间较长的缺陷, 实现快速打开和重定位多媒体文 件, 尤其处理器能力较低的手机和便携式媒体播放器等终端设备, 可以对用 户的打开文件或重定位多媒体文件操作做出快速响应, 对改善用户体验有重 要的应用价值。

Claims

权 利 要 求 书
1、 在多媒体文件控制过程中实现快速响应的方法, 该方法包括: 播放装置在打开多媒体文件的同时以并行处理的方式创建多媒体文件的 文件播放时间索引。
2、 如权利要求 1所述的方法, 其中, 所述播放装置打开多媒体文件的过程包括初始化的过程和启动多媒体文 件播放的过程; 播放装置在打开多媒体文件的同时以并行处理的方式创建多 媒体文件的文件播放时间索引的步骤包括: 所述播放装置在初始化的过程中 或者在启动多媒体文件播放时, 以并行处理的方式创建多媒体文件的文件播 放时间索引。
3、 如权利要求 2所述的方法, 其中, 所述播放装置以多线程的方式实现所述并行处理, 并通过以下方式中的 一种创建多媒体文件的文件播放时间索引: 方式一, 所述播放装置在初始化的过程中创建逻辑控制线程和索引创建 线程, 在初始化过程中, 通过所述逻辑控制线程执行打开多媒体文件的初始 化操作, 同时通过所述索引创建线程创建多媒体文件的文件播放时间索引; 方式二, 所述播放装置在初始化的过程中创建逻辑控制线程和索引创建 线程, 通过所述逻辑控制线程完成打开多媒体文件的初始化操作后, 在启动 多媒体文件播放操作时, 触发所述索弓 )创建线程创建多媒体文件的文件播放 时间索引。
4、 如权利要求 1、 2或 3所述的方法, 其还包括: 所述播放装置在播放所述多媒体文件的过程中收到重定位指示后, 在所 述多媒体文件的文件播放时间索引已创建完成时, 根据所述多媒体文件的文 件播放时间索引执行重定位操作。
5、 如权利要求 1、 2或 3所述的方法, 其还包括: 所述播放装置在打开多媒体文件的初始化过程中 , 在所述多媒体文件的 时长范围内确定多个预设时间点; 所述播放装置在播放所述多媒体文件过程 中收到重定位指示后,在所述多媒体文件的文件播放时间索引未创建完成时, 将与所述重定位指示中定位时刻最接近的预设时间点作为新确定的定位时 刻, 并执行重定位操作。
6、在多媒体文件控制过程中实现快速响应的播放装置,其包括逻辑控制 模块和媒体文件解析模块; 所述逻辑控制模块设置为: 在打开多媒体文件的同时釆用并行方式控制 媒体文件解析模块创建多媒体文件的文件播放时间索引; 所述媒体文件解析模块设置为: 根据所述逻辑控制模块的控制创建多媒 体文件的文件播放时间索引。
7、 如权利要求 6所述的播放装置, 其中, 所述逻辑控制模块打开多媒体文件的过程包括初始化的过程和启动多媒 体文件播放的过程; 所述逻辑控制模块是设置为在初始化的过程中或者在启动多媒体文件播 放时, 控制媒体文件解析模块创建多媒体文件的文件播放时间索引。
8、 如权利要求 7所述的播放装置, 其中, 所述逻辑控制模块是设置为按如下方式在初始化的过程中控制媒体文件 解析模块创建多媒体文件的文件播放时间索引: 在初始化的过程中创建逻辑 控制线程和索引创建线程, 在初始化过程中, 通过所述逻辑控制线程执行打 开多媒体文件的初始化操作, 同时指示所述媒体文件解析模块使用索引创建 线程创建多媒体文件的文件播放时间索引; 所述媒体文件解析模块是设置为按如下方式根据所述逻辑控制模块的控 制创建多媒体文件的文件播放时间索引: 从所述逻辑控制模块获得索引创建 线程的使用权, 并根据所述逻辑控制模块的指示使用索引创建线程创建多媒 体文件的文件播放时间索引。
9、 如权利要求 7所述的播放装置, 其中, 所述逻辑控制模块是设置为按如下方式在初始化的过程中控制媒体文件 解析模块创建多媒体文件的文件播放时间索引: 在初始化的过程中创建逻辑 控制线程和索引创建线程, 通过所述逻辑控制线程完成打开多媒体文件的初 始化操作后, 在启动多媒体文件播放操作时, 指示所述媒体文件解析模块使 用索引创建线程创建多媒体文件的文件播放时间索引; 所述媒体文件解析模块是设置为按如下方式根据所述逻辑控制模块的控 制创建多媒体文件的文件播放时间索引: 从所述逻辑控制模块获得索引创建 线程的使用权, 并根据所述逻辑控制模块的指示使用索引创建线程创建多媒 体文件的文件播放时间索引。
10、 如权利要求 6、 7、 8或 9所述的播放装置, 其中, 所述逻辑控制模块还设置为: 在播放所述多媒体文件的过程中收到重定 位指示后, 在所述多媒体文件的文件播放时间索引已创建完成时, 根据所述 多媒体文件的文件播放时间索弓 I执行重定位操作。
11、 如权利要求 6、 7、 8或 9所述的播放装置, 其中, 所述逻辑控制模块还设置为: 在打开多媒体文件的初始化过程中, 在所 述多媒体文件的时长范围内确定多个预设时间点; 在播放所述多媒体文件过 程中收到重定位指示后, 在所述多媒体文件播放时间索引未创建完成时, 将 与所述重定位指示中定位时刻最接近的预设时间点作为新确定的定位时刻, 并执行重定位操作。
PCT/CN2010/080249 2010-05-13 2010-12-24 在多媒体文件控制过程中实现快速响应的方法及播放装置 WO2011140811A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP10851315.1A EP2538413B1 (en) 2010-05-13 2010-12-24 Method and playing device for realizing fast response in multimedia file control process
KR1020127024587A KR101408021B1 (ko) 2010-05-13 2010-12-24 멀티미디어 파일 제어 과정에서 빠른 응답을 구현하는 방법 및 재생 장치
JP2013500310A JP5537726B2 (ja) 2010-05-13 2010-12-24 マルチメディアファイルの制御過程に高速な応答を実現する方法及び放送装置
US13/635,034 US20130007005A1 (en) 2010-05-13 2010-12-24 Method and playing device for realizing fast response in multimedia file control process

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010174119.2A CN101819807B (zh) 2010-05-13 2010-05-13 在多媒体文件控制过程中实现快速响应的方法及播放装置
CN201010174119.2 2010-05-13

Publications (1)

Publication Number Publication Date
WO2011140811A1 true WO2011140811A1 (zh) 2011-11-17

Family

ID=42654861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/080249 WO2011140811A1 (zh) 2010-05-13 2010-12-24 在多媒体文件控制过程中实现快速响应的方法及播放装置

Country Status (6)

Country Link
US (1) US20130007005A1 (zh)
EP (1) EP2538413B1 (zh)
JP (1) JP5537726B2 (zh)
KR (1) KR101408021B1 (zh)
CN (1) CN101819807B (zh)
WO (1) WO2011140811A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819807B (zh) * 2010-05-13 2014-06-11 中兴通讯股份有限公司 在多媒体文件控制过程中实现快速响应的方法及播放装置
CN102467940A (zh) * 2010-11-08 2012-05-23 安凯(广州)微电子技术有限公司 一种无索引视频文件快进快退方法、装置以及播放系统
CN102833614B (zh) * 2012-08-15 2015-09-09 青岛海信电器股份有限公司 文件播放装置、电视机和文件播放方法
CN103559898B (zh) * 2013-10-11 2017-01-18 华为技术有限公司 多媒体文件播放方法、播放装置和系统
CN112087666B (zh) * 2015-12-31 2021-06-15 华为技术有限公司 一种调节多媒体播放进度的方法
CN106507182B (zh) * 2016-12-09 2019-07-12 深圳前海茂佳软件科技有限公司 基于网络电视的数据缓冲方法及网络电视
CN107566295A (zh) * 2017-09-01 2018-01-09 努比亚技术有限公司 一种数据流量提示方法、浏览器和计算机可读存储介质
CN109949819B (zh) * 2019-03-14 2022-03-25 建荣半导体(深圳)有限公司 节省音频处理的程序和数据空间的方法、装置及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106637A (zh) * 2006-07-13 2008-01-16 中兴通讯股份有限公司 通过机顶盒实现对外接存储设备的媒体文件播放的方法
CN101118552A (zh) * 2007-07-20 2008-02-06 南京联创科技股份有限公司 基于可变大小共享内存的面向对象的数据共享方法
CN101175192A (zh) * 2006-10-31 2008-05-07 三星电子株式会社 用于再现运动图像文件的方法和设备
CN101819807A (zh) * 2010-05-13 2010-09-01 中兴通讯股份有限公司 在多媒体文件控制过程中实现快速响应的方法及播放装置

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1585321B1 (en) * 1990-09-10 2011-07-13 Starsight Telecast, Inc. User interface for television schedule system
US5828370A (en) * 1996-07-01 1998-10-27 Thompson Consumer Electronics Inc. Video delivery system and method for displaying indexing slider bar on the subscriber video screen
JP2000090644A (ja) * 1998-09-08 2000-03-31 Sharp Corp 画像管理方法及び画像管理装置
EP1079393B1 (en) * 1999-08-27 2006-04-19 Sony Corporation Editing apparatus and editing methods
JP2001320694A (ja) * 2000-03-09 2001-11-16 Ateon Networks ウェブクライアントのブラウザ上に「ライブ・メディア索引メニュー」を表示するためのスケーラブルなメディア索引システム
GB0117926D0 (en) * 2001-07-23 2001-09-12 Nds Ltd Method for random access to encrypted content
JP3785107B2 (ja) * 2002-03-28 2006-06-14 株式会社東芝 動画像および音声データの記録再生装置および再生方法
JP2004201266A (ja) * 2002-05-28 2004-07-15 Matsushita Electric Ind Co Ltd 画像データ再生装置
US6948058B2 (en) * 2002-07-26 2005-09-20 Mitac Technology Corp. Method and device for playing multimedia files in semi-power on state of a computer
US7308456B2 (en) * 2002-12-19 2007-12-11 International Business Machines Corporation Method and apparatus for building one or more indexes on data concurrent with manipulation of data
US20060277581A1 (en) * 2003-03-10 2006-12-07 Avraham Eliyahu Local entity and a method for providing media streams
JP2004310621A (ja) * 2003-04-10 2004-11-04 Hitachi Ltd 記憶装置システムにおけるファイルアクセス方法及びファイルアクセスのためのプログラム
JP4493366B2 (ja) * 2004-02-25 2010-06-30 三洋電機株式会社 ファイルアクセス装置
JP2005260556A (ja) * 2004-03-11 2005-09-22 Matsushita Electric Ind Co Ltd Avファイル分離装置
EP1583005A3 (en) * 2004-04-02 2007-01-10 Samsung Electronics Co., Ltd. File management and apparatus for controlling digital contents in multimedia appliances and information recording medium therefor
JP4739786B2 (ja) * 2005-03-28 2011-08-03 株式会社日立製作所 データの再配置方法
JP4519082B2 (ja) * 2006-02-15 2010-08-04 株式会社ソニー・コンピュータエンタテインメント 情報処理方法、動画サムネイル表示方法、復号化装置、および情報処理装置
TWI317936B (en) * 2006-03-13 2009-12-01 Sunplus Technology Co Ltd Method of multimedia source playback for optical storage medium
JP2008092403A (ja) * 2006-10-04 2008-04-17 Seiko Epson Corp 再生支援装置、再生装置、および、再生方法
US8171518B2 (en) * 2007-04-20 2012-05-01 At&T Intellectual Property I, Lp System and method for presenting progressively downloaded media programs
JP2008276569A (ja) * 2007-04-27 2008-11-13 Toshiba Corp 情報処理装置
CN101370126B (zh) * 2008-09-24 2012-02-08 中兴通讯股份有限公司 一种监控录像的播放控制方法及系统
CN101702767B (zh) * 2009-10-28 2011-08-31 东方网力科技股份有限公司 一种时基媒体播放方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106637A (zh) * 2006-07-13 2008-01-16 中兴通讯股份有限公司 通过机顶盒实现对外接存储设备的媒体文件播放的方法
CN101175192A (zh) * 2006-10-31 2008-05-07 三星电子株式会社 用于再现运动图像文件的方法和设备
CN101118552A (zh) * 2007-07-20 2008-02-06 南京联创科技股份有限公司 基于可变大小共享内存的面向对象的数据共享方法
CN101819807A (zh) * 2010-05-13 2010-09-01 中兴通讯股份有限公司 在多媒体文件控制过程中实现快速响应的方法及播放装置

Also Published As

Publication number Publication date
KR20120123569A (ko) 2012-11-08
CN101819807B (zh) 2014-06-11
EP2538413A4 (en) 2013-12-11
US20130007005A1 (en) 2013-01-03
JP2013523031A (ja) 2013-06-13
JP5537726B2 (ja) 2014-07-02
CN101819807A (zh) 2010-09-01
KR101408021B1 (ko) 2014-06-17
EP2538413B1 (en) 2015-10-28
EP2538413A1 (en) 2012-12-26

Similar Documents

Publication Publication Date Title
WO2011140811A1 (zh) 在多媒体文件控制过程中实现快速响应的方法及播放装置
US8473084B2 (en) Audio crossfading
CN107301035B (zh) 一种基于Android系统的音频同步录放系统及方法
US8930590B2 (en) Audio device and method of operating the same
CN103596059A (zh) 智能电视媒体播放器及其播放进度调整方法、智能电视
US20170163707A1 (en) Method and device for playing streaming media
US20100063825A1 (en) Systems and Methods for Memory Management and Crossfading in an Electronic Device
CN101442586B (zh) 一种多媒体播放方法及播放终端
WO2017092301A1 (zh) 一种视频自动播放、暂停的实现方法和系统
JP2009044416A (ja) コンテンツ再生装置、コンテンツ再生方法、プログラム、およびコンテンツ再生システム
WO2018152679A1 (zh) 音频文件的传输、接收方法及装置、设备及其系统
CN1841267A (zh) 多媒体的计算机系统及相关装置与方法
US20070260780A1 (en) Media subsystem, method and computer program product for adaptive media buffering
JP7312852B2 (ja) ビデオ処理方法及び装置、端末、及びコンピュータプログラム
US20120191991A1 (en) MOBILE SYSTEM ON CHIP (SoC) AND A MOBILE TERMINAL INCLUDING THE MOBILE SoC
CN101404741A (zh) 一种音频播放装置、方法及一种数字电视芯片
JP2011216165A (ja) ビデオ再生装置、コンピュータプログラム及びレジューム再生方法
US20100318671A1 (en) System and method for selection of streaming media
CN103686248A (zh) 背景音乐播放方法及系统
US8682460B2 (en) System and method for performing audio processing operations by storing information within multiple memories
CN109686372B (zh) 资源播放控制方法和装置
US20080147918A1 (en) Method and apparatus for maintaining synchronization of audio in a computing system
WO2023072028A1 (zh) 音乐缓存方法、装置、电子设备及存储介质
JP4924575B2 (ja) カラオケ装置
JP4956650B2 (ja) 再生制御装置及び再生制御方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10851315

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13635034

Country of ref document: US

ENP Entry into the national phase

Ref document number: 20127024587

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2010851315

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013500310

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE