Abstract:
At a mobile terminal coupled to a control apparatus using an interface provided by the mobile terminal: receiving a user instruction to play a main multimedia file; playing a pre-arranged multimedia file associated with the main multimedia file before playing all or a portion of the main multimedia file; while playing the pre-arranged multimedia file, receiving an operation signal from the control apparatus through the interface, wherein the control signal is sent to the mobile terminal in response to a user operation received at the control apparatus, and the control signal corresponds to a control instruction regarding playback of the pre-arranged multimedia file; in response to receiving the control signal: if a user account associated with the mobile terminal meets authorization criteria with respect to the control instruction, executing, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played.

Description:
PRIORITY CLAIMS AND RELATED APPLICATIONS 
       [0001]    This application is a continuation application of U.S. patent application Ser. No. 15/191,332, filed Jun. 23, 2016, entitled “METHOD, APPARATUS, AND SYSTEM FOR PLAYING MULTIMEDIA FILE,” which is a continuation application of PCT Patent Application No. PCT/CN2015/082085, entitled “METHOD, APPARATUS, AND SYSTEM FOR PLAYING MULTIMEDIA FILE,” filed on Jun. 23, 2015, which claims priority to Chinese Patent Application No. 201410291224.2, “METHOD, APPARATUS, AND SYSTEM FOR PLAYING MULTIMEDIA FILE,” filed on Jun. 25, 2014, all of which are hereby incorporated by reference in their entirety. 
     
    
     FIELD OF THE TECHNOLOGY 
       [0002]    The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for playing a multimedia file. 
       BACKGROUND OF THE DISCLOSURE 
       [0003]    In recent years, various video websites gain ever-increasing popularity. People can select videos that they prefer from the video websites, and play the selected videos by using a player in a mobile terminal. 
         [0004]    Advertisements are usually inserted before the videos are played in the video websites; therefore, an existing method for playing a multimedia file includes: acquiring, by a mobile terminal, an advertisement list and a video, successively playing advertisements in the advertisement list according to an advertisement playback policy, and playing the video after the advertisements in the advertisement list are played. 
         [0005]    If it is required to skip the advertisements, a user needs to operate the mobile terminal, which wears down devices of the mobile terminal and shortens the service life of the mobile terminal. 
       SUMMARY 
       [0006]    According to a first aspect, an embodiment of the present invention provides a method for playing a multimedia file, which is used in a control apparatus; the control apparatus being connected to a mobile terminal by using an interface provided by the mobile terminal, and the method including: 
         [0007]    establishing a connection to the mobile terminal using the interface; 
         [0008]    receiving, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered on the control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and 
         [0009]    sending an operation signal corresponding to the operation to the mobile terminal by means of the connection, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0010]    According to a second aspect, an embodiment of the present invention provides a method for playing a multimedia file, which is used in a mobile terminal providing an interface; a control apparatus being connected to the mobile terminal using the interface, and the method including: 
         [0011]    receiving, during playback of a pre-arranged multimedia file, an operation signal sent by the control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives an operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; 
         [0012]    generating a control instruction according to the operation signal; and 
         [0013]    executing, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0014]    According to a third aspect, an embodiment of the present invention provides an apparatus for playing a multimedia file, which is used in a control apparatus; the control apparatus being connected to a mobile terminal by using an interface provided by the mobile terminal, and the apparatus including: 
         [0015]    a connection establishment module, configured to establish a connection to the mobile terminal using the interface; 
         [0016]    a first receiving module, configured to receive, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered on the control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and 
         [0017]    a first sending module, configured to send, to the mobile terminal by means of the connection, an operation signal corresponding to the operation received by the first receiving module, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0018]    According to a fourth aspect, an embodiment of the present invention provides an apparatus for playing a multimedia file, which is used in a mobile terminal providing an interface; a control apparatus being connected to the mobile terminal using the interface, and the apparatus including: 
         [0019]    a first receiving module, configured to receive, during playback of a pre-arranged multimedia file, an operation signal sent by the control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives an operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; 
         [0020]    a first generation module, configured to generate a control instruction according to the operation signal received by the first receiving module; and 
         [0021]    an operation execution module, configured to execute, according to the control instruction generated by the first generation module, a control operation on the pre-arranged multimedia file that is being played. 
         [0022]    According to a fifth aspect, an embodiment of the present invention provides a system for playing a multimedia file, the system including: a control apparatus and a mobile terminal; 
         [0023]    the control apparatus including the apparatus for playing a multimedia file according to the third aspect; and 
         [0024]    the mobile terminal including the apparatus for playing a multimedia file according to the fourth aspect. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0025]    To illustrate the technical solutions according to the embodiments of the present invention more clearly, the accompanying drawings for describing the embodiments are introduced briefly in the following. Apparently, the accompanying drawings in the following description are only some embodiments of the present invention, and persons of ordinary skill in the art can derive other drawings from the accompanying drawings without creative efforts. 
           [0026]      FIG. 1  is a method flowchart of a method for playing a multimedia file according to an embodiment of the present invention; 
           [0027]      FIG. 2A  is a method flowchart of a method for playing a multimedia file according to another embodiment of the present invention; 
           [0028]      FIG. 2B  is a schematic diagram showing a connection between a control apparatus and a mobile terminal according to an embodiment of the present invention; 
           [0029]      FIG. 2C  is a schematic application diagram of a method for playing a multimedia file according to an embodiment of the present invention; 
           [0030]      FIG. 3  is a method flowchart of a method for playing a multimedia file according to another embodiment of the present invention; 
           [0031]      FIG. 4  is a structural block diagram of an apparatus for playing a multimedia file according to an embodiment of the present invention; 
           [0032]      FIG. 5  is a structural block diagram of an apparatus for playing a multimedia file according to another embodiment of the present invention; 
           [0033]      FIG. 6  is a structural block diagram of an apparatus for playing a multimedia file according to an embodiment of the present invention; 
           [0034]      FIG. 7  is a structural block diagram of an apparatus for playing a multimedia file according to another embodiment of the present invention; and 
           [0035]      FIG. 8  is a structural block diagram of a system for playing a multimedia file according to an embodiment of the present invention. 
       
    
    
     DESCRIPTION OF EMBODIMENTS 
       [0036]    To make the objectives, technical solutions, and advantages of the present disclosure clearer, the embodiments of the present invention are described in detail below with reference to the accompanying drawings. 
         [0037]    Referring to  FIG. 1 ,  FIG. 1  is a method flowchart of a method for playing a multimedia file according to an embodiment of the present invention. The method for playing a multimedia file can be applied to a playback system including a control apparatus and a mobile terminal, where the control apparatus is connected to the mobile terminal by using an interface provided by the mobile terminal, and the mobile terminal may be a smart TV, a smartphone, a tablet computer, or the like. The method for playing a multimedia file includes: 
         [0038]    Step  101 . A control apparatus establishes a connection to a mobile terminal by using an interface. 
         [0039]    The control apparatus is an apparatus for controlling a process in which the mobile terminal plays the multimedia file, and the control apparatus may be implemented as a control device. The multimedia file may be one of a video, an audio, and a picture. 
         [0040]    The control apparatus is connected to the mobile terminal using the interface provided by the mobile terminal. The control apparatus may be inserted into the mobile terminal using the interface provided by the mobile terminal, or may also be connected to one end of a transit device or a connection line; and the other end of the transit device or the connection line is inserted into the mobile terminal using the interface provided by the mobile terminal. 
         [0041]    Step  102 . The control apparatus receives, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered on the control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0042]    The main multimedia file is a multimedia file that is selected by a user to be played with the mobile terminal, for example, a video that is selected by the user at a video website when the user browses the video website with the mobile terminal. The pre-arranged multimedia file is a multimedia file played before the main multimedia file, for example, an advertisement played before the video selected by the user. There may be at least one pre-arranged multimedia file, and the mobile terminal plays the main multimedia file after completing playback of the at least one pre-arranged multimedia file. 
         [0043]    It should be noted that, for some popular main multimedia files, after the main multimedia file is played for a certain duration, the main multimedia file is paused and the pre-arranged multimedia file is inserted; and the main multimedia file is continued to be played after playback of the pre-arranged multimedia file is completed. In this case, the pre-arranged multimedia file is a multimedia file played during playback of the main multimedia file. This embodiment does not limit the time at which the pre-arranged multimedia file is played. 
         [0044]    Step  103 . The control apparatus sends an operation signal corresponding to the operation to the mobile terminal by means of the connection. 
         [0045]    Step  104 . The mobile terminal receives, during playback of the pre-arranged multimedia file, the operation signal sent by the control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives the operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before the main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0046]    Step  105 . The mobile terminal generates a control instruction according to the operation signal. 
         [0047]    In this embodiment, different operation signals correspond to different control instructions; and therefore, the mobile terminal may identify an operation signal after receiving the operation signal, and generate a control instruction corresponding to the operation signal. 
         [0048]    Step  106 . The mobile terminal executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0049]    The mobile terminal controls playback of the pre-arranged multimedia file according to the generated control instruction. For example, the mobile terminal may pause the pre-arranged multimedia file, or may also fast-forward the pre-arranged multimedia file. 
         [0050]    The process in which the mobile terminal plays the pre-arranged multimedia file can be controlled by executing an operation on the control apparatus, without the need of operating the mobile terminal, thereby avoiding wearing down devices in the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0051]    It should be noted that, steps  101  to  103  may be integrally implemented as a method for playing a multimedia file at the side of the control apparatus, and steps  104  to  106  may be integrally implemented as a method for playing a multimedia file at the side of the mobile terminal. 
         [0052]    To sum up, in the method for playing a multimedia file according to this embodiment of the present invention, a connection is established to a mobile terminal by using an interface; in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered for a control apparatus is received, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and an operation signal corresponding to the operation is sent to the mobile terminal by means of the connection, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0053]    Referring to  FIG. 2A ,  FIG. 2A  is a method flowchart of a method for playing a multimedia file according to another embodiment of the present invention. The method for playing a multimedia file can be applied to a playback system including a control apparatus and a mobile terminal, where the control apparatus is connected to the mobile terminal by using an interface provided by the mobile terminal, and the mobile terminal may be a smart TV, a smartphone, a tablet computer, or the like. This embodiment is described by using an example in which a user does not log in to an account with the mobile terminal when a pre-arranged multimedia file is played. The method for playing a multimedia file includes: 
         [0054]    Step  201 . A control apparatus establishes a connection to a mobile terminal by using an interface. 
         [0055]    The control apparatus is an apparatus for controlling a process in which the mobile terminal plays the multimedia file, and the control apparatus may be implemented as a control device. The multimedia file may be one of a video, an audio, and a picture. 
         [0056]    The control apparatus is connected to the mobile terminal using the interface provided by the mobile terminal. The control apparatus may be inserted into the mobile terminal using the interface provided by the mobile terminal, or may also be connected to one end of a transit device or a connection line; and the other end of the transit device or the connection line is inserted into the mobile terminal using the interface provided by the mobile terminal. 
         [0057]    In this embodiment, the interface provided by the mobile terminal is an earphone interface, a Universal Serial Bus (USB) interface, a micro USB interface, a mini USB interface, or a lighting interface. Certainly, the interface provided by the mobile terminal may also be another interface that is not mentioned in this embodiment, and this embodiment does not limit the interface. 
         [0058]    When the interface is the earphone interface, refer to  FIG. 2B , which is a schematic diagram showing a connection between a control apparatus and a mobile terminal. In  FIG. 2B , the control apparatus  211  is inserted into the mobile terminal  212  by using an earphone interface, and refer to a schematic structural diagram of the control apparatus  211  at the left side of  FIG. 2B . The control apparatus  211  is provided with an operation button at the top, and the operation button is used to operate the control apparatus  211 . 
         [0059]    Step  202 . The control apparatus receives, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered on the control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0060]    The main multimedia file is a multimedia file that is selected by a user to be played with the mobile terminal, for example, a video that is selected by the user at a video website when the user browses the video website with the mobile terminal. The pre-arranged multimedia file is a multimedia file played before the main multimedia file, for example, an advertisement played before the video selected by the user. There may be at least one pre-arranged multimedia file, and the mobile terminal plays the main multimedia file after completing playback of the at least one pre-arranged multimedia file. 
         [0061]    It should be noted that, for some popular main multimedia files, after the main multimedia file is played for a certain duration, the main multimedia file is paused and the pre-arranged multimedia file is inserted; and the main multimedia file is continued to be played after playback of the pre-arranged multimedia file is completed. In this case, the pre-arranged multimedia file is a multimedia file played during playback of the main multimedia file. This embodiment does not limit the time at which the pre-arranged multimedia file is played. 
         [0062]    In the process in which the mobile terminal plays the pre-arranged multimedia file, if the user is not interested in the pre-arranged multimedia file that is being played, the user may operate the control apparatus, so as to control the playback of the pre-arranged multimedia file by means of the operation. 
         [0063]    The receiving an operation triggered on the control apparatus includes: 
         [0064]    receiving a button pressing operation triggered on the control apparatus, or receiving a touch operation triggered on the control apparatus. 
         [0065]    If a button is disposed on the top of the control apparatus, the user may press the button in the process in which the mobile terminal plays the pre-arranged multimedia file, to trigger the button pressing operation on the control apparatus; if a touch sensor is disposed on the top of the control apparatus, the user may touch the touch sensor in the process in which the mobile terminal plays the pre-arranged multimedia file, to trigger the touch operation on the control apparatus. 
         [0066]    Step  203 . The control apparatus sends an operation signal corresponding to the operation to the mobile terminal by means of the connection. 
         [0067]    In this embodiment, if different operations are triggered on the control apparatus, different operation signals are generated. Therefore, the control apparatus may acquire an operation triggered by the user, to obtain an operation signal corresponding to the operation, and then send the operation signal to the mobile terminal by means of the connection established to the mobile terminal. 
         [0068]    Specifically, the sending an operation signal corresponding to the operation to the mobile terminal by means of the connection includes: 
         [0069]    1) generating a corresponding operation signal according to the number of times a button is pressed during the button pressing operation and a button pressing duration of the button pressing operation, where the operation signal is used to instruct the mobile terminal to generate a first playback instruction for playing a next pre-arranged multimedia file, or the operation signal is used to instruct the mobile terminal to generate a second playback instruction for playing the main multimedia file, or the operation signal is used to instruct the mobile terminal to generate a fast-forwarding instruction for fast-forwarding the pre-arranged multimedia file for a designated duration; and 
         [0070]    2) sending the operation signal to the mobile terminal by means of the connection. 
         [0071]    If a button pressing operation is triggered on the control apparatus, the control apparatus may acquire the number of times the user presses the button and the button pressing duration, and the corresponding operation signal is generated according to the number of times the button is pressed and the button pressing duration. For example, if the user presses the button only once and the button pressing duration is less than a preset threshold, a single-click signal is generated; if the user continuously presses the button twice, a double-click signal is generated; or if the user presses the button once and the button pressing duration is greater than the preset threshold, a long-press signal is generated. If a touch operation is triggered on the control apparatus, the control apparatus may acquire the number of times the user touches the control apparatus, a touch gesture, and a touch duration, and generate the foregoing operation signal according to the number of times the user touches the control apparatus, the touch gesture, and the touch duration. 
         [0072]    In this embodiment, the operation signal is used to instruct the mobile terminal to generate a control instruction, and the control instruction may include a first playback instruction, a second playback instruction, and a fast-forwarding instruction. Therefore, different operation signals may be made to correspond to the three control instructions respectively. For example, the single-click signal is made to correspond to the first playback instruction, the double-click signal is made to correspond to the second playback instruction, and the long-press signal is made to correspond to the fast-forwarding instruction. Certainly, another correspondence may also be set between the operation signal and the control instruction, which is not limited in this embodiment. 
         [0073]    The first playback instruction is used to instruct the mobile terminal to skip the pre-arranged multimedia file that is being played currently and play a next pre-arranged multimedia file. The second playback instruction is used to instruct the mobile terminal to skip all pre-arranged multimedia files and play the main multimedia file. The fast-forwarding instruction is used to instruct the mobile terminal to fast-forward, for a designated duration, the pre-arranged multimedia file that is being played currently. 
         [0074]    Step  204 . The mobile terminal receives, during playback of the pre-arranged multimedia file, the operation signal sent by the control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives the operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before the main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0075]    The mobile terminal receives, by means of the connection established to the control apparatus, the operation signal sent by the control apparatus. 
         [0076]    Step  205 . The mobile terminal generates a control instruction according to the operation signal. 
         [0077]    In this embodiment, different operation signals correspond to different control instructions; and therefore, the mobile terminal may identify an operation signal after receiving the operation signal, and generate a control instruction corresponding to the operation signal. 
         [0078]    Description is made by still using the correspondence that is described in step  203  and between the operation signal and the control instruction as an example. If the mobile terminal identifies that the operation signal is the single-click signal, the mobile terminal generates the first playback instruction; if the mobile terminal identifies that the operation signal is the double-click signal, the mobile terminal generates the second playback instruction; or if the mobile terminal identifies that the operation signal is the long-press signal, the mobile terminal generates the fast-forwarding instruction. 
         [0079]    Step  206 . The mobile terminal acquires an account that triggers an operation on the control apparatus, detects whether the account has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file, and executes step  207  if detecting that the account has the permission. 
         [0080]    Because playing the pre-arranged multimedia file aims at advertising content of the pre-arranged multimedia file, in order to ensure an advertising effect of the pre-arranged multimedia file, a permission may be set for an account of a user who triggers the control instruction, where the permission is used to indicate whether the account can trigger the mobile terminal to execute the control operation on the pre-arranged multimedia file. The permission may be set for the account according to a preset policy. For example, when a certain account is a member of a video website, it may be set that the account has the permission; or when a certain account makes a lot of contributions to a video website, it may be set that the account has the permission. 
         [0081]    After generating the control instruction, the mobile terminal needs to acquire the account of the user. Because the user does not log in to the account with the mobile terminal, the mobile terminal may display in a playback interface a text box for the user to enter the account and a password, and acquire the account by acquiring content entered by the user into the text box. 
         [0082]    After acquiring the account, the mobile terminal may detect whether the account belongs to a preset account list, determine that the account has the permission if the account belongs to the account list, or determine that the account does not have the permission if the account does not belong to the account list. The account list is used to record accounts having the permission. 
         [0083]    If a certain account has the permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file, the mobile terminal may respond to the control instruction, that is, execute step  207 ; if a certain account does not have the permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file, the mobile terminal does not respond to the control instruction, and continues to play the pre-arranged multimedia file, so as to ensure an advertising effect of the pre-arranged multimedia file. 
         [0084]    Optionally, after the detecting whether the account has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file, the method further includes: 
         [0085]    displaying prompt information if it is detected that the account has the permission, where the prompt information is used to prompt for an operation manner for the control apparatus. 
         [0086]    If the mobile terminal detects that the account has the permission, the mobile terminal may further display the prompt information in the playback interface, where the prompt information is used to prompt the user about the operation manner for the control apparatus. After being prompted by the prompt information, the user may clearly know how to trigger the control apparatus so that the mobile terminal generates the control instruction, thereby reducing the difficulty in triggering the control instruction, and increasing the number of times the control instruction is triggered, so as to achieve an effect of prolonging the service life of the mobile terminal. 
         [0087]    For example, the prompt information may be as follows: You are our honored member! To skip this advertisement, please press the button of the control apparatus once; to skip all advertisements, please press the button of the control apparatus twice; and to fast-forward this advertisement, please press the button of the control apparatus for a long time. 
         [0088]    Optionally, the mobile terminal may also set a font, a color, or a background color for the prompt information, so as to enhance a prompt effect. 
         [0089]    Step  207 . The mobile terminal executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0090]    The mobile terminal controls playback of the pre-arranged multimedia file according to the generated control instruction. For example, the mobile terminal may pause the pre-arranged multimedia file, or may also fast-forward the pre-arranged multimedia file. The process in which the mobile terminal plays the pre-arranged multimedia file can be controlled by executing an operation on the control apparatus, without the need of operating the mobile terminal, thereby avoiding wearing down devices in the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0091]    If the mobile terminal fast-forwards the pre-arranged multimedia file, a processing resource of the mobile terminal that is occupied during playback of the pre-arranged multimedia file is reduced, and a processing capability of the mobile terminal is improved; and moreover, a time spent by a user in waiting for playback of the main multimedia file is shortened, and user experience is improved. 
         [0092]    Specifically, the executing, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played includes: 
         [0093]    1) if the control instruction is a first playback instruction for instructing the mobile terminal to play a next pre-arranged multimedia file, reading a to-be-played pre-arranged multimedia file and playing the pre-arranged multimedia file; 
         [0094]    2) if the control instruction is a second playback instruction for instructing the mobile terminal to play a main multimedia file, reading the main multimedia file and playing the main multimedia file; and 
         [0095]    3) if the control instruction is a fast-forwarding instruction for instructing the mobile terminal to fast-forward the pre-arranged multimedia file for a designated duration, acquiring a current playback duration for which the pre-arranged multimedia file is played, locating forward, based on the current playback duration, a playback time point at which the designated duration ends, and starting playing the pre-arranged multimedia file from the located playback time point. 
         [0096]    First, when the control instruction is the first playback instruction, the mobile terminal may read a to-be-played pre-arranged multimedia file that is arranged just behind the pre-arranged multimedia file, and play the pre-arranged multimedia file. The mobile terminal may preset a pre-arranged multimedia file library, and read the pre-arranged multimedia file from the pre-arranged multimedia file library. 
         [0097]    For example, there are four pre-arranged multimedia files corresponding to the main multimedia file in the pre-arranged multimedia file library. If receiving the first playback instruction during playback of the second pre-arranged multimedia file, the mobile terminal reads the third pre-arranged multimedia file from the pre-arranged multimedia file library and plays the third pre-arranged multimedia file. 
         [0098]    Secondly, when the control instruction is the second playback instruction, the mobile terminal may read the main multimedia file, and play the main multimedia file. 
         [0099]    For example, there are four pre-arranged multimedia files corresponding to the main multimedia file in the pre-arranged multimedia file library. If receiving the second playback instruction during playback of the second pre-arranged multimedia file, the mobile terminal reads the main multimedia file and plays the main multimedia file. 
         [0100]    Thirdly, when the control instruction is the fast-forwarding instruction, the mobile terminal may acquire the current playback duration for which the pre-arranged multimedia file that is being played currently is played, locate a playback time point according to the current playback duration and the designated duration, and start playing the pre-arranged multimedia file from the located playback time point. 
         [0101]    For example, the mobile terminal receives the fast-forwarding instruction during playback of the second pre-arranged multimedia file, and if the current playback duration is 2 seconds and the designated duration indicated by the fast-forwarding instruction is 10 seconds, the playback time point located by the mobile terminal is the twelfth second; and then the mobile terminal starts playing the second pre-arranged multimedia file from the twelfth second. 
         [0102]    Further, before the locating forward, based on the current playback duration, a playback time point at which the designated duration ends, the method further includes: 
         [0103]    1) calculating a residual playback duration of the pre-arranged multimedia file; 
         [0104]    2) comparing the residual playback duration with the designated duration; 
         [0105]    3) if it is obtained after the comparison that the residual playback duration is shorter than the designated duration, reading a to-be-played pre-arranged multimedia file, and playing the pre-arranged multimedia file; or if it is obtained after the comparison that the residual playback duration is shorter than the designated duration, reading the main multimedia file, and playing the main multimedia file; or 
         [0106]    4) if it is obtained after the comparison that the residual playback duration is longer than or equal to the designated duration, triggering execution of the step of locating forward, based on the current playback duration, a playback time point at which the designated duration ends. 
         [0107]    Before the playback time point is located according to the current playback duration and the designated duration, it is further required to compare whether the residual playback duration of the pre-arranged multimedia file is longer than or shorter than the designated duration. If it is obtained after the comparison that the residual playback duration is shorter than the designated duration, a fault occurs when the playback time point at which the designated duration ends is located forward based on the current playback duration; and the mobile terminal may directly read a next pre-arranged multimedia file or the main multimedia file, and play the pre-arranged multimedia file or main multimedia file. If it is obtained after the comparison that the residual playback duration is longer than or equal to the designated duration, the playback time point may be located, and the details are described above. 
         [0108]    For example, the mobile terminal receives the fast-forwarding instruction during playback of the second pre-arranged multimedia file; if the current playback duration is 8 seconds and the designated duration indicated by the fast-forwarding instruction is 10 seconds, assuming that the total playback duration of the second pre-arranged multimedia file is 15 seconds, it is obtained after calculation that the residual playback duration is 7 seconds; because the residual playback duration is shorter than the designated duration, the mobile terminal may read the third pre-arranged multimedia file and play the third pre-arranged multimedia file. 
         [0109]    It should be noted that, the method for playing a multimedia file in this embodiment further includes: 
         [0110]    1) receiving, in the process in which the mobile terminal plays the pre-arranged multimedia file, another operation triggered on the control apparatus; and 
         [0111]    2) sending another operation signal corresponding to the other operation to the mobile terminal by means of the connection, so that the mobile terminal generates a display instruction according to the other operation signal, and displays information about a to-be-played pre-arranged multimedia file according to the display instruction. 
         [0112]    The user may also trigger another operation on the control apparatus in the process in which the mobile terminal plays the pre-arranged multimedia file; and the control apparatus receives the other operation, and sends another operation signal corresponding to the other operation to the mobile terminal by means of the established connection. The other operation is an operation different from the control operation, for example, pressing the button three times by the user. 
         [0113]    In this embodiment, the other operation signal corresponds to a display instruction, and the display instruction is used to instruct the mobile terminal to display information about the to-be-played pre-arranged multimedia file. The information about the to-be-played pre-arranged multimedia file includes at least one of the number of the to-be-played pre-arranged multimedia files and a total playback duration of the to-be-played pre-arranged multimedia files. For example, there are four pre-arranged multimedia files corresponding to the main multimedia file in the pre-arranged multimedia file library; if the mobile terminal is currently playing the second pre-arranged multimedia file and the pre-arranged multimedia file is an advertisement, the information may be that: two advertisements remain to be played. 
         [0114]    Correspondingly, the method for playing a multimedia file in this embodiment further includes: 
         [0115]    1) receiving, during playback of the pre-arranged multimedia file, another operation signal sent by the control apparatus, where the other operation signal is a signal that is sent by the control apparatus after the control apparatus receives another operation triggered on the control apparatus and is corresponding to the other operation; 
         [0116]    2) generating a display instruction according to the other operation signal; and 
         [0117]    3) displaying information about a to-be-played pre-arranged multimedia file according to the display instruction. 
         [0118]    The mobile terminal receives another operation signal sent by the control apparatus, generates the display instruction corresponding to the other operation signal, and displays the information about the to-be-played pre-arranged multimedia file. 
         [0119]    Optionally, the mobile terminal may further set a permission to respond to the display instruction. For example, the terminal may detect whether the account has the permission to trigger the mobile terminal to respond to the display instruction, and if the mobile terminal detects that the account has the permission, the mobile terminal displays the information in the playback interface. 
         [0120]    Optionally, the mobile terminal may also set a font, a color, or a background color for the information, so as to enhance a prompt effect. 
         [0121]    For ease of understanding, refer to  FIG. 2C , which is a schematic application diagram of a method for playing a multimedia file. In  FIG. 2C , the aforementioned prompt information and information about the to-be-played pre-arranged multimedia file are displayed in a pre-arranged multimedia file playback interface. The pre-arranged multimedia file playback interface may be the same as or different from a main multimedia file playback interface. 
         [0122]    It should be noted that, after the mobile terminal executes step  207 , the control apparatus may further continue to receive a triggered operation. That is, steps  201  to  207  are executed circularly in a process in which the mobile terminal plays the pre-arranged multimedia file, till the mobile terminal completes playback of all pre-arranged multimedia files and ends the process. Optionally, if the user logs in to an account in step  206 , step  206  may be skipped before a subsequent control of the pre-arranged multimedia file, that is, steps  201  to  205  and step  207  are circularly executed. 
         [0123]    To sum up, in the method for playing a multimedia file according to this embodiment of the present invention, a connection is established to a mobile terminal by using an interface; in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered for a control apparatus is received, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and an operation signal corresponding to the operation is sent to the mobile terminal by means of the connection, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0124]    In addition, it is detected whether an account has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file; if it is detected that the account has the permission, the control operation is executed on the pre-arranged multimedia file. By setting a permission for the account, the mobile terminal still normally plays the pre-arranged multimedia file for the account not having the permission, thereby ensuring an advertising effect of the pre-arranged multimedia file. 
         [0125]    Referring to  FIG. 3 ,  FIG. 3  is a method flowchart of a method for playing a multimedia file according to another embodiment of the present invention. The method for playing a multimedia file can be applied to a playback system including a control apparatus and a mobile terminal, where the control apparatus is connected to the mobile terminal by using an interface provided by the mobile terminal, and the mobile terminal may be a smart TV, a smartphone, a tablet computer, or the like. This embodiment is described by using an example in which a user logs in to an account with the mobile terminal when a pre-arranged multimedia file is played. The method for playing a multimedia file includes: 
         [0126]    Step  301 . A control apparatus establishes a connection to a mobile terminal by using an interface. 
         [0127]    The control apparatus is an apparatus for controlling a process in which the mobile terminal plays the multimedia file, and the control apparatus may be implemented as a control device. The multimedia file may be one of a video, an audio, and a picture. Refer to description in step  201  for a connection manner between the control apparatus and the mobile terminal, and the details are not described herein again. 
         [0128]    The interface is an earphone interface, a USB interface, a micro USB interface, a mini USB interface, or a lighting interface. 
         [0129]    Step  302 . The mobile terminal acquires an account that is logged in to with the mobile terminal; detects whether the account has a permission to trigger the mobile terminal to execute a control operation for a pre-arranged multimedia file; and displays prompt information if detecting that the account has the permission, where the prompt information is used to prompt for an operation manner for the control apparatus. 
         [0130]    The main multimedia file is a multimedia file that is selected by a user to be played with the mobile terminal, for example, a video that is selected by the user at a video website when the user browses the video website with the mobile terminal. The pre-arranged multimedia file is a multimedia file played before the main multimedia file, for example, an advertisement played before the video selected by the user. There may be at least one pre-arranged multimedia file, and the mobile terminal plays the main multimedia file after completing playback of the at least one pre-arranged multimedia file. 
         [0131]    It should be noted that, for some popular main multimedia files, after the main multimedia file is played for a certain duration, the main multimedia file is paused and the pre-arranged multimedia file is inserted; and the main multimedia file is continued to be played after playback of the pre-arranged multimedia file is completed. In this case, the pre-arranged multimedia file is a multimedia file played during playback of the main multimedia file. This embodiment does not limit the time at which the pre-arranged multimedia file is played. 
         [0132]    Because playing the pre-arranged multimedia file aims at advertising content of the pre-arranged multimedia file, in order to ensure an advertising effect of the pre-arranged multimedia file, a permission may be set for an account of a user who triggers the control instruction, where the permission is used to indicate whether the account can trigger the mobile terminal to execute the control operation on the pre-arranged multimedia file. Refer to description in step  206  for the method for setting a permission for the account. 
         [0133]    Because the user has logged in to the account with the mobile terminal, the mobile terminal may directly read the account. After acquiring the account, the mobile terminal may detect whether the account belongs to a preset account list, determine that the account has the permission if the account belongs to the account list, or determine that the account does not have the permission if the account does not belong to the account list. The account list is used to record accounts having the permission. 
         [0134]    If a certain account has the permission to trigger the mobile terminal to execute the control operation on the pre-arranged multimedia file, the mobile terminal may display prompt information in a playback interface, where the prompt information is used to prompt the user about an operation manner for the control apparatus. After being prompted by the prompt information, the user may clearly know how to trigger the control apparatus so that the mobile terminal generates the control instruction, thereby reducing the difficulty in triggering the control instruction, and increasing the number of times the control instruction is triggered, so as to achieve an effect of prolonging the service life of the mobile terminal. 
         [0135]    Optionally, the mobile terminal may also set a font, a color, or a background color for the prompt information, so as to enhance a prompt effect. 
         [0136]    Step  303 . The control apparatus receives, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered on the control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0137]    The receiving an operation triggered on the control apparatus includes: 
         [0138]    receiving a button pressing operation triggered on the control apparatus, or receiving a touch operation triggered on the control apparatus. 
         [0139]    If a button is disposed on the top of the control apparatus, the user may press the button in the process in which the mobile terminal plays the pre-arranged multimedia file, to trigger the button pressing operation on the control apparatus; if a touch sensor is disposed on the top of the control apparatus, the user may touch the touch sensor in the process in which the mobile terminal plays the pre-arranged multimedia file, to trigger the touch operation on the control apparatus. 
         [0140]    Step  304 . The control apparatus sends an operation signal corresponding to the operation to the mobile terminal by means of the connection. 
         [0141]    Specifically, the sending an operation signal corresponding to the operation to the mobile terminal by means of the connection includes: 
         [0142]    1) generating a corresponding operation signal according to the number of times a button is pressed during the button pressing operation and a button pressing duration of the button pressing operation, where the operation signal is used to instruct the mobile terminal to generate a first playback instruction for playing a next pre-arranged multimedia file, or the operation signal is used to instruct the mobile terminal to generate a second playback instruction for playing the main multimedia file, or the operation signal is used to instruct the mobile terminal to generate a fast-forwarding instruction for fast-forwarding the pre-arranged multimedia file for a designated duration; and 
         [0143]    2) sending the operation signal to the mobile terminal by means of the connection. 
         [0144]    Refer to description in step  203  for a process in which the control apparatus sends the operation signal to the mobile terminal, and the details are not described herein again. 
         [0145]    Step  305 . The mobile terminal receives, during playback of the pre-arranged multimedia file, the operation signal sent by the control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives the operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before the main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0146]    The mobile terminal receives, by means of the connection established to the control apparatus, the operation signal sent by the control apparatus. 
         [0147]    Step  306 . The mobile terminal generates a control instruction according to the operation signal. 
         [0148]    In this embodiment, different operation signals correspond to different control instructions; and therefore, the mobile terminal may identify an operation signal after receiving the operation signal, and generate a control instruction corresponding to the operation signal. 
         [0149]    Step  307 . The mobile terminal executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0150]    The mobile terminal controls playback of the pre-arranged multimedia file according to the generated control instruction. For example, the mobile terminal may pause the pre-arranged multimedia file, or may also fast-forward the pre-arranged multimedia file. The process in which the mobile terminal plays the pre-arranged multimedia file can be controlled by executing an operation on the control apparatus, without the need of operating the mobile terminal, thereby avoiding wearing down devices in the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0151]    If the mobile terminal fast-forwards the pre-arranged multimedia file, a processing resource of the mobile terminal that is occupied during playback of the pre-arranged multimedia file is reduced, and a processing capability of the mobile terminal is improved; and moreover, a time spent by a user in waiting for playback of the main multimedia file is shortened, and user experience is improved. 
         [0152]    Specifically, the executing, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played includes: 
         [0153]    1) if the control instruction is a first playback instruction for instructing the mobile terminal to play a next pre-arranged multimedia file, reading a to-be-played pre-arranged multimedia file and playing the pre-arranged multimedia file; 
         [0154]    2) if the control instruction is a second playback instruction for instructing the mobile terminal to play a main multimedia file, reading the main multimedia file and playing the main multimedia file; and 
         [0155]    3) if the control instruction is a fast-forwarding instruction for instructing the mobile terminal to fast-forward the pre-arranged multimedia file for a designated duration, acquiring a current playback duration for which the pre-arranged multimedia file is played, locating forward, based on the current playback duration, a playback time point at which the designated duration ends, and starting playing the pre-arranged multimedia file from the located playback time point. 
         [0156]    First, when the control instruction is the first playback instruction, the mobile terminal may read a to-be-played pre-arranged multimedia file that is arranged just behind the pre-arranged multimedia file, and play the pre-arranged multimedia file. The mobile terminal may preset a pre-arranged multimedia file library, and read the pre-arranged multimedia file from the pre-arranged multimedia file library. 
         [0157]    Secondly, when the control instruction is the second playback instruction, the mobile terminal may read the main multimedia file, and play the main multimedia file. 
         [0158]    Thirdly, when the control instruction is the fast-forwarding instruction, the mobile terminal may acquire the current playback duration for which the pre-arranged multimedia file that is being played currently is played, locate a playback time point according to the current playback duration and the designated duration, and start playing the pre-arranged multimedia file from the located playback time point. 
         [0159]    Optionally, before the locating forward, based on the current playback duration, a playback time point at which the designated duration ends, the method further includes: 
         [0160]    1) calculating a residual playback duration of the pre-arranged multimedia file; 
         [0161]    2) comparing the residual playback duration with the designated duration; 
         [0162]    3) if it is obtained after the comparison that the residual playback duration is shorter than the designated duration, reading a to-be-played pre-arranged multimedia file, and playing the pre-arranged multimedia file; or if it is obtained after the comparison that the residual playback duration is shorter than the designated duration, reading the main multimedia file, and playing the main multimedia file; or 
         [0163]    4) if it is obtained after the comparison that the residual playback duration is longer than or equal to the designated duration, triggering execution of the step of locating forward, based on the current playback duration, a playback time point at which the designated duration ends. 
         [0164]    Before the playback time point is located according to the current playback duration and the designated duration, it is further required to compare whether the residual playback duration of the pre-arranged multimedia file is longer than or shorter than the designated duration. If it is obtained after the comparison that the residual playback duration is shorter than the designated duration, a fault occurs when the playback time point at which the designated duration ends is located forward based on the current playback duration; and the mobile terminal may directly read a next pre-arranged multimedia file or the main multimedia file, and play the pre-arranged multimedia file or main multimedia file. If it is obtained after the comparison that the residual playback duration is longer than or equal to the designated duration, the playback time point may be located, and the details are described above. 
         [0165]    It should be noted that, the method for playing a multimedia file in this embodiment further includes: 
         [0166]    1) receiving, in the process in which the mobile terminal plays the pre-arranged multimedia file, another operation triggered on the control apparatus; and 
         [0167]    2) sending another operation signal corresponding to the other operation to the mobile terminal by means of the connection, so that the mobile terminal generates a display instruction according to the other operation signal, and displays information about a to-be-played pre-arranged multimedia file according to the display instruction. 
         [0168]    The user may also trigger another operation on the control apparatus in the process in which the mobile terminal plays the pre-arranged multimedia file; and the control apparatus receives the other operation, and sends another operation signal corresponding to the other operation to the mobile terminal by means of the established connection. The another operation is an operation different from the control operation, for example, pressing the button three times by the user. 
         [0169]    Correspondingly, the method for playing a multimedia file in this embodiment further includes: 
         [0170]    1) receiving, during playback of the pre-arranged multimedia file, another operation signal sent by the control apparatus, where the other operation signal is a signal that is sent by the control apparatus after the control apparatus receives another operation triggered on the control apparatus and is corresponding to the other operation; 
         [0171]    2) generating a display instruction according to the other operation signal; and 
         [0172]    3) displaying information about a to-be-played pre-arranged multimedia file according to the display instruction. 
         [0173]    The mobile terminal receives another operation signal sent by the control apparatus, generates the display instruction corresponding to the other operation signal, and displays the information about the to-be-played pre-arranged multimedia file. 
         [0174]    Optionally, the mobile terminal may further set a permission to respond to the display instruction. For example, the terminal may detect whether the account has the permission to trigger the mobile terminal to respond to the display instruction, and if the mobile terminal detects that the account has the permission, the mobile terminal displays the information in the playback interface. 
         [0175]    Optionally, the mobile terminal may also set a font, a color, or a background color for the information, so as to enhance a prompt effect. 
         [0176]    It should be noted that, after the mobile terminal executes step  307 , the control apparatus may further continue to receive a triggered operation. That is, steps  301  to  307  are executed circularly in a process in which the mobile terminal plays the pre-arranged multimedia file, till the mobile terminal completes playback of all pre-arranged multimedia files and ends the process. Optionally, if the user logs in to an account in step  302 , step  302  may be skipped before a subsequent control of the pre-arranged multimedia file, that is, step  301  and steps  303  to  307  are circularly executed. 
         [0177]    To sum up, in the method for playing a multimedia file according to this embodiment of the present invention, a connection is established to a mobile terminal by using an interface; in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered for a control apparatus is received, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and an operation signal corresponding to the operation is sent to the mobile terminal by means of the connection, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0178]    In addition, it is detected whether an account has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file; if it is detected that the account has the permission, prompt information is displayed, and a user is prompted to trigger the control instruction, thereby reducing the difficulty in triggering the control instruction, and increasing the number of times the control instruction is triggered, so as to improve an effect of prolonging the service life of the mobile terminal. 
         [0179]    Referring to  FIG. 4 ,  FIG. 4  is a structural block diagram of an apparatus for playing a multimedia file according to an embodiment of the present invention. The apparatus for playing a multimedia file can be applied to a control apparatus, where the control apparatus is connected to a mobile terminal by using an interface provided by the mobile terminal, and the mobile terminal may be a smart TV, a smartphone, a tablet computer, or the like. The apparatus for playing a multimedia file includes a connection establishment module  401 , a first receiving module  402 , and a first sending module  403 . 
         [0180]    The connection establishment module  401  is configured to establish a connection to the mobile terminal using the interface. 
         [0181]    The first receiving module  402  is configured to receive, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered on the control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0182]    The first sending module  403  is configured to send, to the mobile terminal by means of the connection, an operation signal corresponding to the operation received by the first receiving module  402 , so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0183]    To sum up, the apparatus for playing a multimedia file according to this embodiment of the present invention establishes a connection to a mobile terminal by using an interface; receives, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered for a control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and sends an operation signal corresponding to the operation to the mobile terminal by means of the connection, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0184]    Referring to  FIG. 5 ,  FIG. 5  is a structural block diagram of an apparatus for playing a multimedia file according to another embodiment of the present invention. The apparatus for playing a multimedia file can be applied to a control apparatus, where the control apparatus is connected to a mobile terminal by using an interface provided by the mobile terminal, and the mobile terminal may be a smart TV, a smartphone, a tablet computer, or the like. The apparatus for playing a multimedia file includes a connection establishment module  401 , a first receiving module  402 , and a first sending module  403 . 
         [0185]    The connection establishment module  401  is configured to establish a connection to the mobile terminal using the interface. 
         [0186]    The first receiving module  402  is configured to receive, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered on the control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0187]    The first sending module  403  is configured to send, to the mobile terminal by means of the connection, an operation signal corresponding to the operation received by the first receiving module  402 , so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. 
         [0188]    Optionally, the first receiving module  402  includes: 
         [0189]    a first receiving unit  4021 , configured to receive a button pressing operation triggered on the control apparatus; or a second receiving unit  4022 , configured to receive a touch operation triggered on the control apparatus. 
         [0190]    Optionally, the first sending module  403  includes: 
         [0191]    a signal generation unit  4031 , configured to generate a corresponding operation signal according to the number of times a button is pressed during the button pressing operation and a button pressing duration of the button pressing operation, where the operation signal is used to instruct the mobile terminal to generate a first playback instruction for playing a next pre-arranged multimedia file, or the operation signal is used to instruct the mobile terminal to generate a second playback instruction for playing the main multimedia file, or the operation signal is used to instruct the mobile terminal to generate a fast-forwarding instruction for fast-forwarding the pre-arranged multimedia file for a designated duration; and 
         [0192]    a signal sending unit  4032 , configured to send the operation signal generated by the signal generation unit to the mobile terminal by means of the connection. 
         [0193]    Optionally, the apparatus for playing a multimedia file in this embodiment further includes: 
         [0194]    a second receiving module  404 , configured to receive, in the process in which the mobile terminal plays the pre-arranged multimedia file, another operation triggered on the control apparatus; and 
         [0195]    a second sending module  405 , configured to send, to the mobile terminal by means of the connection, another operation signal corresponding to the other operation received by the second receiving module  404 , so that the mobile terminal generates a display instruction according to the other operation signal, and displays information about a to-be-played pre-arranged multimedia file according to the display instruction. 
         [0196]    Optionally, the interface is an earphone interface, a USB interface, a micro USB interface, a mini USB interface, or a lighting interface. 
         [0197]    To sum up, the apparatus for playing a multimedia file according to this embodiment of the present invention establishes a connection to a mobile terminal by using an interface; receives, in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered for a control apparatus, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and sends an operation signal corresponding to the operation to the mobile terminal by means of the connection, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0198]    In addition, it is detected whether an account has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file; if it is detected that the account has the permission, the control operation is executed on the pre-arranged multimedia file. By setting a permission for the account, the mobile terminal still normally plays the pre-arranged multimedia file for the account not having the permission, thereby ensuring an advertising effect of the pre-arranged multimedia file. 
         [0199]    Referring to  FIG. 6 ,  FIG. 6  is a structural block diagram of an apparatus for playing a multimedia file according to an embodiment of the present invention. The apparatus for playing a multimedia file can be applied to a mobile terminal, where the mobile terminal provides an interface, a control apparatus is connected to the mobile terminal using the interface, and the mobile terminal may be a smart TV, a smartphone, a tablet computer, or the like. The apparatus for playing a multimedia file includes a first receiving module  601 , a first generation module  602 , and an operation execution module  603 . 
         [0200]    The first receiving module  601  is configured to receive, during playback of a pre-arranged multimedia file, an operation signal sent by the control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives an operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before the main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0201]    The first generation module  602  is configured to generate a control instruction according to the operation signal received by the first receiving module  601 . 
         [0202]    The operation execution module  603  is configured to execute, according to the control instruction generated by the first generation module  602 , a control operation on the pre-arranged multimedia file that is being played. 
         [0203]    To sum up, the apparatus for playing a multimedia file according to this embodiment of the present invention receives, during playback of a pre-arranged multimedia file, an operation signal sent by a control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives an operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before the main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; generates a control instruction according to the operation signal; and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0204]    Referring to  FIG. 7 ,  FIG. 7  is a structural block diagram of an apparatus for playing a multimedia file according to another embodiment of the present invention. The apparatus for playing a multimedia file can be applied to a mobile terminal, where the mobile terminal provides an interface, a control apparatus is connected to the mobile terminal using the interface, and the mobile terminal may be a smart TV, a smartphone, a tablet computer, or the like. The apparatus for playing a multimedia file includes a first receiving module  601 , a first generation module  602 , and an operation execution module  603 . 
         [0205]    The first receiving module  601  is configured to receive, during playback of a pre-arranged multimedia file, an operation signal sent by the control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives an operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before the main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal. 
         [0206]    The first generation module  602  is configured to generate a control instruction according to the operation signal received by the first receiving module  601 . 
         [0207]    The operation execution module  603  is configured to execute, according to the control instruction generated by the first generation module  602 , a control operation on the pre-arranged multimedia file that is being played. 
         [0208]    Optionally, the operation execution module  603  includes: 
         [0209]    a first execution unit  6031 , configured to: if the control instruction is a first playback instruction for instructing the mobile terminal to play a next pre-arranged multimedia file, read a to-be-played pre-arranged multimedia file and play the pre-arranged multimedia file; 
         [0210]    a second execution unit  6032 , configured to: if the control instruction is a second playback instruction for instructing the mobile terminal to play a main multimedia file, read the main multimedia file and play the main multimedia file; and 
         [0211]    a third execution unit  6033 , configured to: if the control instruction is a fast-forwarding instruction for instructing the mobile terminal to fast-forward the pre-arranged multimedia file for a designated duration, acquire a current playback duration for which the pre-arranged multimedia file is played, locate forward, based on the current playback duration, a playback time point at which the designated duration ends, and start playing the pre-arranged multimedia file from the located playback time point. 
         [0212]    Optionally, the third execution unit  6033  is further configured to: calculate a residual playback duration of the pre-arranged multimedia file before locating forward, based on the current playback duration, a playback time point at which the designated duration ends; compare the residual playback duration with the designated duration; read a to-be-played pre-arranged multimedia file if it is obtained after the comparison that the residual playback duration is shorter than the designated duration, and play the pre-arranged multimedia file; or read the main multimedia file if it is obtained after the comparison that the residual playback duration is shorter than the designated duration, and play the main multimedia file; or trigger, if it is obtained after the comparison that the residual playback duration is longer than or equal to the designated duration, execution of the operation of locating forward, based on the current playback duration, a playback time point at which the designated duration ends. 
         [0213]    Optionally, the apparatus for playing a multimedia file in this embodiment further includes: 
         [0214]    a first acquiring module  604 , configured to acquire, before the operation execution module  603  executes according to the control instruction a control operation on the pre-arranged multimedia file that is being played, an account that triggers an operation on the control apparatus; 
         [0215]    a first detection module  605 , configured to detect whether the account acquired by the first acquiring module  604  has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file; and 
         [0216]    an operation triggering module  606 , configured to trigger, when the first detection module  605  detects that the account has the permission, execution of the operation of executing according to the control instruction a control operation on the pre-arranged multimedia file that is being played. 
         [0217]    Optionally, the apparatus for playing a multimedia file in this embodiment further includes: 
         [0218]    a first display module  607 , configured to display prompt information after the first detection module  605  detects whether the account has the permission to trigger the mobile terminal to execute the control operation on the pre-arranged multimedia file and if the first detection module  605  detects that the account has the permission, where the prompt information is used to prompt for an operation manner for the control apparatus. 
         [0219]    Optionally, the apparatus for playing a multimedia file in this embodiment further includes: 
         [0220]    a second acquiring module  608 , configured to acquire, before the first receiving module  601  receives the operation signal sent by the control apparatus, an account that is logged in to with the mobile terminal; 
         [0221]    a second detection module  609 , configured to detect whether the account acquired by the second acquiring module  608  has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file; and 
         [0222]    a second display module  610 , configured to display prompt information when the second detection module  609  detects that the account has the permission, where the prompt information is used to prompt for an operation manner for the control apparatus. 
         [0223]    Optionally, the apparatus for playing a multimedia file in this embodiment further includes: 
         [0224]    a second receiving module  611 , configured to receive, during playback of the pre-arranged multimedia file, another operation signal sent by the control apparatus, where the other operation signal is a signal that is sent by the control apparatus after the control apparatus receives another operation triggered on the control apparatus and is corresponding to the other operation; 
         [0225]    a second generation module  612 , configured to generate a control instruction according to the operation signal received by the second receiving module  611 ; and 
         [0226]    a third display module  613 , configured to display information about a to-be-played pre-arranged multimedia file according to the display instruction generated by the second generation module  612 . 
         [0227]    To sum up, the apparatus for playing a multimedia file according to this embodiment of the present invention receives, during playback of a pre-arranged multimedia file, an operation signal sent by a control apparatus, the operation signal being a signal that is sent by the control apparatus after the control apparatus receives an operation triggered on the control apparatus and is corresponding to the operation, the pre-arranged multimedia file being a file played before the main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; generates a control instruction according to the operation signal; and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0228]    In addition, it is detected whether an account has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file; if it is detected that the account has the permission, prompt information is displayed, and a user is prompted to trigger the control instruction, thereby reducing the difficulty in triggering the control instruction, and increasing the number of times the control instruction is triggered, so as to improve an effect of prolonging the service life of the mobile terminal. 
         [0229]    Referring to  FIG. 8 ,  FIG. 8  is a structural block diagram of a system for playing a multimedia file according to an embodiment of the present invention. The system for playing a multimedia file may include a control apparatus  801  and a mobile terminal  802 , and the mobile terminal  802  may be a smart TV, a smartphone, a tablet computer, or the like. 
         [0230]    The control apparatus  801  may include the apparatus for playing a multimedia file that is shown in  FIG. 4  or  FIG. 5 , and the mobile terminal  802  may include the apparatus for playing a multimedia file that is shown in  FIG. 6  or  FIG. 7 . 
         [0231]    To sum up, in the system for playing a multimedia file according to this embodiment of the present invention, a connection is established to a mobile terminal by using an interface; in a process in which the mobile terminal plays a pre-arranged multimedia file, an operation triggered for a control apparatus is received, the pre-arranged multimedia file being a file played before a main multimedia file, and the main multimedia file being a multimedia file that is selected to be played with the mobile terminal; and an operation signal corresponding to the operation is sent to the mobile terminal by means of the connection, so that the mobile terminal generates a control instruction according to the operation signal, and executes, according to the control instruction, a control operation on the pre-arranged multimedia file that is being played. In this way, playback of the pre-arranged multimedia file can be controlled by operating the control apparatus, thereby solving problems that devices are worn down and the service life of the mobile terminal is reduced when the playback of the pre-arranged multimedia file is controlled by operating the mobile terminal, and achieving an effect of prolonging the service life of the mobile terminal. 
         [0232]    In addition, it is detected whether an account has a permission to trigger the mobile terminal to execute a control operation on the pre-arranged multimedia file; if it is detected that the account has the permission, the control operation is executed on the pre-arranged multimedia file. By setting a permission for the account, the mobile terminal still normally plays the pre-arranged multimedia file for the account not having the permission, thereby ensuring an advertising effect of the pre-arranged multimedia file. 
         [0233]    It should be noted that, the above functional modules are only described for exemplary purposes when the apparatus for playing a multimedia file provided in the foregoing embodiments plays the multimedia file. In actual applications, the functions may be allocated to different functional modules according to specific needs, which means that the internal structure of the mobile terminal is divided to different functional modules to complete all or some of the above described functions. In addition, the apparatus for playing a multimedia file provided by the foregoing embodiment is based on the same concept as the method for playing a multimedia file in the foregoing embodiment. For the specific implementation process, refer to the method embodiments, and the details are not described herein again. 
         [0234]    The sequence numbers of the foregoing embodiments of the present invention are merely for the convenience of description, and do not imply the preference among the embodiment. 
         [0235]    A person of ordinary skill in the art may understand that all or some of the steps of the foregoing embodiments may be implemented by using hardware, or may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like. 
         [0236]    The foregoing descriptions are merely preferred embodiments of the present invention, but are not intended to limit the present disclosure. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure shall fall within the protection scope of the present disclosure.