CN113051432B - Display device and media resource playback method - Google Patents
Display device and media resource playback method Download PDFInfo
- Publication number
- CN113051432B CN113051432B CN202110448074.1A CN202110448074A CN113051432B CN 113051432 B CN113051432 B CN 113051432B CN 202110448074 A CN202110448074 A CN 202110448074A CN 113051432 B CN113051432 B CN 113051432B
- Authority
- CN
- China
- Prior art keywords
- playing
- window
- target video
- playback
- playing window
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/74—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请实施例提供了一种显示设备及媒资播放方法,显示设备包括:显示器;控制器,与显示器连接,控制器被配置为:接收用户输入的媒资播放指令;响应于所述媒资播放指令,获取所述媒资播放指令对应的目标视频;在对应所述目标视频的第一播放窗口上方未设置控件时,在所述第一播放窗口播放所述目标视频;在对应所述目标视频的第一播放窗口上方设置有所述控件时,在所述第一播放窗口中将所述目标视频的显示位置向远离所述控件的方向移动,以使所述目标视频的画面的中心位置靠近所述第一播放窗口中未被所述控件遮挡的目标显示区域的中心位置显示,其中,所述控件不透明,且遮挡所述第一播放窗口的一侧。本申请提高了媒资播放的显示效果。
Embodiments of the present application provide a display device and a method for playing media assets. The display device includes: a display; a controller connected to the display, and the controller is configured to: receive a media asset playing instruction input by a user; Play instruction, obtain the target video corresponding to the media asset playback instruction; when no control is set above the first play window corresponding to the target video, play the target video in the first play window; When the control is provided above the first playback window of the video, the display position of the target video is moved away from the control in the first playback window, so that the center of the screen of the target video is moved. It is displayed near the center of the target display area in the first play window that is not blocked by the control, wherein the control is opaque and blocks one side of the first play window. The present application improves the display effect of media asset playback.
Description
技术领域technical field
本申请涉及显示技术领域,尤其涉及一种显示设备及媒资播放方法。The present application relates to the field of display technologies, and in particular, to a display device and a method for playing media assets.
背景技术Background technique
现如今,跟随电视上的健身视频进行健身是一种流行的健身方式,为了更好的掌握自己的健身动作是否标准,部分电视可通过摄像头采集用户图像,将用户图像与健身视频在电视上同时播放,使用户能在电视上看到自己的动作,从而可将自己的动作与健身视频终端中的动作进行比对分析。Nowadays, it is a popular way to exercise by following the fitness videos on TV. In order to better grasp whether your fitness movements are standard, some TVs can collect user images through cameras, and display the user images and fitness videos on the TV at the same time. Play, so that users can see their actions on the TV, so that they can compare and analyze their actions with the actions in the fitness video terminal.
目前大部分电视的显示比例为16:9,健身视频的比例通常也为16:9,如果电视只播放健身视频,则可将健身视频进行全屏显示,而如果将健身视频与用户图像同时显示,由于用户图像占据了电视的部分显示区域,会导致健身视频的显示区域可能不是16:9。相关技术中,当一个视频的比例与播放窗口的比例不一致时,通常会将该视频缩放到一个较小的尺寸,以便能够在播放窗口内进行展示,然而,这样会导致视频的周围出现黑边,并且,视频也会变得较小,对于健身视频,视频变小会导致一些健身动作难以看清,严重影响用户的观看体验。At present, the display ratio of most TVs is 16:9, and the ratio of fitness videos is usually 16:9. If the TV only plays fitness videos, the fitness videos can be displayed in full screen. If the fitness videos and user images are displayed at the same time, Since the user image occupies part of the display area of the TV, the display area of the fitness video may not be 16:9. In the related art, when the ratio of a video is inconsistent with the ratio of the playback window, the video is usually scaled to a smaller size so that it can be displayed in the playback window. However, this will cause black borders to appear around the video. , and the video will also become smaller. For fitness videos, the smaller video will make some fitness movements difficult to see, which will seriously affect the user's viewing experience.
发明内容SUMMARY OF THE INVENTION
为解决健身视频播放效果不佳的技术问题,本申请提供了一种显示设备及媒资播放方法。In order to solve the technical problem of poor fitness video playback effect, the present application provides a display device and a media asset playback method.
第一方面,本申请提供了一种显示设备,该显示设备包括:In a first aspect, the present application provides a display device, the display device comprising:
显示器;monitor;
控制器,与所述显示器连接,所述控制器被配置为:a controller, connected to the display, the controller being configured to:
接收用户输入的媒资播放指令;Receive the media asset playback instruction input by the user;
响应于所述媒资播放指令,获取所述媒资播放指令对应的目标视频;In response to the media asset playback instruction, obtain a target video corresponding to the media asset playback instruction;
在对应所述目标视频的第一播放窗口上方未设置控件时,在所述第一播放窗口播放所述目标视频;When the control is not set above the first playback window corresponding to the target video, the target video is played in the first playback window;
在对应所述目标视频的第一播放窗口上方设置有所述控件时,在所述第一播放窗口中将所述目标视频的显示位置向远离所述控件的方向移动,以使所述目标视频的画面的中心位置靠近所述第一播放窗口中未被所述控件遮挡的目标显示区域的中心位置显示,其中,所述控件不透明,且遮挡所述第一播放窗口的一侧。When the control is provided above the first playback window corresponding to the target video, the display position of the target video is moved in the first playback window away from the control, so that the target video is displayed in a direction away from the control. The center position of the screen is displayed close to the center position of the target display area in the first play window that is not blocked by the controls, wherein the controls are opaque and block one side of the first play window.
第二方面,本申请提供了一种媒资播放方法,该方法包括:In a second aspect, the present application provides a method for playing media assets, the method comprising:
接收用户输入的媒资播放指令;Receive the media asset playback instruction input by the user;
响应于所述媒资播放指令,获取所述媒资播放指令对应的目标视频;In response to the media asset playback instruction, obtain a target video corresponding to the media asset playback instruction;
在对应所述目标视频的第一播放窗口上方未设置控件时,在所述第一播放窗口播放所述目标视频;When the control is not set above the first playback window corresponding to the target video, the target video is played in the first playback window;
在对应所述目标视频的第一播放窗口上方设置有所述控件时,在所述第一播放窗口中将所述目标视频的显示位置向远离所述控件的方向移动,以使所述目标视频的画面的中心位置靠近所述第一播放窗口中未被所述控件遮挡的目标显示区域的中心位置显示,其中,所述控件不透明,且遮挡所述第一播放窗口的一侧。When the control is provided above the first playback window corresponding to the target video, the display position of the target video is moved in the first playback window away from the control, so that the target video is displayed in a direction away from the control. The center position of the screen is displayed close to the center position of the target display area in the first play window that is not blocked by the controls, wherein the controls are opaque and block one side of the first play window.
本申请提供的显示设备及媒资播放方法的有益效果包括:The beneficial effects of the display device and the media asset playback method provided by the present application include:
本申请实施例通过在显示设备上检测目标视频不被遮挡的显示区域,将其确定为目标显示区域,然后在将目标视频进行缩放后,控制目标视频的图像在目标显示区域进行偏移显示,解决了跟练模式下目标视频在播放时被第二播放窗口遮挡而导致的显示效果不佳的问题,提升了用户的观看体验。In the embodiment of the present application, a display area where the target video is not blocked is detected on the display device, and it is determined as the target display area, and then after scaling the target video, the image of the target video is controlled to be offset and displayed in the target display area, It solves the problem of poor display effect caused by the target video being blocked by the second playback window when playing in the follow-up mode, and improves the user's viewing experience.
附图说明Description of drawings
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the present application more clearly, the accompanying drawings that need to be used in the embodiments will be briefly introduced below. Other drawings can also be obtained from these drawings.
图1中示例性示出了根据一些实施例的显示设备与控制装置之间操作场景的示意图;FIG. 1 exemplarily shows a schematic diagram of an operation scene between a display device and a control apparatus according to some embodiments;
图2中示例性示出了根据一些实施例的控制装置100的硬件配置框图;FIG. 2 exemplarily shows a hardware configuration block diagram of the
图3中示例性示出了根据一些实施例的显示设备200的硬件配置框图;FIG. 3 exemplarily shows a hardware configuration block diagram of the
图4中示例性示出了根据一些实施例的显示设备200中软件配置示意图;FIG. 4 exemplarily shows a schematic diagram of software configuration in the
图5中示例性示出了根据一些实施例的健身首页示意图;FIG. 5 exemplarily shows a schematic diagram of a fitness home page according to some embodiments;
图6中示例性示出了根据一些实施例的媒资详情界面示意图;Figure 6 exemplarily shows a schematic diagram of a media asset details interface according to some embodiments;
图7中示例性示出了根据一些实施例的播放模式选择界面示意图;FIG. 7 exemplarily shows a schematic diagram of a playback mode selection interface according to some embodiments;
图8中示例性示出了根据一些实施例的普通模式下的全屏播放界面示意图;FIG. 8 exemplarily shows a schematic diagram of a full-screen playback interface in normal mode according to some embodiments;
图9中示例性示出了根据一些实施例的跟练模式下的双窗口示意图;FIG. 9 exemplarily shows a double-window schematic diagram in follow-up mode according to some embodiments;
图10中示例性示出了根据一些实施例的跟练模式下的目标显示区域的示意图;FIG. 10 exemplarily shows a schematic diagram of a target display area in a follow-up mode according to some embodiments;
图11中示例性示出了根据一些实施例的跟练模式下的偏移示意图;FIG. 11 exemplarily shows a schematic diagram of the offset in the follow-up mode according to some embodiments;
图12中示例性示出了根据一些实施例的跟练模式下的遮挡示意图;FIG. 12 exemplarily shows a schematic diagram of occlusion in a follow-up mode according to some embodiments;
图13中示例性示出了根据一些实施例的跟练模式下的双窗口播放界面示意图。FIG. 13 exemplarily shows a schematic diagram of a dual-window playing interface in a follow-up practice mode according to some embodiments.
具体实施方式Detailed ways
为使本申请的目的和实施方式更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。In order to make the purpose and implementation of the present application clearer, the exemplary embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only the Some embodiments are claimed, but not all embodiments.
需要说明的是,本申请中对于术语的简要说明,仅是为了方便理解接下来描述的实施方式,而不是意图限定本申请的实施方式。除非另有说明,这些术语应当按照其普通和通常的含义理解。It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the embodiments described below, rather than intended to limit the embodiments of the present application. Unless otherwise specified, these terms are to be understood according to their ordinary and ordinary meanings.
本申请中说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”等是用于区别类似或同类的对象或实体,而不必然意味着限定特定的顺序或先后次序,除非另外注明。应该理解这样使用的用语在适当情况下可以互换。The terms "first", "second", "third", etc. in the description and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and are not necessarily meant to limit specific Sequential or sequential, unless otherwise noted. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
术语“包括”和“具有”以及他们的任何变形,意图在于覆盖但不排他的包含,例如,包含了一系列组件的产品或设备不必限于清楚地列出的所有组件,而是可包括没有清楚地列出的或对于这些产品或设备固有的其它组件。The terms "comprising" and "having", and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that incorporates a series of components is not necessarily limited to all components explicitly listed, but may include no explicit other components listed or inherent to these products or devices.
术语“模块”是指任何已知或后来开发的硬件、软件、固件、人工智能、模糊逻辑或硬件或/和软件代码的组合,能够执行与该元件相关的功能。The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code capable of performing the functions associated with that element.
图1为根据实施例中显示设备与控制装置之间操作场景的示意图。如图1所示,用户可通过智能设备300或控制装置100操作显示设备200。FIG. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in FIG. 1 , a user can operate the
在一些实施例中,控制装置100可以是遥控器,遥控器和显示设备的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式,通过无线或有线方式来控制显示设备200。用户可以通过遥控器上按键、语音输入、控制面板输入等输入用户指令,来控制显示设备200。In some embodiments, the
在一些实施例中,也可以使用智能设备300(如移动终端、平板电脑、计算机、笔记本电脑等)以控制显示设备200。例如,使用在智能设备上运行的应用程序控制显示设备200。In some embodiments, a smart device 300 (eg, a mobile terminal, a tablet computer, a computer, a notebook computer, etc.) can also be used to control the
在一些实施例中,显示设备200还可以采用除了控制装置100和智能设备300之外的方式进行控制,例如,可以通过显示设备200设备内部配置的获取语音指令的模块直接接收用户的语音指令控制,也可以通过显示设备200设备外部设置的语音控制设备来接收用户的语音指令控制。In some embodiments, the
在一些实施例中,显示设备200还与服务器400进行数据通信。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。服务器400可以向显示设备200提供各种内容和互动。服务器400可以是一个集群,也可以是多个集群,可以包括一类或多类服务器。In some embodiments, the
图2示例性示出了根据示例性实施例中控制装置100的配置框图。如图2所示,控制装置100包括控制器110、通信接口130、用户输入/输出接口140、存储器、供电电源。控制装置100可接收用户的输入操作指令,且将操作指令转换为显示设备200可识别和响应的指令,起用用户与显示设备200之间交互中介作用。FIG. 2 exemplarily shows a configuration block diagram of the
图3示出了根据示例性实施例中显示设备200的硬件配置框图。FIG. 3 is a block diagram showing a hardware configuration of the
在一些实施例中,显示设备200包括调谐解调器210、通信器220、检测器230、外部装置接口240、控制器250、显示器260、音频输出接口270、存储器、供电电源、用户接口中的至少一种。In some embodiments,
在一些实施例中控制器包括处理器,视频处理器,音频处理器,图形处理器,RAM,ROM,用于输入/输出的第一接口至第n接口。In some embodiments the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, a first interface to an nth interface for input/output.
在一些实施例中,显示器260包括用于呈现画面的显示屏组件,以及驱动图像显示的驱动组件,用于接收源自控制器输出的图像信号,进行显示视频内容、图像内容以及菜单操控界面的组件以及用户操控UI界面。In some embodiments, the
在一些实施例中,显示器260可为液晶显示器、OLED显示器、以及投影显示器,还可以为一种投影装置和投影屏幕。In some embodiments, the
在一些实施例中,通信器220是用于根据各种通信协议类型与外部设备或服务器进行通信的组件。例如:通信器可以包括Wifi模块,蓝牙模块,有线以太网模块等其他网络通信协议芯片或近场通信协议芯片,以及红外接收器中的至少一种。显示设备200可以通过通信器220与外部控制设备100或服务器400建立控制信号和数据信号的发送和接收。In some embodiments,
在一些实施例中,用户接口,可用于接收控制装置100(如:红外遥控器等)的控制信号。In some embodiments, the user interface may be used to receive control signals from the control device 100 (eg, an infrared remote control, etc.).
在一些实施例中,检测器230用于采集外部环境或与外部交互的信号。例如,检测器230包括光接收器,用于采集环境光线强度的传感器;或者,检测器230包括图像采集器,如摄像头,可以用于采集外部环境场景、用户的属性或用户交互手势,再或者,检测器230包括声音采集器,如麦克风等,用于接收外部声音。In some embodiments, the detector 230 is used to collect signals from the external environment or interaction with the outside. For example, the detector 230 includes a light receiver, a sensor for collecting ambient light intensity; alternatively, the detector 230 includes an image collector, such as a camera, which can be used to collect external environmental scenes, user attributes or user interaction gestures, or , the detector 230 includes a sound collector, such as a microphone, for receiving external sound.
在一些实施例中,外部装置接口240可以包括但不限于如下:高清多媒体接口接口(HDMI)、模拟或数据高清分量输入接口(分量)、复合视频输入接口(CVBS)、USB输入接口(USB)、RGB端口等任一个或多个接口。也可以是上述多个接口形成的复合性的输入/输出接口。In some embodiments, the
在一些实施例中,调谐解调器210通过有线或无线接收方式接收广播电视信号,以及从多个无线或有线广播电视信号中解调出音视频信号,如以及EPG数据信号。In some embodiments, the
在一些实施例中,控制器250和调谐解调器210可以位于不同的分体设备中,即调谐解调器210也可在控制器250所在的主体设备的外置设备中,如外置机顶盒等。In some embodiments, the
在一些实施例中,控制器250,通过存储在存储器上中各种软件控制程序,来控制显示设备的工作和响应用户的操作。控制器250控制显示设备200的整体操作。例如:响应于接收到用于选择在显示器260上显示UI对象的用户命令,控制器250便可以执行与由用户命令选择的对象有关的操作。In some embodiments, the
在一些实施例中,所述对象可以是可选对象中的任何一个,例如超链接、图标或其他可操作的控件。与所选择的对象有关操作有:显示连接到超链接页面、文档、图像等操作,或者执行与所述图标相对应程序的操作。In some embodiments, the object may be any of the selectable objects, such as hyperlinks, icons, or other operable controls. The operations related to the selected object include: displaying operations connected to hyperlinked pages, documents, images, etc., or executing operations of programs corresponding to the icons.
在一些实施例中控制器包括中央处理器(Central Processing Unit,CPU),视频处理器,音频处理器,图形处理器(Graphics Processing Unit,GPU),RAM Random AccessMemory,RAM),ROM(Read-Only Memory,ROM),用于输入/输出的第一接口至第n接口,通信总线(Bus)等中的至少一种。In some embodiments, the controller includes a central processing unit (Central Processing Unit, CPU), a video processor, an audio processor, a graphics processing unit (Graphics Processing Unit, GPU), RAM (Random Access Memory, RAM), ROM (Read-Only). Memory, ROM), at least one of the first interface to the nth interface for input/output, a communication bus (Bus), and the like.
在一些实施例中,用户可在显示器260上显示的图形用户界面(GUI)输入用户命令,则用户输入接口通过图形用户界面(GUI)接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户输入接口通过传感器识别出声音或手势,来接收用户输入命令。In some embodiments, the user may input user commands on a graphical user interface (GUI) displayed on the
在一些实施例中,“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(Graphic User Interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。In some embodiments, a "user interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, which enables conversion between an internal form of information and a form acceptable to the user. A commonly used form of user interface is a graphical user interface (Graphic User Interface, GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, wherein the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. visual interface elements.
参见图4,在一些实施例中,将系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),安卓运行时(Android runtime)和系统库层(简称“系统运行库层”),以及内核层。Referring to FIG. 4 , in some embodiments, the system is divided into four layers, from top to bottom, the applications layer (referred to as “application layer”), the application framework layer (referred to as “framework layer”) "), the Android runtime (Android runtime) and the system library layer (referred to as "system runtime library layer"), and the kernel layer.
在一些实施例中,应用程序层中运行有至少一个应用程序,这些应用程序可以是操作系统自带的窗口(Window)程序、系统设置程序或时钟程序等;也可以是第三方开发者所开发的应用程序。在具体实施时,应用程序层中的应用程序包不限于以上举例。In some embodiments, at least one application program runs in the application program layer, and these application programs may be a Window program, a system setting program, or a clock program that comes with the operating system; they may also be developed by third-party developers. s application. During specific implementation, the application package in the application layer is not limited to the above examples.
框架层为应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。应用程序框架层相当于一个处理中心,这个中心决定让应用层中的应用程序做出动作。应用程序通过API接口,可在执行中访问系统中的资源和取得系统的服务。The framework layer provides an application programming interface (application programming interface, API) and a programming framework for the application. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center, which decides to let the applications in the application layer take action. The application program can access the resources in the system and obtain the services of the system during execution through the API interface.
如图4所示,本申请实施例中应用程序框架层包括管理器(Managers),内容提供者(Content Provider)等,其中管理器包括以下模块中的至少一个:活动管理器(ActivityManager)用与和系统中正在运行的所有活动进行交互;位置管理器(Location Manager)用于给系统服务或应用提供了系统位置服务的访问;文件包管理器(Package Manager)用于检索当前安装在设备上的应用程序包相关的各种信息;通知管理器(NotificationManager)用于控制通知消息的显示和清除;窗口管理器(Window Manager)用于管理用户界面上的括图标、窗口、工具栏、壁纸和桌面部件。As shown in FIG. 4 , the application framework layer in the embodiment of the present application includes managers (Managers), content providers (Content Provider), etc., wherein the manager includes at least one of the following modules: the activity manager (ActivityManager) is used with Interact with all activities running in the system; Location Manager is used to provide system services or applications with access to system location services; Package Manager is used to retrieve files currently installed on the device. Various information related to the application package; Notification Manager (Notification Manager) is used to control the display and clearing of notification messages; Window Manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers and desktops on the user interface part.
在一些实施例中,活动管理器用于管理各个应用程序的生命周期以及通常的导航回退功能,比如控制应用程序的退出、打开、后退等。窗口管理器用于管理所有的窗口程序,比如获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕,控制显示窗口变化(例如将显示窗口缩小显示、抖动显示、扭曲变形显示等)等。In some embodiments, the activity manager is used to manage the life cycle of the various applications and general navigation rollback functions, such as controlling the exit, opening, rollback, etc. of the application. The window manager is used to manage all window programs, such as obtaining the size of the display screen, judging whether there is a status bar, locking the screen, taking screenshots, and controlling the change of the display window (such as reducing the display window, shaking display, distorting display, etc.), etc.
在一些实施例中,系统运行库层为上层即框架层提供支撑,当框架层被使用时,安卓操作系统会运行系统运行库层中包含的C/C++库以实现框架层要实现的功能。In some embodiments, the system runtime layer provides support for the upper layer, that is, the framework layer. When the framework layer is used, the Android operating system will run the C/C++ library included in the system runtime layer to implement the functions to be implemented by the framework layer.
在一些实施例中,内核层是硬件和软件之间的层。如图4所示,内核层至少包含以下驱动中的至少一种:音频驱动、显示驱动、蓝牙驱动、摄像头驱动、WIFI驱动、USB驱动、HDMI驱动、传感器驱动(如指纹传感器,温度传感器,压力传感器等)、以及电源驱动等。In some embodiments, the kernel layer is the layer between hardware and software. As shown in Figure 4, the kernel layer at least includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensors, etc.), and power drives, etc.
在一些实施例中的硬件或软件架构可以基于上述实施例中的介绍,在一些实施例中可以是基于相近的其他硬件或软件架构,可以实现本申请的技术方案即可。The hardware or software architecture in some embodiments may be based on the introduction in the foregoing embodiments, and may be based on other similar hardware or software architectures in some embodiments, and the technical solutions of the present application may be implemented.
在一些实施例中,显示设备启动后可以直接进入预置的视频点播程序的界面,视频点播程序的界面可以如图5中所示,至少包括导航栏和位于导航栏下方的内容显示区,内容显示区中显示的内容会随导航栏中被选中控件的变化而变化。应用程序层中的程序可以被集成在视频点播程序中通过导航栏的一个控件进行展示,也可以在导航栏中的应用控件被选中后进行进一步显示。In some embodiments, the display device can directly enter a preset VOD program interface after startup. The VOD program interface can be as shown in FIG. 5 , at least including a navigation bar and a content display area below the navigation bar. The content displayed in the display area changes with the selected control in the navigation bar. The program in the application layer can be integrated in the video-on-demand program to be displayed through a control in the navigation bar, or it can be further displayed after the application control in the navigation bar is selected.
在一些实施例中,显示设备启动后可以直接进入上次选择的信号源的显示界面,或者信号源选择界面,其中信号源可以是预置的视频点播程序,还可以是HDMI接口,直播电视接口等中的至少一种,用户选择不同的信号源后,显示器可以显示从不同信号源获得的内容。In some embodiments, after the display device is started, it can directly enter the display interface of the last selected signal source, or the signal source selection interface, where the signal source can be a preset video-on-demand program, and can also be an HDMI interface, a live TV interface At least one of etc., after the user selects different signal sources, the display can display the content obtained from the different signal sources.
在一些实施例中,如图5所示,导航栏可设置有多个控件,如“我的”、“频道”、“影视”、“健身”、“VIP”、“教育”、“商城”、“游戏”和应用,不同的导航栏控件对应不同的频道界面,若用户想进行健身,可选中“健身”控件,图5所示的界面即“健身”控件被选中后的界面,用户可在该界面选择一个健身视频,以跟随健身视频进行健身。In some embodiments, as shown in FIG. 5 , the navigation bar may be provided with multiple controls, such as "My", "Channel", "Video", "Fitness", "VIP", "Education", "Mall" , "Games" and applications, different navigation bar controls correspond to different channel interfaces, if the user wants to exercise, select the "Fitness" control, the interface shown in Figure 5 is the interface after the "Fitness" control is selected, the user can Select a fitness video in this interface to follow the fitness video to exercise.
参见图6,用户在图5所示的界面点击一个健身视频后,显示设备根据被选中的视频控件对应的配置参数,请求服务器下发对应的详情页数据,然后根据接收到的详情页数据进入图6所示的媒资详情界面。如图6所示,媒资详情界面可显示该健身视频的多个课程小节控件,也可以不包括,用户点击其中一个课程小节控件或者开始训练控件后,显示设备将获取该课程小节控件/详情页对应的健身视频,然后进入播放模式选择界面。在如下表述中,播放的健身视频也被称为目标视频。Referring to Figure 6, after the user clicks a fitness video on the interface shown in Figure 5, the display device requests the server to send the corresponding details page data according to the configuration parameters corresponding to the selected video control, and then enters the details page data according to the received details page data. The media asset details interface shown in Figure 6. As shown in Figure 6, the media asset details interface can display multiple course subsection controls of the fitness video, or it may not include it. After the user clicks one of the course subsection controls or starts training controls, the display device will obtain the course subsection controls/details page corresponding to the fitness video, and then enter the playback mode selection interface. In the following expressions, the played fitness video is also referred to as a target video.
参见图7,播放模式选择界面可展示三种模式控件,第一种模式控件对应的播放模式为普通模式,该模式也可称为第一模式,第二种模式控件对应的播放模式为跟练模式,该模式也可称为第二模式,第三种模式控件对应的播放模式为观影模式,该模式也可称为第三模式。每个该模式控件可显示有该播放模式的解释说明,示例性的,普通模式的解释说明可为:“屏蔽摄像头观看完整教学视频熟悉训练动作”,跟练模式的解释说明可为:“开启摄像头获得动作实时比对让动作更标准”,观影模式的解释说明可为:“屏蔽摄像头边看边锻炼运动效果不打折”。Referring to FIG. 7, the playback mode selection interface can display three mode controls. The playback mode corresponding to the first mode control is the normal mode, which can also be called the first mode, and the playback mode corresponding to the second mode control is the follow-up mode. mode, this mode may also be referred to as the second mode, and the playback mode corresponding to the third mode control is the movie viewing mode, which may also be referred to as the third mode. Each mode control can display an explanation of the playback mode. Exemplarily, the explanation of the normal mode can be: "Shield the camera to watch the complete teaching video to become familiar with the training action", and the explanation of the follow-up mode can be: "Turn on The camera obtains the real-time comparison of the action to make the action more standard", and the explanation of the viewing mode can be: "The effect of exercising while shielding the camera will not be discounted".
根据上述解释说明可知,在一些实施例中,在普通模式下,显示设备不启动摄像头,只在一新的界面上设置一个播放窗口来播放健身视频,在跟练模式下,显示设备启动摄像头,在显示器的新的界面上设置两个播放窗口,分别同时播放摄像头采集的图像和健身视频,在观影模式下,显示设备不启动摄像头,在显示器新的界面上设置两个播放窗口,分别同时播放一个健身视频和一个影片。According to the above explanation, in some embodiments, in the normal mode, the display device does not activate the camera, and only sets a playback window on a new interface to play the fitness video. In the follow-up mode, the display device activates the camera, Two playback windows are set on the new interface of the monitor to play the images captured by the camera and the fitness video at the same time. In the movie viewing mode, the display device does not start the camera, and two playback windows are set on the new interface of the monitor, respectively simultaneously. Play a workout video and a movie.
在一些实施例中,显示设备可设置有摄像头,摄像头可包括升降摄像头或非升降摄像头,摄像头可拍摄用户图像,得到本地摄像头数据,显示设备的控制器可将摄像头拍摄到的本地摄像头数据显示在显示设备的显示器上,使用户在显示器上看到自己的动作。In some embodiments, the display device may be provided with a camera, and the camera may include an elevating camera or a non-elevating camera, the camera may capture user images to obtain local camera data, and the controller of the display device may display the local camera data captured by the camera on the On the display of the display device, the user can see his actions on the display.
在一些实施例中,显示设备没有设置摄像头,但可连接一个摄像头,如通过USB连接一个外置摄像头,利用该摄像头拍摄用户图像,显示设备的控制器可将摄像头拍摄到的本地数据显示在显示设备的显示器上。In some embodiments, the display device is not provided with a camera, but a camera can be connected, such as an external camera connected through USB, and the camera is used to capture user images, and the controller of the display device can display the local data captured by the camera on the display device. on the device's display.
用户可根据上述解释说明,选择一个播放模式来观看健身视频。The user can select a playback mode to watch the fitness video according to the above explanation.
在一些实施例中,若用户在图7所示的播放模式选择界面点击普通模式控件,则显示设备生成媒资播放指令,该媒资播放指令包括播放模式和目标视频的信息,此时,播放模式为普通模式,目标视频的信息包括目标视频的播放地址。显示设备根据该媒资播放指令,从目标视频的播放地址获取目标视频的视频数据流,根据播放模式为普通模式,在新的界面上生成一个用于播放目标视频的第一播放窗口。在一些实施例中,第一播放窗口可为全屏窗口,显示比例为16:9。In some embodiments, if the user clicks the normal mode control on the playback mode selection interface shown in FIG. 7 , the display device generates a media asset playback instruction, and the media asset playback instruction includes information about the playback mode and the target video. The mode is the normal mode, and the information of the target video includes the playback address of the target video. The display device obtains the video data stream of the target video from the playback address of the target video according to the media asset playback instruction, and generates a first playback window for playing the target video on the new interface according to the normal playback mode. In some embodiments, the first playback window may be a full-screen window with a display ratio of 16:9.
在一些实施例中,由于健身视频的比例通常为16:9,全屏窗口的比例也为16:9,因此,健身视频的比例与全屏窗口的比例相一致。在普通模式下,显示设备只生成一个第一播放窗口,不生成其他窗口,不会有其他窗口对第一播放窗口的显示内容进行遮挡,因此,显示设备可在生成第一播放窗口后,根据媒资播放指令的播放模式为普通模式,直接将健身视频在第一播放窗口中全屏播放。In some embodiments, since the ratio of the fitness video is generally 16:9, and the ratio of the full-screen window is also 16:9, the ratio of the fitness video is consistent with the ratio of the full-screen window. In the normal mode, the display device only generates a first playback window, and does not generate other windows, and no other windows will block the display content of the first playback window. Therefore, after generating the first playback window, the display device can The playback mode of the media asset playback instruction is the normal mode, which directly plays the fitness video in full screen in the first playback window.
在一些实施例中,为实现将健身视频在第一播放窗口中全屏播放,显示设备可将目标视频的图像进行缩放,使缩放后的目标视频的图像尺寸缩放至与全屏窗口的尺寸相一致。In some embodiments, in order to play the fitness video in full screen in the first playback window, the display device may zoom the image of the target video, so that the image size of the zoomed target video is scaled to be consistent with the size of the full screen window.
在一些实施例中,显示设备对目标视频进行缩放的方法可为:对目标视频的视频数据流进行解析,得到目标视频的视频帧序列,取视频帧序列中的第一帧图像,根据该图像高度和所述目标显示区域的高度的比值得到缩放比例,然后按照所述缩放比例将所述目标视频的视频帧序列进行缩放。示例性的,目标视频的图像高度为100,显示设备的全屏窗口的高度为1000,其中,高度可为垂直方向上的像素点数量,则缩放比例为:100:1000=1:10,根据该缩放比例,将目标视频的视频帧序列放大10倍,则可使放大后的目标视频的图像能够充满整个全屏窗口。In some embodiments, the method for scaling the target video by the display device may be: parsing the video data stream of the target video to obtain a video frame sequence of the target video, taking the first frame image in the video frame sequence, and according to the image The ratio of the height to the height of the target display area obtains a scaling ratio, and then the video frame sequence of the target video is scaled according to the scaling ratio. Exemplarily, the image height of the target video is 100, the height of the full-screen window of the display device is 1000, where the height can be the number of pixels in the vertical direction, and the scaling ratio is: 100:1000=1:10, according to this The zoom ratio is to enlarge the video frame sequence of the target video by 10 times, so that the enlarged image of the target video can fill the entire full-screen window.
在一些实施例中,显示设备将目标视频进行缩放后,得到缩放后的目标视频的视频帧序列,将该视频帧序列发送给第一播放窗口,使第一播放窗口可连续播放该视频帧序列。In some embodiments, after zooming the target video, the display device obtains a video frame sequence of the zoomed target video, and sends the video frame sequence to the first playback window, so that the first playback window can continuously play the video frame sequence .
参见图8,为根据一些实施例的普通播放模式下的全屏播放界面示意图,如图8所示,在普通播放模式下,目标视频可实现全屏播放,图8中的人物可为健身教练,线条可表示人物背景,通常情况下,在目标视频的图像中,人物居中显示,人物后方的左侧和右侧均为背景图像。Referring to FIG. 8 , it is a schematic diagram of a full-screen playback interface in the normal playback mode according to some embodiments. As shown in FIG. 8 , in the normal playback mode, the target video can be played in full screen. The character in FIG. 8 can be a fitness coach. It can represent the background of the person. Usually, in the image of the target video, the person is displayed in the center, and the left and right sides behind the person are background images.
在一些实施例中,若用户在图7所示的播放模式选择界面点击跟练模式控件,则显示设备生成媒资播放指令,该媒资播放指令包括播放模式和目标视频的信息,此时,播放模式为跟练模式,目标视频的信息包括目标视频的播放地址。显示设备根据该媒资播放指令,从目标视频的播放地址获取目标视频的视频数据流,根据播放模式为跟练模式,在新的界面上生成一个用于播放目标视频的第一播放窗口,以及一个用于播放本地摄像头数据的第二播放窗口。In some embodiments, if the user clicks the follow-up mode control on the playback mode selection interface shown in FIG. 7, the display device generates a media asset playback instruction, and the media asset playback instruction includes the information of the playback mode and the target video. At this time, The playback mode is the follow-up mode, and the information of the target video includes the playback address of the target video. The display device obtains the video data stream of the target video from the playback address of the target video according to the media asset playback instruction, and generates a first playback window for playing the target video on the new interface according to the playback mode as a follow-up mode, and A second playback window for playback of local camera data.
在一些实施例中,第二播放窗口叠加在所述第一播放窗口的上方。In some embodiments, the second play window is superimposed on the first play window.
在一些实施例中,第二播放窗口和第一播放窗口的高度一致,第二播放窗口的左边界和第一播放窗口的左边界重合,或,第二播放窗口的右边界和第一播放窗口的右边界重合。In some embodiments, the height of the second play window and the first play window are the same, the left border of the second play window and the left border of the first play window overlap, or, the right border of the second play window and the first play window The right borders of .
在一些实施例中,窗口的位置可以通过设置窗口在界面中的坐标参数来进行实现。In some embodiments, the position of the window can be realized by setting the coordinate parameters of the window in the interface.
在一些实施例中,参见图9,在跟练模式下,第一播放窗口可为全屏窗口,显示比例为16:9,第二播放窗口可为一个与显示器等高的窗口,显示比例可据摄像头的拍摄参数确定。第二播放窗口可以贴图的形式叠加显示在第一播放窗口的一侧,例如,第二播放窗口可显示在第一播放窗口的右侧,并与第一播放窗口的右侧边缘重合,对第一播放窗口的右侧显示区域构成遮挡。若显示设备将目标视频缩放至与全屏窗口相同尺寸后,直接在全屏窗口内显示缩放后的图像,则由于第二播放窗口的遮挡,如果按照正常的窗口显示逻辑,目标视频的部分图像无法被用户观看到,用户只能观看到目标视频中不被第二播放窗口遮挡的图像。在目标视频为健身视频时,用户需要跟随健身视频中的健身教练的动作进行运动,健身教练为目标视频中的人物,通常位于健身视频的图像中部,第二播放窗口可能会遮挡健身教练的部分身体,影响了健身视频观看效果。In some embodiments, referring to FIG. 9 , in the follow-up mode, the first playback window can be a full-screen window with a display ratio of 16:9, and the second playback window can be a window of the same height as the display, and the display ratio can be adjusted according to The shooting parameters of the camera are determined. The second playback window can be displayed on one side of the first playback window in the form of a texture. For example, the second playback window can be displayed on the right side of the first playback window and overlap with the right edge of the first playback window. The display area on the right side of a playback window constitutes a block. If the display device scales the target video to the same size as the full-screen window and directly displays the scaled image in the full-screen window, due to the occlusion of the second playback window, if the normal window display logic is followed, part of the target video cannot be displayed. When the user watches, the user can only watch the images in the target video that are not blocked by the second play window. When the target video is a fitness video, the user needs to follow the movements of the fitness coach in the fitness video. The fitness coach is the character in the target video, usually located in the middle of the fitness video, and the second playback window may block the fitness coach. The body affects the viewing effect of fitness videos.
在一些实施例中,为减小健身教练的身体被遮挡的概率,显示设备可在跟练模式下,在第一播放窗口中确定一个目标显示区域,该目标显示区域为不被第二播放窗口遮挡的区域,显示设备可在该目标显示区域将目标视频的图像向左偏移显示,从而使用户能在目标显示区域看到较为完整的健身动作。In some embodiments, in order to reduce the probability that the body of the fitness coach is blocked, the display device may determine a target display area in the first playback window in the follow-up mode, and the target display area is not blocked by the second playback window. In the occluded area, the display device can display the image of the target video to the left in the target display area, so that the user can see a relatively complete exercise action in the target display area.
在一些实施例中,目标显示区域是根据所述第一播放窗口的位置坐标和第二播放窗口的位置坐标确定的。通过将第一播放窗口的位置坐标减去第二播放窗口的位置坐标,可得到目标显示区域的位置坐标。In some embodiments, the target display area is determined according to the position coordinates of the first play window and the position coordinates of the second play window. By subtracting the position coordinates of the first play window from the position coordinates of the second play window, the position coordinates of the target display area can be obtained.
需要说明的是,目标显示区域是指第一播放窗口中的较佳显示区域,在目标显示区域内显示的内容不会被其他图像遮挡,在跟练模式下,显示设备上除了有第一播放窗口,还有第二播放窗口,且第二播放窗口对第一播放窗口构成了部分遮挡,则显示设备可将第一播放窗口内位于第二播放窗口左侧未被第二播放窗口遮挡的区域确定为目标显示区域。参见图10,第二播放窗口叠加显示在第一播放窗口的右侧上方,可将第一播放窗口左侧未被第二播放窗口遮挡的区域确定为第一播放窗口的目标显示区域。It should be noted that the target display area refers to the preferred display area in the first playback window, and the content displayed in the target display area will not be blocked by other images. window, there is also a second playback window, and the second playback window forms a partial block to the first playback window, then the display device can display the area in the first playback window that is located on the left side of the second playback window and is not blocked by the second playback window. Determined as the target display area. Referring to FIG. 10 , the second play window is superimposed and displayed on the upper right side of the first play window, and the area on the left side of the first play window that is not covered by the second play window can be determined as the target display area of the first play window.
需要说明的是,在跟练模式下,第一播放窗口是被第二播放窗口遮挡,显示设备根据第二播放窗口在第一播放窗口上的位置确定了目标显示区域。而在一些视频播放场景下,用于进行视频播放的第一播放窗口可能不是被用于播放摄像头本地数据的第二播放窗口遮挡,而是被其他图像遮挡,例如,被一个展示图片的不透明控件遮挡,这种情况下,也可应用本申请实施例提供的方法确定一个目标显示区域,在目标显示区域内播放视频,以达到较好的播放效果。此时,若控件遮挡第一播放窗口的位置与第二播放窗口遮挡第一播放窗口的位置相同,即都是遮挡在第一播放窗口的一侧,且控件的一个宽度边与第一播放窗口的一个宽度边重合,则可将目标显示区域确定为第一播放窗口中不被控件遮挡的矩形区域。若控件的全部边都不与第一播放窗口重合,此时,无论将目标显示区域设置在控件的哪一侧,目标显示区域的尺寸都将较小,因此,可将第一播放窗口的全部显示区域确定为目标显示区域,即在第一播放窗口全屏播放目标视频。It should be noted that, in the follow-up mode, the first playback window is blocked by the second playback window, and the display device determines the target display area according to the position of the second playback window on the first playback window. In some video playback scenarios, the first playback window used for video playback may not be blocked by the second playback window used to play the local data of the camera, but by other images, for example, by an opaque control for displaying pictures In this case, the method provided by the embodiment of the present application can also be applied to determine a target display area, and play a video in the target display area, so as to achieve a better playback effect. At this time, if the position where the control blocks the first playback window is the same as the position where the second playback window blocks the first playback window, that is, both are blocked on one side of the first playback window, and one width side of the control is the same as the first playback window. One of the width sides of , the target display area can be determined as a rectangular area in the first playback window that is not blocked by the controls. If all sides of the control are not overlapped with the first playback window, at this time, no matter which side of the control the target display area is set to, the size of the target display area will be smaller. The display area is determined as the target display area, that is, the target video is played in full screen in the first play window.
在一些实施例中,在跟练模式下,由于目标显示区域仅为第一播放窗口的部分显示区域,因此,目标显示区域的尺寸比例可能不是16:9,为获得较好的播放效果,可先将目标视频进行缩放,再将缩放后的目标视频的图像向左偏移,使得偏移后的图像的中心线靠近目标显示区域的中心线,或者使偏移后的图像的中心线与目标显示区域的中心线重合,从而可使用户在目标显示区域内看到较为完整的人物图像。In some embodiments, in the follow-up mode, since the target display area is only a partial display area of the first playback window, the size ratio of the target display area may not be 16:9. First zoom the target video, and then offset the image of the zoomed target video to the left, so that the center line of the offset image is close to the center line of the target display area, or the center line of the offset image is close to the center line of the target display area. The center lines of the display areas are coincident, so that the user can see a relatively complete person image in the target display area.
在一些实施例中,软件执行过程中,可以不确定目标显示区域,根据播放界面中第一播放窗口和第二播放窗口的位置参数,直接确定目标视频的第一移动距离。示例性的目标视频在播放器播放过程中会进行缩放,为了保证显示内容不变形,图像在高度方向和宽度方向一般进行等比例缩放,一般的缩放规则是按照高度(宽度)进行缩放因子的确认后对图像缩放,缩放后的图像在高度(宽度)上填满播放窗口的高度(宽度),另一维度可以进行插黑。可以以高度方向为基准,也可以以宽度方向为基准。根据第一播放器的宽度参数和第二播放器的宽度参数即可确定目标视频的图像在显示过程中需要移动的第一距离。以使得目标视频图像帧的中间位置尽可能在第一视频窗口上未被遮挡的区域显示。In some embodiments, during the software execution process, the target display area may be determined, and the first moving distance of the target video may be directly determined according to the position parameters of the first playback window and the second playback window in the playback interface. The exemplary target video will be scaled during the playback of the player. In order to ensure that the displayed content is not deformed, the image is generally scaled in equal proportions in the height and width directions. The general scaling rule is to confirm the scaling factor according to the height (width). After scaling the image, the scaled image fills the height (width) of the playback window in height (width), and black can be inserted in another dimension. The height direction may be used as the reference, or the width direction may be used as the reference. The first distance that the image of the target video needs to move during the display process can be determined according to the width parameter of the first player and the width parameter of the second player. So that the middle position of the target video image frame is displayed as far as possible in the unobstructed area on the first video window.
参见图11,将目标视频的图像向左偏移第一移动距离D后,可以看出,相较偏移之前,目标视频中的人物图像更为靠近画面左侧。Referring to FIG. 11 , after shifting the image of the target video to the left by the first moving distance D, it can be seen that the image of the person in the target video is closer to the left side of the screen than before the shift.
参见图12,将目标视频的图像向左偏移第一移动距离D后,目标视频中的人物右侧的背景图像可通过第二播放窗口进行遮挡,此时,第二播放窗口不对第一播放窗口中的人物构成遮挡,达到了良好的显示效果。Referring to FIG. 12 , after the image of the target video is shifted to the left by the first moving distance D, the background image on the right side of the character in the target video can be blocked by the second playback window. The characters in the window are occluded, which achieves a good display effect.
为计算第一移动距离D,在一些实施例中,可将目标视频的图像进行缩放,获取目标视频缩放到第一播放窗口的尺寸后的图像宽度,该图像宽度可称为待展示宽度;再获取第二播放窗口的宽度;将这两个宽度作差,可得到目标显示区域的宽度;取待展示宽度与目标显示区域的宽度的差值的一半,作为第一移动距离。根据该计算方法,目标视频左侧偏移的第一移动距离D与目标视频右侧被第二播放窗口遮挡的距离相同,实现了目标视频的中心线与目标显示区域的中心线重合。该计算方法可称为平均法,具有计算简单、计算速度快的优点,能快速确定第一移动距离D的大小。In order to calculate the first moving distance D, in some embodiments, the image of the target video may be zoomed to obtain the image width after the target video is zoomed to the size of the first playback window, and the image width may be referred to as the width to be displayed; Obtain the width of the second playback window; take the difference between the two widths to obtain the width of the target display area; take half of the difference between the width to be displayed and the width of the target display area as the first moving distance. According to this calculation method, the first moving distance D offset from the left side of the target video is the same as the distance that the right side of the target video is blocked by the second playback window, so that the center line of the target video and the center line of the target display area are overlapped. This calculation method may be called an average method, and has the advantages of simple calculation and fast calculation speed, and can quickly determine the size of the first moving distance D.
在一些实施例中,第一移动距离可以是小于两个播放窗口的宽度差的任一距离。In some embodiments, the first moving distance may be any distance less than the difference in width of the two playback windows.
在一些实施例中,第一移动距离不大于第二播放窗口的宽度。In some embodiments, the first moving distance is not greater than the width of the second playback window.
在一些实施例中,可以直接根据第二播放窗口的宽度确定第一移动距离,示例性的,将所述第二播放窗口的宽度的一半作为待移动距离,第一移动距离不大于待移动距离。In some embodiments, the first moving distance may be directly determined according to the width of the second playing window. Exemplarily, half of the width of the second playing window is used as the distance to be moved, and the first moving distance is not greater than the distance to be moved. .
在一些实施例中,还可以根据缩放后的影片的宽度和第二播放窗口的宽度做差来获取第一移动距离,例如,可以将差值的一半作为第一移动距离。In some embodiments, the first moving distance may also be obtained according to the difference between the width of the zoomed movie and the width of the second playback window, for example, half of the difference may be used as the first moving distance.
在一些实施例中,根据播放窗口的位置参数进行第一移动距离的确定。In some embodiments, the determination of the first movement distance is performed according to a position parameter of the playback window.
在一些实施例中,目标视频中的健身教练可能不位于图像中部,此时,若再采取将目标视频左侧偏移的第一移动距离D设置为与目标视频右侧被第二播放窗口遮挡的距离相同的方法,会导致目标视频中的健身教练偏左或偏右,显示效果不佳,为解决该技术问题,还可采取其他方法计算第一移动距离D。例如,还可对目标视频的图像帧进行人体识别,在识别到人体,即健身教练后,以人体的中轴线向两侧对称延伸,直至包含人体的显示区域宽度与目标显示区域的宽度相同,此时,将该包含人体的显示区域的宽度起点与第一播放窗口的宽度起点的差值作为第一移动距离,该计算方法得到的第一移动距离可能与上述平均法得到的第一移动距离不相同,若健身教练在目标视频的媒资图像中偏左,则该计算方法得到的第一移动距离小于上述平均法得到的第一移动距离,若健身教练在目标视频的媒资图像中偏右,则该计算方法得到的第一移动距离大于上述平均法得到的第一移动距离。In some embodiments, the fitness trainer in the target video may not be located in the middle of the image. At this time, if the first moving distance D offset from the left side of the target video is set to the right side of the target video and is blocked by the second playback window The method with the same distance will cause the fitness trainer in the target video to be skewed to the left or right, and the display effect is not good. In order to solve this technical problem, other methods can also be used to calculate the first moving distance D. For example, human body recognition can also be performed on the image frame of the target video. After identifying the human body, that is, the fitness coach, the central axis of the human body is symmetrically extended to both sides until the width of the display area containing the human body is the same as the width of the target display area. At this time, the difference between the width starting point of the display area containing the human body and the width starting point of the first playback window is used as the first moving distance. The first moving distance obtained by this calculation method may be the same as the first moving distance obtained by the above-mentioned averaging method. Not the same, if the fitness coach is to the left in the media image of the target video, then the first moving distance obtained by this calculation method is smaller than the first moving distance obtained by the above-mentioned averaging method, if the fitness coach is offset in the media image of the target video. Right, then the first moving distance obtained by this calculation method is greater than the first moving distance obtained by the above-mentioned averaging method.
在得到第一移动距离D后,在一些实施例中,显示设备可通过动态设置surfaceView(平面视图)的展示,实现目标视频的图像偏移显示。surfaceView的偏移输出函数可为:layoutParam.setMargins(0-D,0,0,0)。如图12所示,该偏移输出函数表示左侧偏移量为D,使得媒资图像的左侧起点为(0-D),媒资图像在第一播放窗口的左侧起点为0,由于第一播放窗口在展示图像时,需要从起点为0的位置开始展示图像。因此,根据上述偏移输出函数,可使得第一播放窗口在展示目标视频的每一帧图像时,在第一播放窗口内从目标视频在第一移动距离D右侧的像素点开始展示媒资图像,第一移动距离D内的图像超出了第一播放窗口的展示范围,第一播放窗口不会展示该部分图像,实现了将目标视频的图像向左偏移显示的显示效果,在目标视频的图像右侧,第一播放窗口还空余一部分显示区域,这部分显示区域可显示黑边,通过将第二播放窗口置顶显示,可使第二播放窗口覆盖住目标视频的图像中的人物右侧的部分背景图像以及上述黑边,用户不会看到该部分背景图像以及黑边,不影响用户的观看体验。其中,第二播放窗口的置顶方式可为将setZOrderOnTop(true)设置置顶。After obtaining the first moving distance D, in some embodiments, the display device may implement the image offset display of the target video by dynamically setting the display of the surfaceView (planar view). The offset output function of surfaceView can be: layoutParam.setMargins(0-D,0,0,0). As shown in Figure 12, the offset output function indicates that the left offset is D, so that the left starting point of the media asset image is (0-D), and the starting point on the left side of the media asset image in the first playback window is 0, Since the first playback window is displaying an image, the image needs to be displayed from the position where the starting point is 0. Therefore, according to the above-mentioned offset output function, when displaying each frame of the target video in the first playback window, the first playback window starts to display media assets from the pixel point on the right side of the target video at the first moving distance D in the first playback window. Image, the image within the first moving distance D exceeds the display range of the first playback window, and the first playback window will not display this part of the image, realizing the display effect of shifting the image of the target video to the left and displaying it in the target video. On the right side of the image, the first playback window still has a part of the display area, and this part of the display area can display black borders. By placing the second playback window on top, the second playback window can cover the right side of the character in the image of the target video. part of the background image and the above black border, the user will not see this part of the background image and the black border, and will not affect the user's viewing experience. Wherein, the topping method of the second playback window may be setZOrderOnTop(true) to be on top.
根据上述动态设置surfaceView的方法,可使显示设备在跟练模式下的播放界面如图13所示,目标视频的中部图像在第一播放窗口的目标显示区域内显示,用户图像在第二播放窗口内显示。According to the above method of dynamically setting the surfaceView, the playback interface of the display device in the follow-up mode is shown in Figure 13, the middle image of the target video is displayed in the target display area of the first playback window, and the user image is displayed in the second playback window. displayed inside.
在一些实施例中,显示设备在接收到目标视频之后,对目标视频进行解码,并按照第一播放窗口的参数进行缩放,然后在图像帧显示的过程中通过将图像帧的向左移动第一距离后的位置参数进行显示,由于移除第一播放窗口播放区域外的图像无法显示,靠近第二播放窗口的图像帧边缘被第二播放窗口遮挡,图像帧中央区域可以在第一播放窗口的未被遮挡的区域呈现。In some embodiments, after receiving the target video, the display device decodes the target video, scales it according to the parameters of the first playback window, and then moves the image frame to the left by the first The position parameter after the distance is displayed. Since the image outside the playback area of the first playback window cannot be displayed, the edge of the image frame close to the second playback window is blocked by the second playback window, and the central area of the image frame can be in the first playback window. Unoccluded areas are rendered.
在一些实施例中,第二播放窗口播放获取到的摄像头的视频数据。In some embodiments, the second play window plays the acquired video data of the camera.
由上述实施例可见,本申请实施例通过在显示设备上检测目标视频不被遮挡的显示区域,将其确定为目标显示区域,然后在将目标视频进行缩放后,控制目标视频的图像在目标显示区域进行偏移显示,解决了跟练模式下目标视频在播放时被第二播放窗口遮挡而导致的显示效果不佳的问题,提升了用户的观看体验。It can be seen from the above embodiments that in the embodiment of the present application, a display area where the target video is not blocked is detected on the display device, and it is determined as the target display area, and then after scaling the target video, the image of the target video is controlled to be displayed on the target. The area is offset and displayed, which solves the problem of poor display effect caused by the target video being blocked by the second playback window during playback in the follow-up mode, and improves the user's viewing experience.
由于以上实施方式均是在其他方式之上引用结合进行说明,不同实施例之间均具有相同的部分,本说明书中各个实施例之间相同、相似的部分互相参见即可。在此不再详细阐述。Since the above embodiments are all cited and combined with other modes for description, different embodiments all have the same parts, and the same and similar parts among the various embodiments in this specification can be referred to each other. It will not be elaborated here.
需要说明的是,在本说明书中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或暗示这些实体或操作之间存在任何这种实际的关系或顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的电路结构、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种电路结构、物品或者设备所固有的要素。在没有更多限制的情况下,有语句“包括一个……”限定的要素,并不排除在包括要素的电路结构、物品或者设备中还存在另外的相同要素。It should be noted that, in this specification, relational terms such as "first" and "second" etc. are only used to distinguish one entity or operation from another entity or operation, and are not necessarily required or implied Any such actual relationship or ordering exists between these entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a circuit structure, article or device comprising a list of elements includes not only those elements, but also not expressly listed Other elements, or elements inherent to such a circuit structure, article, or device are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the circuit structure, article, or device that includes the element.
本领域技术人员在考虑说明书及实践这里发明的公开后,将容易想到本申请的其他实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性地,本申请的真正范围和精神由权利要求的内容指出。Other embodiments of the present application will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of this application and include common knowledge or common technical means in the technical field not disclosed in this application . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the application being indicated by the content of the claims.
以上的本申请实施方式并不构成对本申请保护范围的限定。The above embodiments of the present application do not constitute a limitation on the protection scope of the present application.
Claims (9)
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110448074.1A CN113051432B (en) | 2021-04-25 | 2021-04-25 | Display device and media resource playback method |
| PCT/CN2021/119052 WO2022078154A1 (en) | 2020-10-15 | 2021-09-17 | Display device and media asset playing method |
| CN202180068337.4A CN116324700A (en) | 2020-10-15 | 2021-09-17 | Display device and method for playing media assets |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110448074.1A CN113051432B (en) | 2021-04-25 | 2021-04-25 | Display device and media resource playback method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113051432A CN113051432A (en) | 2021-06-29 |
| CN113051432B true CN113051432B (en) | 2022-07-19 |
Family
ID=76520351
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110448074.1A Active CN113051432B (en) | 2020-10-15 | 2021-04-25 | Display device and media resource playback method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113051432B (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116324700A (en) * | 2020-10-15 | 2023-06-23 | 聚好看科技股份有限公司 | Display device and method for playing media assets |
| CN114281284B (en) * | 2021-07-14 | 2024-04-26 | 海信视像科技股份有限公司 | Display device and image display method |
| CN113760140B (en) * | 2021-08-31 | 2023-12-08 | Oook(北京)教育科技有限责任公司 | Content display method, device, medium and electronic equipment |
| CN113794917A (en) * | 2021-09-15 | 2021-12-14 | 海信视像科技股份有限公司 | Display device and display control method |
| CN116737993B (en) * | 2022-02-28 | 2025-10-31 | 聚好看科技股份有限公司 | Video content interactive display method and display device |
| WO2023185129A1 (en) * | 2022-03-30 | 2023-10-05 | 聚好看科技股份有限公司 | Display device, server, media resource continuous playback method, and screen mirroring method |
| CN114995932B (en) * | 2022-05-11 | 2025-10-28 | 海信视像科技股份有限公司 | Display device and interface display method |
| WO2024087814A1 (en) * | 2022-10-25 | 2024-05-02 | 聚好看科技股份有限公司 | Method for implementing range communication in virtual conference, and display device and mobile terminal |
| CN116055783B (en) * | 2022-12-20 | 2025-04-11 | 北京达佳互联信息技术有限公司 | Video playback method, device, electronic device and storage medium |
| WO2025086841A1 (en) * | 2023-10-25 | 2025-05-01 | 海信视像科技股份有限公司 | Display device and animation display method for display device |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102032449B1 (en) * | 2013-01-07 | 2019-10-15 | 삼성전자주식회사 | Method for displaying image and mobile terminal |
| US20140279731A1 (en) * | 2013-03-13 | 2014-09-18 | Ivan Bezdomny Inc. | System and Method for Automated Text Coverage of a Live Event Using Structured and Unstructured Data Sources |
| CN109062486B (en) * | 2014-05-19 | 2022-03-25 | 联想(北京)有限公司 | Display window adjusting method and electronic equipment |
| CN110237545A (en) * | 2018-03-08 | 2019-09-17 | 徐志强 | A kind of video frequency remote-control method, remote controler and remote-control toy |
| CN116074564B (en) * | 2019-08-18 | 2024-10-01 | 聚好看科技股份有限公司 | Interface display method and display device |
| CN111953924B (en) * | 2020-08-21 | 2022-03-25 | 杨文龙 | Video window adjusting method, device, medium and system based on image processing |
| CN112162672A (en) * | 2020-10-19 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Information flow display processing method and device, electronic equipment and storage medium |
| CN112199005A (en) * | 2020-10-22 | 2021-01-08 | Tcl通讯(宁波)有限公司 | Content display method, content display device, storage medium and mobile terminal |
-
2021
- 2021-04-25 CN CN202110448074.1A patent/CN113051432B/en active Active
Non-Patent Citations (1)
| Title |
|---|
| 基于DLP大屏技术的视频会商系统改造与应用;罗红艳;《信息与电脑(理论版)》;20160923(第18期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113051432A (en) | 2021-06-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113051432B (en) | Display device and media resource playback method | |
| US11425466B2 (en) | Data transmission method and device | |
| WO2021088320A1 (en) | Display device and content display method | |
| CN112463269B (en) | User interface display method and display equipment | |
| WO2020248680A1 (en) | Video data processing method and apparatus, and display device | |
| CN113766164B (en) | Display device and signal source interface display method | |
| CN113825002B (en) | Display device and focus control method | |
| CN113395556A (en) | Display device and method for displaying detail page | |
| KR20200116378A (en) | Apparatus and method for displaying videoes of a plurality of broadcast channels | |
| CN113014939A (en) | Display device and playing method | |
| CN116347166A (en) | Display device and window display method | |
| WO2020248697A1 (en) | Display device and video communication data processing method | |
| CN114302206B (en) | Content display method, display equipment and server | |
| CN114302203A (en) | Image display method and display device | |
| CN111939561A (en) | Display device and interaction method | |
| CN116737993B (en) | Video content interactive display method and display device | |
| CN116801027A (en) | Display device and screen projection method | |
| CN112367550A (en) | Method for realizing multi-title dynamic display of media asset list and display equipment | |
| CN116980554A (en) | Display equipment and video conference interface display method | |
| CN116048695A (en) | Display device and data display method | |
| CN116074593A (en) | Display device and method for displaying progress of media asset playback | |
| CN115185392A (en) | Display device, image processing method and device | |
| CN114449179A (en) | Display device and portrait mixing method | |
| CN115314757B (en) | Display device and guide window display method | |
| CN115086722B (en) | Display method and display device for secondary screen content |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250514 Address after: 266061 No. 399 Songling Road, Laoshan District, Qingdao, Shandong (A6 3rd floor) Patentee after: QINGDAO JUKANYUN TECHNOLOGY CO.,LTD. Country or region after: China Address before: No.399, Songling Road, Laoshan District, Qingdao City, Shandong Province 266104 Patentee before: JUHAOKAN TECHNOLOGY Co.,Ltd. Country or region before: China |