CN108833982A - 一种视频滑动快进和页面滚动兼容的方法 - Google Patents

一种视频滑动快进和页面滚动兼容的方法 Download PDF

Info

Publication number
CN108833982A
CN108833982A CN201810445294.7A CN201810445294A CN108833982A CN 108833982 A CN108833982 A CN 108833982A CN 201810445294 A CN201810445294 A CN 201810445294A CN 108833982 A CN108833982 A CN 108833982A
Authority
CN
China
Prior art keywords
gesture
video
boxpanges
page
compatibility
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.)
Granted
Application number
CN201810445294.7A
Other languages
English (en)
Other versions
CN108833982B (zh
Inventor
郭艳杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kuwo Technology Co Ltd
Original Assignee
Beijing Kuwo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kuwo Technology Co Ltd filed Critical Beijing Kuwo Technology Co Ltd
Priority to CN201810445294.7A priority Critical patent/CN108833982B/zh
Publication of CN108833982A publication Critical patent/CN108833982A/zh
Application granted granted Critical
Publication of CN108833982B publication Critical patent/CN108833982B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明涉及一种视频滑动快进和页面滚动兼容的方法,包括如下步骤:自定义移动手势boxPanGes,在boxPanGes手势中,设定一手势识别延迟参数,用于调节识别灵敏度,调用willMoveToSuperview方法,在方法中进一步调用手势兼容算法,从视频页面控制器获取用户的触屏操作数据,如当前设定为设置外层scrollView兼容,则:视频播放手势boxPanGes优先于scrollView的所有gestureRecognizers,如当前设定为设置基本左滑手势兼容,则:视频播放手势boxPanGes优先于页面左滑退出页面手势。本发明,通过自定义移动手势,可准确辨认视频滑动快进和页面滚动,实现两个手势的兼容,算法简洁,准确性高,提升用户体验。

Description

一种视频滑动快进和页面滚动兼容的方法
技术领域
本发明涉及手势操作管理技术领域,具体说是一种视频滑动快进和页面滚动兼容的方法。
背景技术
现有的便携智能设备均支持触屏交互操作,以手机为例,目前已经进入了全面屏时代,更大的屏幕,更大的可视面积,为用户提供了更好的使用体验,不过,随之而来的问题也不少,例如操作更加不便。
在App中,短视频越来越受到用户和商家的追捧,很多视频平台全面转型为短视频平台,以抢占市场先机。生活节奏加快,学习或工作占用了人们大部分的时间,而剩下少许的碎片化时间,则将属于短视频争夺的新发展空间。
短视频的播放时长通常在15秒到5分钟之间,通常采用基于tableView的视频列表的形式展现给用户,当tableView滚动时,通过预设的策略确定究竟哪一个cell应该播放视频。
当某个cell播放视频时,通常会提供播放进度条,用户可以通过滑动操作实现视频快进,此时,滑动操作或被解读为页面滚动操作,反之亦然,由此将导致用户期望的操作和实际发生的操作不同,影响用户体验。
发明内容
针对现有技术中存在的缺陷,本发明的目的在于提供一种视频滑动快进和页面滚动兼容的方法,通过自定义移动手势,可准确辨认视频滑动快进和页面滚动,实现两个手势的兼容,算法简洁,准确性高,提升用户体验。
为达到以上目的,本发明采取的技术方案是:
一种视频滑动快进和页面滚动兼容的方法,其特征在于,包括如下步骤:
在父视图前添加播放窗口videoBox,用于展示视频播放内容,
自定义移动手势boxPanGes,用于实现视频滑动快进操作,
在boxPanGes手势中,设定一手势识别延迟参数boxPanGes.delayInterval,用于调节识别灵敏度,
调用willMoveToSuperview方法,在方法中进一步调用手势兼容算法boxGestureExclusiveHandle,从视频页面控制器获取用户的触屏操作数据,
如当前设定为设置外层scrollView兼容,则:视频播放手势boxPanGes优先于scrollView的所有gestureRecognizers,
如当前设定为设置基本左滑手势兼容,则:视频播放手势boxPanGes优先于页面左滑退出页面手势。
在上述技术方案的基础上,所述手势识别延迟参数boxPanGes.delayInterval默认值为0.01。
在上述技术方案的基础上,所述调用willMoveToSuperview方法,在播放窗口videoBox即将加入父视图前被调用。
在上述技术方案的基础上,在手势兼容算法boxGestureExclusiveHandle中,通过requireGestureRecognizerToFail方法将导致视频滑动冲突的手势设置为低优先级,以解决手势冲突问题。
本发明所述的视频滑动快进和页面滚动兼容的方法,通过自定义移动手势,可准确辨认视频滑动快进和页面滚动,实现两个手势的兼容,算法简洁,准确性高,提升用户体验。
附图说明
本发明有如下附图:
图1 本发明的流程图。
具体实施方式
以下结合附图对本发明作进一步详细说明。
如图1所示,本发明所述的视频滑动快进和页面滚动兼容的方法,包括如下步骤:
在父视图前添加播放窗口videoBox,用于展示视频播放内容,
自定义移动手势boxPanGes,用于实现视频滑动快进操作,
在boxPanGes手势中,设定一手势识别延迟参数boxPanGes.delayInterval,用于调节识别灵敏度,
调用willMoveToSuperview方法,在方法中进一步调用手势兼容算法boxGestureExclusiveHandle,从视频页面控制器获取用户的触屏操作数据,
如当前设定为设置外层scrollView兼容,则:视频播放手势boxPanGes优先于scrollView的所有gestureRecognizers,
如当前设定为设置基本左滑手势兼容,则:视频播放手势boxPanGes优先于页面左滑退出页面手势。
GestureRecognizer(UIGestureRecognizer)基类是一个抽象类,我们主要是使用它的子类,常用的有:
UIPanGestureRecognizer拖拽手势,
UIPinchGestureRecognizer捏合缩放手势,
UIRotationGestureRecognizer旋转手势,
UITapGestureRecognizer点击手势,
UILongPressGestureRecognizer长按手势。
所谓优先于是指将用户的触屏操作优先解析为视频播放手势boxPanGes。
在上述技术方案的基础上,所述手势识别延迟参数boxPanGes.delayInterval默认值为0.01。
取值0.01目的在于降低手势识别延迟,提高识别灵敏。通过自定义手势来提高识别手势灵敏度,更便于整体控制和管理。
在上述技术方案的基础上,所述调用willMoveToSuperview方法,在播放窗口videoBox即将加入父视图前被调用。
在上述技术方案的基础上,在手势兼容算法boxGestureExclusiveHandle中,通过requireGestureRecognizerToFail方法将导致视频滑动冲突的手势设置为低优先级,以解决手势冲突问题。
本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。

Claims (4)

1.一种视频滑动快进和页面滚动兼容的方法,其特征在于,包括如下步骤:
在父视图前添加播放窗口videoBox,用于展示视频播放内容,
自定义移动手势boxPanGes,用于实现视频滑动快进操作,
在boxPanGes手势中,设定一手势识别延迟参数boxPanGes.delayInterval,用于调节识别灵敏度,
调用willMoveToSuperview方法,在方法中进一步调用手势兼容算法boxGestureExclusiveHandle,从视频页面控制器获取用户的触屏操作数据,
如当前设定为设置外层scrollView兼容,则:视频播放手势boxPanGes优先于scrollView的所有gestureRecognizers,
如当前设定为设置基本左滑手势兼容,则:视频播放手势boxPanGes优先于页面左滑退出页面手势。
2.如权利要求1所述的视频滑动快进和页面滚动兼容的方法,其特征在于:所述手势识别延迟参数boxPanGes.delayInterval默认值为0.01。
3.如权利要求1所述的视频滑动快进和页面滚动兼容的方法,其特征在于:所述调用willMoveToSuperview方法,在播放窗口videoBox即将加入父视图前被调用。
4.如权利要求1所述的视频滑动快进和页面滚动兼容的方法,其特征在于:在手势兼容算法boxGestureExclusiveHandle中,通过requireGestureRecognizerToFail方法将导致视频滑动冲突的手势设置为低优先级,以解决手势冲突问题。
CN201810445294.7A 2018-05-10 2018-05-10 一种视频滑动快进和页面滚动兼容的方法 Active CN108833982B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810445294.7A CN108833982B (zh) 2018-05-10 2018-05-10 一种视频滑动快进和页面滚动兼容的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810445294.7A CN108833982B (zh) 2018-05-10 2018-05-10 一种视频滑动快进和页面滚动兼容的方法

Publications (2)

Publication Number Publication Date
CN108833982A true CN108833982A (zh) 2018-11-16
CN108833982B CN108833982B (zh) 2021-06-11

Family

ID=64147798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810445294.7A Active CN108833982B (zh) 2018-05-10 2018-05-10 一种视频滑动快进和页面滚动兼容的方法

Country Status (1)

Country Link
CN (1) CN108833982B (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120133579A1 (en) * 2010-11-30 2012-05-31 Microsoft Corporation Gesture recognition management
CN103558984A (zh) * 2010-01-26 2014-02-05 苹果公司 具有用于控制和修改手势识别的代表的手势识别器
CN105446629A (zh) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 内容面板的切换方法、装置及终端
CN105786395A (zh) * 2016-04-07 2016-07-20 广州华多网络科技有限公司 一种基于移动终端的直播间切换方法、装置及系统
CN107025033A (zh) * 2016-02-01 2017-08-08 百度在线网络技术(北京)有限公司 一种调节屏幕亮度的方法和装置
CN107831995A (zh) * 2017-09-28 2018-03-23 努比亚技术有限公司 一种终端操作控制方法、终端及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103558984A (zh) * 2010-01-26 2014-02-05 苹果公司 具有用于控制和修改手势识别的代表的手势识别器
US20120133579A1 (en) * 2010-11-30 2012-05-31 Microsoft Corporation Gesture recognition management
CN105446629A (zh) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 内容面板的切换方法、装置及终端
CN107025033A (zh) * 2016-02-01 2017-08-08 百度在线网络技术(北京)有限公司 一种调节屏幕亮度的方法和装置
CN105786395A (zh) * 2016-04-07 2016-07-20 广州华多网络科技有限公司 一种基于移动终端的直播间切换方法、装置及系统
CN107831995A (zh) * 2017-09-28 2018-03-23 努比亚技术有限公司 一种终端操作控制方法、终端及计算机可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(美)科尔,(美)赫乐嘎斯,(美)康威: "《iOS编程》", 31 January 2015, 武汉:华中科技大学出版社 *

Also Published As

Publication number Publication date
CN108833982B (zh) 2021-06-11

Similar Documents

Publication Publication Date Title
EP3073490A1 (en) Method and terminal for playing media
US10525353B2 (en) Method, apparatus and terminal for displaying prompt information
CN104020978B (zh) 话音输入的处理
US10248257B2 (en) System and method for variable frame duration control in an electronic display
EP2251776A3 (en) Information processing
US20160193499A1 (en) Exercise guide providing device and method
EP3382707B1 (en) Audio file re-recording method, device and storage medium
CN107193519A (zh) 显示控制方法及装置、计算机装置和计算机可读存储介质
KR20160119239A (ko) 콘텐츠를 표시하는 방법 및 이를 위한 전자 장치
CN106527842B (zh) 一种智能设备的应用图标控制方法及装置、智能设备
EP3043334A1 (en) Exercise history information managing method and electronic device supporting the same
WO2014206270A1 (zh) 一种检测电池使用时长的方法、装置及设备
CN109144352B (zh) 一种自动阅读方法、装置、终端及存储介质
CN104903856A (zh) 应用图标自适应调整方法和终端
CN103164691A (zh) 基于手机用户的情绪识别系统及方法
WO2017032080A1 (zh) 一种通讯录控制方法、装置及移动终端
WO2017032158A1 (zh) 一种通话音量的调节方法、装置及终端
CN103631440B (zh) 一种调整桌面图标位置的方法及移动终端
CN107315583A (zh) 应用控制方法及装置、计算机装置及存储介质
CN105824557A (zh) 一种播放语音信息的方法及移动终端
EP2749992A2 (en) Information processing device, information processing method and computer program to determine a mood
CN112764891B (zh) 电子终端及控制应用的方法
CN106921802B (zh) 音频数据的播放方法及装置
CN108833982A (zh) 一种视频滑动快进和页面滚动兼容的方法
CN111182386B (zh) 一种智能音箱的熄屏显示控制方法及智能音箱

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