Nothing Special   »   [go: up one dir, main page]

CN107659917A - The switching method and terminal of a kind of multimedia - Google Patents

The switching method and terminal of a kind of multimedia Download PDF

Info

Publication number
CN107659917A
CN107659917A CN201710662002.0A CN201710662002A CN107659917A CN 107659917 A CN107659917 A CN 107659917A CN 201710662002 A CN201710662002 A CN 201710662002A CN 107659917 A CN107659917 A CN 107659917A
Authority
CN
China
Prior art keywords
multimedia
information
terminal
detected
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710662002.0A
Other languages
Chinese (zh)
Inventor
尹春阳
丁晓晔
韩舒盈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MIGU Video Technology Co Ltd
Original Assignee
MIGU Video Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MIGU Video Technology Co Ltd filed Critical MIGU Video Technology Co Ltd
Priority to CN201710662002.0A priority Critical patent/CN107659917A/en
Publication of CN107659917A publication Critical patent/CN107659917A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/41Indexing; Data structures therefor; Storage structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of switching method of multimedia, including:After detecting the first operation, multimedia broadcasting index information is generated;Wherein, the broadcasting index information comprises at least the multimedia playback progress information and the multimedia linking sources address information;After determining that short-range communication function is in opening, establish short-range communication with detected terminal and be connected, send the broadcasting index information.The invention also discloses a kind of terminal.

Description

一种多媒体播放的切换方法及终端A switching method and terminal for multimedia playback

技术领域technical field

本发明涉及通信技术,尤其涉及一种多媒体播放的切换方法及终端。The invention relates to communication technology, in particular to a switching method and terminal for multimedia playback.

背景技术Background technique

目前,当用户想将具有近场通信(NFC,Near Field Communication)功能的手机上观看的多媒体文件例如,视频、照片、文章等切换到具有NFC功能的机顶盒或手机上播放时,通过打开该手机以及该机顶盒的NFC功能后,该手机与该机顶盒建立基于NFC技术的连接,连接建立后,该手机将当前播放的多媒体文件对应的多媒体播放数据传输至该机顶盒或手机,该机顶盒或手机在接收到多媒体播放索引数据后,根据该多媒体播放数据继续播放多媒体文件。At present, when the user wants to switch the multimedia files watched on the mobile phone with near field communication (NFC, Near Field Communication) function, such as video, photo, article, etc., to the set-top box or mobile phone with NFC function to play, the and the NFC function of the set-top box, the mobile phone and the set-top box establish a connection based on NFC technology. After the connection is established, the mobile phone transmits the multimedia playback data corresponding to the currently played multimedia file to the set-top box or mobile phone. After receiving the multimedia playing index data, continue playing the multimedia file according to the multimedia playing data.

上述现有技术中,具有NFC功能的手机与机顶盒、手机与手机之间可以通过多媒体播放数据来实现多媒体文件的播放场景的切换,但是,具有NFC功能的手机与机顶盒、手机与手机在建立了NFC连接后,才会生成多媒体播放索引数据,在生成之后,具有NFC功能的手机与机顶盒、手机与手机才会对该多媒体播放数据进行传输,由于在生成多媒体播放数据需要耗费一定的时间,因此,上述方法中,具有NFC功能的手机或机顶盒在建立连接一段时间后,才能进行多媒体播放数据的传输,实现多媒体文件播放场景的切换。由此可知,现有技术所提供的切换方法,在切换多媒体文件播放场景需要耗费较多的时间,用户的体验差。In the above-mentioned prior art, between the mobile phone with the NFC function and the set-top box, the mobile phone and the mobile phone, the switching of the playback scene of the multimedia file can be realized through the multimedia playback data, but the mobile phone with the NFC function and the set-top box, the mobile phone and the mobile phone are established. After the NFC connection, the multimedia playback index data will be generated. After the generation, the mobile phone with the NFC function and the set-top box, the mobile phone and the mobile phone will transmit the multimedia playback data. Since it takes a certain amount of time to generate the multimedia playback data, therefore , in the above method, the mobile phone or set-top box with NFC function can transmit the multimedia playback data only after establishing a connection for a period of time, so as to realize the switching of multimedia file playback scenes. It can be seen that, the switching method provided by the prior art takes a lot of time to switch the playing scene of the multimedia file, and the user experience is poor.

发明内容Contents of the invention

有鉴于此,本发明实施例期望提供一种多媒体播放的切换方法及终端,能够通过检测预设的操作确定对应的多媒体播放切换模式,在近距离通信建立之前生成多媒体播放索引数据,在近距离通信建立之后直接接收或发送多媒体播放索引数据,实现多媒体播放的快速切换。In view of this, the embodiment of the present invention expects to provide a multimedia playback switching method and terminal, which can determine the corresponding multimedia playback switching mode by detecting preset operations, and generate multimedia playback index data before short-distance communication is established. After the communication is established, the multimedia playback index data is directly received or sent to realize fast switching of multimedia playback.

为达到上述目的,本发明实施例提供了一种多媒体播放的切换方法,包括:In order to achieve the above object, an embodiment of the present invention provides a switching method for multimedia playback, including:

检测到第一操作后,生成多媒体的播放索引信息;其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;After the first operation is detected, multimedia playback index information is generated; wherein, the playback index information includes at least playback progress information of the multimedia and source link address information of the multimedia;

确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。After it is determined that the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and the playing index information is sent.

其中,上述检测第一操作,包括:Wherein, the above-mentioned first detection operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作。When it is detected that the received image information matches the preset image information, it is determined that the received image information is the first operation.

其中,上述生成多媒体的播放索引信息,包括:Wherein, the playback index information of the above-mentioned generated multimedia includes:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息;其中,所述多媒体的源链接地址信息至少包括多媒体的标识信息,用于根据多媒体标识信息确定存储在本地多媒体的源链接地址信息;Recording the playing progress information of the multimedia played by the set multimedia playing application when the first operation is detected, and determining the source link address information of the played multimedia; wherein, the source link address information of the multimedia includes at least the multimedia The identification information is used to determine the source link address information stored in the local multimedia according to the multimedia identification information;

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

其中,上述将所述多媒体的播放索引信息向检测到的终端发送之后,所述方法还包括:Wherein, after the above-mentioned multimedia playback index information is sent to the detected terminal, the method further includes:

检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;After detecting that the playback index information of the multimedia is successfully sent to the detected terminal, displaying a prompt message of successful switching to the detected terminal on the display screen;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

本发明实施例还提供了一种多媒体播放的切换方法,包括:The embodiment of the present invention also provides a switching method for multimedia playback, including:

检测到第二操作后,并且近距离通信功能处于开启状态,与所检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;After the second operation is detected, and the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and multimedia playback index information sent by the detected terminal is received;

根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。After acquiring the multimedia according to the playback index information of the multimedia index, continue playing the multimedia.

其中,上述检测到第二操作包括:Among them, the above-mentioned detection of the second operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

其中,上述根据所述多媒体索的播放索引信息获取所述多媒体后,继续播放所述多媒体,包括:Wherein, after the above-mentioned multimedia is obtained according to the playing index information of the multimedia cable, the multimedia is continued to be played, including:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information multimedia.

其中,上述接收所述检测到的终端发送的多媒体的播放索引信息之后,所述方法还包括:Wherein, after receiving the multimedia playback index information sent by the detected terminal, the method further includes:

成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;After successfully receiving the playback index information of the multimedia, a prompt message indicating successful reception is displayed on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

本发明实施例提供了一种终端,包括:An embodiment of the present invention provides a terminal, including:

检测模块,用于检测到第一操作;a detection module, configured to detect the first operation;

生成模块,用于生成多媒体的播放索引信息;A generating module, configured to generate multimedia playback index information;

发送模块,用于确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。The sending module is configured to establish a short-distance communication connection with the detected terminal after determining that the short-distance communication function is turned on, and send the playback index information.

其中,上述检测模块,具体用于:Among them, the above detection module is specifically used for:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作。When it is detected that the received image information matches the preset image information, it is determined that the received image information is the first operation.

其中,上述生成模块,具体用于:Among them, the above generation module is specifically used for:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息;其中,所述多媒体的源链接地址信息至少包括多媒体的标识信息,用于根据多媒体标识信息确定存储在本地多媒体的源链接地址信息Recording the playing progress information of the multimedia played by the set multimedia playing application when the first operation is detected, and determining the source link address information of the played multimedia; wherein, the source link address information of the multimedia includes at least the multimedia Identification information, used to determine the source link address information stored in the local multimedia according to the multimedia identification information

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

其中,上述终端还包括:Among them, the above-mentioned terminals also include:

提示模块,用于检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;A prompting module, configured to display on the display screen a prompt message indicating successful switching to the detected terminal after detecting that the playback index information of the multimedia is successfully sent to the detected terminal;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

本发明实施例还提供了一种终端,包括:The embodiment of the present invention also provides a terminal, including:

接收模块,用于检测到第二操作后,并且近距离通信功能处于开启状态,与检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;The receiving module is configured to establish a short-distance communication connection with the detected terminal after the second operation is detected, and the short-distance communication function is turned on, and receive multimedia playback index information sent by the detected terminal;

播放模块,用于根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。The playing module is configured to continue playing the multimedia after acquiring the multimedia according to the playing index information of the multimedia index.

其中,上述接收模块,还用于:Wherein, the above-mentioned receiving module is also used for:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

其中,上述接收模块,具体用于:Wherein, the above-mentioned receiving module is specifically used for:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Analyzing the playback index information of the multimedia, obtaining the source link address and progress information of the multimedia, calling a preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information .

其中,上述终端还包括:Among them, the above-mentioned terminals also include:

提示模块,用于成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;The prompt module is used to display the prompt message of successful reception on the display screen after successfully receiving the playback index information of the multimedia;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

本发明实施例提供了一种终端,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,An embodiment of the present invention provides a terminal, including: a processor and a memory for storing a computer program that can run on the processor,

其中,所述处理器用于运行所述计算机程序时,执行:Wherein, when the processor is used to run the computer program, it executes:

检测到第一操作后,生成多媒体的播放索引信息;其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;After the first operation is detected, multimedia playback index information is generated; wherein, the playback index information includes at least playback progress information of the multimedia and source link address information of the multimedia;

确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。After it is determined that the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and the playing index information is sent.

其中,上述检测第一操作,包括:Wherein, the above-mentioned first detection operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作。When it is detected that the received image information matches the preset image information, it is determined that the received image information is the first operation.

其中,上述生成多媒体的播放索引信息,包括:Wherein, the playback index information of the above-mentioned generated multimedia includes:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息;其中,所述多媒体的源链接地址信息至少包括多媒体的标识信息,用于根据多媒体标识信息确定存储在本地多媒体的源链接地址信息Recording the playing progress information of the multimedia played by the set multimedia playing application when the first operation is detected, and determining the source link address information of the played multimedia; wherein, the source link address information of the multimedia includes at least the multimedia Identification information, used to determine the source link address information stored in the local multimedia according to the multimedia identification information

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

其中,上述将所述多媒体的播放索引信息向检测到的终端发送之后,所述方法还包括:Wherein, after the above-mentioned multimedia playback index information is sent to the detected terminal, the method further includes:

检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;After detecting that the playback index information of the multimedia is successfully sent to the detected terminal, displaying a prompt message of successful switching to the detected terminal on the display screen;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

本发明实施例还提供了一种终端,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,An embodiment of the present invention also provides a terminal, including: a processor and a memory for storing a computer program that can run on the processor,

其中,所述处理器用于运行所述计算机程序时,执行:Wherein, when the processor is used to run the computer program, it executes:

检测到第二操作后,并且近距离通信功能处于开启状态,与所检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;After the second operation is detected, and the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and multimedia playback index information sent by the detected terminal is received;

根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。After acquiring the multimedia according to the playback index information of the multimedia index, continue playing the multimedia.

其中,上述检测到第二操作包括:Among them, the above-mentioned detection of the second operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

其中,上述根据所述多媒体索的播放索引信息获取所述多媒体后,继续播放所述多媒体,包括:Wherein, after the above-mentioned multimedia is obtained according to the playing index information of the multimedia cable, the multimedia is continued to be played, including:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information multimedia.

其中,上述接收所述检测到的终端发送的多媒体的播放索引信息之后,所述方法还包括:Wherein, after receiving the multimedia playback index information sent by the detected terminal, the method further includes:

成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;After successfully receiving the playback index information of the multimedia, a prompt message indicating successful reception is displayed on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

本发明实施例提供了一种计算机可读存储介质其上存储有计算机程序,其特征在于,该计算机程序被处理器执行:An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is executed by a processor:

检测到第一操作后,生成多媒体的播放索引信息;其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;After the first operation is detected, multimedia playback index information is generated; wherein, the playback index information includes at least playback progress information of the multimedia and source link address information of the multimedia;

确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。After it is determined that the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and the playing index information is sent.

其中,上述检测第一操作,包括:Wherein, the above-mentioned first detection operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作。When it is detected that the received image information matches the preset image information, it is determined that the received image information is the first operation.

其中,上述生成多媒体的播放索引信息,包括:Wherein, the playback index information of the above-mentioned generated multimedia includes:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息;其中,所述多媒体的源链接地址信息至少包括多媒体的标识信息,用于根据多媒体标识信息确定存储在本地多媒体的源链接地址信息Recording the playing progress information of the multimedia played by the set multimedia playing application when the first operation is detected, and determining the source link address information of the played multimedia; wherein, the source link address information of the multimedia includes at least the multimedia Identification information, used to determine the source link address information stored in the local multimedia according to the multimedia identification information

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

其中,上述将所述多媒体的播放索引信息向检测到的终端发送之后,所述方法还包括:Wherein, after the above-mentioned multimedia playback index information is sent to the detected terminal, the method further includes:

检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;After detecting that the playback index information of the multimedia is successfully sent to the detected terminal, displaying a prompt message of successful switching to the detected terminal on the display screen;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

本发明实施例还提供了一种计算机可读存储介质其上存储有计算机程序,其特征在于,该计算机程序被处理器执行:An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is executed by a processor:

检测到第二操作后,并且近距离通信功能处于开启状态,与所检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;After the second operation is detected, and the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and multimedia playback index information sent by the detected terminal is received;

根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。After acquiring the multimedia according to the playback index information of the multimedia index, continue playing the multimedia.

其中,上述检测到第二操作包括:Among them, the above-mentioned detection of the second operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

其中,上述根据所述多媒体索的播放索引信息获取所述多媒体后,继续播放所述多媒体,包括:Wherein, after the above-mentioned multimedia is obtained according to the playing index information of the multimedia cable, the multimedia is continued to be played, including:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information multimedia.

其中,上述接收所述检测到的终端发送的多媒体的播放索引信息之后,所述方法还包括:Wherein, after receiving the multimedia playback index information sent by the detected terminal, the method further includes:

成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;After successfully receiving the playback index information of the multimedia, a prompt message indicating successful reception is displayed on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

本发明实施例提供的多媒体播放的切换方法及终端,检测到第一操作后,生成多媒体的播放索引信息;其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。如此,用户可以通过碰触的方式快速的接收或发送多媒体播放索引数据,实现多媒体播放的快速切换,提升了用户的操作体验。The multimedia playback switching method and terminal provided by the embodiments of the present invention generate multimedia playback index information after detecting the first operation; wherein, the playback index information includes at least the playback progress information of the multimedia and the source of the multimedia link address information; after determining that the short-distance communication function is on, establish a short-distance communication connection with the detected terminal, and send the playing index information. In this way, the user can quickly receive or send the multimedia playback index data by touching, so as to realize fast switching of the multimedia playback and improve the user's operating experience.

附图说明Description of drawings

图1为本发明实施例多媒体播放的切换方法的流程示意图;1 is a schematic flow diagram of a switching method for multimedia playback according to an embodiment of the present invention;

图2为本发明实施例终端的结构示意图;FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention;

图3为本发明第一实施例流程示意图;Fig. 3 is a schematic flow chart of the first embodiment of the present invention;

图4为本发明第二实施例流程示意图;Fig. 4 is a schematic flow chart of the second embodiment of the present invention;

图5为本发明实施例终端为具备NFC功能的手机和具备NFC功能的机顶盒进行通信的示意图。5 is a schematic diagram of communication between a mobile phone with an NFC function and a set-top box with an NFC function as a terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

为了能够更加详细的了解本发明实施例的特点与技术内容,下面对本发明实施例的实现进行详细阐述。In order to understand the characteristics and technical content of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below.

图1为本发明实施例多媒体播放的切换方法的流程示意图,其中,图1(a)为将一个的多媒体播放索引数据切换至另一终端上进行存储和/或播放;图1(b)将另一终端上的多媒体播放索引数据切换至当前终端上进行存储和/或播放;Fig. 1 is a schematic flow chart of a switching method for multimedia playback according to an embodiment of the present invention, wherein Fig. 1(a) is to switch one multimedia playback index data to another terminal for storage and/or playback; Fig. 1(b) will The multimedia playback index data on another terminal is switched to the current terminal for storage and/or playback;

如图1(a)所示,本发明实施多媒体播放的切换方法包括以下步骤:As shown in Figure 1 (a), the switching method that the present invention implements multimedia playback comprises the following steps:

步骤101a:检测到第一操作后,生成多媒体的播放索引信息;Step 101a: After detecting the first operation, generate multimedia playback index information;

其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;Wherein, the playback index information includes at least playback progress information of the multimedia and source link address information of the multimedia;

其中,所述检测第一操作,包括:Wherein, the detection first operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作;After detecting that the received image information matches the preset image information, determining that the received image information is the first operation;

所述生成多媒体的播放索引信息,包括:The playing index information of generating multimedia includes:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息,和/或根据多媒体标识信息确定存储在本地多媒体的源链接地址信息;Record the playback progress information of the multimedia played by the multimedia playback application set when the first operation is detected, and determine the source link address information of the played multimedia, and/or determine the source of the multimedia stored locally according to the multimedia identification information link address information;

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

步骤102a:确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。Step 102a: After determining that the short-range communication function is turned on, establish a short-range communication connection with the detected terminal, and send the playback index information.

所述步骤102a之后,还包括:After the step 102a, it also includes:

检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;After detecting that the playback index information of the multimedia is successfully sent to the detected terminal, displaying a prompt message of successful switching to the detected terminal on the display screen;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

如图1(b)所示,本发明实施多媒体播放的切换方法包括以下步骤:As shown in Figure 1 (b), the switching method that the present invention implements multimedia playback comprises the following steps:

步骤101b:检测到第二操作后,并且近距离通信功能处于开启状态,与所检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;Step 101b: after the second operation is detected, and the short-range communication function is turned on, establish a short-range communication connection with the detected terminal, and receive multimedia playback index information sent by the detected terminal;

其中,所述检测到第二操作包括:Wherein, the detection of the second operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

步骤102b:根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。Step 102b: Continue to play the multimedia after acquiring the multimedia according to the playback index information of the multimedia index.

其中,对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Wherein, analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play according to the progress information the multimedia.

所述步骤102b之后,还包括:After the step 102b, it also includes:

成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;After successfully receiving the playback index information of the multimedia, a prompt message indicating successful reception is displayed on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

图2为本发明实施例的终端结构示意图,其中,图2(a)为将一个的多媒体播放索引数据切换至另一终端上进行存储和/或播放的终端;图2(b)为将另一终端上的多媒体播放索引数据切换至当前终端上进行存储和/或播放的终端;Fig. 2 is a schematic diagram of a terminal structure according to an embodiment of the present invention, wherein Fig. 2(a) is a terminal for switching one multimedia playback index data to another terminal for storage and/or playing; Fig. 2(b) is a terminal for switching another terminal The multimedia playback index data on a terminal is switched to the terminal for storing and/or playing on the current terminal;

如图2(a)所示,本发明实施例的终端包括:As shown in Figure 2(a), the terminal in the embodiment of the present invention includes:

检测模块201a,用于检测到第一操作;a detection module 201a, configured to detect a first operation;

生成模块202a,用于生成多媒体的播放索引信息;还用于存储所述生成多媒体的播放索引信息;The generating module 202a is used to generate multimedia playback index information; it is also used to store the generated multimedia playback index information;

发送模块203a,用于确定近近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。The sending module 203a is configured to establish a short-range communication connection with the detected terminal after determining that the short-range communication function is turned on, and send the playing index information.

其中,上述检测模块201a,具体用于:Wherein, the above detection module 201a is specifically used for:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作。When it is detected that the received image information matches the preset image information, it is determined that the received image information is the first operation.

其中,上述生成模块202a,具体用于:Wherein, the above-mentioned generating module 202a is specifically used for:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息,和/或根据多媒体标识信息确定存储在本地多媒体的源链接地址信息;Record the playback progress information of the multimedia played by the multimedia playback application set when the first operation is detected, and determine the source link address information of the played multimedia, and/or determine the source of the multimedia stored locally according to the multimedia identification information link address information;

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

其中,上述终端还包括:Among them, the above-mentioned terminals also include:

提示模块204a,用于检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;Prompt module 204a, for detecting that after the playback index information of the multimedia is successfully sent to the detected terminal, a prompt message is displayed on the display screen to switch successfully to the detected terminal;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

本发明实施例提供了一种终端,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,An embodiment of the present invention provides a terminal, including: a processor and a memory for storing a computer program that can run on the processor,

其中,所述处理器用于运行所述计算机程序时,执行:Wherein, when the processor is used to run the computer program, it executes:

检测到第一操作后,生成多媒体的播放索引信息;其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;After the first operation is detected, multimedia playback index information is generated; wherein, the playback index information includes at least playback progress information of the multimedia and source link address information of the multimedia;

确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。After it is determined that the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and the playing index information is sent.

其中,上述检测第一操作,包括:Wherein, the above-mentioned first detection operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

其中,上述生成多媒体的播放索引信息,包括:Wherein, the playback index information of the above-mentioned generated multimedia includes:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体;Analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information multimedia;

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

其中,上述将所述多媒体的播放索引信息向检测到的终端发送之后,所述方法还包括:Wherein, after the above-mentioned multimedia playback index information is sent to the detected terminal, the method further includes:

检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;After detecting that the playback index information of the multimedia is successfully sent to the detected terminal, displaying a prompt message of successful switching to the detected terminal on the display screen;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

本发明实施例提供了一种计算机可读存储介质其上存储有计算机程序,其特征在于,该计算机程序被处理器执行:An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is executed by a processor:

检测到第一操作后,生成多媒体的播放索引信息;其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;After the first operation is detected, multimedia playback index information is generated; wherein, the playback index information includes at least playback progress information of the multimedia and source link address information of the multimedia;

确定近距离通信功能处于开启状态后,与所检测到的终端建立近距离通信连接,发送所述播放索引信息。After it is determined that the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and the playing index information is sent.

其中,上述检测第一操作,包括:Wherein, the above-mentioned first detection operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作。When it is detected that the received image information matches the preset image information, it is determined that the received image information is the first operation.

其中,上述生成多媒体的播放索引信息,包括:Wherein, the playback index information of the above-mentioned generated multimedia includes:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息,和/或根据多媒体标识信息确定存储在本地多媒体的源链接地址信息;Record the playback progress information of the multimedia played by the multimedia playback application set when the first operation is detected, and determine the source link address information of the played multimedia, and/or determine the source of the multimedia stored locally according to the multimedia identification information link address information;

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

其中,上述将所述多媒体的播放索引信息向检测到的终端发送之后,所述方法还包括:Wherein, after the above-mentioned multimedia playback index information is sent to the detected terminal, the method further includes:

检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;After detecting that the playback index information of the multimedia is successfully sent to the detected terminal, displaying a prompt message of successful switching to the detected terminal on the display screen;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

如图2(b)所示,本发明实施例的终端包括:As shown in Figure 2(b), the terminal in the embodiment of the present invention includes:

接收模块201b,用于检测到第二操作后,并且近距离通信功能处于开启状态,与检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;The receiving module 201b is configured to establish a short-distance communication connection with the detected terminal after the second operation is detected, and the short-distance communication function is turned on, and receive multimedia playback index information sent by the detected terminal;

播放模块202b,用于根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。The playing module 202b is configured to continue playing the multimedia after acquiring the multimedia according to the playing index information of the multimedia index.

其中,上述接收模块201b,具体用于:Wherein, the above-mentioned receiving module 201b is specifically used for:

当预设的第二虚拟键被单次触发后,确定所述单次触发第二虚拟按键的操作为第二操作;或,When the preset second virtual key is triggered once, determine that the single trigger operation of the second virtual key is the second operation; or,

当预设的第二虚拟键被持续触发的时间超过预设时间后,确定所述持续触发第二虚拟键超过预设时间的操作为第二操作。When the preset second virtual key is continuously triggered for more than the preset time, it is determined that the operation of continuously triggering the second virtual key for more than the preset time is the second operation.

其中,上述接收模块201b,具体用于:Wherein, the above-mentioned receiving module 201b is specifically used for:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Analyzing the playback index information of the multimedia, obtaining the source link address and progress information of the multimedia, calling a preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information .

其中,上述终端还包括:Among them, the above-mentioned terminals also include:

提示模块203b,用于成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;Prompt module 203b, after successfully receiving the playback index information of the multimedia, display a prompt message of successful reception on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

本发明实施例还提供了一种终端,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,An embodiment of the present invention also provides a terminal, including: a processor and a memory for storing a computer program that can run on the processor,

其中,所述处理器用于运行所述计算机程序时,执行:Wherein, when the processor is used to run the computer program, it executes:

检测到第二操作后,并且近距离通信功能处于开启状态,与所检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;After the second operation is detected, and the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and multimedia playback index information sent by the detected terminal is received;

根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。After acquiring the multimedia according to the playback index information of the multimedia index, continue playing the multimedia.

其中,上述检测到第二操作包括:Among them, the above-mentioned detection of the second operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

其中,上述根据所述多媒体索的播放索引信息获取所述多媒体后,继续播放所述多媒体,包括:Wherein, after the above-mentioned multimedia is obtained according to the playing index information of the multimedia cable, the multimedia is continued to be played, including:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information multimedia.

其中,上述接收所述检测到的终端发送的多媒体的播放索引信息之后,所述方法还包括:Wherein, after receiving the multimedia playback index information sent by the detected terminal, the method further includes:

成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;After successfully receiving the playback index information of the multimedia, a prompt message indicating successful reception is displayed on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

本发明实施例还提供了一种计算机可读存储介质其上存储有计算机程序,其特征在于,该计算机程序被处理器执行:An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is executed by a processor:

检测到第二操作后,并且近距离通信功能处于开启状态,与所检测到的终端建立近距离通信连接,接收所述检测到的终端发送的多媒体的播放索引信息;After the second operation is detected, and the short-range communication function is turned on, a short-range communication connection is established with the detected terminal, and multimedia playback index information sent by the detected terminal is received;

根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。After acquiring the multimedia according to the playback index information of the multimedia index, continue playing the multimedia.

其中,上述检测到第二操作包括:Among them, the above-mentioned detection of the second operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

其中,上述根据所述多媒体索的播放索引信息获取所述多媒体后,继续播放所述多媒体,包括:Wherein, after the above-mentioned multimedia is obtained according to the playing index information of the multimedia cable, the multimedia is continued to be played, including:

对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play the multimedia according to the progress information multimedia.

其中,上述接收所述检测到的终端发送的多媒体的播放索引信息之后,所述方法还包括:Wherein, after receiving the multimedia playback index information sent by the detected terminal, the method further includes:

成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;After successfully receiving the playback index information of the multimedia, a prompt message indicating successful reception is displayed on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

上述生成模块202a和接收模块201b可以由任何类型的易失性或非易失性存储设备、或者它们的组合来实现。其中,非易失性存储器可以是只读存储器(ROM,Read OnlyMemory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,Ferromagnetic Random Access Memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random AccessMemory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器305旨在包括但不限于这些和任意其它适合类型的存储器。The above generating module 202a and receiving module 201b may be implemented by any type of volatile or nonvolatile storage device, or a combination thereof. Wherein, non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, Ferromagnetic Random Access Memory), Flash Memory (Flash Memory), Magnetic Surface Memory, Optical disc, or compact disc read-only memory (CD-ROM, Compact Disc Read-Only Memory); magnetic surface storage can be magnetic disk storage or magnetic tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory) . The memory 305 described in the embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

在示例性实施例中,所述移动终端可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,ProgrammableLogic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the mobile terminal may be implemented by one or more Application Specific Integrated Circuits (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, ProgrammableLogic Device), Complex Programmable Logic Device (CPLD , Complex Programmable Logic Device), field-programmable gate array (FPGA, Field-Programmable Gate Array), general-purpose processor, controller, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor), or other electronic The component is implemented for performing the aforementioned method.

在实际应用中,上述近距离通信技术可以包括:蓝牙技术(blue tooth)、近场通信技术(NFC Near Field Communication)技术、红外传输技术(IrDA Infrared DataAssociation)、紫蜂技术(Zig Bee)、超宽带技术(UWB Ultra Wideband)、可见光无线通信技术(LiFi Light Fidelity)、Z-Wave协议技术、无线保真技术(Wi-Fi Wireless-Fidelity)、无线mesh网络技术(Wireless Mesh Network)、Hilink协议技术等。In practical applications, the above short-range communication technologies may include: bluetooth technology (blue tooth), near field communication technology (NFC Near Field Communication) technology, infrared transmission technology (IrDA Infrared Data Association), Zig Bee technology (Zig Bee), super Broadband technology (UWB Ultra Wideband), visible light wireless communication technology (LiFi Light Fidelity), Z-Wave protocol technology, wireless fidelity technology (Wi-Fi Wireless-Fidelity), wireless mesh network technology (Wireless Mesh Network), Hilink protocol technology Wait.

下面以近距离通信技术为NFC技术对本发明实施例进行说明:The embodiment of the present invention will be described below with short-distance communication technology as NFC technology:

检测到第一操作后,生成多媒体的播放索引信息;After detecting the first operation, generate multimedia playback index information;

其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;Wherein, the playback index information includes at least playback progress information of the multimedia and source link address information of the multimedia;

其中,所述检测第一操作,包括:Wherein, the detection first operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第一操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the first operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第一操作;或,After detecting that the received voice control information matches the preset voice control information, determine that the received voice control information is the first operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第一操作;After detecting that the received image information matches the preset image information, determining that the received image information is the first operation;

所述生成多媒体的播放索引信息,包括:The playing index information of generating multimedia includes:

记录检测到第一操作时所述设定的多媒体播放应用所播放的多媒体的播放进度信息,并确定所播放的多媒体的源链接地址信息,和/或根据多媒体标识信息确定存储在本地多媒体的源链接地址信息;Record the playback progress information of the multimedia played by the multimedia playback application set when the first operation is detected, and determine the source link address information of the played multimedia, and/or determine the source of the multimedia stored locally according to the multimedia identification information link address information;

将所述进度信息和所述多媒体的源链接地址信息生成所述多媒体的播放索引信息。The progress information and the source link address information of the multimedia are used to generate the playing index information of the multimedia.

确定NFC功能处于开启状态后,与所检测到的终端建立NFC连接,发送所述播放索引信息。After determining that the NFC function is on, an NFC connection is established with the detected terminal, and the playback index information is sent.

之后,还包括:After that, also include:

检测到所述多媒体的播放索引信息向所述检测到的终端发送成功后,在显示屏显示向检测到的终端切换成功的提示信息;After detecting that the playback index information of the multimedia is successfully sent to the detected terminal, displaying a prompt message of successful switching to the detected terminal on the display screen;

检测到所述多媒体的播放索引信息向所述检测到的终端发送失败后,在显示屏显示向检测到的终端切换失败的提示信息。After detecting that the multimedia playback index information fails to be sent to the detected terminal, a prompt message indicating that switching to the detected terminal fails is displayed on the display screen.

检测到第二操作后,并且NFC功能处于开启状态,与所检测到的终端建立NFC连接,接收所述检测到的终端发送的多媒体的播放索引信息;After the second operation is detected, and the NFC function is in an open state, an NFC connection is established with the detected terminal, and the multimedia playback index information sent by the detected terminal is received;

其中,所述检测到第二操作包括:Wherein, the detection of the second operation includes:

当检测预设的虚拟键被单次或持续触发后,确定所述单次或持续触发虚拟按键的操作为第二操作;或,After detecting that the preset virtual key is triggered once or continuously, determine that the operation of triggering the virtual key once or continuously is the second operation; or,

当检测接收的语音控制信息与预设语音控制信息匹配后,确定所述接收的语音控制信息为第二操作;或,After detecting that the received voice control information matches the preset voice control information, determining that the received voice control information is the second operation; or,

当检测接收的图像信息与预设图像信息匹配后,确定所述接收的图像信息为第二操作。After detecting that the received image information matches the preset image information, determining that the received image information is the second operation.

根据所述多媒体索的播放引信息获取所述多媒体后,继续播放所述多媒体。After acquiring the multimedia according to the playback index information of the multimedia index, continue playing the multimedia.

其中,对所述多媒体的播放索引信息进行解析,获取多媒体的源链接地址信息和进度信息,调用预设的多媒体播放应用根据所述多媒体的源链接地址获取所述多媒体后,根据进度信息继续播放所述多媒体。Wherein, analyzing the playback index information of the multimedia, obtaining the source link address information and progress information of the multimedia, calling the preset multimedia playback application to obtain the multimedia according to the source link address of the multimedia, and continuing to play according to the progress information the multimedia.

上述根据所述多媒体索的播放引信息获取所述多媒体后,还包括:After the above-mentioned acquisition of the multimedia according to the playback information of the multimedia index, it also includes:

成功接收到所述多媒体的播放索引信息后,在显示屏显示接收成功的提示信息;After successfully receiving the playback index information of the multimedia, a prompt message indicating successful reception is displayed on the display screen;

所述多媒体的播放索引信息接收失败后,在显示屏显示接收失败的提示信息。After the multimedia play index information fails to be received, a prompt message of failure to receive is displayed on the display screen.

实施例一Embodiment one

本发明第一实施例为终端以第一切换模式通过NFC功能发送多媒体播放索引信息,切换至另一终端上继续播放,如图3所示,本发明实施例第一实施例包括以下步骤:In the first embodiment of the present invention, the terminal sends multimedia playback index information through the NFC function in the first switching mode, and switches to another terminal to continue playing. As shown in Figure 3, the first embodiment of the present invention includes the following steps:

步骤301:终端检测到第一操作后,执行第一切换模式;Step 301: After detecting the first operation, the terminal executes the first switching mode;

其中,终端检测到第一操作为:点击虚拟按键,或短时间触压虚拟按键;其中,点击虚拟按键触发第一操作与短时间触压虚拟按键触发第一操作中的虚拟按键可以相同,也可以不相同;当不相同时,点击虚拟按键触发第一操作的虚拟按键与短时间触压虚拟按键触发第一操作中的虚拟按键在终端显示屏中所处的位置不相同;Wherein, the terminal detects that the first operation is: clicking a virtual button, or touching a virtual button for a short time; wherein, clicking a virtual button to trigger the first operation and touching a virtual button for a short time to trigger the first operation may be the same, or Can be different; when they are not the same, the position of the virtual button that triggers the first operation by clicking on the virtual button is different from that of the virtual button that is triggered by pressing the virtual button for a short time to trigger the first operation;

进一步的,若终端的切换模式的触发操作为点击对应的虚拟按键,则可以将终端常用的切换模式的触发操作对应的虚拟按键放置在当前终端触控屏幕上较容易发现和/或较容易找到的位置处;短时间触压指定虚拟按键在实际操作中会更方便快捷,因此,与短时间触压指定虚拟按键对应的触发操作可以为终端常用切换模式的触发操作,例如第一切换模式的触发操作;Further, if the trigger operation of the switching mode of the terminal is to click the corresponding virtual button, the virtual button corresponding to the trigger operation of the switching mode commonly used by the terminal can be placed on the touch screen of the current terminal to be easier to find and/or easier to find It is more convenient and fast to touch the designated virtual key for a short time in actual operation. Therefore, the trigger operation corresponding to the short-time touch of the designated virtual key can be the trigger operation of the commonly used switching mode of the terminal, for example, the first switching mode trigger action;

在实际应用中,所述终端还可以通过检测语音指令,确定切换模式,例如:终端通过麦克风检测到的“切换至第一模式”“执行第一模式”“发送播放索引信息”等语音信息,执行第一切换模式。In practical applications, the terminal can also determine the switching mode by detecting voice commands, for example: voice information such as "switch to the first mode", "execute the first mode" and "send playback index information" detected by the terminal through the microphone, Execute the first switching mode.

步骤302:根据所述第一切换模式确定出切换数据;Step 302: Determine switching data according to the first switching mode;

其中,所述切换数据可以是当前正在播放的多媒体文件的链接信息,也可以为当前暂停的多媒体文件的链接信息,以及多媒体播放客户端的历史记录中存储的多媒体文件的链接信息。在获取链接信息后,所述终端还可以获取当前播放的多媒体文件、当前暂停的多媒体文件或所述终端存储的播放进度信息;Wherein, the switching data may be the link information of the multimedia file currently being played, or the link information of the currently paused multimedia file, and the link information of the multimedia file stored in the history record of the multimedia playback client. After acquiring the link information, the terminal may also acquire the currently played multimedia file, the currently paused multimedia file, or the playback progress information stored by the terminal;

其中,多媒体文件的链接信息以及标识信息均可以唯一表示一个多媒体文件,所述终端中预设的应用可以通过所述多媒体文件的链接信息以及标识信息获取所述多媒体的数据流,在所述预设的应用中播放;在本实施例中,所述预设应用可以是咪咕视频应用APP或其他多媒体播放客户端,所述预设应用可以播放文章、视频、语音、音乐、电子书等多媒体数据;另一方面,当所述终端上存储有所述预设应用的用户登录信息时,所述多媒体的播放索引数据还可以包括有所述用户的登录账号信息;Wherein, both the link information and the identification information of the multimedia file can uniquely represent a multimedia file, and the preset application in the terminal can obtain the multimedia data stream through the link information and the identification information of the multimedia file, and in the preset Play in the preset application; in this embodiment, the preset application can be the Migu video application APP or other multimedia player clients, and the preset application can play multimedia such as articles, videos, voices, music, e-books, etc. data; on the other hand, when the user login information of the preset application is stored on the terminal, the multimedia playback index data may also include the login account information of the user;

在实际应用中,所述可以在使用咪咕视频观看电影“楚门的世界”时监测到了上述指定操作,则终端可以从当前使用的咪咕视频中获取当前播放的电影的链接信息:In practical applications, the above specified operation can be detected when watching the movie "The Truman Show" using Migu video, then the terminal can obtain the link information of the currently playing movie from the currently used Migu video:

“http://www.miguvideo.com/wap/resource/pc/detail/miguplay.jsp?cid=624555154”;"http://www.miguvideo.com/wap/resource/pc/detail/miguplay.jsp?cid=624555154";

在获取了当前播放的电影的链接信息后,所述终端可以获取当前播放的电影的播放进度信息;After acquiring the link information of the currently played movie, the terminal can acquire the playback progress information of the currently played movie;

步骤303:所述终端开启NFC功能,对周围的终端进行监测;Step 303: the terminal turns on the NFC function, and monitors surrounding terminals;

在实际应用中,在确定对应的切换数据前或在确定对应的切换数据的过程中开启NFC功能,并对周围的NFC机顶盒进行监测。In practical applications, the NFC function is turned on before determining the corresponding handover data or during the process of determining the corresponding handover data, and the surrounding NFC set-top boxes are monitored.

步骤304:当检测到终端后,建立NFC通信连接,将所述切换数据向检测到的终端发送。Step 304: After the terminal is detected, an NFC communication connection is established, and the switching data is sent to the detected terminal.

其中,检测到终端后,与监测到的终端建立NFC通信连接,然后,将指定区域中的切换数据对该监测到的终端执行与上述确定的第一切换模式对应的操作,将所述终端的切换数据传输至检测到的终端上进行存储和/或播放;Wherein, after the terminal is detected, an NFC communication connection is established with the monitored terminal, and then the switching data in the specified area is used to perform an operation corresponding to the first switching mode determined above for the monitored terminal, and the terminal's Switch data transmission to the detected terminal for storage and/or playback;

在本实施例中,若所述终端在监测到预设操作后便开启NFC功能,则NFC手机可以在检测到终端后不对该检测到的终端进行操作,而是在所述终端与所述检测到的终端接触后,例如,碰一下后,再对其进行第一模式对应的操作。In this embodiment, if the terminal turns on the NFC function after monitoring the preset operation, the NFC mobile phone may not operate the detected terminal after detecting the terminal, but connects the terminal with the detected terminal. After touching the received terminal, for example, after touching it once, the operation corresponding to the first mode is performed on it.

在本实施例中,所述终端可以是具有NFC功能的机顶盒或具有NFC功能的移动终端,例如:手机、可穿戴设备、平板电脑等。In this embodiment, the terminal may be a set-top box with an NFC function or a mobile terminal with an NFC function, such as a mobile phone, a wearable device, a tablet computer, and the like.

实施例二Embodiment two

图4为本发明第二实施例为终端以第二切换模式通过NFC功能接收其他终端发送的多媒体播放索引信息,在本终端继续播放,如图4所示,本发明实施例第二实施例包括以下步骤:Fig. 4 is the second embodiment of the present invention. The terminal receives the multimedia playback index information sent by other terminals through the NFC function in the second switching mode, and continues to play on the terminal. As shown in Fig. 4, the second embodiment of the present invention includes The following steps:

步骤401:终端检测到第二操作后,执行第二切换模式;Step 401: after the terminal detects the second operation, execute the second switching mode;

其中,终端检测到第二操作为:点击虚拟按键,或长时间触压虚拟按键;其中,点击虚拟按键触发第二操作与长时间触压虚拟按键触发第二操作中的虚拟按键可以相同,也可以不相同;当不相同时,点击虚拟按键触发第二操作的虚拟按键与长时间触压虚拟按键触发第二操作中的虚拟按键在终端显示屏中所处的位置不相同;Wherein, the terminal detects that the second operation is: clicking a virtual button, or pressing a virtual button for a long time; wherein, clicking a virtual button to trigger the second operation and pressing the virtual button for a long time to trigger the second operation may be the same, or Can be different; when they are not the same, the position of the virtual button that triggers the second operation by clicking the virtual button is different from that of the virtual button that triggers the second operation by pressing the virtual button for a long time;

进一步的,若终端的切换模式的触发操作为点击对应的虚拟按键,则可以将终端常用的切换模式的触发操作对应的虚拟按键放置在当前终端触控屏幕上较容易发现和/或较容易找到的位置处;Further, if the trigger operation of the switching mode of the terminal is to click the corresponding virtual button, the virtual button corresponding to the trigger operation of the switching mode commonly used by the terminal can be placed on the touch screen of the current terminal to be easier to find and/or easier to find at the location;

在实际应用中,所述终端还可以通过检测语音指令或操作手势等,确定切换模式,例如:终端通过麦克风检测到的“切换至第二模式”“执行第二模式”“接收播放索引信息”等语音信息,执行第二切换模式;In practical applications, the terminal can also determine the switching mode by detecting voice commands or operating gestures, for example: "switch to the second mode" "execute the second mode" "receive playback index information" detected by the terminal through the microphone Waiting for voice information, execute the second switching mode;

所述第二切换模式包括打开预设应用,例如:咪咕视频,为接收到切换数据后进行快速播放进行准备。The second switching mode includes opening a preset application, such as Migu Video, to prepare for fast playback after receiving switching data.

步骤402:所述终端开启NFC功能,对周围的终端进行监测;Step 402: The terminal turns on the NFC function, and monitors surrounding terminals;

步骤403:当检测到终端后,建立NFC通信连接,接收切换数据,根据所述切换数据播放多媒体。Step 403: After the terminal is detected, an NFC communication connection is established, switching data is received, and multimedia is played according to the switching data.

其中,检测到终端后,与监测到的终端建立NFC通信连接,然后,对该监测到的终端执行与上述确定的第二切换模式对应的操作,从检测到的终端接收切换数据后进行存储和/或播放,所述切换数据包括多媒体文件的链接信息和进度信息,所述终端的预设应用首先根据所述多媒体文件的链接信息获取多媒体文件数据流,再根据进度信息确定播放进度,再从获取的播放进度位置继续播放多媒体;其中,Wherein, after the terminal is detected, an NFC communication connection is established with the monitored terminal, and then, an operation corresponding to the above-mentioned determined second switching mode is performed on the monitored terminal, and the switching data is received from the detected terminal and then stored and /or play, the switching data includes link information and progress information of the multimedia file, the preset application of the terminal first obtains the multimedia file data stream according to the link information of the multimedia file, then determines the playback progress according to the progress information, and then from The obtained playback progress position continues to play multimedia; among them,

在本实施例中,若所述终端在监测到预设操作后便开启NFC功能,则NFC手机可以在检测到终端后不对该检测到的终端进行操作,而是在所述终端与所述检测到的终端接触后,例如,碰一下后,再对其进行第二模式对应的操作。In this embodiment, if the terminal turns on the NFC function after monitoring the preset operation, the NFC mobile phone may not operate the detected terminal after detecting the terminal, but connects the terminal with the detected terminal. After the received terminal is touched, for example, touched once, the operation corresponding to the second mode is performed on it.

其中,当所述终端基于确定的切换模式对监测到的终端成功执行与确定的切换模式对应的操作时,终端在准备多媒体播放数据时,可以进入与确定的切换模式对应的切换成功的界面,用于向用户提供一种加载进度信息,进一步提升用户体验,也可以防止用户误操作;当终端可以快速准备并播放多媒体播放数据时,可以不显示上述提示信息;其中,不同的切换模式对应的切换成功的界面可以不相同。Wherein, when the terminal successfully executes the operation corresponding to the determined switching mode on the monitored terminal based on the determined switching mode, the terminal may enter the switching success interface corresponding to the determined switching mode when preparing multimedia playback data, It is used to provide the user with loading progress information to further improve user experience and prevent user misoperation; when the terminal can quickly prepare and play multimedia playback data, the above prompt information may not be displayed; among them, different switching modes correspond to The interface for switching successfully may be different.

在本实施例中,如图5所示,所述终端可以是具有NFC功能的机顶盒或具有NFC功能的移动终端,例如:手机、可穿戴设备、平板电脑等。In this embodiment, as shown in FIG. 5 , the terminal may be a set-top box with an NFC function or a mobile terminal with an NFC function, such as a mobile phone, a wearable device, a tablet computer, and the like.

综上所述,本发明实施例提供的多媒体播放的切换方法及终端,检测到第一操作后,生成多媒体的播放索引信息;其中,所述播放索引信息至少包括所述多媒体的播放进度信息和所述多媒体的源链接地址信息;确定近场通信NFC功能处于开启状态后,与所检测到的终端建立NFC连接,发送所述播放索引信息;如此,能够通过检测预设的操作确定对应的多媒体播放切换模式,在NFC通信建立之前生成多媒体播放索引数据,在NFC通信建立之后直接接收或发送多媒体播放索引数据,实现多媒体播放的快速切换,缩短了切换视频播放的等待时间,极大的提升了用户体验。In summary, the multimedia playback switching method and terminal provided by the embodiments of the present invention generate multimedia playback index information after detecting the first operation; wherein, the playback index information includes at least the multimedia playback progress information and The source link address information of the multimedia; after determining that the NFC function of the near field communication is in the open state, establish an NFC connection with the detected terminal, and send the playback index information; in this way, the corresponding multimedia can be determined by detecting the preset operation Play switching mode, generate multimedia playback index data before NFC communication is established, receive or send multimedia playback index data directly after NFC communication is established, realize fast switching of multimedia playback, shorten the waiting time for switching video playback, and greatly improve user experience.

需要说明的是,以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。It should be noted that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (20)

1. A method for switching multimedia play, the method comprising:
after the first operation is detected, generating multimedia playing index information; the playing index information at least comprises playing progress information of the multimedia and source link address information of the multimedia;
and after the close range communication function is determined to be in the opening state, establishing close range communication connection with the detected terminal, and sending the playing index information.
2. The method of claim 1, wherein detecting the first operation comprises:
when detecting that a preset virtual key is triggered once or continuously, determining that the operation of triggering the virtual key once or continuously is a first operation; or,
when the received voice control information is detected to be matched with the preset voice control information, determining the received voice control information as a first operation; or,
and when the received image information is matched with the preset image information, determining the received image information as a first operation.
3. The method of claim 1, wherein the generating of the play index information of the multimedia includes:
recording the playing progress information of the multimedia played by the set multimedia playing application when the first operation is detected, determining the source link address information of the played multimedia, and/or determining the source link address information stored in the local multimedia according to the multimedia identification information;
and generating the playing index information of the multimedia by using the progress information and the source link address information of the multimedia.
4. The method according to claim 1, wherein after sending the multimedia play index information to the detected terminal, the method further comprises:
after the multimedia playing index information is successfully sent to the detected terminal, prompt information of successful switching to the detected terminal is displayed on a display screen;
and after the multimedia playing index information is detected to fail to be sent to the detected terminal, displaying prompt information of failure in switching to the detected terminal on a display screen.
5. A method for multimedia playback switching, the method comprising:
after the second operation is detected, and the near field communication function is in an open state, establishing NFC connection with the detected terminal, and receiving the multimedia playing index information sent by the detected terminal;
and after the multimedia is obtained according to the play guide information of the multimedia cable, continuing to play the multimedia.
6. The method of claim 5, wherein the detecting the second operation comprises:
when the preset virtual key is detected to be triggered once or continuously, determining that the operation of triggering the virtual key once or continuously is a second operation; or,
when the received voice control information is detected to be matched with the preset voice control information, determining the received voice control information as a second operation; or,
and when the received image information is matched with the preset image information, determining that the received image information is the second operation.
7. The method of claim 5, wherein the continuing to play the multimedia after the multimedia is obtained according to the play index information of the multimedia cable comprises:
analyzing the multimedia playing index information, acquiring source link address information and progress information of the multimedia, calling a preset multimedia playing application to acquire the multimedia according to the source link address of the multimedia, and then continuing to play the multimedia according to the progress information.
8. The method according to claim 5, wherein after receiving the multimedia play index information sent by the detected terminal, the method further comprises:
after the playing index information of the multimedia is successfully received, displaying a prompt message of successful receiving on a display screen;
and after the multimedia playing index information fails to be received, displaying prompt information of the failure in receiving on a display screen.
9. A terminal, characterized in that the terminal comprises:
the detection module is used for detecting a first operation;
the generating module is used for generating the playing index information of the multimedia;
and the sending module is used for establishing NFC connection with the detected terminal and sending the play index information after the close-range communication function is determined to be in the opening state.
10. The terminal according to claim 9, wherein the detection module is specifically configured to:
when detecting that a preset virtual key is triggered once or continuously, determining that the operation of triggering the virtual key once or continuously is a first operation; or,
when the received voice control information is detected to be matched with the preset voice control information, determining the received voice control information as a first operation; or,
and when the received image information is matched with the preset image information, determining the received image information as a first operation.
11. The terminal according to claim 9, wherein the generating module is specifically configured to:
recording the playing progress information of the multimedia played by the set multimedia playing application when the first operation is detected, determining the source link address information of the played multimedia, and/or determining the source link address information stored in the local multimedia according to the multimedia identification information;
and generating the playing index information of the multimedia by using the progress information and the source link address information of the multimedia.
12. The terminal of claim 9, wherein the terminal further comprises:
the prompt module is used for displaying prompt information of successful switching to the detected terminal on a display screen after detecting that the multimedia playing index information is successfully sent to the detected terminal;
and after the multimedia playing index information is detected to fail to be sent to the detected terminal, displaying prompt information of failure in switching to the detected terminal on a display screen.
13. A terminal, characterized in that the terminal comprises:
the receiving module is used for establishing the near field communication connection with the detected terminal and receiving the multimedia playing index information sent by the detected terminal after detecting the second operation and the near field communication function is in an open state;
and the playing module is used for continuing playing the multimedia after acquiring the multimedia according to the playing guide information of the multimedia index.
14. The terminal of claim 13, wherein the receiving module is further configured to:
when the preset virtual key is detected to be triggered once or continuously, determining that the operation of triggering the virtual key once or continuously is a second operation; or,
when the received voice control information is detected to be matched with the preset voice control information, determining the received voice control information as a second operation; or,
and when the received image information is matched with the preset image information, determining that the received image information is the second operation.
15. The terminal according to claim 13, wherein the receiving module is specifically configured to:
analyzing the multimedia playing index information, acquiring a multimedia source link address and progress information, calling a preset multimedia playing application to acquire the multimedia according to the multimedia source link address, and continuing to play the multimedia according to the progress information.
16. The terminal of claim 13, wherein the terminal further comprises:
the prompt module is used for displaying the prompt information which is successfully received on the display screen after the play index information of the multimedia is successfully received;
and after the multimedia playing index information fails to be received, displaying prompt information of the failure in receiving on a display screen.
17. A terminal, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of claims 1 to 4 when running the computer program.
18. A terminal, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of claims 5 to 8 when running the computer program.
19. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of claims 1 to 4.
20. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of claims 5 to 8.
CN201710662002.0A 2017-08-04 2017-08-04 The switching method and terminal of a kind of multimedia Pending CN107659917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710662002.0A CN107659917A (en) 2017-08-04 2017-08-04 The switching method and terminal of a kind of multimedia

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710662002.0A CN107659917A (en) 2017-08-04 2017-08-04 The switching method and terminal of a kind of multimedia

Publications (1)

Publication Number Publication Date
CN107659917A true CN107659917A (en) 2018-02-02

Family

ID=61128563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710662002.0A Pending CN107659917A (en) 2017-08-04 2017-08-04 The switching method and terminal of a kind of multimedia

Country Status (1)

Country Link
CN (1) CN107659917A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037929A (en) * 2019-12-24 2021-06-25 腾讯科技(深圳)有限公司 Information relay output method and device, electronic equipment and storage medium
CN114173169A (en) * 2021-11-03 2022-03-11 北京奇艺世纪科技有限公司 Video playing method, device and system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130903A (en) * 2005-12-14 2011-07-20 财团法人工业技术研究院 interactive advertising system
US20130065521A1 (en) * 2011-09-08 2013-03-14 Pantech Co., Ltd. Near field communication (nfc) terminal and method for data synchronization
CN104093049A (en) * 2013-10-12 2014-10-08 腾讯科技(深圳)有限公司 Multimedia playing control method and system
CN106507184A (en) * 2016-10-21 2017-03-15 乐视控股(北京)有限公司 Media file shares terminal, receiving terminal, transmission method and electronic equipment
CN106550488A (en) * 2016-10-21 2017-03-29 乐视控股(北京)有限公司 The sharing method of multimedia file, the terminal for sharing file and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130903A (en) * 2005-12-14 2011-07-20 财团法人工业技术研究院 interactive advertising system
US20130065521A1 (en) * 2011-09-08 2013-03-14 Pantech Co., Ltd. Near field communication (nfc) terminal and method for data synchronization
CN104093049A (en) * 2013-10-12 2014-10-08 腾讯科技(深圳)有限公司 Multimedia playing control method and system
CN106507184A (en) * 2016-10-21 2017-03-15 乐视控股(北京)有限公司 Media file shares terminal, receiving terminal, transmission method and electronic equipment
CN106550488A (en) * 2016-10-21 2017-03-29 乐视控股(北京)有限公司 The sharing method of multimedia file, the terminal for sharing file and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037929A (en) * 2019-12-24 2021-06-25 腾讯科技(深圳)有限公司 Information relay output method and device, electronic equipment and storage medium
CN113037929B (en) * 2019-12-24 2022-04-15 腾讯科技(深圳)有限公司 Information relay output method and device, electronic equipment and storage medium
CN114173169A (en) * 2021-11-03 2022-03-11 北京奇艺世纪科技有限公司 Video playing method, device and system and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11144191B2 (en) Method and apparatus for activating application function based on inputs on an application interface
CN106488251B (en) Realize the method and device, main broadcaster's client and user client for connecting wheat in live streaming
WO2017101517A1 (en) Method and device for device binding
WO2017113842A1 (en) Intelligent device control method and apparatus
CN105159672B (en) Remote Assistance Methods and Clients
WO2018040063A1 (en) Device control method and apparatus
WO2016165287A1 (en) Method and apparatus for testing network channel status, and electronic device
WO2017101497A1 (en) Method and apparatus of device control
CN105338083A (en) Interface display method and interface display device
CN104965448A (en) Intelligent device control method and device
CN104503740A (en) Memory management method and device
CN105163366A (en) Wireless network connection method and device
CN105550251A (en) Picture play method and device
CN105338389A (en) Method and apparatus for controlling intelligent television
CN104958898A (en) Method, apparatus and system for controlling video games
CN104123093A (en) Information processing method and device
CN104079964B (en) The method and device of transmission of video information
JP6564884B2 (en) Multimedia information reproducing method and system, standardized server and live streaming terminal
CN105117100A (en) Target object display method and apparatus
CN105354017A (en) Information processing method and apparatus
CN104837178A (en) Network accessing method and device
CN106453032B (en) Information-pushing method and device, system
CN104539871A (en) Multimedia call method and device
CN105141880B (en) Call answering method and device
CN106598540A (en) Audio playing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180202