[go: up one dir, main page]

CN108614829A - A kind of playback method and terminal - Google Patents

A kind of playback method and terminal Download PDF

Info

Publication number
CN108614829A
CN108614829A CN201611140929.XA CN201611140929A CN108614829A CN 108614829 A CN108614829 A CN 108614829A CN 201611140929 A CN201611140929 A CN 201611140929A CN 108614829 A CN108614829 A CN 108614829A
Authority
CN
China
Prior art keywords
sub
audio
video
datas
data
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
CN201611140929.XA
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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611140929.XA priority Critical patent/CN108614829A/en
Publication of CN108614829A publication Critical patent/CN108614829A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of playback method and terminals, wherein playback method includes:Preset audio and video playing rule is obtained, audio and video playing rule is used to provide the broadcast mode of the first sub-audio data and the first sub-video data;Obtain X the first sub-audio datas corresponding with audio and video playing rule and Y the first sub-video datas, X the first sub-audio datas are at least one of M the first sub-audio datas divided in advance, and Y the first sub-video datas are at least one of N number of first sub-video data divided in advance;X the first sub-audio datas and Y the first sub-video datas are played out according to audio and video playing rule.Playback method provided in an embodiment of the present invention and terminal can individually repeat playing audio or video content, reduce network latency and transmission flow, save the memory space of terminal, improve the flexibility of video playing.

Description

一种播放方法及终端A playback method and terminal

技术领域technical field

本发明涉及通信领域,尤其涉及一种播放方法及终端。The present invention relates to the communication field, in particular to a playing method and a terminal.

背景技术Background technique

目前,人们越来越广泛的使用终端进行音乐、视频的播放。At present, people use terminals more and more widely to play music and video.

现有的终端播放方法主要包括两类:一类是独立视频文件播放技术,即一个视频文件包括音频文件,通过系统播放器直接打开播放文件;另一类是流媒体播放技术,即把连续的影像和声音信息经过压缩处理后存储于视频服务器,由视频服务器向终端用户顺序或实时地传送各个压缩包,以便终端用户一边下载一边观看、收听。Existing terminal playback methods mainly include two types: one is the independent video file playback technology, that is, a video file includes an audio file, and the playback file is directly opened through the system player; the other is the streaming media playback technology, that is, the continuous Video and audio information are compressed and stored in the video server, and the video server transmits each compressed package to the end user sequentially or in real time, so that the end user can watch and listen to it while downloading.

然而,现有的终端播放方法都是基于独立视频单元的,即一个播放文件包含的音频和视频内容作为一个整体无法分拆,从而导致现有终端播放方法无法单独对音频或视频内容进行重复播放,使得视频播放形式过于单一,增加了网络传输时间和传输流量,也增大了终端的存储空间。However, the existing terminal playback methods are all based on independent video units, that is, the audio and video content contained in a playback file cannot be split as a whole, so that the existing terminal playback methods cannot repeatedly play the audio or video content separately , so that the video playback form is too single, which increases the network transmission time and transmission traffic, and also increases the storage space of the terminal.

发明内容Contents of the invention

为解决上述技术问题,本发明实施例期望提供一种播放方法及终端,能够单独对音频或视频内容进行重复播放,减少了网络传输时间和传输流量,节省了终端的存储空间,提高了视频播放的灵活性。In order to solve the above-mentioned technical problems, the embodiment of the present invention expects to provide a playback method and a terminal, which can repeatedly play audio or video content independently, reduce network transmission time and transmission traffic, save terminal storage space, and improve video playback. flexibility.

本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:

第一方面,本发明实施例提供一种播放方法,方法应用于终端,包括:In the first aspect, an embodiment of the present invention provides a playback method, the method is applied to a terminal, including:

获取预设的音视频播放规则,音视频播放规则用于规定第一子音频数据和第一子视频数据的播放方式;Acquiring preset audio and video playback rules, the audio and video playback rules are used to specify the playback mode of the first sub-audio data and the first sub-video data;

获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,X个第一子音频数据为预先分割好的M个第一子音频数据中的至少一个,Y个第一子视频数据为预先分割好的N个第一子视频数据中的至少一个;Obtain X first sub-audio data and Y first sub-video data corresponding to audio and video playback rules, the X first sub-audio data is at least one of the pre-divided M first sub-audio data, Y The first sub-video data is at least one of the pre-divided N first sub-video data;

根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放。The X pieces of first sub-audio data and the Y pieces of first sub-video data are played according to audio and video playing rules.

可选的,音视频播放规则包括时长校对规则,根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放,具体包括:Optionally, the audio and video playback rules include time-length proofreading rules, and the X first sub-audio data and the Y first sub-video data are played according to the audio and video playback rules, specifically including:

根据时长校对规则控制X个第一子音频数据和Y个第一子视频数据的播放时刻。The playing time of the X pieces of first sub-audio data and the Y pieces of first sub-video data is controlled according to the time-length collation rule.

可选的,音视频播放规则包括空白音符填补规则,根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放,具体包括:Optionally, the audio and video playback rules include blank note filling rules, and the X first sub-audio data and the Y first sub-video data are played according to the audio and video playback rules, specifically including:

在X个第一子音频数据的播放时间小于Y个第一子视频数据的播放时间时,根据空白音符填补规则,在X个第一子音频数据与Y个第一子视频数据的空白播放时间之间,填补空白音符,以便X个第一子音频数据的播放时间等于Y个第一子视频数据的播放时间。When the play time of the first sub-audio data of X is less than the play time of the first sub-video data of Y, according to the blank note filling rule, the blank play time of the first sub-audio data of X and the first sub-video data of Y Between, fill blank notes, so that the playing time of X first sub-audio data is equal to the playing time of Y first sub-video data.

可选的,在根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放之后,方法还包括:Optionally, after playing the X first sub-audio data and the Y first sub-video data according to the audio and video playback rules, the method further includes:

设置预设操作及与预设操作对应的第一播放操作;Setting a default operation and a first playback operation corresponding to the default operation;

在检测到预设操作时,对正在播放的X个第一子音频数据和Y个第一子视频数据执行第一播放操作。When the preset operation is detected, the first playback operation is performed on the X pieces of first sub-audio data and the Y pieces of first sub-video data being played.

可选的,M个第一子音频数据和N个第一子视频数据存储于服务器,获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,具体包括:Optionally, M first sub-audio data and N first sub-video data are stored in the server, and X first sub-audio data and Y first sub-video data corresponding to audio and video playback rules are obtained, specifically including:

根据音视频播放规则从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据。Download corresponding X pieces of first sub-audio data and Y pieces of first sub-video data from the server according to audio and video playback rules.

可选的,在从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据之后,在对X个第一子音频数据和Y个第一子视频数据进行播放之前,方法还包括:Optionally, after downloading the corresponding X first sub-audio data and Y first sub-video data from the server, before playing the X first sub-audio data and Y first sub-video data, the method Also includes:

将X个第一子音频数据合并为一个第二音频数据;Merging X first sub-audio data into one second audio data;

相应的,对X个第一子音频数据和Y个第一子视频数据进行播放,具体为:Correspondingly, the X first sub-audio data and the Y first sub-video data are played, specifically:

根据音视频播放规则对第二音频数据和Y个第一子视频数据进行播放。The second audio data and the Y pieces of first sub-video data are played according to the audio and video playing rules.

可选的,M个第一子音频数据和N个第一子视频数据存储于终端,获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,具体包括:Optionally, M first sub-audio data and N first sub-video data are stored in the terminal, and X first sub-audio data and Y first sub-video data corresponding to the audio and video playing rules are obtained, specifically including:

按照预设音频分割规则将第一音频数据分割为M个第一子音频数据,按照预设视频分割规则将第一视频数据分割为N个第一子视频数据;M大于等于1,N大于等于1;The first audio data is divided into M first sub-audio data according to the preset audio segmentation rule, and the first video data is divided into N first sub-video data according to the preset video segmentation rule; M is greater than or equal to 1, and N is greater than or equal to 1;

根据音视频播放规则从M个第一子音频数据中获取对应的X个第一子音频数据,从N个第一子视频数据中获取对应的Y个第一子视频数据。Obtain corresponding X pieces of first sub-audio data from M pieces of first sub-audio data according to audio and video playing rules, and obtain corresponding Y pieces of first sub-video data from N pieces of first sub-video data.

第二方面,本发明实施例提供一种终端,包括获取单元和播放单元,其中:In a second aspect, an embodiment of the present invention provides a terminal, including an acquisition unit and a playback unit, wherein:

获取单元,用于获取预设的音视频播放规则,音视频播放规则用于规定第一子音频数据和第一子视频数据的播放方式;获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,X个第一子音频数据为预先分割好的M个第一子音频数据中的至少一个,Y个第一子视频数据为预先分割好的N个第一子视频数据中的至少一个;The obtaining unit is used to obtain preset audio and video playback rules, and the audio and video playback rules are used to specify the playback mode of the first sub-audio data and the first sub-video data; obtain X first sub-audios corresponding to the audio and video playback rules data and Y first sub-video data, the X first sub-audio data is at least one of the pre-divided M first sub-audio data, and the Y first sub-video data is the pre-divided N first sub-audio data. at least one of the sub video data;

播放单元,用于根据获取单元获取的音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放。The playing unit is configured to play the X pieces of first sub-audio data and the Y pieces of first sub-video data according to the audio and video playing rules acquired by the acquiring unit.

可选的,音视频播放规则包括时长校对规则,播放单元,具体用于:Optionally, the audio and video playback rules include duration proofreading rules and playback units, which are specifically used for:

根据时长校对规则控制X个第一子音频数据和Y个第一子视频数据的播放时刻。The playing time of the X pieces of first sub-audio data and the Y pieces of first sub-video data is controlled according to the time-length collation rule.

可选的,音视频播放规则包括空白音符填补规则,播放单元,具体用于:Optionally, the audio and video playback rules include blank note filling rules and playback units, which are specifically used for:

在X个第一子音频数据的播放时间小于Y个第一子视频数据的播放时间时,根据空白音符填补规则,在X个第一子音频数据与Y个第一子视频数据的空白播放时间之间,填补空白音符,以便X个第一子音频数据的播放时间等于Y个第一子视频数据的播放时间。When the play time of the first sub-audio data of X is less than the play time of the first sub-video data of Y, according to the blank note filling rule, the blank play time of the first sub-audio data of X and the first sub-video data of Y Between, fill blank notes, so that the playing time of X first sub-audio data is equal to the playing time of Y first sub-video data.

可选的,终端还包括设置单元和执行单元,其中:Optionally, the terminal also includes a setting unit and an execution unit, wherein:

设置单元,用于在播放单元根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放之后,设置预设操作及与预设操作对应的第一播放操作;The setting unit is used to set the preset operation and the first playback operation corresponding to the preset operation after the playback unit plays the X first sub-audio data and the Y first sub-video data according to the audio and video playback rules;

执行单元,用于在检测到设置单元设置的预设操作时,对正在播放的X个第一子音频数据和Y个第一子视频数据执行第一播放操作。The execution unit is configured to execute the first playback operation on the X pieces of first sub-audio data and Y pieces of first sub-video data being played when the preset operation set by the setting unit is detected.

可选的,M个第一子音频数据和N个第一子视频数据存储于服务器,获取单元,具体用于:Optionally, the M first sub-audio data and N first sub-video data are stored in the server, and the acquisition unit is specifically used for:

根据音视频播放规则从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据。Download corresponding X pieces of first sub-audio data and Y pieces of first sub-video data from the server according to audio and video playback rules.

可选的,终端还包括合并单元,用于在获取单元从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据之后,在播放单元对X个第一子音频数据和Y个第一子视频数据进行播放之前,将X个第一子音频数据合并为一个第二音频数据;Optionally, the terminal further includes a merging unit, which is used for pairing the X first sub-audio data and Y first sub-video data in the playback unit after the acquiring unit downloads the corresponding X first sub-audio data and Y first sub-video data from the server. Before playing the Y first sub-video data, combining X first sub-audio data into one second audio data;

相应的,播放单元,具体用于根据音视频播放规则对合并单元合并的第二音频数据和Y个第一子视频数据进行播放。Correspondingly, the playing unit is specifically configured to play the second audio data and the Y pieces of first sub-video data combined by the combining unit according to the audio and video playing rules.

可选的,M个第一子音频数据和N个第一子视频数据存储于终端,获取单元,具体用于:Optionally, the M first sub-audio data and N first sub-video data are stored in the terminal, and the acquisition unit is specifically used for:

按照预设音频分割规则将第一音频数据分割为M个第一子音频数据,按照预设视频分割规则将第一视频数据分割为N个第一子视频数据;M大于等于1,N大于等于1;根据音视频播放规则从M个第一子音频数据中获取对应的X个第一子音频数据,从N个第一子视频数据中获取对应的Y个第一子视频数据。The first audio data is divided into M first sub-audio data according to the preset audio segmentation rule, and the first video data is divided into N first sub-video data according to the preset video segmentation rule; M is greater than or equal to 1, and N is greater than or equal to 1. Obtain corresponding X pieces of first sub-audio data from M pieces of first sub-audio data according to audio and video playback rules, and obtain corresponding Y pieces of first sub-video data from N pieces of first sub-video data.

本发明实施例提供了一种播放方法及终端,通过获取预设的音视频播放规则,音视频播放规则用于规定第一子音频数据和第一子视频数据的播放方式;获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,X个第一子音频数据为预先分割好的M个第一子音频数据中的至少一个,Y个第一子视频数据为预先分割好的N个第一子视频数据中的至少一个;根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放。采用上述技术实现方案,由于音频数据和视频数据是相互独立的,可以任意排列组合播放,因而能够单独对音频或视频内容进行重复播放,减少了网络传输时间和传输流量,节省了终端的存储空间,提高了视频播放的灵活性。Embodiments of the present invention provide a playback method and terminal, by acquiring preset audio and video playback rules, the audio and video playback rules are used to specify the playback mode of the first sub-audio data and the first sub-video data; acquisition and audio and video playback X first sub-audio data and Y first sub-video data corresponding to the rules, the X first sub-audio data is at least one of the pre-divided M first sub-audio data, and the Y first sub-video data It is at least one of the pre-divided N first sub-video data; X first sub-audio data and Y first sub-video data are played according to audio and video playing rules. Using the above technology implementation scheme, since the audio data and video data are independent of each other, they can be played in any arrangement and combination, so the audio or video content can be played repeatedly, reducing the network transmission time and traffic, and saving the storage space of the terminal , which improves the flexibility of video playback.

附图说明Description of drawings

图1为本发明实施例提供的一种播放方法的流程示意图一;FIG. 1 is a first schematic flow diagram of a playing method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种播放方法的流程示意图二;FIG. 2 is a second schematic flow diagram of a playback method provided by an embodiment of the present invention;

图3为本发明实施例提供的音视频播放组合的播放示意图;FIG. 3 is a schematic diagram of playback of an audio and video playback combination provided by an embodiment of the present invention;

图4为本发明实施例提供的一种播放方法的流程示意图三;FIG. 4 is a third schematic flow diagram of a playback method provided by an embodiment of the present invention;

图5为本发明实施例提供的音视频播放组合的正常播放顺序示意图;5 is a schematic diagram of the normal play sequence of the audio and video play combination provided by the embodiment of the present invention;

图6为本发明实施例提供的音视频播放组合的切换后的播放顺序示意图;FIG. 6 is a schematic diagram of the switched playback sequence of the audio and video playback combination provided by the embodiment of the present invention;

图7为本发明实施例提供的一种终端的结构示意图一;FIG. 7 is a first structural schematic diagram of a terminal provided by an embodiment of the present invention;

图8为本发明实施例提供的一种终端的结构示意图二;FIG. 8 is a second structural schematic diagram of a terminal provided by an embodiment of the present invention;

图9为本发明实施例提供的一种终端的结构示意图三。FIG. 9 is a third schematic structural diagram of a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

实施例一Embodiment one

图1为本发明实施例提供的一种播放方法的流程示意图一,该方法应用于终端,播放方法包括:FIG. 1 is a schematic flow diagram of a playback method provided by an embodiment of the present invention. The method is applied to a terminal, and the playback method includes:

步骤101:获取预设的音视频播放规则,音视频播放规则用于规定第一子音频数据和第一子视频数据的播放方式;Step 101: Acquiring preset audio and video playback rules, the audio and video playback rules are used to specify the playback mode of the first sub-audio data and the first sub-video data;

可理解的,终端获取预设的音视频播放规则可以通过自身设置的查询接口来查询一个音视频播放组合对应的音视频播放规则及第一子音频数据和第一子视频数据。It can be understood that the terminal can query the audio and video playback rules corresponding to an audio and video playback combination and the first sub-audio data and the first sub-video data through the query interface set by the terminal to obtain the preset audio and video playback rules.

实际应用中,终端可以优先从本地存储查找音视频播放规则,若本地没有存储音视频播放规则,则从服务器查找音视频播放规则。当然,终端也可以直接从服务器查找音视频播放规则,本发明实施例对终端获取预设的音视频播放规则的具体方式不做具体限制。In practical applications, the terminal can preferentially search for audio and video playback rules from local storage, and if no audio and video playback rules are stored locally, it can search for audio and video playback rules from the server. Certainly, the terminal may also directly search for the audio and video playing rules from the server, and the embodiment of the present invention does not specifically limit the specific manner for the terminal to obtain the preset audio and video playing rules.

需要说明的是,音视频播放规则用于对每一个音视频播放组合的播放进行说明,具体的,音视频播放规则可以包含至少一个视频播放序列说明文件和至少一个音频播放序列说明文件。其中,视频播放序列说明文件描述的是第一子视频数据的播放规则,包括每一个第一子视频数据的文件名、播放顺序、重复次数、片头、片尾,以及其他的可扩展配置项。音频播放序列说明文件描述的是第一子音频数据的播放规则,包括每一个第一子音频数据的文件名、重复次数、填充空白音符的次数,以及其它的可扩展配置项。It should be noted that the audio and video playback rules are used to describe the playback of each audio and video playback combination. Specifically, the audio and video playback rules may include at least one video playback sequence description file and at least one audio playback sequence description file. Wherein, the video playback sequence description file describes the playback rules of the first sub-video data, including the file name, playback order, repetition times, title, trailer, and other expandable configuration items of each first sub-video data. The audio playback sequence description file describes the playing rules of the first sub-audio data, including the file name, repetition times, times of filling blank notes, and other expandable configuration items of each first sub-audio data.

步骤102:获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,X个第一子音频数据为预先分割好的M个第一子音频数据中的至少一个,Y个第一子视频数据为预先分割好的N个第一子视频数据中的至少一个;Step 102: Obtain X first sub-audio data and Y first sub-audio data corresponding to audio and video playback rules, and the X first sub-audio data is at least one of the pre-divided M first sub-audio data , the Y first sub-video data is at least one of the pre-divided N first sub-video data;

需要说明的是,预先分割好的M个第一子音频数据和预先分割好的N个第一子视频数据可以存放于服务器上,也可以存放于本地终端上,本发明实施例对其存贮位置不做具体的限制。It should be noted that the pre-divided M pieces of first sub-audio data and the pre-divided N pieces of first sub-video data can be stored on the server or on the local terminal. The location is not specifically limited.

具体的,M个第一子音频数据和N个第一子视频数据存储于服务器,步骤102包括:根据音视频播放规则从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据。Specifically, the M first sub-audio data and N first sub-video data are stored in the server, and step 102 includes: downloading the corresponding X first sub-audio data and Y first sub-audio data from the server according to the audio and video playback rules. video data.

具体的,M个第一子音频数据和N个第一子视频数据存储于终端,步骤102,具体包括:按照预设音频分割规则将第一音频数据分割为M个第一子音频数据,按照预设视频分割规则将第一视频数据分割为N个第一子视频数据;M大于等于1,N大于等于1;根据音视频播放规则从M个第一子音频数据中获取对应的X个第一子音频数据,从N个第一子视频数据中获取对应的Y个第一子视频数据。Specifically, M pieces of first sub-audio data and N pieces of first sub-audio data are stored in the terminal. Step 102 specifically includes: dividing the first audio data into M pieces of first sub-audio data according to a preset audio segmentation rule, according to The preset video segmentation rule divides the first video data into N first sub-video data; M is greater than or equal to 1, and N is greater than or equal to 1; according to the audio and video playback rules, the corresponding X-th sub-audio data is obtained from the M first sub-audio data For sub-audio data, corresponding Y pieces of first sub-video data are obtained from N pieces of first sub-video data.

实际应用中,M个第一子音频数据和N个第一子视频数据的文件命名规则可以根据用户喜好进行设置,例如,可见将播放组合命名为Pn,其中,n为下标。从属于Pn的视频单元命名问Pn_VUn,从属于Pn的音频单元命名为Pn_AUn。可共用的视频单元命名为C_VUn,可共用的音频单元命名为C_AUn。当然,本发明实施例对M个第一子音频数据和N个第一子视频数据的文件命名规则不做具体限制。In practical applications, the file naming rules of the M first sub-audio data and the N first sub-video data can be set according to user preferences. For example, it can be seen that the playback combination is named Pn, where n is a subscript. The video unit subordinate to Pn is named Pn_VUn, and the audio unit subordinate to Pn is named Pn_AUn. The shareable video unit is named C_VUn, and the shareable audio unit is named C_AUn. Of course, the embodiment of the present invention does not specifically limit the file naming rules of the M first sub-audio data and the N first sub-video data.

举例来说,第一音频数据可以命名为:P1_AU1*1,P1_AU2,P1_AU3,CAU0*10,P1_AU1。第一子视频数据可以命名为:P1_VU1*1,P1_VU2,P1_VU3,P1_VU4*5。一个音视频播放组合命名为P1,包含的视频单元为P1_U1,P1_U2,……P1_Un,音频单元命名为P1_A1,P1_A2,……P1_An。这样一个音视频播放组合包含多个第一子视频数据和多个第一音频数据。实际应用中,可以有多个这样的音视频播放组合,例如,P1,P2,P3,……,Pn,它们之间可以共用所有的M个第一子音频数据和N个第一子视频数据。For example, the first audio data can be named as: P1_AU1*1, P1_AU2, P1_AU3, CAU0*10, P1_AU1. The first sub-video data can be named: P1_VU1*1, P1_VU2, P1_VU3, P1_VU4*5. An audio and video playback combination is named P1, the video units included are P1_U1, P1_U2, ... P1_Un, and the audio units are named P1_A1, P1_A2, ... P1_An. Such an audio and video playback combination includes a plurality of first sub-video data and a plurality of first audio data. In practical applications, there can be multiple such audio and video playback combinations, for example, P1, P2, P3, ..., Pn, and all M first sub-audio data and N first sub-video data can be shared between them .

步骤103:根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放。Step 103: Play X pieces of first sub-audio data and Y pieces of first sub-video data according to audio and video playing rules.

进一步的,参见图2所示,在从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据之后之后,在步骤103之前,方法还包括步骤1030,步骤1030具体为:Further, as shown in FIG. 2, after downloading the corresponding X first sub-audio data and Y first sub-video data from the server, before step 103, the method also includes step 1030, and step 1030 is specifically:

步骤1030:将X个第一子音频数据合并为一个第二音频数据;Step 1030: combining X first sub-audio data into one second audio data;

相应的,步骤103具体为:根据音视频播放规则对第二音频数据和Y个第一子视频数据进行播放。Correspondingly, step 103 specifically includes: playing the second audio data and Y pieces of first sub-video data according to the audio and video playing rules.

需要说明的是,一个第一子视频数据可以对应多个第一子音频数据,终端通过采用内存中通过计算机文件读写拼接的方法,在播放之前将与第一子视频数据对应的所有第一子音频数据读到内存中拼接成为一个内存中独立的音频整体,即合并为一个第二音频数据。这样一来,终端在播放音视频组合文件时,由于第二音频数据是从属于一个第一子视频数据的,所以第二音频数据的合并播放并不会影响到第一子视频数据的播放内容变更,当切换了第一子视频数据时,也会同时切换第二音频数据,使得整体的音频音轨就不会有延迟现象。同时,也避免了终端在音视频播放组合的时候播放多个第一子音频数据,造成的时间消耗,以及第一子音频数据与第一子视频数据之间产生的时间不同步,解决了组合播放时音频和视频的不同步的问题。It should be noted that one first sub-video data can correspond to a plurality of first sub-audio data, and the terminal uses the method of reading and writing computer files in the memory to stitch all the first sub-video data corresponding to the first sub-video data before playing. The sub-audio data is read into the memory and spliced into an independent audio whole in the memory, that is, merged into a second audio data. In this way, when the terminal is playing an audio-video combination file, since the second audio data is subordinate to a first sub-video data, the combined playback of the second audio data will not affect the playback content of the first sub-video data Change, when the first sub-video data is switched, the second audio data will also be switched at the same time, so that there will be no delay in the overall audio track. At the same time, it also avoids the time consumption caused by the terminal playing multiple first sub-audio data when audio and video are combined, and the time asynchrony between the first sub-audio data and the first sub-video data, which solves the problem of combination Audio and video out of sync issues during playback.

示例性的,音视频播放规则包括时长校对规则,根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放,具体包括:根据时长校对规则控制X个第一子音频数据和Y个第一子视频数据的播放时刻。Exemplarily, the audio and video playback rules include time length collation rules, and X first sub-audio data and Y first sub-video data are played according to the audio and video playback rules, specifically including: controlling the X first sub-audio data according to the duration collation rule Playing moments of audio data and Y first sub-video data.

需要说明的是,终端根据时长校对规则在每一个第一子视频数据开始播放的时刻重新复位,从而保证视频和音频在一个单元内部的同步,使得视频和音频播放的时刻能够同步对应,即进行播放校正。It should be noted that, according to the duration proofreading rules, the terminal resets at the moment when each first sub-video data starts to play, so as to ensure the synchronization of video and audio within a unit, so that the timing of video and audio playback can be synchronized, that is, carry out Play correction.

示例性的,音视频播放规则包括空白音符填补规则,根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放,具体包括:在X个第一子音频数据的播放时间小于Y个第一子视频数据的播放时间时,根据空白音符填补规则,在X个第一子音频数据与Y个第一子视频数据的空白播放时间之间,填补空白音符,以便X个第一子音频数据的播放时间等于Y个第一子视频数据的播放时间。Exemplarily, the audio and video playback rules include blank note filling rules, and X first sub-audio data and Y first sub-video data are played according to the audio and video playback rules, specifically including: When playing time is less than the playing time of Y first sub-video data, according to blank note filling rule, between the blank playing time of X first sub-audio data and Y first sub-video data, fill up blank note, so that X The playing time of the first sub-audio data is equal to the playing time of Y first sub-video data.

需要说明的是,终端根据空白音符填补规则可以将空白音符命名为C_AU0,重复文件次数为File Name*n,表示File Name这个文件播放n次,默认为1次,其中,描述文件中的每一个文件描述中间通过英文逗号分割。当然,终端还可以通过多种方式来命名空白音符,本发明实施例对此不做具体限制。It should be noted that the terminal can name the blank note as C_AU0 according to the blank note filling rule, and the number of repeated files is File Name*n, which means that the file File Name is played n times, and the default is 1 time. The file descriptions are separated by commas. Certainly, the terminal may also name blank notes in various ways, which is not specifically limited in this embodiment of the present invention.

可理解的,若X个第一子音频数据的播放时间小于Y个第一子视频数据的播放时间,说明音频播放时间不足视频播放时间,因此,利用空白音符填补音轨空袭时间,从而对音频和视频时刻进行校准。Understandably, if the playback time of X first sub-audio data is less than the playback time of Y first sub-video data, it means that the audio playback time is not enough for the video playback time. Therefore, blank notes are used to fill the air strike time of the audio track, thereby improving the audio frequency. Calibrated with the video moment.

在实际应用中,终端进行视频播放时,通过视频播放器负责播放多个第一子视频数据,并通过多个音频播放器播放分别多个第一子音频数据。具体的,参见图3所示,每一个第一子视频数据可以对应多个音频轨道,其中,音频轨道可以是独立的音频文件,也可以包括多个第一子音频数据。图3中坐标轴的横坐标表示的是随时间推移的播放进度,图3中纵向的虚线表示的是视频单元的分界线,UV1、UV2分别表示一个视频文件,VA1、VA2、VA3、VA4分别表示一个独立的音频文件,VA0表示空白音符,空白音符的时长为1秒,VA0*n表示空白音符循环的次数,根据一秒一次换算出来就是空白音符的时间。音轨1、音轨2、音轨3表示的是配合视频单元播放的多个音频。图3中所示在第一个播放单元内,UV1视频文件会重复播放三次,对应的音频是VA1、VA2、VA2,VA2播放完成后没有声音,循环n次空白音符。然后进入第二个播放单元内,视频会播放UV2文件,音频接着播放VA3。每一个播放单元内部有一个Next指针,当前的播放单元的next指针可以动态调整到任意一个播放单元,当前播放单元时间结束时刻会载入next指针指向的播放单元。In practical applications, when the terminal plays video, the video player is responsible for playing multiple first sub-video data, and multiple audio players are responsible for playing multiple first sub-audio data respectively. Specifically, as shown in FIG. 3 , each first sub-video data may correspond to multiple audio tracks, where an audio track may be an independent audio file, or may include multiple first sub-audio data. The abscissa of the coordinate axis in Figure 3 represents the playback progress over time, the vertical dotted line in Figure 3 represents the dividing line of the video unit, UV1, UV2 represent a video file, VA1, VA2, VA3, VA4 respectively Represents an independent audio file, VA0 represents a blank note, the duration of the blank note is 1 second, VA0*n represents the number of blank note cycles, and the time of the blank note is converted from once per second. Audio track 1, audio track 2, and audio track 3 represent multiple audios played in conjunction with the video unit. As shown in Figure 3, in the first playback unit, the UV1 video file will be played repeatedly three times, and the corresponding audio is VA1, VA2, and VA2. After VA2 is played, there is no sound, and the blank notes are cycled n times. Then enter the second playback unit, the video will play UV2 files, and the audio will play VA3. Each playback unit has a Next pointer inside. The next pointer of the current playback unit can be dynamically adjusted to any playback unit. When the time of the current playback unit ends, the playback unit pointed to by the next pointer will be loaded.

可以看出,当一个文件需要重复播放时,播放到这个文件的结束时刻,然后将播放进度通过程序调整到开始时刻,即可以重新播放文件,可见本发明实施例提供的播放方法适用于教学类的视频。例如广播体操,健身房教学等场景。It can be seen that when a file needs to be played repeatedly, it is played to the end of the file, and then the playback progress is adjusted to the start time through the program, that is, the file can be played again. It can be seen that the playback method provided by the embodiment of the present invention is suitable for teaching classes. video. Such as radio gymnastics, gym teaching and other scenarios.

另外,在实际中,终端系统的播放器通过自定义UI,实现播放暂停/快进/后退,并通过程序控制音频和视频同步播放。In addition, in practice, the player of the terminal system implements playback pause/fast forward/backward through a custom UI, and controls audio and video synchronous playback through programs.

进一步的,参考图4所示,在步骤103之后,方法还包括步骤104-步骤105,具体为:Further, as shown in FIG. 4, after step 103, the method further includes steps 104-105, specifically:

步骤104:设置预设操作及与预设操作对应的第一播放操作;Step 104: Setting a preset operation and a first playback operation corresponding to the preset operation;

步骤105:在检测到预设操作时,对正在播放的X个第一子音频数据和Y个第一子视频数据执行第一播放操作。Step 105: When the preset operation is detected, perform a first playback operation on the X pieces of first sub-audio data and Y pieces of first sub-video data that are being played.

可理解的,第一播放操作包括终端的多种播放事件,例如,暂停操作、切换操作、更新播放内容操作等。本发明实施例对第一播放操作的类型不做具体限制。It can be understood that the first playback operation includes various playback events of the terminal, for example, a pause operation, a switching operation, an operation of updating playback content, and the like. The embodiment of the present invention does not specifically limit the type of the first playback operation.

实际应用中,终端可以通过可扩展的第三方播放接口检测到预设操作。终端播放过程中根据收到的不同预设通知消息即检测到不同的预设操作,触发播放器对应的第一播放操作。In practical applications, the terminal can detect preset operations through an extensible third-party playback interface. During playback, the terminal detects different preset operations according to different preset notification messages received, and triggers the corresponding first playback operation of the player.

举例来说,参考图5所示,终端正常的播放顺序为依次播放VU1,VU2,VU3。终端在接收到切换操作时,触发要切换视频资源的操作。具体的,参考图6所示,终端播放的每一个视频单元是一个指针对象,这个指针对象内部包含了一个指向下一个时刻需要播放的视频对象next,在接收到切换操作时,触发了要切换视频资源,便将当前播放的视频指针的next指向新的目标,使得终端切换后的播放顺序为依次播放VU1,VU NEW,VU3。如此一来,使得终端实现了播放内容可以通过触发事件动态变更。For example, referring to FIG. 5 , the normal playback order of the terminal is to play VU1, VU2, and VU3 in sequence. When receiving the switch operation, the terminal triggers an operation to switch video resources. Specifically, as shown in Figure 6, each video unit played by the terminal is a pointer object, which contains a video object next pointing to the video object to be played at the next moment. When the switch operation is received, the switch is triggered. video resources, the next of the currently played video pointer points to the new target, so that the playback sequence after the terminal is switched is to play VU1, VU NEW, and VU3 in sequence. In this way, the terminal realizes that the playback content can be dynamically changed by triggering an event.

综上所述,本发明实施例提供的播放方法,通过获取预设的音视频播放规则,音视频播放规则用于规定第一子音频数据和第一子视频数据的播放方式;获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,X个第一子音频数据为预先分割好的M个第一子音频数据中的至少一个,Y个第一子视频数据为预先分割好的N个第一子视频数据中的至少一个;根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放。采用上述技术实现方案,由于音频数据和视频数据是相互独立的,可以任意排列组合播放,因而能够单独对音频或视频内容进行重复播放,减少了网络传输时间和传输流量,节省了终端的存储空间,提高了视频播放的灵活性。In summary, the playback method provided by the embodiment of the present invention acquires the preset audio and video playback rules, and the audio and video playback rules are used to specify the playback mode of the first sub-audio data and the first sub-video data; The X first sub-audio data and Y first sub-video data corresponding to the playback rules, the X first sub-audio data is at least one of the pre-divided M first sub-audio data, and the Y first sub-video data The data is at least one of the pre-divided N first sub-video data; X first sub-audio data and Y first sub-video data are played according to audio and video playing rules. Using the above technology implementation scheme, since the audio data and video data are independent of each other, they can be played in any arrangement and combination, so the audio or video content can be played repeatedly, reducing the network transmission time and traffic, and saving the storage space of the terminal , which improves the flexibility of video playback.

实施例二Embodiment two

图7为本发明实施例提供的一种终端的结构示意图一,参考图7所示,终端,包括获取单元101和播放单元102,其中:FIG. 7 is a schematic structural diagram of a terminal provided by an embodiment of the present invention. Referring to FIG. 7, the terminal includes an acquisition unit 101 and a playback unit 102, wherein:

获取单元101,用于获取预设的音视频播放规则,音视频播放规则用于规定第一子音频数据和第一子视频数据的播放方式;获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,X个第一子音频数据为预先分割好的M个第一子音频数据中的至少一个,Y个第一子视频数据为预先分割好的N个第一子视频数据中的至少一个;The acquisition unit 101 is used to acquire preset audio and video play rules, and the audio and video play rules are used to specify the playback mode of the first sub-audio data and the first sub-video data; acquire X first sub-audio data corresponding to the audio and video play rules Audio data and Y first sub-video data, the X first sub-audio data is at least one of the pre-divided M first sub-audio data, and the Y first sub-video data is the pre-divided Nth sub-audio data at least one of sub-video data;

播放单元102,用于根据获取单元101获取的音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放。The playing unit 102 is configured to play X pieces of first sub-audio data and Y pieces of first sub-video data according to the audio and video playing rules acquired by the acquiring unit 101 .

进一步的,音视频播放规则包括时长校对规则,播放单元102,具体用于:根据时长校对规则控制X个第一子音频数据和Y个第一子视频数据的播放时刻。Further, the audio and video playback rules include time-length collation rules, and the playback unit 102 is specifically configured to: control the playing moments of the X pieces of first sub-audio data and the Y pieces of first sub-video data according to the time-length collation rules.

进一步的,音视频播放规则包括空白音符填补规则,播放单元102,具体用于:在X个第一子音频数据的播放时间小于Y个第一子视频数据的播放时间时,根据空白音符填补规则,在X个第一子音频数据与Y个第一子视频数据的空白播放时间之间,填补空白音符,以便X个第一子音频数据的播放时间等于Y个第一子视频数据的播放时间。Further, the audio and video playback rules include blank note filling rules, and the playback unit 102 is specifically used to: when the playback time of the X first sub-audio data is less than the playback time of the Y first sub-video data, according to the blank note filling rule , between the blank playing time of the X first sub-audio data and the Y first sub-video data, fill blank notes so that the playing time of the X first sub-audio data is equal to the playing time of the Y first sub-video data .

进一步的,参考图8所示,终端还包括设置单元104和执行单元105,其中:设置单元104,用于在播放单元102根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放之后,设置预设操作及与预设操作对应的第一播放操作;执行单元105,用于在检测到设置单元104设置的预设操作时,对正在播放的X个第一子音频数据和Y个第一子视频数据执行第一播放操作。Further, as shown in FIG. 8 , the terminal further includes a setting unit 104 and an execution unit 105, wherein: the setting unit 104 is used to set the X first sub-audio data and the Y first sub-audio data in the playback unit 102 according to the audio and video playback rules After the sub-video data is played, a preset operation and a first play operation corresponding to the preset operation are set; the execution unit 105 is configured to, when detecting the preset operation set by the setting unit 104, execute the X first playback operations being played. The sub-audio data and Y pieces of first sub-video data perform a first playback operation.

进一步的,M个第一子音频数据和N个第一子视频数据存储于服务器,获取单元101,具体用于:根据音视频播放规则从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据。Further, the M pieces of first sub-audio data and N pieces of first sub-video data are stored in the server, and the obtaining unit 101 is specifically used to: download corresponding X pieces of first sub-audio data and Y pieces of first sub-audio data from the server according to audio and video playback rules. the first sub-video data.

进一步的,参考图9所示,终端还包括合并单元106,用于在获取单元101从服务器上下载对应的X个第一子音频数据和Y个第一子视频数据之后,在播放单元102对X个第一子音频数据和Y个第一子视频数据进行播放之前,将X个第一子音频数据合并为一个第二音频数据;相应的,播放单元102,具体用于根据音视频播放规则对合并单元合并的第二音频数据和Y个第一子视频数据进行播放。Further, as shown in FIG. 9 , the terminal further includes a merging unit 106 configured to, after the acquiring unit 101 downloads the corresponding X first sub-audio data and Y first sub-video data from the server, play the unit 102 to Before the X first sub-audio data and the Y first sub-video data are played, the X first sub-audio data are combined into one second audio data; correspondingly, the playback unit 102 is specifically used to play according to the audio and video playing rules Play the second audio data and Y pieces of first sub-video data combined by the merging unit.

进一步的,M个第一子音频数据和N个第一子视频数据存储于终端,获取单元101,具体用于:按照预设音频分割规则将第一音频数据分割为M个第一子音频数据,按照预设视频分割规则将第一视频数据分割为N个第一子视频数据;M大于等于1,N大于等于1;根据音视频播放规则从M个第一子音频数据中获取对应的X个第一子音频数据,从N个第一子视频数据中获取对应的Y个第一子视频数据。Further, the M pieces of first sub-audio data and N pieces of first sub-video data are stored in the terminal, and the acquiring unit 101 is specifically used to: divide the first audio data into M pieces of first sub-audio data according to preset audio segmentation rules According to the preset video segmentation rule, the first video data is divided into N first sub-video data; M is greater than or equal to 1, and N is greater than or equal to 1; according to the audio and video playback rules, the corresponding X is obtained from the M first sub-audio data pieces of first sub-audio data, and obtain corresponding Y pieces of first sub-video data from N pieces of first sub-video data.

综上所述,本发明实施例提供的终端,通过获取预设的音视频播放规则,音视频播放规则用于规定第一子音频数据和第一子视频数据的播放方式;获取与音视频播放规则对应的X个第一子音频数据和Y个第一子视频数据,X个第一子音频数据为预先分割好的M个第一子音频数据中的至少一个,Y个第一子视频数据为预先分割好的N个第一子视频数据中的至少一个;根据音视频播放规则对X个第一子音频数据和Y个第一子视频数据进行播放。采用上述技术实现方案,由于音频数据和视频数据是相互独立的,可以任意排列组合播放,因而能够单独对音频或视频内容进行重复播放,减少了网络传输时间和传输流量,节省了终端的存储空间,提高了视频播放的灵活性。To sum up, the terminal provided by the embodiment of the present invention obtains the preset audio and video playback rules, and the audio and video playback rules are used to specify the playback mode of the first sub-audio data and the first sub-video data; acquisition and audio/video playback X first sub-audio data and Y first sub-video data corresponding to the rules, the X first sub-audio data is at least one of the pre-divided M first sub-audio data, and the Y first sub-video data It is at least one of the pre-divided N first sub-video data; X first sub-audio data and Y first sub-video data are played according to audio and video playing rules. Using the above technology implementation scheme, since the audio data and video data are independent of each other, they can be played in any arrangement and combination, so the audio or video content can be played repeatedly, reducing the network transmission time and traffic, and saving the storage space of the terminal , which improves the flexibility of video playback.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令的制造品,该指令实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instructions that implement A function specified in a process flow or processes and/or a block or blocks in a block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。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 (14)

1. a kind of playback method, which is characterized in that the method is applied to terminal, including:
Preset audio and video playing rule is obtained, the audio and video playing rule is for providing the first sub-audio data and the first son The broadcast mode of video data;
Obtain X first sub-audio datas corresponding with audio and video playing rule and Y the first sub-video numbers It is at least one of a first sub-audio datas of M divide in advance according to, the X the first sub-audio datas, the Y a the One sub-video data is at least one of N number of first sub-video data divided in advance;
The X the first sub-audio datas and the Y the first sub-video datas are carried out according to the audio and video playing rule It plays.
2. according to the method described in claim 1, it is characterized in that, the audio and video playing rule includes duration proof rule, It is described that X first sub-audio datas and Y first sub-video datas are carried out according to the audio and video playing rule It plays, specifically includes:
Broadcasting for X first sub-audio datas and Y first sub-video datas is controlled according to the duration proof rule Put the moment.
3. according to the method described in claim 1, it is characterized in that, the audio and video playing rule, which includes blank note, fills up rule Then, it is described according to the audio and video playing rule to X first sub-audio datas and Y first sub-video datas into Row plays, and specifically includes:
When the reproduction time of X first sub-audio datas is less than the reproduction time of Y first sub-video datas, root Rule is filled up according to blank note, when the blank of X first sub-audio datas and Y first sub-video datas plays Between between, note of plugging a gap, so that the reproduction time of X first sub-audio datas is equal to Y first sub-videos The reproduction time of data.
4. according to the method described in claim 1, it is characterized in that, it is described according to the audio and video playing rule to X institute It states after the first sub-audio data and Y first sub-video datas play out, the method further includes:
Predetermined registration operation and the first play operation corresponding with the predetermined registration operation are set;
When detecting the predetermined registration operation, to the X being played on first sub-audio datas and Y described first Sub-video data executes first play operation.
5. according to the method described in claim 1, it is characterized in that, the M the first sub-audio datas and N number of first son Video data is stored in server, the acquisition and regular corresponding X first sub-audio data of the audio and video playing With Y first sub-video datas, specifically include:
Corresponding X the first sub-audio datas and Y first are downloaded from the server according to the audio and video playing rule Sub-video data.
6. according to the method described in claim 5, it is characterized in that, downloading corresponding X first son from the server After audio data and Y the first sub-video datas, to X first sub-audio datas and Y first sub-videos Before data play out, the method further includes:
The X the first sub-audio datas are merged into a second audio data;
Correspondingly, described play out X first sub-audio datas and Y first sub-video datas, specially:
The second audio data and Y first sub-video datas are played out according to the audio and video playing rule.
7. according to the method described in claim 1, it is characterized in that, the M the first sub-audio datas and N number of first son Video data is stored in the terminal, the acquisition and regular corresponding X first sub-audio of the audio and video playing According to Y first sub-video datas, specifically include:
The first audio data is divided into M the first sub-audio datas according to preset audio segmentation rule, according to pre- setting video point It is N number of first sub-video data that rule, which is cut, by the first partitioning video data;The M is more than or equal to 1, and the N is more than or equal to 1;
Corresponding X the first sub-audios are obtained from the M the first sub-audio datas according to the audio and video playing rule According to obtaining corresponding Y the first sub-video datas from N number of first sub-video data.
8. a kind of terminal, which is characterized in that including acquiring unit and broadcast unit, wherein:
The acquiring unit, for obtaining preset audio and video playing rule, the audio and video playing rule is for providing first The broadcast mode of sub-audio data and the first sub-video data;It obtains and the corresponding X of audio and video playing rule a described the One sub-audio data and Y first sub-video datas, the X the first sub-audio datas are M divide in advance a the At least one of one sub-audio data, the Y the first sub-video datas are N number of first sub-video data divided in advance At least one of;
The broadcast unit, the audio and video playing rule the first son described to X for being obtained according to the acquiring unit Audio data and Y first sub-video datas play out.
9. terminal according to claim 8, which is characterized in that the audio and video playing rule includes duration proof rule, The broadcast unit, is specifically used for:
Broadcasting for X first sub-audio datas and Y first sub-video datas is controlled according to the duration proof rule Put the moment.
10. terminal according to claim 8, which is characterized in that the audio and video playing rule includes that blank note is filled up Rule, the broadcast unit, is specifically used for:
When the reproduction time of X first sub-audio datas is less than the reproduction time of Y first sub-video datas, root Rule is filled up according to blank note, when the blank of X first sub-audio datas and Y first sub-video datas plays Between between, note of plugging a gap, so that the reproduction time of X first sub-audio datas is equal to Y first sub-videos The reproduction time of data.
11. terminal according to claim 8, which is characterized in that the terminal further includes setting unit and execution unit, In:
The setting unit is used in the broadcast unit according to the audio and video playing rule to X first sub-audios After data and Y first sub-video datas play out, predetermined registration operation and corresponding with the predetermined registration operation the are set One play operation;
The execution unit, for when detecting the predetermined registration operation of setting unit setting, to the playing X first sub-audio datas and Y first sub-video datas execute first play operation.
12. terminal according to claim 8, which is characterized in that M first sub-audio datas and N number of described first Sub-video data is stored in server, and the acquiring unit is specifically used for:
Corresponding X the first sub-audio datas and Y first are downloaded from the server according to the audio and video playing rule Sub-video data.
13. terminal according to claim 12, which is characterized in that the terminal further includes combining unit, for described After acquiring unit downloads corresponding X the first sub-audio datas and Y the first sub-video datas from the server, broadcasting It puts before unit plays out X first sub-audio datas and Y first sub-video datas, by the X the One sub-audio data merges into a second audio data;
Correspondingly, the broadcast unit, is specifically used for the institute merged to the combining unit according to the audio and video playing rule It states second audio data and Y first sub-video datas plays out.
14. terminal according to claim 8, which is characterized in that M first sub-audio datas and N number of described first Sub-video data is stored in the terminal, and the acquiring unit is specifically used for:
The first audio data is divided into M the first sub-audio datas according to preset audio segmentation rule, according to pre- setting video point It is N number of first sub-video data that rule, which is cut, by the first partitioning video data;The M is more than or equal to 1, and the N is more than or equal to 1;Root Corresponding X the first sub-audio datas are obtained from the M the first sub-audio datas according to the audio and video playing rule, from institute It states and obtains corresponding Y the first sub-video datas in N number of first sub-video data.
CN201611140929.XA 2016-12-12 2016-12-12 A kind of playback method and terminal Pending CN108614829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611140929.XA CN108614829A (en) 2016-12-12 2016-12-12 A kind of playback method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611140929.XA CN108614829A (en) 2016-12-12 2016-12-12 A kind of playback method and terminal

Publications (1)

Publication Number Publication Date
CN108614829A true CN108614829A (en) 2018-10-02

Family

ID=63657648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611140929.XA Pending CN108614829A (en) 2016-12-12 2016-12-12 A kind of playback method and terminal

Country Status (1)

Country Link
CN (1) CN108614829A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153456A (en) * 2020-09-25 2020-12-29 北京达佳互联信息技术有限公司 Video data recording method and device, electronic equipment and storage medium
CN115174960A (en) * 2022-06-21 2022-10-11 咪咕文化科技有限公司 Audio and video synchronization method and device, computing equipment and storage medium

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040170392A1 (en) * 2003-02-19 2004-09-02 Lie Lu Automatic detection and segmentation of music videos in an audio/video stream
CN1527599A (en) * 1995-09-29 2004-09-08 ���µ�����ҵ��ʽ���� Multi-view connection encoding method and device for bit stream
CN1692426A (en) * 2002-11-20 2005-11-02 Lg电子有限公司 Recording medium having data structure for managing reproduction of data recorded thereon and recording and reproducing methods and apparatuses
CN101047842A (en) * 2006-03-27 2007-10-03 中兴通讯股份有限公司 Method for playing flow media audio-vedio on radio binary operation environment mobile phone
CN101242510A (en) * 2008-02-18 2008-08-13 华为技术有限公司 A playing method and realization device for dynamic audio and video menu
CN101729857A (en) * 2009-11-24 2010-06-09 中兴通讯股份有限公司 Method for accessing video service and video playing system
US20100250778A1 (en) * 2009-03-25 2010-09-30 Jonsson Karl S UPnP AV DEMUX
US20120011544A1 (en) * 2005-01-27 2012-01-12 Arthur Vaysman Viewer-customized interactive displays including dynamic video mosaic elements
CN102802002A (en) * 2012-08-14 2012-11-28 上海艾麒信息科技有限公司 Method for mobile phone to play back 3-dimensional television videos
US20130027507A1 (en) * 2007-09-30 2013-01-31 Thapa Mukund N Synchronization and Mixing of Audio and Video Streams in Network Based Video Conferencing Call Systems
CN103313122A (en) * 2012-03-09 2013-09-18 联想(北京)有限公司 Data processing method and electronic device
CN103605709A (en) * 2013-11-12 2014-02-26 天脉聚源(北京)传媒科技有限公司 Distributed audio and video processing device and distributed audio and video processing method
CN103686315A (en) * 2012-09-13 2014-03-26 深圳市快播科技有限公司 Synchronous audio and video playing method and device
CN104378675A (en) * 2014-12-08 2015-02-25 厦门雅迅网络股份有限公司 Multichannel audio-video synchronized playing processing method
CN104853239A (en) * 2015-04-27 2015-08-19 浙江生辉照明有限公司 Audio and video synchronous playback control method and system
US20150243177A1 (en) * 2014-02-24 2015-08-27 Eopin Oy Providing an and audio and/or video component for computer-based learning
CN105120331A (en) * 2015-08-21 2015-12-02 小米科技有限责任公司 Method and apparatus of processing live audio and video
CN105744334A (en) * 2016-02-18 2016-07-06 海信集团有限公司 Method and equipment for audio and video synchronization and synchronous playing
CN105959786A (en) * 2016-04-28 2016-09-21 乐视控股(北京)有限公司 Audio and video playing method and device
CN106095359A (en) * 2016-05-31 2016-11-09 深圳市小氪科技有限公司 A kind of video image free splicing and the system of segmentation

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527599A (en) * 1995-09-29 2004-09-08 ���µ�����ҵ��ʽ���� Multi-view connection encoding method and device for bit stream
CN1692426A (en) * 2002-11-20 2005-11-02 Lg电子有限公司 Recording medium having data structure for managing reproduction of data recorded thereon and recording and reproducing methods and apparatuses
US20040170392A1 (en) * 2003-02-19 2004-09-02 Lie Lu Automatic detection and segmentation of music videos in an audio/video stream
US20120011544A1 (en) * 2005-01-27 2012-01-12 Arthur Vaysman Viewer-customized interactive displays including dynamic video mosaic elements
CN101047842A (en) * 2006-03-27 2007-10-03 中兴通讯股份有限公司 Method for playing flow media audio-vedio on radio binary operation environment mobile phone
US20130027507A1 (en) * 2007-09-30 2013-01-31 Thapa Mukund N Synchronization and Mixing of Audio and Video Streams in Network Based Video Conferencing Call Systems
CN101242510A (en) * 2008-02-18 2008-08-13 华为技术有限公司 A playing method and realization device for dynamic audio and video menu
CN101242510B (en) * 2008-02-18 2012-08-08 华为技术有限公司 A playing method and realization device for dynamic audio and video menu
US20100250778A1 (en) * 2009-03-25 2010-09-30 Jonsson Karl S UPnP AV DEMUX
CN101729857A (en) * 2009-11-24 2010-06-09 中兴通讯股份有限公司 Method for accessing video service and video playing system
CN103313122A (en) * 2012-03-09 2013-09-18 联想(北京)有限公司 Data processing method and electronic device
CN102802002A (en) * 2012-08-14 2012-11-28 上海艾麒信息科技有限公司 Method for mobile phone to play back 3-dimensional television videos
CN103686315A (en) * 2012-09-13 2014-03-26 深圳市快播科技有限公司 Synchronous audio and video playing method and device
CN103605709A (en) * 2013-11-12 2014-02-26 天脉聚源(北京)传媒科技有限公司 Distributed audio and video processing device and distributed audio and video processing method
US20150243177A1 (en) * 2014-02-24 2015-08-27 Eopin Oy Providing an and audio and/or video component for computer-based learning
CN104378675A (en) * 2014-12-08 2015-02-25 厦门雅迅网络股份有限公司 Multichannel audio-video synchronized playing processing method
CN104853239A (en) * 2015-04-27 2015-08-19 浙江生辉照明有限公司 Audio and video synchronous playback control method and system
CN105120331A (en) * 2015-08-21 2015-12-02 小米科技有限责任公司 Method and apparatus of processing live audio and video
CN105744334A (en) * 2016-02-18 2016-07-06 海信集团有限公司 Method and equipment for audio and video synchronization and synchronous playing
CN105959786A (en) * 2016-04-28 2016-09-21 乐视控股(北京)有限公司 Audio and video playing method and device
CN106095359A (en) * 2016-05-31 2016-11-09 深圳市小氪科技有限公司 A kind of video image free splicing and the system of segmentation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘小晶等: "教学视频微型化改造与应用的新探索", 《中国电化教育》 *
李鹏: "Adobe Flash CS6动画设计与制作技能基础教程", 《北京希望电子出版社》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153456A (en) * 2020-09-25 2020-12-29 北京达佳互联信息技术有限公司 Video data recording method and device, electronic equipment and storage medium
CN115174960A (en) * 2022-06-21 2022-10-11 咪咕文化科技有限公司 Audio and video synchronization method and device, computing equipment and storage medium
CN115174960B (en) * 2022-06-21 2023-08-15 咪咕文化科技有限公司 Audio and video synchronization method, device, computing device and storage medium

Similar Documents

Publication Publication Date Title
EP4040285A1 (en) Wake-word detection supression
US11966438B2 (en) Queue versioning
CN104202540A (en) Method and system for generating video by using picture
CN103947221A (en) User interface display method and device using same
CN112333536A (en) Audio and video editing method, equipment and computer readable storage medium
EP3054449B1 (en) A mix instructions file for controlling a music mix, and computer program products
US9332370B2 (en) Method and apparatus for using spatial audio rendering for a parallel playback of call audio and multimedia content
CN112205079B (en) Selecting one or more light effects based on delay variation
CN103634661A (en) Method and device for implementing video on demand
CN108614829A (en) A kind of playback method and terminal
CN105025358A (en) Video playing method and device based on EPG
KR102648336B1 (en) Methods, systems, and media for providing dynamic media sessions
WO2014134998A1 (en) Application platform-level configuration method and device
CN108156498B (en) Audio and video synchronization method and device
CN105760377A (en) Information processing method and device
JP2017055379A (en) Information apparatus and distribution device
CN109862385A (en) Method, apparatus, computer readable storage medium and the terminal device of live streaming
CN117336564A (en) Lighting effect control methods, devices, electronic equipment and media for online concerts
CN106161401A (en) A kind of multimedia sharing method and relevant device and system
CN104269185B (en) Method and system for realizing sound mixing play in Java virtual machine
CN104185072A (en) Video playing method and device
CN103529937B (en) Remote sensing player system and this remote sensing player system control method
US10229712B2 (en) Method for recording a plurality of audio files
CN103986822B (en) Virtual stage special efficacy Karaoke mobile phone order programme
CN109828737A (en) Control method, terminal device and computer readable storage medium that audio plays

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
CB02 Change of applicant information

Address after: 310012 building A01, 1600 yuhangtang Road, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province

Applicant after: CHINA MOBILE (HANGZHOU) INFORMATION TECHNOLOGY Co.,Ltd.

Applicant after: China Mobile Communications Corp.

Address before: 310012, No. 14, building three, Chang Torch Hotel, No. 259, Wensanlu Road, Xihu District, Zhejiang, Hangzhou

Applicant before: CHINA MOBILE (HANGZHOU) INFORMATION TECHNOLOGY Co.,Ltd.

Applicant before: China Mobile Communications Corp.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20181002

RJ01 Rejection of invention patent application after publication