[go: up one dir, main page]

CN103997677B - A kind of player method and playback equipment of audio frequency and video - Google Patents

A kind of player method and playback equipment of audio frequency and video Download PDF

Info

Publication number
CN103997677B
CN103997677B CN201410188562.3A CN201410188562A CN103997677B CN 103997677 B CN103997677 B CN 103997677B CN 201410188562 A CN201410188562 A CN 201410188562A CN 103997677 B CN103997677 B CN 103997677B
Authority
CN
China
Prior art keywords
local
external
video data
playing
audio
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.)
Active
Application number
CN201410188562.3A
Other languages
Chinese (zh)
Other versions
CN103997677A (en
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.)
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software 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 Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201410188562.3A priority Critical patent/CN103997677B/en
Publication of CN103997677A publication Critical patent/CN103997677A/en
Application granted granted Critical
Publication of CN103997677B publication Critical patent/CN103997677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

一种音视频的播放方法及播放设备,本地播放设备与外部播放设备通过HDMI线通信连接,该方法包括:本地播放设备接收用户输入的播放方式设置指令,该指令包括播放方式设定参数;依据该参数设置音视频的播放方式,该播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式和混合播放方式;接收用户选择的播放方式;若用户选择的播放方式为混合播放方式,通过HDMI线接收外部播放设备的外部音视频数据;将本地视频数据和外部视频数据分别通过预设的不同窗口同时播放;按照与混合播放方式对应的音频分流方式将本地音频数据和外部音频数据进行分流同时播放。本发明能够提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。

An audio and video playback method and playback device, the local playback device and the external playback device are connected through HDMI cable communication, the method includes: the local playback device receives a playback mode setting instruction input by a user, and the instruction includes a playback mode setting parameter; This parameter sets the playback mode of the audio and video, which includes the independent playback mode of the local playback device, the independent playback mode of the external playback device, and the mixed playback mode; receive the playback mode selected by the user; if the playback mode selected by the user is the mixed playback mode, pass The HDMI cable receives the external audio and video data from the external playback device; plays the local video data and the external video data through different preset windows at the same time; splits the local audio data and the external audio data according to the audio split method corresponding to the mixed playback mode play simultaneously. The invention can improve the switching efficiency between playback devices, and can avoid damage to the HDMI interface.

Description

一种音视频的播放方法及播放设备Audio and video playback method and playback device

技术领域technical field

本发明涉及数字电视技术领域,尤其涉及一种音视频的播放方法及播放设备。The invention relates to the technical field of digital television, in particular to an audio and video playback method and playback device.

背景技术Background technique

目前,许多家庭同时拥有两个或者多个机顶盒终端设备,比如一个家庭同时拥有DVB播放设备、DVD播放设备和OTT(Over The Top)播放设备,其中,DVB播放设备用于接收数字电视和广播节目,可以支持几乎所有的广播和交互式多媒体应用;DVD播放设备用来播放标准电视机清晰度的电影和高质量的音乐;OTT播放设备是一种集门户网站、网络游戏、网上购物、网上银行、VoIP、即时通讯等业务于一体的互联网电视。在实践中,如果用户想将连接到电视机上的一个播放设备切换至另一个播放设备来进行音视频的播放,只能以手工插拔HDMI(High-Definition Multimedia Interface,高清晰度多媒体接口)线的方式来完成电视机与播放设备之间的切换。At present, many families have two or more set-top box terminal devices at the same time. For example, a family owns DVB playback devices, DVD playback devices and OTT (Over The Top) playback devices at the same time. Among them, DVB playback devices are used to receive digital TV and radio programs. , can support almost all broadcasting and interactive multimedia applications; DVD playback equipment is used to play standard TV-definition movies and high-quality music; OTT playback equipment is a collection of portals, online games, online shopping, online banking , VoIP, instant messaging and other services in one Internet TV. In practice, if the user wants to switch a playback device connected to the TV to another playback device to play audio and video, he can only manually plug and unplug the HDMI (High-Definition Multimedia Interface, high-definition multimedia interface) line. The way to complete the switch between the TV and the playback device.

上述以手工插拔HDMI线的方式来完成电视机与播放设备之间的切换不仅繁琐、耗时长,而且频繁的HDMI线插拔容易损伤HDMI接口,从而影响播放设备正常的输出音视频。The above-mentioned manual plugging and unplugging of the HDMI cable to complete the switch between the TV and the playback device is not only cumbersome and time-consuming, but also frequent HDMI cable plugging and unplugging is easy to damage the HDMI interface, thereby affecting the normal output audio and video of the playback device.

发明内容Contents of the invention

本发明实施例公开了一种音视频的播放方法及播放设备,能够提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。The embodiment of the invention discloses an audio and video playing method and a playing device, which can improve switching efficiency between playing devices and avoid damage to HDMI interfaces.

本发明实施例第一方面提供了一种音视频的播放方法,所述方法中本地播放设备与外部播放设备之间通过HDMI线通信连接,所述方法包括:The first aspect of the embodiments of the present invention provides a method for playing audio and video. In the method, the local playback device and the external playback device are connected through an HDMI cable. The method includes:

所述本地播放设备接收用户输入的播放方式设置指令,所述播放方式设置指令包括播放方式设定参数;The local playback device receives a playback mode setting instruction input by a user, and the playback mode setting instruction includes a playback mode setting parameter;

所述本地播放设备依据所述播放方式设定参数设置音视频的播放方式,所述播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式以及混合播放方式;The local playback device sets the playback mode of audio and video according to the playback mode setting parameters, and the playback mode includes a local playback device independent playback mode, an external playback device independent playback mode, and a mixed playback mode;

所述本地播放设备接收用户选择的所述播放方式;The local playback device receives the playback mode selected by the user;

若所述用户选择的所述播放方式为所述混合播放方式,所述本地播放设备通过所述HDMI线接收所述外部播放设备发送过来的外部音视频数据;If the playback mode selected by the user is the mixed playback mode, the local playback device receives the external audio and video data sent by the external playback device through the HDMI cable;

所述本地播放设备将本地音视频数据包括的本地视频数据和所述外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放;The local playback device plays the local video data included in the local audio and video data and the external video data included in the external audio and video data simultaneously through different preset windows;

以及,所述本地播放设备按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述外部音视频数据包括的外部音频数据进行分流同时播放。And, the local playback device splits the local audio data included in the local audio and video data and the external audio data included in the external audio and video data according to the audio splitting method corresponding to the mixed playback method and plays them simultaneously.

本发明实施例第二方面提供了一种音视频的播放设备,所述播放设备与外部播放设备之间通过HDMI线通信连接,所述播放设备包括:The second aspect of the embodiment of the present invention provides an audio and video playback device, the playback device is connected to an external playback device through an HDMI cable, and the playback device includes:

第一单元,用于接收用户输入的播放方式设置指令,所述播放方式设置指令包括播放方式设定参数;The first unit is configured to receive a playback mode setting instruction input by a user, and the playback mode setting instruction includes a playback mode setting parameter;

第二单元,用于依据所述第一单元接收的所述播放方式设定参数设置音视频的播放方式,所述播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式以及混合播放方式;The second unit is used to set the playback mode of audio and video according to the playback mode setting parameters received by the first unit, and the playback mode includes a local playback device independent playback mode, an external playback device independent playback mode, and a mixed playback mode. ;

第三单元,用于接收用户选择的所述播放方式;a third unit, configured to receive the playback mode selected by the user;

第四单元,用于当所述第三单元接收的所述用户选择的所述播放方式为所述混合播放方式时,通过所述HDMI线接收所述外部播放设备发送过来的外部音视频数据;The fourth unit is configured to receive external audio and video data sent by the external playback device through the HDMI cable when the playback mode selected by the user received by the third unit is the hybrid playback mode;

第五单元,用于将本地音视频数据包括的本地视频数据和所述第四单元接收的所述外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放;以及,按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述第四单元接收的所述外部音视频数据包括的外部音频数据进行分流同时播放。The fifth unit is used to simultaneously play the local video data included in the local audio and video data and the external video data included in the external audio and video data received by the fourth unit through different preset windows; The audio splitting mode corresponding to the mixed playback mode splits the local audio data included in the local audio and video data and the external audio data included in the external audio and video data received by the fourth unit and plays them simultaneously.

本发明实施例中,本地播放设备接收用户输入的播放方式设置指令,所述播放方式设置指令包括播放方式设定参数,并依据所述播放方式设定参数设置音视频的播放方式,所述播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式以及混合播放方式,本地播放设备接收用户选择的所述播放方式,若所述用户选择的所述播放方式为所述混合播放方式,本地播放设备通过HDMI线接收外部播放设备发送过来的外部音视频数据,进一步地,本地播放设备将本地音视频数据包括的本地视频数据和所述外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放,以及,本地播放设备按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述外部音视频数据包括的外部音频数据进行分流同时播放。通过实施本发明,用户无需手动频繁地插拔HDMI线就可以实现播放设备之间的切换,从而提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。In the embodiment of the present invention, the local playback device receives the playback mode setting instruction input by the user, and the playback mode setting instruction includes the playback mode setting parameters, and sets the audio and video playback mode according to the playback mode setting parameters. The modes include the independent playback mode of the local playback device, the independent playback mode of the external playback device, and the mixed playback mode. The local playback device receives the playback mode selected by the user. If the playback mode selected by the user is the mixed playback mode, the local The playback device receives the external audio and video data sent by the external playback device through the HDMI cable. Further, the local playback device uses the local video data included in the local audio and video data and the external video data included in the external audio and video data respectively through preset settings. Different windows of different windows are played at the same time, and the local playback device splits the local audio data included in the local audio and video data and the external audio data included in the external audio and video data according to the audio distribution method corresponding to the mixed playback method. play. By implementing the present invention, users can switch between playback devices without frequently manually plugging and unplugging HDMI cables, thereby improving switching efficiency between playback devices and avoiding damage to HDMI interfaces.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例公开的一种音视频的播放方法的流程示意图;Fig. 1 is a schematic flow chart of an audio and video playback method disclosed in an embodiment of the present invention;

图2是本发明实施例公开的另一种音视频的播放方法的流程示意图;Fig. 2 is a schematic flow chart of another audio and video playback method disclosed in the embodiment of the present invention;

图3是本发明实施例公开的一种音视频的播放方法中的本地控制器控制播放操作的方法流程示意图;Fig. 3 is a schematic flow chart of a method in which a local controller controls a playback operation in an audio and video playback method disclosed in an embodiment of the present invention;

图4是本发明实施例公开的一种通信连接的构架示意图;FIG. 4 is a schematic structural diagram of a communication connection disclosed by an embodiment of the present invention;

图5是本发明实施例公开的一种音视频的播放设备的结构示意图;Fig. 5 is a schematic structural diagram of an audio and video playback device disclosed in an embodiment of the present invention;

图6是本发明实施例公开的另一种音视频的播放设备的结构示意图;6 is a schematic structural diagram of another audio and video playback device disclosed in an embodiment of the present invention;

图7是本发明实施例公开的另一种音视频的播放设备的结构示意图。Fig. 7 is a schematic structural diagram of another audio and video playback device disclosed by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例公开了一种音视频的播放方法及播放设备,能够提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。以下分别进行详细说明。The embodiment of the invention discloses an audio and video playing method and a playing device, which can improve switching efficiency between playing devices and avoid damage to HDMI interfaces. Each will be described in detail below.

请参阅图1,图1是本发明实施例公开的一种音视频的播放方法的流程示意图。在图1所描述的音视频的播放方法中,本地播放设备上配置了多个HDMI输入端口,同时支持多个外部播放设备通过HDMI数据线与本地播放设备进行连接。本地播放设备可以是OTT播放设备、DVB播放设备、DVD播放设备以及其他能集成HDMI接口且具有音视频播放功能的设备,本发明实施例不作限定;外部播放设备也同样可以是OTT播放设备、DVB播放设备、DVD播放设备以及其他能集成HDMI接口且具有音视频播放功能的设备,本发明实施例不作限定。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of an audio and video playback method disclosed in an embodiment of the present invention. In the audio and video playback method described in FIG. 1 , multiple HDMI input ports are configured on the local playback device, and multiple external playback devices are supported to be connected to the local playback device through HDMI data cables. The local playback device can be an OTT playback device, a DVB playback device, a DVD playback device, and other devices that can integrate an HDMI interface and have an audio and video playback function, which is not limited in the embodiment of the present invention; the external playback device can also be an OTT playback device, DVB The embodiments of the present invention are not limited to playback devices, DVD playback devices, and other devices that can integrate HDMI interfaces and have audio and video playback functions.

本实施例中本地播放设备事先与外部播放设备之间通过HDMI数据线进行连接通信,如图1所示,所述方法包括:In this embodiment, the local playback device communicates with the external playback device through an HDMI data cable in advance, as shown in Figure 1, the method includes:

101、本地播放设备接收用户输入的播放方式设置指令,该播放方式设置指令包括播放方式设定参数。101. The local playback device receives a playback mode setting instruction input by a user, where the playback mode setting instruction includes playback mode setting parameters.

本发明实施例中,外部播放设备通过HDMI数据线接入本地播放设备后,用户通过操作本地播放设备,向本地播放设备输入播放方式设置指令,用户可以通过直接操作本地播放设备上的指定按钮,也可以通过本地播放设备配置的专用控制器来输入指令。In the embodiment of the present invention, after the external playback device is connected to the local playback device through the HDMI data cable, the user inputs the playback mode setting instruction to the local playback device by operating the local playback device, and the user can directly operate the designated button on the local playback device, Instructions can also be input through a dedicated controller configured on the local playback device.

102、本地播放设备依据播放方式设定参数设置音视频的播放方式,所述播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式以及混合播放方式。102. The local playback device sets the playback mode of the audio and video according to the playback mode setting parameters, and the playback mode includes the independent playback mode of the local playback device, the independent playback mode of the external playback device, and the mixed playback mode.

作为一种可选的实施方式,所述本地播放设备独立播放方式是指本地播放设备仅选择本地播放设备的音视频作为输出源进行独立播放,且切断外部播放设备的输入通道。As an optional implementation, the independent playback mode of the local playback device means that the local playback device only selects the audio and video of the local playback device as an output source for independent playback, and cuts off the input channel of the external playback device.

作为一种可选的实施方式,所述外部播放设备独立播放方式是指本地播放设备仅选择通过HDMI数据线传入的外部播放设备的音视频作为输出源进行独立播放,且关闭本地播放设备的信号输出。As an optional implementation, the independent playback mode of the external playback device refers to that the local playback device only selects the audio and video of the external playback device imported through the HDMI data cable as the output source for independent playback, and turns off the audio and video of the local playback device. signal output.

作为一种可选的实施方式,所述混合播放方式包括方式一,本地播放设备同时选择本地播放设备的视频和通过HDMI数据线传入的外部播放设备的视频进行混合同时播放,以及,本地播放设备选择本地播放设备的音频进行直接播放,同时通过HDMI数据线传入的外部播放设备的音频利用本地播放设备中集成的蓝牙驱动接口进行传送播放。或者,As an optional implementation manner, the mixed playback method includes method 1, the local playback device simultaneously selects the video of the local playback device and the video of the external playback device imported through the HDMI data cable for mixed and simultaneous playback, and local playback The device selects the audio of the local playback device for direct playback, and at the same time, the audio of the external playback device imported through the HDMI data cable is transmitted and played using the Bluetooth driver interface integrated in the local playback device. or,

方式二,本地播放设备同时选择本地播放设备的视频和通过HDMI数据线传入的外部播放设备的视频进行混合同时播放,以及,本地播放设备选择通过HDMI数据线传入的外部播放设备的音频进行直接播放,同时将本地播放设备的音频利用本地播放设备中集成的蓝牙驱动接口进行传送播放。Method 2: The local playback device simultaneously selects the video of the local playback device and the video of the external playback device imported through the HDMI data cable for mixed and simultaneous playback, and the local playback device selects the audio of the external playback device imported through the HDMI data cable for playback. Play directly, and at the same time, use the Bluetooth driver interface integrated in the local playback device to transmit and play the audio of the local playback device.

一个实施例中,根据用户输入的播放方式设定参数设置本地播放设备的播放方式。例如,用户输入的参数为1,则后台程序设置对应的播放方式为本地播放设备独立播放方式,用户输入的参数为2,则后台程序设置对应的播放方式为外部播放设备独立播放方式,用户输入的参数为3,则后台程序设置对应的播放方式为混合播放方式中的方式一,用户输入的参数为4,则后台程序设置对应的播放方式为混合播放方式中的方式二。上述用户输入的播放方式设定参数所对应的播放方式还有许多种情况,本发明实施例不作限定。In one embodiment, the playback mode of the local playback device is set according to the playback mode setting parameters input by the user. For example, if the parameter input by the user is 1, the corresponding playback mode of the background program setting is the independent playback mode of the local playback device; if the parameter input by the user is 2, the corresponding playback mode of the background program setting is the independent playback mode of the external playback device, and the user input If the parameter is 3, then the background program sets the corresponding playback mode as mode 1 in the hybrid playback mode, and if the parameter input by the user is 4, then the background program sets the corresponding playback mode as mode 2 in the hybrid playback mode. There are many other situations of playing modes corresponding to the playing mode setting parameters input by the user, which are not limited in this embodiment of the present invention.

103、本地播放设备接收用户选择的播放方式。103. The local playback device receives the playback mode selected by the user.

本发明实施例中,本地播放设备再次接收用户的输入操作,同样用户可以选择直接操作本地播放设备上的指定按钮,也可以选择本地播放设备配置的专用控制器来进行输入,本地播放设备根据用户输入的参数,找到步骤102在后台程序中已经设置好的与用户输入的参数相对应的播放方式。In the embodiment of the present invention, the local playback device receives the user's input operation again. Similarly, the user can choose to directly operate the designated button on the local playback device, or select a dedicated controller configured by the local playback device to input. For the input parameters, find the playback mode corresponding to the parameters input by the user that has been set in the background program in step 102.

104、若用户选择的播放方式为混合播放方式,本地播放设备通过HDMI线接收外部播放设备发送过来的外部音视频数据。104. If the playback mode selected by the user is a mixed playback mode, the local playback device receives the external audio and video data sent by the external playback device through the HDMI cable.

本发明实施例中,当步骤103中用户输入的参数对应的播放方式为混合播放方式时,本地播放设备通过HDMI线实时接收外部播放设备发送过来的外部音视频数据,其中,混合播放方式可以是混合播放方式中的方式一,也可以是混合播放方式中的方式二。In the embodiment of the present invention, when the playback mode corresponding to the parameter input by the user in step 103 is a mixed playback mode, the local playback device receives the external audio and video data sent by the external playback device in real time through the HDMI cable, wherein the mixed playback mode can be Mode 1 in the hybrid playback mode may also be mode 2 in the hybrid playback mode.

本发明实施例中,选择将HDMI接口作为外部播放设备和本地播放设备的接入方式,外部播放设备通过HDMI数据线接入到本地播放设备的HDMI接口,在本地播放设备可以很准确、方便的获取到外部播放设备通过HDMI接口传输过来的数据内容。HDMI是首个支持在单线缆上传输,不经过压缩的全数字高清晰度、多声道音频和智能格式与控制命令数据的数字接口,可以快速的传输大容量的数据,且传送的内容是纯数字的格式,利于高清音视频节目的承载和传输,方便应用方对数据进行提取和处理。HDMI采用的是TMDS(TimeMinimized Differential Signal)最小化传输差分信号传输技术,TMDS采用的是差分传动方式,它利用2个引脚间电压差来传送信号。每一个HDMI连接,都包含了3个用于传输数据的TMDS传输通道,还有1个独立的TMDS时钟通道,以保证传输时所需的统一时序。在一个时钟周期内,每个TMDS通道都能传送10bit的数据流。而这10bit数据,由若干种不同的编码格式构成。外部终端通过HDMI传输过来的数据,将视频信号分成R、G、B、H、V五种信号,并采用TMDS技术进行编码,通过三个传输通道分别将R、G、B三种原色进行传输,而表征位置信息的H、V信号安排在B信号通道中进行传输,R、G信号通道多余的位置用来传输音频信号。In the embodiment of the present invention, the HDMI interface is selected as the access mode of the external playback device and the local playback device, and the external playback device is connected to the HDMI interface of the local playback device through the HDMI data line, and the local playback device can be very accurate and convenient. Obtain the data content transmitted by the external playback device through the HDMI interface. HDMI is the first digital interface that supports transmission on a single cable, uncompressed full digital high-definition, multi-channel audio and intelligent format and control command data, which can quickly transmit large-capacity data, and the transmitted content It is a purely digital format, which is conducive to the carrying and transmission of high-definition audio and video programs, and is convenient for the application side to extract and process data. HDMI uses TMDS (TimeMinimized Differential Signal) to minimize the transmission of differential signal transmission technology. TMDS uses a differential transmission method, which uses the voltage difference between two pins to transmit signals. Each HDMI connection includes 3 TMDS transmission channels for data transmission, and 1 independent TMDS clock channel to ensure the unified timing required for transmission. In one clock cycle, each TMDS channel can transmit 10bit data flow. And this 10bit data is composed of several different encoding formats. The data transmitted by the external terminal through HDMI divides the video signal into five signals of R, G, B, H, and V, and uses TMDS technology to encode, and transmits the three primary colors of R, G, and B through three transmission channels , while the H and V signals representing position information are arranged to be transmitted in the B signal channel, and the redundant positions of the R and G signal channels are used to transmit audio signals.

基于上述知识,本发明对音视频数据包的构成方式做了如下分析,播放设备所播放的图像是由若干张连续的图片构成,而每张图像又是由大量的像素点构成,而像素点的实际个数,具体跟片源的实际分辨率有关,比如,对于一个1280*720格式的片源,其每张视频图片,都是由1280*720个像素点构成,而每个像素点又是由R、G、B三种原色构成,如果每种原色用1个字节进行表示,那么在终端系统显示内存分布上,则每个像素点占用三个字节(Byte)的空间,即占用24个bit(位)空间,我们通过电视机看到的视频图像,就是电视机设备中电子枪将这些不同颜色的像素点集合进行发射到荧光屏幕的结果。Based on the above knowledge, the present invention analyzes the composition of the audio and video data packets as follows. The images played by the playback device are composed of several continuous pictures, and each image is composed of a large number of pixels, and the pixels The actual number is related to the actual resolution of the film source. For example, for a film source in 1280*720 format, each video picture is composed of 1280*720 pixels, and each pixel is It is composed of three primary colors of R, G, and B. If each primary color is represented by 1 byte, then in the display memory distribution of the terminal system, each pixel occupies three bytes (Byte) of space, that is Occupying 24 bit (bit) space, the video image we see through the TV is the result of the electron gun in the TV equipment launching the collection of pixels of these different colors to the fluorescent screen.

本发明实施例中,本地播放设备实时接收外部播放设备通过三个TMDS通道传输过来的数据,并且依据TMDS时钟通道携带的信息内容,判定当前TMDS数据通道中所传输的内容种类,这些种类分为:视频数据、音频数据和控制数据等。根据得到的这些信息,从中解析得到每张视频图像中所包含的各个像素点的内容信息以及当前的音频信息数据。In the embodiment of the present invention, the local playback device receives the data transmitted by the external playback device through the three TMDS channels in real time, and determines the type of content transmitted in the current TMDS data channel according to the information content carried by the TMDS clock channel. These types are divided into : Video data, audio data and control data, etc. According to the obtained information, the content information of each pixel contained in each video image and the current audio information data are obtained by analyzing it.

105、本地播放设备将本地音视频数据包括的本地视频数据和外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放,以及,按照与混合播放方式对应的音频分流方式将本地音视频数据包括的本地音频数据和外部音视频数据包括的外部音频数据进行分流同时播放。105. The local playback device plays the local video data included in the local audio and video data and the external video data included in the external audio and video data simultaneously through different preset windows, and, according to the audio splitting method corresponding to the mixed playback method, the local The local audio data included in the audio and video data and the external audio data included in the external audio and video data are split and played simultaneously.

本发明实施例中,所述本地播放设备将本地音视频数据包括的本地视频数据和外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放,包括:In the embodiment of the present invention, the local playback device plays the local video data included in the local audio and video data and the external video data included in the external audio and video data simultaneously through different preset windows, including:

所述本地播放设备获取用户输入的窗口设定参数,并依据所述窗口设定参数分别设置用于播放所述本地视频数据以及用于播放所述外部视频数据的窗口的位置和大小;The local playback device obtains the window setting parameters input by the user, and sets the positions and sizes of the windows for playing the local video data and the windows for playing the external video data according to the window setting parameters;

所述本地播放设备将所述本地视频数据进行压缩,获得压缩后的适合于所述用于播放所述本地视频数据的窗口的大小的本地压缩视频数据;The local playback device compresses the local video data to obtain compressed local compressed video data suitable for the size of the window used to play the local video data;

所述本地播放设备将所述外部视频数据进行压缩,获得压缩后的适合于所述用于播放所述外部视频数据的窗口的大小的外部压缩视频数据;The local playback device compresses the external video data to obtain compressed external compressed video data suitable for the size of the window used to play the external video data;

所述本地播放设备将所述本地压缩视频数据和所述外部压缩视频数据分别通过所述用于播放所述本地视频数据的窗口以及所述用于播放所述外部视频数据的窗口同时播放。The local playback device plays the local compressed video data and the external compressed video data simultaneously through the window for playing the local video data and the window for playing the external video data respectively.

作为一种可选的实施方式,当所述混合播放方式为混合播放方式中的方式一时,所述本地播放设备按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述外部音视频数据包括的外部音频数据进行分流同时播放,包括:As an optional implementation manner, when the mixed playback mode is Mode 1 in the mixed playback mode, the local playback device divides the audio and video data included in the local audio and video data according to the audio distribution mode corresponding to the mixed playback mode. The local audio data and the external audio data included in the external audio and video data are split and played simultaneously, including:

所述本地播放设备将所述本地音频数据通过所述本地播放设备进行播放,同时将所述外部音频数据通过蓝牙设备进行播放。The local playback device plays the local audio data through the local playback device, and simultaneously plays the external audio data through the Bluetooth device.

作为一种可选的实施方式,当所述混合播放方式为混合播放方式中的方式二时,所述本地播放设备按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述外部音视频数据包括的外部音频数据进行分流同时播放,包括:As an optional implementation manner, when the mixed playback mode is Mode 2 in the mixed playback mode, the local playback device includes the local audio and video data according to the audio splitting mode corresponding to the mixed playback mode. The local audio data and the external audio data included in the external audio and video data are split and played simultaneously, including:

所述本地播放设备将所述外部音频数据通过所述本地播放设备进行播放,同时将所述本地音频数据通过蓝牙设备进行播放。The local playback device plays the external audio data through the local playback device, and at the same time plays the local audio data through a Bluetooth device.

通过实施图1所描述的方法,用户无需手动频繁地插拔HDMI线就可以实现播放设备之间的切换,从而提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。By implementing the method described in FIG. 1 , the user can switch between playback devices without manually plugging and unplugging HDMI cables frequently, thereby improving the switching efficiency between playback devices and avoiding damage to the HDMI interface.

请参阅图2,图2是本发明实施例公开的另一种音视频的播放方法的流程示意图。本地播放设备事先与外部播放设备之间通过HDMI数据线进行连接通信,如图2所示,包括如下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another audio and video playback method disclosed in an embodiment of the present invention. The local playback device communicates with the external playback device through an HDMI data cable in advance, as shown in Figure 2, including the following steps:

201、本地播放设备接收用户输入的播放方式设置指令,该播放方式设置指令包括播放方式设定参数。201. The local playback device receives a playback mode setting instruction input by a user, where the playback mode setting instruction includes playback mode setting parameters.

作为一种可选的实施方式,上述接收用户输入的播放方式设置指令可以是接收用户操作本地播放设备上的指定按钮发送的指令,也可以是接收用户操作本地播放设备配置的专用遥控器上的指定按钮发送的指令。As an optional implementation, the above instruction for setting the playback mode received by the user may be an instruction sent by the user operating a designated button on the local playback device, or an instruction sent by the user operating the special remote control configured by the local playback device. Specifies the command sent by the button.

202、本地播放设备依据播放方式设定参数设置音视频的播放方式,所述播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式以及混合播放方式。202. The local playback device sets an audio and video playback mode according to the playback mode setting parameters, and the playback mode includes a local playback device independent playback mode, an external playback device independent playback mode, and a mixed playback mode.

步骤202具体可以采用上面实施例提供的步骤102,此处不用重复说明。Step 202 may specifically adopt step 102 provided in the above embodiment, and no repeated description is required here.

203、本地播放设备接收用户选择的播放方式。203. The local playback device receives the playback mode selected by the user.

作为一种可选的实施方式,上述用户选择的播放方式直接关系到后续操作流程,例如,当用户选择的播放方式为本地播放设备独立播放方式时,则步骤205将不再需要,此时步骤207中只选择本地播放设备的音视频数据进行播放;当用户选择的播放方式为外部播放设备独立播放方式时,则步骤207中只选择步骤205中通过HDMI线发送过来的外部播放设备的外部音视频数据进行播放;当用户选择的播放方式为混合播放方式时,则进行后续步骤。As an optional implementation, the above-mentioned playback mode selected by the user is directly related to the subsequent operation process. For example, when the playback mode selected by the user is the independent playback mode of the local playback device, then step 205 is no longer needed. In 207, only the audio and video data of the local playback device is selected to play; when the playback mode selected by the user is the independent playback mode of the external playback device, then in step 207, only the external audio of the external playback device sent by the HDMI cable in step 205 is selected. The video data is played; when the playback mode selected by the user is a mixed playback mode, subsequent steps are performed.

204、本地播放设备分别建立本地视频数据缓冲区、本地音频数据缓冲区、外部视频数据缓冲区以及外部音频数据缓冲区。204. The local playback device respectively establishes a local video data buffer, a local audio data buffer, an external video data buffer, and an external audio data buffer.

作为一种可选的实施方式,此步骤放在步骤201之前或步骤202之前或步骤203之前均可行,上述建立的本地视频数据缓冲区用于存放本地播放设备中的视频数据,本地音频数据缓冲区用于存放本地播放设备中的音频数据,外部视频数据缓冲区用于存放通过HDMI数据线传送过来的外部播放设备的外部视频数据,以及外部音频数据缓冲区用于存放通过HDMI数据线传送过来的外部播放设备的外部音频数据。当然,也可以用本地音频数据缓冲区来存放通过HDMI数据线传送过来的外部播放设备的外部音频数据,以及用本地视频数据缓冲区来存放通过HDMI数据线传送过来的外部播放设备的外部视频数据。上述本地音视频数据和外部音视频数据存放的区域因个人喜好而定,本发明实施例不作限定。As an optional implementation, this step is feasible before step 201 or before step 202 or before step 203. The above-mentioned local video data buffer is used to store the video data in the local playback device, and the local audio data is buffered. The area is used to store the audio data in the local playback device, the external video data buffer is used to store the external video data of the external playback device transmitted through the HDMI data cable, and the external audio data buffer is used to store the external audio data transmitted through the HDMI data cable The external audio data of the external playback device. Of course, the local audio data buffer can also be used to store the external audio data of the external playback device transmitted through the HDMI data cable, and the local video data buffer can be used to store the external video data of the external playback device transmitted through the HDMI data cable . The storage areas of the above-mentioned local audio and video data and external audio and video data are determined by personal preferences, and are not limited in this embodiment of the present invention.

205、若用户选择的播放方式为混合播放方式,本地播放设备通过HDMI线接收外部播放设备发送过来的外部音视频数据。205. If the playback mode selected by the user is a mixed playback mode, the local playback device receives the external audio and video data sent by the external playback device through the HDMI cable.

本发明实施例中,本地播放设备获取到外部播放设备的音视频数据的具体流程为:先通过步骤204建立好缓存区,然后通过HDMI驱动提供的接口,读取到TMDS时钟通道携带的信息内容,共由10位数据构成,解析这10位数据的内容,据此判定出当前TMDS另外三个数据通道正在传输的数据类型;通过HDMI驱动提供的接口,依次读取到三个TMDS数据通道(每个通道由10位数据构成)对应的数据接收缓存区。In the embodiment of the present invention, the specific process for the local playback device to obtain the audio and video data of the external playback device is: firstly establish a buffer area through step 204, and then read the information content carried by the TMDS clock channel through the interface provided by the HDMI driver , consisting of 10-bit data in total, analyze the content of the 10-bit data, and determine the data type currently being transmitted by the other three data channels of TMDS; through the interface provided by the HDMI driver, read the three TMDS data channels in sequence ( Each channel consists of 10 bits of data) corresponding to the data receiving buffer.

206、本地播放设备将外部音视频数据包括的外部视频数据和外部音频数据分别缓存到外部视频数据缓冲区和所述外部音频数据缓冲区,以及,将本地音视频数据包括的本地视频数据和本地音频数据分别缓存到本地视频数据缓冲区和本地音频数据缓冲区。206. The local playback device buffers the external video data and external audio data included in the external audio and video data into the external video data buffer and the external audio data buffer respectively, and buffers the local video data included in the local audio and video data with the local Audio data is buffered into local video data buffer and local audio data buffer respectively.

本发明实施例中,此处是将步骤205中获取到的三个TMDS数据通道中数据按照类型分别保存至对应的缓存区中。In the embodiment of the present invention, here, the data in the three TMDS data channels obtained in step 205 are respectively stored in corresponding buffer areas according to types.

207、本地播放设备将本地音视频数据包括的本地视频数据和外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放,以及,按照与混合播放方式对应的音频分流方式将本地音视频数据包括的本地音频数据和外部音视频数据包括的外部音频数据进行分流同时播放。207. The local playback device plays the local video data included in the local audio and video data and the external video data included in the external audio and video data simultaneously through different preset windows, and, according to the audio distribution method corresponding to the mixed playback method, the local The local audio data included in the audio and video data and the external audio data included in the external audio and video data are split and played simultaneously.

本发明实施例中,上述窗口是根据用户选择的显示窗口布局方式,通过计算转换成本地播放和外部播放时窗口的位置和宽高大小,其结果采用像素个数进行表示。现举例说明,比如某用户选择外部播放设备和本地播放设备混合播放时,采用显示窗口大小平分的方式,根据这个选定结果,首先得到本地播放设备的显示缓存的宽高参数,分别用Wd、Hd表示,然后,通过下述计算方法确定两个播放设备的显示窗口坐标:Xsl=0;Ysl=0;Wsl=Wd/2;Hsl=Hd/2;Xse=Wd/2;Yse=Hd/2;Wse=Wd/2;Hse=Hd/2。其中本地播放设备显示窗口坐标,用Xsl、Ysl、Wsl、Hsl表示,外部播放设备显示窗口坐标,用Xse、Yse、Wse、Hse表示。In the embodiment of the present invention, the above-mentioned window is based on the display window layout mode selected by the user, and the position, width and height of the window during conversion into local playback and external playback are calculated through calculation, and the result is represented by the number of pixels. Let me illustrate with an example. For example, when a user selects an external playback device and a local playback device for mixed playback, the size of the display window is divided equally. According to the selection result, firstly, the width and height parameters of the display buffer of the local playback device are obtained, respectively using Wd, Hd means, then, determine the display window coordinates of the two playback devices by the following calculation method: X sl =0; Y sl =0; W sl =W d /2; H sl =H d /2; X se =W d /2; Y se =H d /2; W se =W d /2; H se =H d /2. Wherein, the local playback device displays window coordinates, represented by X sl , Y sl , W sl , H sl , and the external playback device displays window coordinates, represented by X se , Y se , W se , H se .

现在以混合播放方式中的方式一为例进行具体说明,根据上述用户选择的窗口布局方式,设定好本地播放设备播放节目时占用的窗口位置和宽高,分别用Xsl、Ysl、Wsl、Hsl进行表示,以及外部播放设备播放节目时占用的窗口位置和宽高,分别用Xse、Yse、Wse、Hse进行表示,(这些设定参数都已经转换成以像素为单位进行表示);并获取到本地播放设备正在播放的片源实际宽、高参数,用Wrl、Hrl表示,以及外部播放设备播放的片源实际分辨率参数,用Wre、Hre表示;同时获取到本地播放设备显示缓存区的分辨率参数,用Wd、Hd表示;根据这些参数,通过计算,得到本地播放设备和外部播放设备在本地播放设备同时实现播放节目时,其图像宽高压缩比值。本地播放设备播放时的图像宽、高压缩比用Kwl、Khl表示,其计算方法为:Kwl=Wsl/Wrl,Khl=Hsl/Hrl,外部播放设备输出到本地播放设备播放时的图像宽高压缩比用Kwe和Khe表示,其计算方法为:Kwe=Wse/Wre,Khe=Hse/HreNow take method 1 of the mixed playback mode as an example to explain in detail. According to the window layout mode selected by the user above, set the window position, width and height occupied by the local playback device when playing the program, and use X sl , Y sl , W sl , H sl , and the window position, width and height occupied by the external playback device when playing the program, respectively expressed by X se , Y se , W se , H se , (these setting parameters have been converted into pixel-based unit); and obtain the actual width and height parameters of the film source being played by the local playback device, represented by W rl and H rl , and the actual resolution parameters of the film source played by the external playback device, represented by W re and H re Obtain the resolution parameters of the display buffer area of the local playback device at the same time, represented by W d , H d ; According to these parameters, by calculation, obtain the local playback device and the external playback device when the local playback device realizes playing the program at the same time, its image Aspect compression ratio value. The image width and height compression ratio when played by the local playback device are represented by K wl and K hl , the calculation method is: K wl = W sl /W rl , K hl = H sl /H rl , the external playback device outputs to the local playback The image width-to-height compression ratio during device playback is represented by K we and K he , and the calculation method is: K we =W se /W re , K he =H se /H re .

将上述得到的宽高压缩比作为输入参数,调用本地播放系统中的图像压缩接口,分别对本地视频数据缓存区和外部视频数据缓存区中的数据进行图像压缩处理,将得到的本地播放设备的视频图像压缩数据,按照用户设定的播放窗口参数Xsl、Ysl、Wsl、Hsl填充到本地播放设备的视频显示缓存区对应的位置和区域内,并将得到的外部播放设备的视频图像压缩数据,按照用户设定的播放窗口参数Xse、Yse、Wse、Hse填充到本地播放设备的视频显示缓存区对应的位置和区域内。本地播放系统读取视频显示缓存区中的各个像素点信息,将其转换成HDMI接口定义的数据格式,通过HDMI数据线输出到电视画面中,从而实现了两个或多个播放设备的视频混合输出效果。读取外部音频数据缓存区的内容,按照蓝牙协议要求的数据格式,将数据进行组包后,调用蓝牙驱动接口,将音频数据通过蓝牙设备发送出去,从而实现外部播放设备所播放的节目声音,通过蓝牙向用户进行传送。Using the above obtained width-height compression ratio as an input parameter, call the image compression interface in the local playback system, and perform image compression processing on the data in the local video data buffer area and the external video data buffer area respectively, and the obtained local playback device The video image compression data is filled into the corresponding position and area of the video display buffer area of the local playback device according to the playback window parameters X sl , Y sl , W sl , H sl set by the user, and the obtained video of the external playback device The image compression data is filled into the corresponding position and area of the video display buffer area of the local playback device according to the playback window parameters X se , Y se , W se , and H se set by the user. The local playback system reads the information of each pixel in the video display buffer area, converts it into the data format defined by the HDMI interface, and outputs it to the TV screen through the HDMI data cable, thus realizing the video mixing of two or more playback devices output effect. Read the content of the external audio data buffer area, according to the data format required by the Bluetooth protocol, after grouping the data, call the Bluetooth driver interface, and send the audio data through the Bluetooth device, so as to realize the program sound played by the external playback device, to the user via bluetooth.

通过实施图2所描述的方法,用户无需手动频繁地插拔HDMI线就可以实现播放设备之间的切换,从而提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。By implementing the method described in FIG. 2 , the user can switch between playback devices without manually plugging and unplugging HDMI cables frequently, thereby improving the switching efficiency between playback devices and avoiding damage to the HDMI interface.

请参阅图3,图3是本发明实施例公开的一种音视频的播放方法中的本地控制器控制播放操作的方法流程示意图。完成图3所示方法的前提是已经能实现图2所示的音视频的播放方法,如图3所示,包括如下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a method in which a local controller controls a playback operation in an audio and video playback method disclosed in an embodiment of the present invention. The premise of completing the method shown in Figure 3 is that the playback method of audio and video shown in Figure 2 can be realized, as shown in Figure 3, including the following steps:

301、本地播放设备接收用户通过本地控制器输入的播放控制指令。301. The local playback device receives a playback control instruction input by a user through a local controller.

302、播放控制指令的输入焦点是否位于本地播放设备用于播放外部视频数据的窗口内。302. Whether the input focus of the playback control instruction is located in the window used by the local playback device to play external video data.

作为一种可选的实施方式,若用户通过本地控制器输入的播放控制指令的焦点对准的是本地播放设备用于播放外部视频数据的窗口时,则执行步骤303,否则,执行步骤306。As an optional implementation manner, if the focus of the playback control instruction input by the user through the local controller is on the window of the local playback device for playing external video data, then step 303 is performed; otherwise, step 306 is performed.

303、以该播放控制指令包括的本地控制器的物理键值为依据,从本地播放设备存储的本地控制器的物理键值和逻辑键值的映射表中,识别出与本地遥控器的物理键值对应的逻辑键值。303. Based on the physical key value of the local controller included in the playback control instruction, identify the physical key associated with the local remote controller from the mapping table of physical key values and logical key values of the local controller stored in the local playback device. The logical key value corresponding to the value.

本发明实施例中,在本地播放设备模块内部对用户按键的定义和处理方法为,对每个控制键值,定义一个用户逻辑键值和物理键值,其中逻辑键值是向应用功能模块进行传送的,物理键值则是控制器上每个按键所具有的唯一的红外信息编码,通过控制器驱动模块,发送给接收设备。本地播放设备接收用户操作控制器时其内置的发射模块传入过来的按键物理键值,并将物理键值转换成逻辑键值,通过对每个按键物理键值转换成对应的逻辑键值,本地播放设备建立和存储本地控制器的物理键值和逻辑键值的映射表,因此只要接收到本地控制器的物理键值就可以通过该映射表识别出对应的逻辑键值。In the embodiment of the present invention, the definition and processing method of the user key inside the local playback device module is as follows: for each control key, define a user logical key and physical key, wherein the logical key is carried out to the application function module The transmitted physical key value is the unique infrared information code of each button on the controller, which is sent to the receiving device through the controller driver module. The local playback device receives the physical key value of the button passed in by its built-in transmitter module when the user operates the controller, and converts the physical key value into a logical key value. By converting the physical key value of each button into a corresponding logical key value, The local playback device establishes and stores the mapping table of the physical key value and the logical key value of the local controller, so as long as the physical key value of the local controller is received, the corresponding logical key value can be identified through the mapping table.

304、从本地播放设备存储的本地控制器的逻辑键值和外部控制器的物理键值的关系映射表中,识别出与所述本地遥控器的物理键值对应的逻辑键值相对应的外部控制器的物理键值。304. From the relationship mapping table of the logical key value of the local controller and the physical key value of the external controller stored in the local playback device, identify the external controller corresponding to the logical key value corresponding to the physical key value of the local remote controller. The physical key value of the controller.

本发明实施例中,在本地播放设备通过人机交互界面呈现一张包括控制器常用功能的学习按键图像布局,其图像上的按键名称和位置与实际使用的控制器实物相符。通过本地控制器可以在图像显示区域中的每个键值图标之间进行移动和选定,当用户操作本地播放设备专用的本地控制器选定某个按键(比如向上方向键)后,画面提示用户操作外部播放设备所配置的外部遥控器上的相应位置上的按键,当用户点击外部控制器上的向上方向键后,本地播放设备内的红外接收模块,便可捕获到其发射的物理键值,将得到的外部控制器的物理按键和本地控制器的用户逻辑键值形成映射表,存储在本地播放设备中。当本地播放设备检测到用户输入焦点在本地播放设备用于播放外部视频数据的窗口内,并发出操控外部播放设备按键请求时,通过调取存储的键值映射表,即可识别出该按键请求对应的外部控制器的物理键值。In the embodiment of the present invention, the local playback device presents a learning button image layout including commonly used functions of the controller through the human-computer interaction interface, and the names and positions of the buttons on the image are consistent with the actual controller used. Each key-value icon in the image display area can be moved and selected through the local controller. When the user operates the local controller dedicated to the local playback device to select a key (such as the up arrow key), the screen prompts The user operates the button on the corresponding position on the external remote control configured by the external playback device. When the user clicks the upward direction key on the external controller, the infrared receiving module in the local playback device can capture the physical key emitted by it. value, the physical keys of the external controller and the user logic key values of the local controller are formed into a mapping table, and stored in the local playback device. When the local playback device detects that the user input focus is in the window where the local playback device is used to play external video data, and sends a key request to manipulate the external playback device, the key request can be identified by calling the stored key-value mapping table The physical key value of the corresponding external controller.

305、本地播放设备将所述外部控制器的物理键值发射到外部播放设备,以控制外部播放设备做出相应的播放控制操作,所述播放控制操作包括音量增强、音量减小、频道更换。305. The local playback device transmits the physical key value of the external controller to the external playback device, so as to control the external playback device to perform corresponding playback control operations, where the playback control operations include volume increase, volume decrease, and channel change.

本发明实施例中,本地播放设备上安装有一个红外发射头装置,通过该红外发射头将步骤305中识别到的外部控制器的物理键值发射到外部播放设备,以实现用本地控制器控制外部播放设备做出相应的播放控制操作,如暂停、换台、音量增强、音量减小等操作。In the embodiment of the present invention, an infrared emitter device is installed on the local playback device, and the physical key value of the external controller identified in step 305 is transmitted to the external playback device through the infrared emitter, so as to realize the control by the local controller. The external playback device performs corresponding playback control operations, such as pausing, changing channels, increasing volume, decreasing volume, etc.

306、本地播放设备直接响应该播放控制指令包括的本地控制器的物理键值以做出相应的播放控制操作。306. The local playback device directly responds to the physical key value of the local controller included in the playback control instruction to perform a corresponding playback control operation.

作为一种可选的实施方式,当步骤302中所述的播放控制指令的输入焦点不在本地播放设备用于播放外部视频数据的窗口区域内时,则本地播放设备接收该播放控制指令包括的本地控制器的物理键值并做出相应的播放控制操作,如暂停、换台、音量增强、音量减小等操作。As an optional implementation, when the input focus of the playback control instruction described in step 302 is not within the window area used by the local playback device to play external video data, the local playback device receives the local The physical key value of the controller and make corresponding playback control operations, such as pause, change channels, volume up, volume down, etc.

通过实施图3所描述的方法,本地播放设备通过接收本地控制器发出的信号,实现了借用本地播放设备转发外部播放设备可以接收识别的物理键值,间接的实现通过本地控制器,实现对外部播放设备的操作控制,从而大大减少了用户频繁更换控制器的繁琐动作,提升用户体验感,且大大提高了播放设备的易用方便性。By implementing the method described in Figure 3, the local playback device realizes the use of the local playback device to forward the physical key value that the external playback device can receive and identify by receiving the signal sent by the local controller. The operation control of the playback device greatly reduces the cumbersome actions of the user to frequently replace the controller, improves the user experience, and greatly improves the ease of use and convenience of the playback device.

请参阅图4,图4是本发明实施例公开的一种通信连接的构架示意图。在图4所示的通信连接构架图中,本地播放设备可以是具有n+1个HDMI接口的播放设备,其中的n个HDMI接口可以同时和n个外部播放设备进行连接通信,其中n为大于等于1的整数。如图4所示,本地播放设备可以通过HDMI数据线与外部播放设备1建立通信连接,同时本地播放设备也可以通过HDMI数据线与外部播放设备2建立通信连接,以此类推,本地播放设备同时可以通过HDMI数据线与外部播放设备n建立通信连接;显示设备也是通过HDMI数据线与本地播放设备进行通信连接。在图4所示的通信连接构架图中,本地播放设备,外部播放设备以及显示设备均具有HDMI接口,因此,本地播放设备可以同时通过HDMI数据线与一个或多个外部播放设备建立通信连接,从而将外部播放设备的音视频数据通过HDMI数据线传输至本地播放设备;而本地播放设备也通过HDMI数据线与一个或多个显示设备建立连接通信,从而将本地播放设备要播放的音视频数据通过HDMI数据线显示出来。Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a communication connection disclosed by an embodiment of the present invention. In the communication connection architecture diagram shown in Figure 4, the local playback device can be a playback device with n+1 HDMI interfaces, and the n HDMI interfaces can communicate with n external playback devices at the same time, where n is greater than An integer equal to 1. As shown in Figure 4, the local playback device can establish a communication connection with the external playback device 1 through the HDMI data cable, and at the same time, the local playback device can also establish a communication connection with the external playback device 2 through the HDMI data cable, and so on. A communication connection can be established with the external playback device n through the HDMI data cable; the display device is also connected with the local playback device through the HDMI data cable. In the communication connection architecture diagram shown in Figure 4, the local playback device, the external playback device and the display device all have HDMI interfaces, so the local playback device can establish a communication connection with one or more external playback devices through the HDMI data cable at the same time, Thus, the audio and video data of the external playback device is transmitted to the local playback device through the HDMI data cable; and the local playback device also establishes a connection and communication with one or more display devices through the HDMI data cable, so that the audio and video data to be played by the local playback device Displayed through the HDMI data cable.

上述本地播放设备和外部播放设备可以是任何具备播放和存储功能的设备,例如:机顶盒、DVD播放机、平板电脑、电子阅读器、电视游乐器、数字音响、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视等具有HDMI接口的设备。The above-mentioned local playback device and external playback device can be any device with playback and storage functions, such as: set-top box, DVD player, tablet computer, e-reader, video game console, digital audio, personal computer (Personal Computer, PC), Laptops, car equipment, Internet TV and other devices with HDMI interface.

通过实施图4所描述的构架,用户无需手动频繁地插拔HDMI线就可以实现播放设备之间的切换,从而提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。By implementing the architecture described in Figure 4, users can switch between playback devices without manually plugging and unplugging HDMI cables frequently, thereby improving the switching efficiency between playback devices and avoiding damage to the HDMI interface.

请参阅图5,图5是本发明实施例公开的一种音视频的播放设备的结构示意图。图5所描述的音视频的播放设备与外部播放设备之间通过HDMI数据线进行连接通信。如图5所示,该播放设备包括:Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of an audio and video playback device disclosed in an embodiment of the present invention. The audio and video playback device described in FIG. 5 is connected and communicated with an external playback device through an HDMI data cable. As shown in Figure 5, the playback device includes:

第一单元501,用于接收用户输入的播放方式设置指令,所述播放方式设置指令包括播放方式设定参数。The first unit 501 is configured to receive a playback mode setting instruction input by a user, and the playback mode setting instruction includes a playback mode setting parameter.

本发明实施例中,外部播放设备通过HDMI数据线接入该播放设备后,用户通过操作该播放设备,向该播放设备输入播放方式设置指令,用户可以通过直接操作该播放设备上的指定按钮,也可以通过该播放设备配置的专用控制器来输入指令。In the embodiment of the present invention, after an external playback device is connected to the playback device through an HDMI data cable, the user inputs a playback mode setting instruction to the playback device by operating the playback device, and the user can directly operate the specified button on the playback device, Instructions can also be input through a dedicated controller configured on the playback device.

第二单元502,用于依据所述第一单元501接收的所述播放方式设定参数设置音视频的播放方式,所述播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式以及混合播放方式。The second unit 502 is used to set the playback mode of audio and video according to the playback mode setting parameters received by the first unit 501, and the playback mode includes a local playback device independent playback mode, an external playback device independent playback mode, and a mixed playback mode. play method.

作为一种可选的实施方式,所述本地播放设备独立播放方式是指该播放设备仅选择该播放设备的音视频作为输出源进行独立播放,且切断外部播放设备的输入通道。As an optional implementation, the independent playback mode of the local playback device means that the playback device only selects the audio and video of the playback device as an output source for independent playback, and cuts off the input channel of the external playback device.

作为一种可选的实施方式,所述外部播放设备独立播放方式是指该播放设备仅选择通过HDMI数据线传入的外部播放设备的音视频作为输出源进行独立播放,且关闭该播放设备自身的信号输出。As an optional implementation, the independent playback mode of the external playback device means that the playback device only selects the audio and video of the external playback device imported through the HDMI data cable as the output source for independent playback, and closes the playback device itself signal output.

作为一种可选的实施方式,所述混合播放方式包括方式一,该播放设备同时选择自身的视频和通过HDMI数据线传入的外部播放设备的视频进行混合同时播放,以及,该播放设备选择自身的音频进行直接播放,同时通过HDMI数据线传入的外部播放设备的音频利用该播放设备中集成的蓝牙驱动接口进行传送播放。或者,As an optional implementation, the mixed playback mode includes mode 1, the playback device simultaneously selects its own video and the video of the external playback device imported through the HDMI data cable to mix and play simultaneously, and the playback device selects Its own audio is directly played, and the audio of the external playback device imported through the HDMI data cable is transmitted and played by the Bluetooth driver interface integrated in the playback device. or,

方式二,该播放设备同时选择自身的视频和通过HDMI数据线传入的外部播放设备的视频进行混合同时播放,以及,该播放设备选择通过HDMI数据线传入的外部播放设备的音频进行直接播放,同时将自身的音频利用该播放设备中集成的蓝牙驱动接口进行传送播放。Method 2: The playback device simultaneously selects its own video and the video of the external playback device imported through the HDMI data cable for mixed and simultaneous playback, and the playback device selects the audio of the external playback device imported through the HDMI data cable for direct playback , and at the same time use the Bluetooth driver interface integrated in the playback device to transmit and play its own audio.

一个实施例中,本单元根据用户输入的播放方式设定参数设置该播放设备的播放方式。例如,用户输入的参数为1,则后台程序设置对应的播放方式为本地播放设备独立播放方式,用户输入的参数为2,则后台程序设置对应的播放方式为外部播放设备独立播放方式,用户输入的参数为3,则后台程序设置对应的播放方式为混合播放方式中的方式一,用户输入的参数为4,则后台程序设置对应的播放方式为混合播放方式中的方式二。上述用户输入的播放方式设定参数所对应的播放方式还有许多种情况,本发明实施例不作限定。In one embodiment, the unit sets the playback mode of the playback device according to the playback mode setting parameters input by the user. For example, if the parameter input by the user is 1, the corresponding playback mode of the background program setting is the independent playback mode of the local playback device; if the parameter input by the user is 2, the corresponding playback mode of the background program setting is the independent playback mode of the external playback device, and the user input If the parameter is 3, then the background program sets the corresponding playback mode as mode 1 in the hybrid playback mode, and if the parameter input by the user is 4, then the background program sets the corresponding playback mode as mode 2 in the hybrid playback mode. There are many other situations of playing modes corresponding to the playing mode setting parameters input by the user, which are not limited in this embodiment of the present invention.

第三单元503,用于接收用户选择的所述播放方式。The third unit 503 is configured to receive the playback mode selected by the user.

本发明实施例中,本单元接收用户的输入操作,同样用户可以选择直接操作该播放设备上的指定按钮,也可以选择该播放设备配置的专用控制器来进行输入,该播放设备根据用户输入的参数,找到所述第二单元502在后台程序中已经设置好的与用户输入的参数相对应的播放方式。In the embodiment of the present invention, this unit receives the user's input operation, and the user can also choose to directly operate the specified button on the playback device, or select the dedicated controller configured by the playback device to input, and the playback device will input according to the user's input. Parameters, find the playback mode that has been set by the second unit 502 in the background program and corresponds to the parameters input by the user.

第四单元504,用于当所述第三单元503接收的所述用户选择的所述播放方式为所述混合播放方式时,通过所述HDMI线接收所述外部播放设备发送过来的外部音视频数据。The fourth unit 504 is configured to receive the external audio and video sent by the external playback device through the HDMI cable when the playback mode selected by the user received by the third unit 503 is the mixed playback mode data.

本发明实施例中,当所述第三单元503中用户输入的参数对应的播放方式为混合播放方式时,本单元通过HDMI线实时接收外部播放设备发送过来的外部音视频数据,其中,混合播放方式可以是混合播放方式中的方式一,也可以是混合播放方式中的方式二。In the embodiment of the present invention, when the playback mode corresponding to the parameter input by the user in the third unit 503 is a mixed playback mode, this unit receives the external audio and video data sent by the external playback device in real time through the HDMI cable, wherein the mixed playback The mode may be mode 1 in the hybrid playback mode, or mode 2 in the hybrid playback mode.

第五单元505,用于将本地音视频数据包括的本地视频数据和所述第四单元504接收的所述外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放;以及,按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述第四单元504接收的所述外部音视频数据包括的外部音频数据进行分流同时播放。The fifth unit 505 is configured to simultaneously play the local video data included in the local audio and video data and the external video data included in the external audio and video data received by the fourth unit 504 through different preset windows; and, The local audio data included in the local audio and video data and the external audio data included in the external audio and video data received by the fourth unit 504 are split and played simultaneously according to the audio splitting manner corresponding to the mixed playback manner.

本发明实施例中,本单元将本地音视频数据包括的本地视频数据和外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放,包括:In the embodiment of the present invention, this unit plays the local video data included in the local audio and video data and the external video data included in the external audio and video data respectively through different preset windows, including:

获取用户输入的窗口设定参数,并依据所述窗口设定参数分别设置用于播放所述本地视频数据以及用于播放所述外部视频数据的窗口的位置和大小;Obtaining the window setting parameters input by the user, and respectively setting the positions and sizes of the windows for playing the local video data and the external video data according to the window setting parameters;

将所述本地视频数据进行压缩,获得压缩后的适合于所述用于播放所述本地视频数据的窗口的大小的本地压缩视频数据;Compressing the local video data to obtain compressed local compressed video data suitable for the size of the window used to play the local video data;

将所述外部视频数据进行压缩,获得压缩后的适合于所述用于播放所述外部视频数据的窗口的大小的外部压缩视频数据;Compressing the external video data to obtain compressed external compressed video data suitable for the size of the window for playing the external video data;

将所述本地压缩视频数据和所述外部压缩视频数据分别通过所述用于播放所述本地视频数据的窗口以及所述用于播放所述外部视频数据的窗口同时播放。Playing the local compressed video data and the external compressed video data simultaneously through the window for playing the local video data and the window for playing the external video data respectively.

作为一种可选的实施方式,当所述混合播放方式为混合播放方式中的方式一时,所述按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述外部音视频数据包括的外部音频数据进行分流同时播放,包括:As an optional implementation manner, when the mixed playback mode is Mode 1 in the mixed playback mode, the local audio data included in the local audio and video data is included in the audio splitting mode corresponding to the mixed playback mode and the external audio data included in the external audio and video data are shunted and played simultaneously, including:

本单元将所述本地音频数据通过该播放设备进行播放,同时将所述外部音频数据通过蓝牙设备进行播放。The unit plays the local audio data through the playback device, and simultaneously plays the external audio data through the bluetooth device.

作为一种可选的实施方式,当所述混合播放方式为混合播放方式中的方式二时,所述按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述外部音视频数据包括的外部音频数据进行分流同时播放,包括:As an optional implementation manner, when the mixed playback mode is Mode 2 in the mixed playback mode, the local audio included in the local audio and video data is The data and the external audio data included in the external audio and video data are shunted and played simultaneously, including:

本单元将所述外部音频数据通过该播放设备进行播放,同时将所述本地音频数据通过蓝牙设备进行播放。The unit plays the external audio data through the playback device, and at the same time plays the local audio data through the bluetooth device.

通过实施图5所描述的播放设备,用户无需手动频繁地插拔HDMI线就可以实现播放设备之间的切换,从而提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。By implementing the playback device described in FIG. 5 , the user can switch between playback devices without manually plugging and unplugging HDMI cables frequently, thereby improving the switching efficiency between playback devices and avoiding damage to the HDMI interface.

请参阅图6,图6是本发明实施例公开的另一种音视频的播放设备的结构示意图。本发明设备实施例可以用于执行本发明方法实施例一至三实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例一、实施例二和实施例三。其中,图6所示的音视频的播放设备是由图5所示的音视频的播放设备进行优化得到的。图6所示的音视频的播放设备中除了包括图5所示的音视频的播放设备包括的单元之外,还可以包括:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of another audio and video playback device disclosed in an embodiment of the present invention. The device embodiment of the present invention can be used to execute the methods realized by the method embodiments 1 to 3 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the embodiment of the present invention. One, embodiment two and embodiment three. Wherein, the audio and video playback device shown in FIG. 6 is obtained by optimizing the audio and video playback device shown in FIG. 5 . In the playback device of audio and video shown in Figure 6, in addition to comprising the unit that the playback device of audio and video shown in Figure 5 comprises, can also include:

第六单元506,用于在所述第四单元504通过所述HDMI线接收所述外部播放设备发送过来的外部音视频数据之前,建立本地视频数据缓冲区、本地音频数据缓冲区、外部视频数据缓冲区以及外部音频数据缓冲区。The sixth unit 506 is used to establish a local video data buffer, a local audio data buffer, and an external video data buffer before the fourth unit 504 receives the external audio and video data sent by the external playback device through the HDMI cable. buffer as well as external audio data buffers.

作为一种可选的实施方式,本单元放在第一单元501之前或第二单元502之前或第三单元503之前均可行,上述建立的本地视频数据缓冲区用于存放该播放设备中自身的视频数据,本地音频数据缓冲区用于存放该播放设备中自身的音频数据,外部视频数据缓冲区用于存放通过HDMI数据线传送过来的外部播放设备的外部视频数据,以及外部音频数据缓冲区用于存放通过HDMI数据线传送过来的外部播放设备的外部音频数据。当然,也可以用本地音频数据缓冲区来存放通过HDMI数据线传送过来的外部播放设备的外部音频数据,以及用本地视频数据缓冲区来存放通过HDMI数据线传送过来的外部播放设备的外部视频数据。上述本地音视频数据和外部音视频数据存放的区域因个人喜好而定,本发明实施例不作限定。As an optional implementation, it is feasible for this unit to be placed before the first unit 501 or before the second unit 502 or before the third unit 503, and the local video data buffer established above is used to store its own video data in the playback device. Video data, the local audio data buffer is used to store the audio data in the playback device itself, the external video data buffer is used to store the external video data of the external playback device transmitted through the HDMI data cable, and the external audio data buffer is used It is used to store the external audio data of the external playback device transmitted through the HDMI data cable. Of course, the local audio data buffer can also be used to store the external audio data of the external playback device transmitted through the HDMI data cable, and the local video data buffer can be used to store the external video data of the external playback device transmitted through the HDMI data cable . The storage areas of the above-mentioned local audio and video data and external audio and video data are determined by personal preferences, and are not limited in this embodiment of the present invention.

第七单元507,用于在所述第四单元504通过所述HDMI线接收所述外部播放设备发送过来的外部音视频数据之后,将所述外部音视频数据包括的外部视频数据和外部音频数据分别缓存到所述第六单元506建立的所述外部视频数据缓冲区和所述外部音频数据缓冲区;以及,将所述本地音视频数据包括的本地视频数据和本地音频数据分别缓存到所述第六单元506建立的所述本地视频数据缓冲区和所述本地音频数据缓冲区。The seventh unit 507 is configured to, after the fourth unit 504 receives the external audio and video data sent by the external playback device through the HDMI cable, convert the external video data and external audio data included in the external audio and video data to respectively buffering the external video data buffer and the external audio data buffer established by the sixth unit 506; and buffering the local video data and local audio data included in the local audio and video data into the The sixth unit 506 establishes the local video data buffer and the local audio data buffer.

第八单元508,用于接收用户通过本地控制器输入的播放控制指令,若所述播放控制指令的输入焦点位于所述用于播放所述外部视频数据的窗口内时,则以所述播放控制指令包括的所述本地遥控器的物理键值为依据,从存储的所述本地控制器的物理键值和逻辑键值的映射表中,识别出与所述本地遥控器的物理键值对应的逻辑键值,以及从存储的所述本地控制器的逻辑键值和所述外部控制器的物理键值的关系映射表中,识别出与所述本地遥控器的物理键值对应的逻辑键值相对应的所述外部控制器的物理键值。The eighth unit 508 is configured to receive a playback control instruction input by the user through the local controller, and if the input focus of the playback control instruction is located in the window for playing the external video data, then use the playback control instruction According to the physical key value of the local remote controller included in the instruction, from the stored mapping table of physical key value and logical key value of the local controller, identify the key corresponding to the physical key value of the local remote controller a logical key value, and identifying the logical key value corresponding to the physical key value of the local remote controller from the stored relationship mapping table between the logical key value of the local controller and the physical key value of the external controller The corresponding physical key value of the external controller.

第九单元509,用于将所述第八单元识别出的所述外部控制器的物理键值发射到所述外部播放设备,以控制所述外部播放设备做出相应的播放控制操作,所述播放控制操作包括音量增强、音量减小、频道更换。The ninth unit 509 is configured to transmit the physical key value of the external controller identified by the eighth unit to the external playback device, so as to control the external playback device to perform a corresponding playback control operation, the Playback control operations include volume up, volume down, and channel change.

本发明实施例中,本单元是该播放设备上安装的一个红外发射头装置,通过该红外发射头将所述第八单元508中识别到的外部控制器的物理键值发射到外部播放设备,以实现用本地控制器控制外部播放设备做出相应的播放控制操作,如暂停、换台、音量增强、音量减小等操作。In the embodiment of the present invention, this unit is an infrared emitting head device installed on the playback device, through which the physical key value of the external controller identified in the eighth unit 508 is transmitted to the external playback device, In order to use the local controller to control the external playback device to make corresponding playback control operations, such as pause, change channel, volume increase, volume decrease and other operations.

上述播放设备可以是任何具备播放和存储功能的设备,例如:机顶盒、DVD播放机、平板电脑、电子阅读器、电视游乐器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视等具有HDMI接口的设备。The above-mentioned playback device can be any device with playback and storage functions, such as: set-top box, DVD player, tablet computer, e-reader, video game console, personal computer (Personal Computer, PC), notebook computer, vehicle-mounted equipment, Internet TV and other devices with HDMI interface.

通过实施图6所描述的播放设备,用户无需手动频繁地插拔HDMI线就可以实现播放设备之间的切换,从而提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。此外,该播放设备通过接收本地控制器发出的信号,实现了借用本地播放设备转发外部播放设备可以接收识别的物理键值,间接的实现通过本地控制器,实现对外部播放设备的操作控制,从而大大减少了用户频繁更换控制器的繁琐动作,提升用户体验感,且大大提高了播放设备的易用方便性。By implementing the playback device described in FIG. 6 , users can switch between playback devices without manually plugging and unplugging HDMI cables frequently, thereby improving the switching efficiency between playback devices and avoiding damage to the HDMI interface. In addition, by receiving the signal sent by the local controller, the playback device realizes the use of the local playback device to forward the physical key value that the external playback device can receive and recognize, and indirectly realizes the operation control of the external playback device through the local controller, thereby It greatly reduces the cumbersome actions of the user to frequently replace the controller, improves the user experience, and greatly improves the ease of use and convenience of the playback device.

请参阅图7,图7是本发明实施例公开的另一种音视频的播放设备的结构示意图。本发明设备实施例可以用于执行本发明方法实施例一至三实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例一、实施例二和实施例三。Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of another audio and video playback device disclosed in an embodiment of the present invention. The device embodiment of the present invention can be used to execute the methods realized by the method embodiments 1 to 3 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the embodiment of the present invention. One, embodiment two and embodiment three.

该播放设备可以是OTT播放设备、DVB播放设备、DVD播放机、个人电脑、车载设备等具有HDMI接口的设备,图7示出的是本发明实施例公开的一种音视频的播放设备的部分结构的示意图。以下以OTT播放设备为例,如图7所示,该播放设备包括处理器700、RF(RadioFrequency,射频)模块701、电源板702、Wifi模块703、HDMI接口704、存储器705、视频模块706、音频模块707、蓝牙驱动模块708、红外接收模块709、红外发射模块710等部件。本领域技术人员可以理解,图7中示出的OTT播放设备的结构并不构成对OTT播放设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The playback device can be an OTT playback device, a DVB playback device, a DVD player, a personal computer, a vehicle-mounted device, etc., which have an HDMI interface. Figure 7 shows a part of an audio and video playback device disclosed in an embodiment of the present invention Schematic diagram of the structure. Take the OTT playback device as an example below, as shown in Figure 7, the playback device includes a processor 700, an RF (Radio Frequency, radio frequency) module 701, a power board 702, a Wifi module 703, an HDMI interface 704, a memory 705, a video module 706, Audio module 707, Bluetooth driver module 708, infrared receiving module 709, infrared emitting module 710 and other components. Those skilled in the art can understand that the structure of the OTT playback device shown in FIG. Part placement.

下面结合图7对OTT播放设备的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the OTT playback device in conjunction with Figure 7:

处理器700是OTT播放设备的控制中心,里面集成了CPU、解码器、解复用器、图形处理器等模块,利用各种接口和线路连接整个OTT播放设备的各个部分,通过运行软件程序或模块来执行OTT播放设备的各种功能和处理数据。The processor 700 is the control center of the OTT playback device, which integrates modules such as a CPU, a decoder, a demultiplexer, and a graphics processor, and uses various interfaces and lines to connect various parts of the entire OTT playback device. By running software programs or module to perform various functions of the OTT playback device and process data.

RF模块701可用于在音视频的播放过程中接收和发送信号,将接收到的射频信号输入处理器700中进行解调处理。通常,RF模块包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。The RF module 701 can be used to receive and send signals during audio and video playback, and input the received radio frequency signals into the processor 700 for demodulation processing. Generally, the RF module includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier, low noise amplifier), a duplexer, and the like.

电源板702用于给OTT播放设备的各个模块进行供电,电源可以通过电源管理系统与处理器700逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power board 702 is used to supply power to each module of the OTT playback device, and the power supply can be logically connected to the processor 700 through the power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system.

Wifi模块703可以连接家庭中的无线网络,使用户可以浏览网页、资源共享、网络购物和访问流式媒体等,虽然图7示出了Wifi模块703,但是可以理解的是,其并不属于音视频的播放设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The Wifi module 703 can be connected to the wireless network in the home, so that the user can browse the web, share resources, shop online and access streaming media, etc. Although FIG. 7 shows the Wifi module 703, it can be understood that it does not belong to the audio system. The necessary configuration of the video playback device can be completely omitted according to needs within the scope of not changing the essence of the invention.

HDMI接口704用于将该播放设备和外部播放设备,以及用于将该播放设备和显示设备进行连接通信,从而进行音视频数据的传输。The HDMI interface 704 is used for connecting and communicating the playback device with an external playback device, and for connecting and communicating with the playback device and a display device, so as to transmit audio and video data.

存储器705可用于存储软件程序以及模块,处理器700通过运行存储在存储器705中的软件程序以及模块,从而执行OTT播放设备的各种功能应用以及数据处理。存储器705可主要包括存储程序区和存储数据区,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如播放方式设置功能、声音播放功能和视频播放功能等)等;存储数据区可用于存储该播放设备自身的音视频数据以及外部播放设备传输过来的外部音视频数据,并将存储的数据交给处理器700进行处理。The memory 705 can be used to store software programs and modules, and the processor 700 executes various functional applications and data processing of the OTT playback device by running the software programs and modules stored in the memory 705 . The memory 705 can mainly include a storage program area and a storage data area, and the storage program area can store an operating system, at least one application program required by a function (such as a playback mode setting function, a sound playback function, and a video playback function, etc.); the storage data area It can be used to store the audio and video data of the playback device itself and the external audio and video data transmitted from the external playback device, and deliver the stored data to the processor 700 for processing.

视频模块706用于对视频进行滤波等操作,并通过视频输出端口输出至显示设备进行播放显示。The video module 706 is used to perform operations such as filtering on the video, and output it to a display device through a video output port for playback and display.

音频模块707用于对音频进行去噪、放大等操作,并通过音频输出设备进行输出。The audio module 707 is used to perform operations such as denoising and amplifying audio, and output it through an audio output device.

蓝牙驱动模块708用于将该播放设备的音频数据或外部设备的音频数据通过蓝牙设备进行输出播放。The Bluetooth driver module 708 is used to output and play the audio data of the playback device or the audio data of the external device through the Bluetooth device.

红外接收模块709用于接收用户操作该播放设备的专用遥控器发射出的每个按键所具有的唯一的红外信息编码,并发送给处理器700进行处理。The infrared receiving module 709 is used to receive the unique infrared information code of each key transmitted by the special remote control of the playback device operated by the user, and send it to the processor 700 for processing.

红外发射模块710用于将该播放设备的专用遥控器发射出的物理键值对应的逻辑键值相对应的外部播放设备的遥控器的物理键值发射至外部播放设备,因此外部播放设备可以根据该键值信息完成相应的播放操作。The infrared transmitting module 710 is used to transmit the physical key value of the remote controller of the external playback device corresponding to the logical key value corresponding to the physical key value emitted by the dedicated remote controller of the playback device to the external playback device, so the external playback device can be based on The key-value information completes the corresponding playback operation.

本发明实施例中,该播放设备接收用户输入的播放方式设置指令,所述播放方式设置指令包括播放方式设定参数,依据所述播放方式设定参数设置音视频的播放方式,所述播放方式包括本地播放设备独立播放方式、外部播放设备独立播放方式以及混合播放方式,并接收用户选择的所述播放方式;若所述用户选择的所述播放方式为所述混合播放方式,该播放设备通过所述HDMI线接收所述外部播放设备发送过来的外部音视频数据,将本地音视频数据包括的本地视频数据和所述外部音视频数据包括的外部视频数据分别通过预先设定的不同窗口同时播放,以及,按照与所述混合播放方式对应的音频分流方式将所述本地音视频数据包括的本地音频数据和所述外部音视频数据包括的外部音频数据进行分流同时播放。因此,用户无需手动频繁地插拔HDMI线就可以实现播放设备之间的切换,从而提升播放设备之间的切换效率,且能避免对HDMI接口造成损伤。此外,该播放设备通过接收本地控制器发出的信号,实现了借用本地播放设备转发外部播放设备可以接收识别的物理键值,间接的实现通过本地控制器,实现对外部播放设备的操作控制,从而大大减少了用户频繁更换控制器的繁琐动作,提升用户体验感,且大大提高了播放设备的易用方便性。In the embodiment of the present invention, the playback device receives a playback mode setting instruction input by the user, the playback mode setting instruction includes a playback mode setting parameter, and the audio and video playback mode is set according to the playback mode setting parameter, and the playback mode Including the independent playback mode of the local playback device, the independent playback mode of the external playback device and the mixed playback mode, and receiving the playback mode selected by the user; if the playback mode selected by the user is the mixed playback mode, the playback device passes The HDMI cable receives the external audio and video data sent by the external playback device, and simultaneously plays the local video data included in the local audio and video data and the external video data included in the external audio and video data respectively through different preset windows , and, according to the audio distribution method corresponding to the mixed playback method, the local audio data included in the local audio and video data and the external audio data included in the external audio and video data are distributed and played simultaneously. Therefore, the user can switch between playback devices without frequently manually plugging and unplugging HDMI cables, thereby improving the switching efficiency between playback devices and avoiding damage to the HDMI interface. In addition, by receiving the signal sent by the local controller, the playback device realizes the use of the local playback device to forward the physical key value that the external playback device can receive and recognize, and indirectly realizes the operation control of the external playback device through the local controller, thereby It greatly reduces the cumbersome actions of the user to frequently replace the controller, improves the user experience, and greatly improves the ease of use and convenience of the playback device.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random AccessMemory,简称RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM for short).

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (12)

1. A method for playing audio and video is characterized in that in the method, a local playing device and an external playing device are in communication connection through an HDMI (high-definition multimedia interface) line, and the method comprises the following steps:
the local playing equipment receives a playing mode setting instruction input by a user, wherein the playing mode setting instruction comprises playing mode setting parameters;
the local playing device sets the playing mode of the audio and video according to the playing mode setting parameter, wherein the playing mode comprises a local playing device independent playing mode, an external playing device independent playing mode and a mixed playing mode;
the local playing equipment receives the playing mode selected by the user;
if the playing mode selected by the user is the mixed playing mode, the local playing device receives external audio and video data sent by the external playing device through the HDMI line;
the local playing device simultaneously plays local video data included in local audio and video data and external video data included in the external audio and video data through different preset windows respectively;
and the local playing device divides local audio data included by the local audio and video data and external audio data included by the external audio and video data according to an audio dividing mode corresponding to the mixed playing mode and plays the local audio data and the external audio and video data simultaneously, wherein the local playing device plays the local audio data through the local playing device and plays the external audio data through the Bluetooth device, or the local playing device plays the external audio data through the local playing device and plays the local audio data through the Bluetooth device.
2. The method as claimed in claim 1, wherein before the local playback device receives external audio/video data sent by the external playback device via the HDMI cable, the method further comprises:
the local playing device respectively establishes a local video data buffer area, a local audio data buffer area, an external video data buffer area and an external audio data buffer area;
after the local playing device receives the external audio and video data sent by the external playing device through the HDMI cable, the method further includes:
the local playing device caches external video data and external audio data included in the external audio and video data to the external video data buffer area and the external audio data buffer area respectively;
and the local playing device caches local video data and local audio data included in the local audio and video data to the local video data buffer area and the local audio data buffer area respectively.
3. The method of claim 1, wherein the method further comprises:
and if the playing mode selected by the user is the independent playing mode of the local playing equipment, only the local audio and video data is selected to be independently played.
4. The method of claim 1, wherein the method further comprises:
and if the playing mode selected by the user is the independent playing mode of the external playing equipment, only the external audio and video data is selected to be independently played.
5. The method of claim 1, wherein the local playing device simultaneously plays the local video data included in the local audio/video data and the external video data included in the external audio/video data through different preset windows respectively, and the method includes:
the local playing equipment acquires window setting parameters input by a user, and respectively sets the position and the size of a window for playing the local video data and the external video data according to the window setting parameters;
the local playing device compresses the local video data to obtain compressed local compressed video data which is suitable for the size of the window for playing the local video data;
the local playing device compresses the external video data to obtain compressed external compressed video data which is suitable for the size of the window for playing the external video data;
and the local playing equipment simultaneously plays the local compressed video data and the external compressed video data through the window for playing the local video data and the window for playing the external video data respectively.
6. The method of any one of claims 1 to 5, further comprising:
the local playing device receives a playing control instruction input by a user through a local controller, if an input focus of the playing control instruction is located in the window for playing the external video data, a logical key value corresponding to the physical key value of the local remote controller is identified from a stored mapping table of the physical key value and the logical key value of the local controller according to the physical key value of the local controller included in the playing control instruction, and a physical key value of the external controller corresponding to the logical key value corresponding to the physical key value of the local remote controller is identified from a stored relational mapping table of the logical key value of the local controller and the physical key value of the external controller;
the local playing device transmits the physical key value of the external controller to the external playing device so as to control the external playing device to make corresponding playing control operations, wherein the playing control operations comprise volume enhancement, volume reduction and channel change.
7. The utility model provides a playback equipment of audio frequency and video which characterized in that, through HDMI line communication connection between playback equipment and the external playback equipment, playback equipment includes:
the device comprises a first unit, a second unit and a third unit, wherein the first unit is used for receiving a playing mode setting instruction input by a user, and the playing mode setting instruction comprises playing mode setting parameters;
the second unit is used for setting the playing mode of the audio and video according to the playing mode setting parameter received by the first unit, wherein the playing mode comprises a local playing device independent playing mode, an external playing device independent playing mode and a mixed playing mode;
a third unit, configured to receive the play mode selected by the user;
a fourth unit, configured to receive, through the HDMI cable, external audio/video data sent by the external playback device when the playback mode selected by the user and received by the third unit is the hybrid playback mode;
the fifth unit is used for simultaneously playing local video data included in the local audio and video data and external video data included in the external audio and video data received by the fourth unit through different preset windows respectively; according to an audio distribution mode corresponding to the mixed playing mode, local audio data included in the local audio and video data and external audio data included in the external audio and video data received by the fourth unit are distributed and played simultaneously;
the fifth unit is specifically configured to play the local audio data through the playback device, and play the external audio data through the bluetooth device;
the fifth unit is specifically configured to play the external audio data through the playback device, and play the local audio data through the bluetooth device.
8. The playback device of claim 7, wherein the playback device further comprises:
a sixth unit, configured to establish a local video data buffer, a local audio data buffer, an external video data buffer, and an external audio data buffer before the fourth unit receives, through the HDMI line, external audio and video data sent by the external playback device;
a seventh unit, configured to buffer, after the fourth unit receives, through the HDMI line, external audio and video data sent by the external playback device, external video data and external audio data included in the external audio and video data to the external video data buffer and the external audio data buffer established by the sixth unit, respectively; and caching local video data and local audio data included in the local audio and video data into the local video data buffer area and the local audio data buffer area established by the sixth unit respectively.
9. The playback device of claim 7, wherein if the playback mode received by the third unit and selected by the user is the local playback device independent playback mode, the fifth unit is further configured to select only the local audio/video data for independent playback.
10. The playback device of claim 7, wherein if the playback mode received by the third unit and selected by the user is the external playback device independent playback mode, the fifth unit is further configured to select only the external audio/video data for independent playback.
11. The playback device of claim 7, wherein the specific manner in which the fifth unit simultaneously plays the local video data included in the local audio/video data and the external video data included in the external audio/video data received by the fourth unit through the preset different windows respectively is as follows:
the fifth unit is specifically configured to acquire a window setting parameter input by a user, and set a position and a size of a window for playing the local video data and the external video data according to the window setting parameter; compressing the local video data to obtain compressed local compressed video data which is suitable for the size of the window for playing the local video data; compressing the external video data to obtain compressed external compressed video data suitable for the size of the window for playing the external video data; and simultaneously playing the local compressed video data and the external compressed video data through the window for playing the local video data and the window for playing the external video data respectively.
12. The playback device according to any one of claims 7 to 11, wherein the playback device further comprises:
an eighth unit, configured to receive a play control instruction input by a user through a local controller, if an input focus of the play control instruction is located in the window for playing the external video data, identify, according to a physical key value of the local remote controller included in the play control instruction, a logical key value corresponding to the physical key value of the local remote controller from a stored mapping table of the physical key value and the logical key value of the local controller, and identify, from a stored mapping table of a relationship between the logical key value of the local controller and the physical key value of the external controller, a physical key value of the external controller corresponding to the logical key value corresponding to the physical key value of the local remote controller;
a ninth unit, configured to transmit the physical key value of the external controller identified by the eighth unit to the external playback device, so as to control the external playback device to perform a corresponding playback control operation, where the playback control operation includes volume increase, volume decrease, and channel change.
CN201410188562.3A 2014-05-06 2014-05-06 A kind of player method and playback equipment of audio frequency and video Active CN103997677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410188562.3A CN103997677B (en) 2014-05-06 2014-05-06 A kind of player method and playback equipment of audio frequency and video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410188562.3A CN103997677B (en) 2014-05-06 2014-05-06 A kind of player method and playback equipment of audio frequency and video

Publications (2)

Publication Number Publication Date
CN103997677A CN103997677A (en) 2014-08-20
CN103997677B true CN103997677B (en) 2017-04-05

Family

ID=51311661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410188562.3A Active CN103997677B (en) 2014-05-06 2014-05-06 A kind of player method and playback equipment of audio frequency and video

Country Status (1)

Country Link
CN (1) CN103997677B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744344B (en) * 2014-12-11 2019-10-01 深圳Tcl数字技术有限公司 Play control method and system
CN109803151B (en) * 2017-11-16 2022-02-08 腾讯科技(深圳)有限公司 Multimedia data stream switching method and device, storage medium and electronic device
CN108012169B (en) * 2017-11-30 2019-02-01 百度在线网络技术(北京)有限公司 A kind of interactive voice throws screen method, apparatus and server
CN109005453B (en) * 2018-08-03 2022-03-08 合肥联宝信息技术有限公司 Video stream playing control method and electronic equipment
CN119277100A (en) * 2024-01-31 2025-01-07 荣耀终端有限公司 Video decoding method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1533177A (en) * 1998-09-16 2004-09-29 Actv��˾ Receiver for simultaneously first and second video frenquency signal
CN1791198A (en) * 2004-12-17 2006-06-21 Tcl王牌电子(深圳)有限公司 TV set apparatus capable of simultaneously receiving and playing multi-channel programs
WO2007079672A1 (en) * 2006-01-06 2007-07-19 Tencent Technology (Shenzhen) Company Limited System for receiving and displaying network tv programs and method thereof
CN101094363A (en) * 2006-06-19 2007-12-26 格得电子工业股份有限公司 Integrated high-resolution multimedia digital transmission interface (HDMI) switcher
CN201001163Y (en) * 2007-01-22 2008-01-02 青岛海信电器股份有限公司 TV set having multi-path HDMI interfaces
CN203289740U (en) * 2013-05-04 2013-11-13 杨楚运 Circuit board

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941575B2 (en) * 2001-06-26 2005-09-06 Digeo, Inc. Webcam-based interface for initiating two-way video communication and providing access to cached video
US20060107294A1 (en) * 2004-11-16 2006-05-18 Rivlin Ze Ev Integrated video processing circuit and method for providing a displayed visual user interface for the display, selection and setup of video input sources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1533177A (en) * 1998-09-16 2004-09-29 Actv��˾ Receiver for simultaneously first and second video frenquency signal
CN1791198A (en) * 2004-12-17 2006-06-21 Tcl王牌电子(深圳)有限公司 TV set apparatus capable of simultaneously receiving and playing multi-channel programs
WO2007079672A1 (en) * 2006-01-06 2007-07-19 Tencent Technology (Shenzhen) Company Limited System for receiving and displaying network tv programs and method thereof
CN101094363A (en) * 2006-06-19 2007-12-26 格得电子工业股份有限公司 Integrated high-resolution multimedia digital transmission interface (HDMI) switcher
CN201001163Y (en) * 2007-01-22 2008-01-02 青岛海信电器股份有限公司 TV set having multi-path HDMI interfaces
CN203289740U (en) * 2013-05-04 2013-11-13 杨楚运 Circuit board

Also Published As

Publication number Publication date
CN103997677A (en) 2014-08-20

Similar Documents

Publication Publication Date Title
US12010388B2 (en) Methods, systems, and media for presenting media content using integrated content sources
TWI482485B (en) Audio/video system, control method of an audio/video system, and display device
US8869214B2 (en) Device control apparatus, device control method and computer program
CN103997677B (en) A kind of player method and playback equipment of audio frequency and video
CN103813197B (en) Display device, video and audio playing system and control method of video and audio playing system
CN102821319B (en) Video playing method based on RCF (required communication performance) communication
WO2017143663A1 (en) Electronic exchange system and configuration method therefor
WO2016074380A1 (en) Playing control method and terminal
CN104333788A (en) Non-interface television, wireless box, non-interface television system and play control method
WO2021253895A1 (en) Media resource playing method and display device
CN103813122B (en) Image device control system, image device serial connection equipment and image device control method
CN115278332B (en) A display device, a playback device and a data transmission method
WO2014207910A1 (en) Television device and remote controller
US20240338166A1 (en) Display device, external device, and audio playing and sound effect processing method
SG173570A1 (en) System and method for interfacing multimedia signals
CN205490969U (en) Multimedia playing system based on mobile terminal
CN202873001U (en) TV display combined with Wi-Fi or wireless communication and electronic equipment to integrate control and playback device
CN102821202B (en) Picture playing method based on RCP (remote control protocol) communication
CN109992235A (en) Audio-visual equipment control method, control device, audio-visual equipment, and storage medium
TWI825918B (en) Display control method and related display control apparatus and display device
CN108984444A (en) Adjustable interface conversion method
CN116261004A (en) Split-screen display method, split-screen display device, electronic device, and storage medium
TW201427400A (en) Multimedia signal control device and control method thereof
CN114302095A (en) Display device and video stream processing method for display device
CN116527971A (en) Display device and audio playing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant after: Shenzhen Skyworth Digital Technology Co., Ltd.

Applicant after: Shenzhen Skyworth Software Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant before: Shenzhen Skyworth Digital Technology Co., Ltd.

Applicant before: Shenzhen Skyworth Software Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant