CN106658137A - 一种视频播放方法及装置 - Google Patents

一种视频播放方法及装置 Download PDF

Info

Publication number
CN106658137A
CN106658137A CN201510732997.4A CN201510732997A CN106658137A CN 106658137 A CN106658137 A CN 106658137A CN 201510732997 A CN201510732997 A CN 201510732997A CN 106658137 A CN106658137 A CN 106658137A
Authority
CN
China
Prior art keywords
video
surfaceview
screen
top layer
video playback
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510732997.4A
Other languages
English (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510732997.4A priority Critical patent/CN106658137A/zh
Priority to PCT/CN2016/104331 priority patent/WO2017076289A1/zh
Publication of CN106658137A publication Critical patent/CN106658137A/zh
Priority to US15/709,329 priority patent/US10540056B2/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42224Touch pad or touch panel provided on the remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/12Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/14Solving problems related to the presentation of information to be displayed

Abstract

本发明实施例提供一种视频播放方法及装置,其中方法包括:若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从视频播放应用界面移除显示视频的SurfaceView;通过WindowManager将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。本发明实施例可达到在非视频播放应用界面播放视频的效果,为用户边观看视频,边进行如聊天、收发邮件等其他操作提供了可能。

Description

一种视频播放方法及装置
技术领域
本发明涉及视频技术领域,具体涉及一种视频播放方法及装置。
背景技术
随着智能手机、平板电脑等移动终端的普及,越来越多的用户采用移动终端观看视频(在线视频或本地视频),因此如何优化视频在移动终端上的播放,已成为技术人员关注的技术点。
为在移动终端上观看视频,用户需要先在移动终端上安装视频播放应用(如视频应用客户端,具有视频播放组件的浏览器等);视频播放应用一般提供有在线视频和本地视频的播放功能,具体的,视频播放应用通过搜索或推荐可展示在线视频,以便用户选择感兴趣的在线视频,视频播放应用通过搜索移动终端的本地数据库也可展示本地视频,以便用户选择感兴趣的本地视频;当用户选择感兴趣的视频后,视频播放应用将使用内部的视频播放引擎播放视频,并提供视频播放应用界面显示用户所选择的视频,以实现在移动终端上播放视频;视频播放应用界面为视频播放界面中用于显示需播放的视频的区域,视频播放界面还包括视频播放控制界面,视频播放控制界面主要用于设置控制视频播放的图标等控件。
本发明的发明人在研究过程中发现,由于大部分的移动终端仅支持单屏运行一个应用,并无法像PC(个人计算机)同屏运行多个应用,因此在移动终端播放视频时,如果用户由于需要进行与好友聊天、收发邮件等操作,使得移动终端的当前界面切换为非视频播放应用界面后,移动终端将无法继续播放视频;
然而,用户往往存在在非视频播放应用界面播放视频的需求,从而达成在非视频播放应用界面边观看视频,边实现与好友聊天、收发邮件等其他操作的目的;可见,为满足用户的此种需求,移动终端如何在非视频播放应用界面实现视频播放,成为了本领域技术人员需要考虑的问题。
发明内容
有鉴于此,本发明实施例提供一种视频播放方法及装置,以在非视频播放应用界面实现视频播放,为用户在移动终端上边观看视频,边实现其他操作提供可能。
为实现上述目的,本发明实施例提供如下技术方案:
一种视频播放方法,应用于移动终端,所述方法包括:
若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从视频播放应用界面移除显示视频的SurfaceView;
通过WindowManager将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;
控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。
本发明实施例还提供一种视频播放装置,应用于移动终端,所述装置包括:
第一View移除模块,用于若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从视频播放应用界面移除显示视频的SurfaceView;
View悬浮显示模块,用于通过WindowManager将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;
播放模块,用于控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。
基于上述技术方案,本发明实施例在视频播放界面检测到用户操作与设定操作相应时,移动终端可控制视频播放引擎停止播放视频,并从视频播放应用界面移除显示视频的SurfaceView;通过WindowManager将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;进而控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频,实现视频的播放。由于挂载在屏幕顶层悬浮显示的SurfaceView,无论移动终端的界面如何切换改变,只要挂载在屏幕顶层悬浮显示的SurfaceView未关闭,则屏幕顶层始终可维持显示有可显示视频的SurfaceView,通过挂载在屏幕顶层悬浮显示的SurfaceView显示视频,则可达到在非视频播放应用界面播放视频的效果,为用户边通过悬浮显示的SurfaceView观看视频,边进行如聊天、收发邮件等其他操作提供了可能。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本发明实施例提供的视频播放方法的流程图;
图2为本发明实施例提供的将SurfaceView悬浮显示于屏幕顶层的方法流程图;
图3为本发明实施例提供的视频播放方法的另一流程图;
图4为本发明实施例提供的返回以视频播放应用界面播放视频的方法流程图;
图5为本发明实施例提供的视频播放装置的结构框图;
图6为本发明实施例提供的View悬浮显示模块的结构框图;
图7为本发明实施例提供的视频播放装置的另一结构框图;
图8为本发明实施例提供的视频播放装置的再一结构框图;
图9为本发明实施例提供的视频播放装置的又一结构框图;
图10为本发明实施例提供的移动终端的硬件结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供的视频播放方法,主要是在移动终端的屏幕顶层设置悬浮显示的可用于显示视频的View(视图),通过该置于屏幕顶层悬浮显示的View显示视频,从而达到可不在视频播放应用提供的视频播放应用界面播放视频的效果,进而为用户在移动终端上边观看视频,边实现其他操作提供可能。
基于此思想,图1示出了本发明实施例提供的视频播放方法的流程图,该视频播放方法可应用于智能手机、平板电脑等移动终端,参照图1,该方法可以包括:
步骤S100、若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从视频播放应用界面移除显示视频的SurfaceView;
SurfaceView是View的子类,SurfaceView在创建的时候内嵌有对应Surface;Surface是安卓系统中管理显示内容数据的逻辑实体,其功能包括缓存数据、交换数据等,在本发明实施例中,Surface可缓存有需要进行播放的视频数据(如视频帧);SurfaceView通过刷新对应的Surface中缓存的视频数据,可在SurfaceView中显示视频;
在本发明实施例中,当通过视频播放应用提供的视频播放应用界面显示视频时,所创建的该视频播放应用界面绑定的SurfaceView将挂载在视频播放应用界面中;根据用户选择的需要播放的视频,视频播放应用的视频播放引擎将把相应的视频数据导入挂载在视频播放应用界面的SurfaceView对应的Surface中,SurfaceView刷新对应Surface中缓存的视频数据,进而达到在视频播放应用界面显示视频的目的;
值得注意的是,SurfaceView作为视图的一类,仅具有显示视频的功能,视频的播放主要由视频播放引擎进行;视频播放引擎将视频数据缓存入Surface中,SurfaceView刷新Surface中缓存的视频数据,进而在视频播放应用界面显示视频;
可选的,SurfaceView可全屏显示视频,也可以在视频播放应用界面的部分区域显示视频;在全屏情况下,视频播放应用界面将作为父窗口,SurfaceView填满该父窗口,实现全屏播放;在视频播放应用界面的部分区域播放视频时,视频播放应用界面的部分区域将作为视频播放区域,将SurfaceView填满该部分区域,再刷新对应Surface中缓存的视频数据,则可达成视频播放目的;
视频播放界面可设置以悬浮View显示视频的图标(图标可以按钮形式存在),具体可在视频播放控制界面设置;当用户点击该图标后,可认为在视频播放界面检测到设定操作,需要从视频播放应用界面移除显示视频的SurfaceView;显然,本发明实施例也可设置以悬浮View显示视频的快捷操作(快捷操作如设定触控操作等),当在视频播放界面检测到用户操作与该快捷操作对应时,则认为在视频播放界面检测到设定操作,需要从视频播放应用界面移除显示视频的SurfaceView。
步骤S110、通过WindowManager将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;
在从视频播放应用界面移除SurfaceView后,本发明实施例可将从视频播放应用界面移除的SurfaceView悬浮显示于移动终端的屏幕顶层;
本发明实施例设置SurfaceView可悬浮显示于屏幕顶层的方式,主要通过WindowManager(窗口管理器)实现;WindowManager是安卓系统中的服务接口,整个安卓系统的窗口机制就是基于WindowManager,WindowManager可以添加View到屏幕,也可以从屏幕移除View;WindowManager面向的对象一端是屏幕,另一端就是View;
需要注意的是,WindowManager是系统提供的可将View挂载到屏幕上显示的工具,WindowManager是将View挂载到移动终端的屏幕上顶层悬浮显示,而不是将View挂载到视频播放应用的界面中顶层显示;将View挂载到移动终端的屏幕上顶层悬浮显示,可使得移动终端无论当前处于何界面,View仍然维持在屏幕上顶层悬浮显示;而将View挂载到视频播放应用的界面中显示,则View仅可在视频播放应用的界面中维持顶层显示,一旦屏幕界面由视频播放应用的界面切换到其他界面(如主界面,即时通信应用的界面等)时,View将在其他界面中移除,无法在其他界面中维持顶层显示;因此通过WindowManager将View挂载到移动终端的屏幕上顶层悬浮显示,与将View挂载到视频播放应用的界面中顶层显示在本质上是不同的;
可选的,本发明实施例还可设置挂载在屏幕的SurfaceView的属性,属性如尺寸大小、透明度、可触摸移动、顶层显示等;在本发明实施例中,SurfaceView的属性可在前期预先设置好,在挂载SurfaceView至屏幕时,可直接采用前期预先设置好的属性,设置SurfaceView在屏幕顶层的显示效果;SurfaceView的属性也可在挂载SurfaceView至屏幕时现场由用户设置;
本发明实施例通过WindowManager的addView方法可在移动终端的屏幕上挂载显示从视频播放应用界面移除的SurfaceView,根据所设置的SurfaceView的属性,WindowManager挂载至屏幕显示的SurfaceView的显示效果也不同,如通过设置顶层显示的属性,可以实现挂载至屏幕的SurfaceView以悬浮窗口顶层显示的效果;
挂载在屏幕顶层悬浮显示的SurfaceView可覆盖屏幕的部分区域,以使得用户可通过屏幕中非SurfaceView覆盖的区域进行其他操作。
步骤S120、控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。
在将SurfaceView挂载在屏幕顶层悬浮显示后,本发明实施例可控制视频播放引擎播放视频,使得视频播放引擎将视频数据缓存入Surface中;由于SurfaceView显示的内容主要基于内嵌的对应Surface中缓存的数据,挂载在屏幕顶层悬浮显示的SurfaceView可显示对应Surface中缓存的视频数据,从而达到在屏幕顶层悬浮显示的SurfaceView中显示视频播放应用界面原先播放的视频的效果。
值得注意的是,原先在视频播放应用界面中显示视频的SurfaceView,与后续被挂载在屏幕顶层悬浮显示的SurfaceView为同一SurfaceView,只是SurfaceView挂载的位置和方式不同。
可以看出,由于SurfaceView被挂载在屏幕顶层悬浮显示,无论移动终端的界面如何切换改变,只要在被挂载在屏幕顶层悬浮显示的SurfaceView未关闭的情况下,屏幕顶层始终可维持显示SurfaceView,从而通过挂载在屏幕顶层悬浮显示的SurfaceView显示视频,达到在非视频播放应用界面播放视频的效果,为用户边通过屏幕顶层悬浮显示的SurfaceView观看视频,边进行如聊天、收发邮件等其他操作提供了可能。
在将SurfaceView挂载在屏幕顶层悬浮显示的过程中,本发明实施例可通过WindowManager提供的管理View的服务接口,实现视频播放应用界面移除的SurfaceView在屏幕上的挂载,进而根据所设置的SurfaceView的顶层显示属性,将挂载到屏幕的SurfaceView覆盖在屏幕的顶层悬浮显示;
对应的,图2示出了本发明实施例提供的将SurfaceView悬浮显示于屏幕顶层的方法流程图,参照图2,该方法可以包括:
步骤S200、利用WindowManager的服务接口将所移除的SurfaceView挂载到所述移动终端的屏幕;
步骤S210、设置挂载到所述屏幕的SurfaceView,在所述屏幕的顶层悬浮显示。
显然,若SurfaceView所设置的属性除顶层显示外,还具有尺寸大小、透明度、可触摸移动等其他属性时,在将所移除的SurfaceView添加到屏幕时,还可设置SurfaceView对应的尺寸大小、透明度、可触摸移动等其他属性。
SurfaceView实现视频播放的过程主要是SurfaceView在单位时间内刷新对应Surface中缓存的多个视频帧实现,如每秒刷新25帧视频帧(此处涉及的具体数值仅为示例说明)等;
对应的,在将视频播放应用界面移除的SurfaceView挂载在屏幕顶层悬浮显示后,本发明实施例可利用挂载在屏幕顶层悬浮显示的SurfaceView刷新对应的Surface中缓存的视频帧,从而达到以悬浮显示的SurfaceView显示视频的目的。
可选的,挂载在屏幕顶层悬浮显示的SurfaceView显示视频时,可以视频播放应用界面已显示的视频位置开始,续播后续视频,也可从头开始播放视频;
若以续播方式播放视频,本发明实施例可在检测到用户操作与设定操作相应,需移除视频播放应用界面的SurfaceView时,记录所移除的SurfaceView已显示的视频位置(可选的,可在检测到用户操作与设定操作相应时,记录所移除的SurfaceView刷新的视频帧位置),从而在挂载在屏幕顶层悬浮显示的SurfaceView显示视频时,以所记录的视频位置开始,显示后续视频(可选的,挂载在屏幕顶层悬浮显示的SurfaceView可从所记录的视频帧位置开始,刷新后续视频帧);
图3示出了本发明实施例提供的视频播放方法的另一流程图,参照图3,该方法可以包括:
步骤S300、若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从所述视频播放应用界面移除显示视频的SurfaceView,记录所移除的SurfaceView刷新的视频帧位置;
可选的,视频帧位置可以视频帧的播放时间表示。
步骤S310、利用WindowManager的服务接口将所移除的SurfaceView挂载到移动终端的屏幕,设置挂载到所述屏幕的SurfaceView,在所述屏幕的顶层悬浮显示;
步骤S320、从所记录的视频帧位置开始,利用挂载在屏幕顶层悬浮显示的SurfaceView刷新对应的Surface中缓存的后续视频帧。
可选的,在利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频时,用户可操作移动终端将屏幕界面切换到非视频播放应用界面(如主界面,或其他应用界面),从而在非视频播放应用界面执行如聊天,收发邮件等其他操作;
显然,在利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频时,用户也可维持移动终端显示视频播放应用界面,从而在利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频时,用户可在视频播放应用界面执行如查看视频评论、搜索视频等其他操作;
无论移动终端将屏幕界面切换到非视频播放应用界面,还是维持显示视频播放应用界面,由于SurfaceView始终处于悬浮于屏幕顶层显示的状态,因此SurfaceView可维持显示于屏幕的第一区域;第一区域为屏幕中被SurfaceView占据的区域,第一区域的大小可与SurfaceView的区域大小一致,第一区域的大小也可根据SurfaceView的区域大小调整;
若检测到用户在屏幕的非第一区域的操作,则可以根据用户的操作对象作相应的响应,执行与所述操作对应的响应结果;如屏幕当前界面为主界面,用户点击了主界面中非第一区域所显示的应用图标,则可启动该应用图标对应的应用;
而用户在第一区域的操作,可以视为是控制视频播放的操作;对应的,若检测到用户在所述第一区域的操作,则可根据用户操作对挂载在屏幕顶层悬浮显示的SurfaceView所显示的视频作相应控制;如挂载在屏幕顶层悬浮显示的SurfaceView可显示播放、暂停图标,若检测到用户点击暂停图标,则可暂停SurfaceView所显示的视频,若检测到用户点击播放图标,则可控制SurfaceView继续显示后续视频。
可选的,挂载在屏幕顶层悬浮显示的SurfaceView刷新视频帧时,涉及到内部视频播放引擎和解码器的视频解码工作;而在挂载在屏幕顶层悬浮显示的SurfaceView显示视频时,由于用户利用移动终端进行视频聊天或者查看其它视频文件时,可能存在播放非SurfaceView所显示的视频的其他视频的情况;而SurfaceView刷新视频帧所涉及的视频解码工作,与播放该其他视频所涉及的视频解码工作相并行,为分担视频解码压力,SurfaceView涉及的视频解码方式,可与解码该其他视频涉及的视频解码方式不同;
具体的,本发明实施例若在利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频的过程中,检测到移动终端设备需解码非所述视频的其他视频,则以与解码所述视频不同的视频解码方式,解码所述其他视频;
如本发明实施例可以移动终端中设置的视频解码芯片解码SurfaceView显示的视频,而在处理器中通过视频解码软件解码所述其他视频。
可选的,本发明实施例还提供有由挂载在屏幕顶层悬浮显示的SurfaceView显示视频,返回至以视频播放应用界面播放视频的机制;图4示出了本发明实施例提供的返回以视频播放应用界面播放视频的方法流程图,参照图4,该方法可以包括:
步骤S400、若检测到用户操作与设定的返回以视频播放应用界面播放视频的操作相应时,控制视频播放引擎停止播放视频,并通过WindowManager将挂载在屏幕顶层悬浮显示的SurfaceView从所述移动终端的屏幕中移除;
可选的,挂载在屏幕顶层悬浮显示的SurfaceView可显示返回图标,若用户点击了该返回图标,则可确定需返回以视频播放应用界面播放视频;显然,也可设置返回以视频播放应用界面播放视频的快捷操作,当用户操作与该快捷操作相应时,则可认为需返回以视频播放应用界面播放视频。
步骤S410、展示视频播放界面;
步骤S420、将从屏幕中移除的SurfaceView挂载在视频播放应用界面,并利用挂载在视频播放应用界面的SurfaceView显示所述视频。
SurfaceView可以全屏或覆盖视频播放应用界面的部分区域的方式,显示所述视频。
优选的,本发明实施例提供的视频播放方法的流程可以如下:
用户点击视频播放应用,并选中需播放的视频后,移动终端将创建相应的视频播放界面,并创建相应的用于显示视频的SurfaceView;在全屏播放模式下,SurfaceView可以视频播放应用界面为父窗口,并填满该父窗口,使得SurfaceView添加到视频播放应用界面中显示;
视频播放应用进行视频播放的初始化流程,视频播放引擎将所选中的视频的视频帧缓存入Surface,SurfaceView刷新对应Surface中缓存的视频帧,开始在SurfaceView以全屏方式显示视频;
若用户点击了视频播放界面中显示的以悬浮View显示视频的图标(图标可在视频播放界面的视频播放控制界面设置),则移动终端控制视频播放引擎停止播放视频,并从视频播放应用界面中移除SurfaceView,记录SurfaceView当前刷新的视频帧位置;
设置需挂载在屏幕的SurfaceView的属性,属性至少包括顶层显示;显然,属性还可包括尺寸大小、透明度、可触摸移动等;移动终端通过WindowManager将从视频播放应用界面移除的SurfaceView挂载在所述移动终端的屏幕,并设置挂载在屏幕的SurfaceView的显示效果与所设置的属性相应,使得SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示,;
移动终端控制视频播放引擎播放视频,通过挂载在屏幕顶层悬浮显示的SurfaceView,从所记录的视频帧位置开始刷新对应的Surface中缓存的后续视频帧,实现在悬浮显示于屏幕顶层的SurfaceView中,显示视频播放应用界面已显示的视频;
在挂载在屏幕顶层悬浮显示的SurfaceView显示视频的过程中,可维持第SurfaceView仅覆盖屏幕的部分区域;在非SurfaceView覆盖的屏幕区域,移动终端可根据用户操作执行如打开聊天应用,打字,收发邮件,甚至玩游戏等其他操作。
本发明实施例提供的视频播放方法,可以悬浮显示于屏幕顶层的SurfaceView显示视频,达成在非视频播放应用界面播放视频的目的,使得用户可在移动终端上边观看视频,边进行其他操作。
下面对本发明实施例提供的视频播放装置进行介绍,下文描述的视频播放装置可与上文描述的视频播放方法相互对应参照。
图5为本发明实施例提供的视频播放装置的结构框图,该装置可应用于移动终端,参照图5,该装置可以包括:
第一View移除模块100,用于若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从视频播放应用界面移除显示视频的SurfaceView;
View悬浮显示模块200,用于通过WindowManager将所移除的SurfaceView挂载在移动终端的屏幕顶层悬浮显示;
播放模块300,用于控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。
可选的,图6示出了本发明实施例提供的View悬浮显示模块300的一种可选结构,参照图6,View悬浮显示模块200可以包括:
添加单元210,用于利用所述WindowManager的服务接口将所移除的SurfaceView挂载到所述移动终端的屏幕;
顶层悬浮设置单元220,用于设置挂载到所述屏幕的SurfaceView,在所述屏幕的顶层悬浮显示。
可选的,播放模块300利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频时,可利用挂载在屏幕顶层悬浮显示的SurfaceView刷新对应的Surface中缓存的视频帧,实现视频播放;
可选的,移动终端在检测到用户操作与设定操作相应时还可记录所移除的SurfaceView所刷新的视频帧位置;在此基础上,播放模块300具体可用于,从所述视频帧位置开始,利用挂载在屏幕顶层悬浮显示的SurfaceView刷新对应的Surface中缓存的后续视频帧。
可选的,挂载在屏幕顶层悬浮显示的SurfaceView可维持显示于屏幕的第一区域,第一区域的大小可与挂载在屏幕顶层悬浮显示的SurfaceView的大小一致,并随SurfaceView的大小的调整而调整;本发明实施例还提供有用户在非第一区域执行其他操作,和在第一区域执行视频播放控制操作的机制;
对应的,图7示出了本发明实施例提供的视频播放装置的另一结构框图,结合5和图7所示,该装置还可以包括:
第一操作响应模块400,用于若检测到用户在屏幕的非第一区域的操作,执行与所述操作对应的响应结果;
第二操作响应模块500,用于若检测到用户在所述第一区域的操作,根据所述操作对挂载在屏幕顶层悬浮显示的SurfaceView所显示的视频进行相应控制。
可选的,在移动终端需解码其他视频时(其他视频为非挂载在屏幕顶层悬浮显示的SurfaceView显示的视频),为分担视频解码压力,图8示出了本发明实施例提供的视频播放装置的再一结构框图,结合5和图8所示,该装置还可以包括:
视频解码控制模块600,用于若在利用挂载在屏幕顶层悬浮显示的SurfaceView显示所述视频的过程中,检测到移动终端设备需解码非所述视频的其他视频,则以与解码所述视频不同的视频解码方式,解码所述其他视频。
可选的,本发明实施例还提供有由挂载在屏幕顶层悬浮显示的SurfaceView显示视频,返回至以视频播放应用界面显示视频的机制;对应的,图9示出了本发明实施例提供的视频播放装置的又一结构框图,结合5和图9所示,该装置还可以包括:
第二View移除模块700,用于若检测到用户操作与设定的返回以所述视频播放应用界面显示视频的操作相应时,控制视频播放引擎停止播放视频,并通过所述WindowManager将挂载在屏幕顶层悬浮显示的SurfaceView从所述移动终端的屏幕中移除;
界面展示模块800,用于展示视频播放界面;
设置并播放模块900,用于将从屏幕中移除的SurfaceView挂载在视频播放应用界面,利用挂载在视频播放应用界面的SurfaceView显示所述视频。
本发明实施例还提供一种移动终端,该移动终端可以包括上述所述的视频播放装置;采用本发明实施例提供的移动终端,可以悬浮显示于屏幕顶层的SurfaceView显示视频,达成在非视频播放应用界面播视频的目的,使得用户可在移动终端上边观看视频,边进行其他操作。
图10示出了本发明实施例提供的移动终端的硬件结构框图,该移动终端可以为智能手机、平板电脑等移动设置;参照图10,该移动终端可以包括:
处理器1,通信接口2,存储器3和通信总线4;
其中处理器1、通信接口2、存储器3通过通信总线4完成相互间的通信;
可选的,通信接口2可以为通信模块的接口,如GSM模块的接口;
处理器1,用于执行程序;
存储器3,用于存放程序;
程序可以包括程序代码,所述程序代码包括计算机操作指令。
处理器1可能是一个中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。
存储器3可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
其中,程序可具体用于:
若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从所述视频播放应用界面移除显示视频的SurfaceView;
通过WindowManager将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;
控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

1.一种视频播放方法,其特征在于,应用于移动终端,所述方法包括:
若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从视频播放应用界面移除显示视频的SurfaceView;
通过WindowManager窗口管理器将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;
控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。
2.根据权利要求1所述的视频播放方法,其特征在于,所述通过WindowManager将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示包括:
利用所述WindowManager的服务接口将所移除的SurfaceView挂载到所述移动终端的屏幕;
设置挂载到所述屏幕的SurfaceView,在所述屏幕的顶层悬浮显示。
3.根据权利要求1所述的视频播放方法,其特征在于,所述利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频包括:
利用挂载在屏幕顶层悬浮显示的SurfaceView刷新对应的Surface中缓存的视频帧,Surface中缓存的视频帧由视频播放引擎导入。
4.根据权利要求3所述的视频播放方法,其特征在于,在检测到用户操作与设定操作相应时,所述方法还包括:
记录所述视频播放应用界面的SurfaceView所刷新的视频帧位置;
所述利用挂载在屏幕顶层悬浮显示的SurfaceView刷新对应的Surface中缓存的视频帧包括:
从所述视频帧位置开始,利用挂载在屏幕顶层悬浮显示的SurfaceView刷新对应的Surface中缓存的后续视频帧。
5.根据权利要求1所述的视频播放方法,其特征在于,所述挂载在屏幕顶层悬浮显示的SurfaceView维持显示于屏幕的第一区域;
所述方法还包括:
若检测到用户在屏幕的非第一区域的操作,执行与所述操作对应的响应结果。
6.根据权利要求5所述的视频播放方法,其特征在于,所述方法还包括:
若检测到用户在所述第一区域的操作,根据所述操作对挂载在屏幕顶层悬浮显示的SurfaceView所显示的视频进行相应控制。
7.根据权利要求1所述的视频播放方法,其特征在于,所述方法还包括:
若在利用挂载在屏幕顶层悬浮显示的SurfaceView显示所述视频的过程中,检测到移动终端设备需解码非所述视频的其他视频,则以与解码所述视频不同的视频解码方式,解码所述其他视频。
8.根据权利要求1所述的视频播放方法,其特征在于,所述方法还包括:
若检测到用户操作与设定的返回以所述视频播放应用界面播放视频的操作相应时,控制视频播放引擎停止播放视频,并通过所述WindowManager将挂载在屏幕顶层悬浮显示的SurfaceView从所述移动终端的屏幕中移除;
展示视频播放界面;
将从屏幕中移除的SurfaceView挂载在视频播放应用界面,并利用挂载在视频播放应用界面的SurfaceView显示所述视频。
9.一种视频播放装置,其特征在于,应用于移动终端,所述装置包括:
第一View移除模块,用于若在视频播放界面检测到用户操作与设定操作相应,控制视频播放引擎停止播放视频,并从所述视频播放应用界面移除显示视频的SurfaceView;
View悬浮显示模块,用于通过WindowManager窗口管理器将所移除的SurfaceView挂载在所述移动终端的屏幕顶层悬浮显示;
播放模块,用于控制视频播放引擎播放视频,并利用挂载在屏幕顶层悬浮显示的SurfaceView显示视频。
10.根据权利要求9所述的视频播放装置,其特征在于,所述View悬浮显示模块包括:
添加单元,用于利用所述WindowManager的服务接口将所移除的SurfaceView挂载到所述移动终端的屏幕;
顶层悬浮设置单元,用于设置挂载到所述屏幕的SurfaceView,在所述屏幕的顶层悬浮显示。
CN201510732997.4A 2015-11-02 2015-11-02 一种视频播放方法及装置 Pending CN106658137A (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201510732997.4A CN106658137A (zh) 2015-11-02 2015-11-02 一种视频播放方法及装置
PCT/CN2016/104331 WO2017076289A1 (zh) 2015-11-02 2016-11-02 视频播放方法及装置
US15/709,329 US10540056B2 (en) 2015-11-02 2017-09-19 Video playing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510732997.4A CN106658137A (zh) 2015-11-02 2015-11-02 一种视频播放方法及装置

Publications (1)

Publication Number Publication Date
CN106658137A true CN106658137A (zh) 2017-05-10

Family

ID=58661608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510732997.4A Pending CN106658137A (zh) 2015-11-02 2015-11-02 一种视频播放方法及装置

Country Status (3)

Country Link
US (1) US10540056B2 (zh)
CN (1) CN106658137A (zh)
WO (1) WO2017076289A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108419117A (zh) * 2018-04-28 2018-08-17 中广热点云科技有限公司 一种实现视频小窗口播放的装置及方法
CN108881617A (zh) * 2018-05-24 2018-11-23 维沃移动通信有限公司 一种显示切换方法及移动终端
CN109819305A (zh) * 2018-12-28 2019-05-28 深圳豪客互联网有限公司 一种应用程序中的视频播放控制方法及装置
CN110636157A (zh) * 2019-08-27 2019-12-31 北京航空航天大学 一种基于悬浮窗内嵌人脸识别技术的手持云台的跟踪方法
CN110650352A (zh) * 2019-09-06 2020-01-03 四川天邑康和通信股份有限公司 一种iptv浏览器的视频处理方法
CN113949833A (zh) * 2021-09-01 2022-01-18 杭州当贝网络科技有限公司 视频显示的控制方法和装置

Families Citing this family (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8977255B2 (en) 2007-04-03 2015-03-10 Apple Inc. Method and system for operating a multi-function portable electronic device using voice-activation
US8676904B2 (en) 2008-10-02 2014-03-18 Apple Inc. Electronic devices with voice command and contextual data processing capabilities
US10417037B2 (en) 2012-05-15 2019-09-17 Apple Inc. Systems and methods for integrating third party services with a digital assistant
BR112015018905B1 (pt) 2013-02-07 2022-02-22 Apple Inc Método de operação de recurso de ativação por voz, mídia de armazenamento legível por computador e dispositivo eletrônico
US10170123B2 (en) 2014-05-30 2019-01-01 Apple Inc. Intelligent assistant for home automation
US9715875B2 (en) 2014-05-30 2017-07-25 Apple Inc. Reducing the need for manual start/end-pointing and trigger phrases
US9338493B2 (en) 2014-06-30 2016-05-10 Apple Inc. Intelligent automated assistant for TV user interactions
US9886953B2 (en) 2015-03-08 2018-02-06 Apple Inc. Virtual assistant activation
US20160378747A1 (en) 2015-06-29 2016-12-29 Apple Inc. Virtual assistant for media playback
US10747498B2 (en) 2015-09-08 2020-08-18 Apple Inc. Zero latency digital assistant
US10691473B2 (en) 2015-11-06 2020-06-23 Apple Inc. Intelligent automated assistant in a messaging environment
US10586535B2 (en) 2016-06-10 2020-03-10 Apple Inc. Intelligent digital assistant in a multi-tasking environment
DK201670540A1 (en) 2016-06-11 2018-01-08 Apple Inc Application integration with a digital assistant
DK180048B1 (en) 2017-05-11 2020-02-04 Apple Inc. MAINTAINING THE DATA PROTECTION OF PERSONAL INFORMATION
DK201770427A1 (en) 2017-05-12 2018-12-20 Apple Inc. LOW-LATENCY INTELLIGENT AUTOMATED ASSISTANT
DK179496B1 (en) 2017-05-12 2019-01-15 Apple Inc. USER-SPECIFIC Acoustic Models
DK201770411A1 (en) * 2017-05-15 2018-12-20 Apple Inc. MULTI-MODAL INTERFACES
US10878808B1 (en) * 2018-01-09 2020-12-29 Amazon Technologies, Inc. Speech processing dialog management
CN108495169A (zh) * 2018-03-23 2018-09-04 北京焦点新干线信息技术有限公司 信息展示方法及装置
US10928918B2 (en) 2018-05-07 2021-02-23 Apple Inc. Raise to speak
US11145294B2 (en) 2018-05-07 2021-10-12 Apple Inc. Intelligent automated assistant for delivering content from user experiences
DK180639B1 (en) 2018-06-01 2021-11-04 Apple Inc DISABILITY OF ATTENTION-ATTENTIVE VIRTUAL ASSISTANT
CN108882038B (zh) * 2018-06-25 2020-10-27 苏宁易购集团股份有限公司 一种基于Android的多路视频播放方法
US11462215B2 (en) 2018-09-28 2022-10-04 Apple Inc. Multi-modal inputs for voice commands
US11348573B2 (en) 2019-03-18 2022-05-31 Apple Inc. Multimodality in digital assistant systems
US11307752B2 (en) 2019-05-06 2022-04-19 Apple Inc. User configurable task triggers
DK201970509A1 (en) 2019-05-06 2021-01-15 Apple Inc Spoken notifications
US11140099B2 (en) 2019-05-21 2021-10-05 Apple Inc. Providing message response suggestions
US11227599B2 (en) 2019-06-01 2022-01-18 Apple Inc. Methods and user interfaces for voice-based control of electronic devices
US11038934B1 (en) 2020-05-11 2021-06-15 Apple Inc. Digital assistant hardware abstraction
US11061543B1 (en) 2020-05-11 2021-07-13 Apple Inc. Providing relevant data items based on context
CN113709020B (zh) * 2020-05-20 2024-02-06 腾讯科技(深圳)有限公司 消息发送方法、消息接收方法、装置、设备及介质
US11861262B2 (en) 2020-05-28 2024-01-02 Snap Inc. Audio detection and subtitle presence
US11490204B2 (en) 2020-07-20 2022-11-01 Apple Inc. Multi-device audio adjustment coordination
US11438683B2 (en) 2020-07-21 2022-09-06 Apple Inc. User identification using headphones
US11937014B2 (en) * 2022-03-17 2024-03-19 Lenovo (Singapore) Pte. Ltd. Permitting devices to change settings related to outbound audio/video streamed from another device as part of video conference
US20230319361A1 (en) * 2022-03-31 2023-10-05 Toshiba Global Commerce Solutions, Inc. Multimedia playback controlling system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866914A (zh) * 2011-06-14 2013-01-09 三星电子株式会社 在移动装置中执行多个任务的系统和方法
CN102883218A (zh) * 2012-09-21 2013-01-16 北京君正集成电路股份有限公司 一种解码多个视频文件的方法及设备
CN103500081A (zh) * 2013-09-26 2014-01-08 乐视致新电子科技(天津)有限公司 一种显示方法及显示设备
CN103702161A (zh) * 2013-12-26 2014-04-02 乐视网信息技术(北京)股份有限公司 一种播放多媒体文件的方法及具备触摸屏的终端
CN103957447A (zh) * 2014-05-08 2014-07-30 济南四叶草信息技术有限公司 悬浮多窗口播放系统
US20150264292A1 (en) * 2014-03-12 2015-09-17 Google Inc. System and method for continuing playback in widget after app is backgrounded

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101548958B1 (ko) * 2008-09-18 2015-09-01 삼성전자주식회사 휴대단말기의 터치스크린 동작 제어 방법 및 장치
CN103546816A (zh) * 2013-05-02 2014-01-29 乐视网信息技术(北京)股份有限公司 用户界面处理及视频播放方法及用户界面系统
CN104836906A (zh) * 2015-04-13 2015-08-12 惠州Tcl移动通信有限公司 一种移动终端及其在短信操作界面实时获取图像的方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866914A (zh) * 2011-06-14 2013-01-09 三星电子株式会社 在移动装置中执行多个任务的系统和方法
CN102883218A (zh) * 2012-09-21 2013-01-16 北京君正集成电路股份有限公司 一种解码多个视频文件的方法及设备
CN103500081A (zh) * 2013-09-26 2014-01-08 乐视致新电子科技(天津)有限公司 一种显示方法及显示设备
CN103702161A (zh) * 2013-12-26 2014-04-02 乐视网信息技术(北京)股份有限公司 一种播放多媒体文件的方法及具备触摸屏的终端
US20150264292A1 (en) * 2014-03-12 2015-09-17 Google Inc. System and method for continuing playback in widget after app is backgrounded
CN103957447A (zh) * 2014-05-08 2014-07-30 济南四叶草信息技术有限公司 悬浮多窗口播放系统

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XIEYM111: "Android 浮动窗口进阶——画中画,浮动视频", 《豆丁网,HTTP://WWW.DOCIN.COM/P-728454773.HTML》 *
泡泡糖: ""Android 浮动窗口进阶——画中画,浮动视频"", 《博客园,HTTP://WWW.CNBLOGS.COM/MYTHOU/P/3250302.HTML》 *
王伟的HAO: "surface view 应用场景", 《百度文库》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108419117A (zh) * 2018-04-28 2018-08-17 中广热点云科技有限公司 一种实现视频小窗口播放的装置及方法
CN108419117B (zh) * 2018-04-28 2020-09-08 中广热点云科技有限公司 一种实现视频小窗口播放的装置及方法
CN108881617A (zh) * 2018-05-24 2018-11-23 维沃移动通信有限公司 一种显示切换方法及移动终端
CN109819305A (zh) * 2018-12-28 2019-05-28 深圳豪客互联网有限公司 一种应用程序中的视频播放控制方法及装置
CN110636157A (zh) * 2019-08-27 2019-12-31 北京航空航天大学 一种基于悬浮窗内嵌人脸识别技术的手持云台的跟踪方法
CN110650352A (zh) * 2019-09-06 2020-01-03 四川天邑康和通信股份有限公司 一种iptv浏览器的视频处理方法
CN110650352B (zh) * 2019-09-06 2020-12-08 四川天邑康和通信股份有限公司 一种iptv浏览器的视频处理方法
CN113949833A (zh) * 2021-09-01 2022-01-18 杭州当贝网络科技有限公司 视频显示的控制方法和装置
CN113949833B (zh) * 2021-09-01 2024-03-19 杭州当贝网络科技有限公司 视频显示的控制方法和装置

Also Published As

Publication number Publication date
WO2017076289A1 (zh) 2017-05-11
US10540056B2 (en) 2020-01-21
US20180004396A1 (en) 2018-01-04

Similar Documents

Publication Publication Date Title
CN106658137A (zh) 一种视频播放方法及装置
US10375434B2 (en) Real-time rendering of targeted video content
US11363329B2 (en) Object discovery and exploration in video content
US11222479B2 (en) Object customization and accessorization in video content
US11288867B2 (en) Real-time exploration of video content
CN102830964B (zh) 一种显示多任务界面的方法及装置
CN105306997B (zh) 移动终端播放方式切换方法及装置
JP2024505022A (ja) インタラクション方法、装置、電子機器、および記憶媒体
EP2102806B1 (en) Motion desktop
CN109643241B (zh) 显示处理方法、装置、存储介质及电子终端
CN103747362A (zh) 一种截取视频片段的方法和装置
CN103793134A (zh) 一种触摸屏终端多界面切换的方法及触摸屏终端
CN105979339B (zh) 一种窗口显示方法及客户端
CN111405377A (zh) 一种视频播放方法、装置、电子设备和存储介质
CN109922360A (zh) 视频处理方法、装置及存储介质
CN105915993B (zh) 利用寄生工具包实现的视频播放模式设置方法及装置
CN110611844A (zh) 应用中播放器的控制方法、装置和视频播放装置
CN110019464A (zh) 页面处理方法及装置
KR101154996B1 (ko) 이동통신 단말기 및 그 메뉴화면 구성 방법
CN105122826B (zh) 用于由移动计算设备显示带注释的视频内容的系统和方法
CN103116443B (zh) 一种界面显示控制方法及装置
CN105183288B (zh) 单窗口多任务显示方法及其智能移动终端
CN109144354B (zh) 旋转播放器视图层的方法和设备
CN103559034B (zh) 在移动设备中控制锁屏的方法及装置
EP2577442A2 (en) Updating graphical display 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510