CN108235104B - 一种用于移动终端的直播视频浮窗播放方法 - Google Patents

一种用于移动终端的直播视频浮窗播放方法 Download PDF

Info

Publication number
CN108235104B
CN108235104B CN201810054635.8A CN201810054635A CN108235104B CN 108235104 B CN108235104 B CN 108235104B CN 201810054635 A CN201810054635 A CN 201810054635A CN 108235104 B CN108235104 B CN 108235104B
Authority
CN
China
Prior art keywords
floating window
video
mobile terminal
window
live
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810054635.8A
Other languages
English (en)
Other versions
CN108235104A (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.)
Shenzhen Futu Network Technology Co Ltd
Original Assignee
Shenzhen Futu Network 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 Shenzhen Futu Network Technology Co Ltd filed Critical Shenzhen Futu Network Technology Co Ltd
Priority to CN201810054635.8A priority Critical patent/CN108235104B/zh
Publication of CN108235104A publication Critical patent/CN108235104A/zh
Application granted granted Critical
Publication of CN108235104B publication Critical patent/CN108235104B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • 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
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种用于移动终端的直播视频浮窗播放方法,该方法基于浮窗、浮窗控制器和浮窗管理单例实现,所述方法包括有如下步骤:步骤S1,在移动终端的视频直播主页面进行视频直播;步骤S2,退出移动终端的视频直播主页面,并检测当前状态下是否有直播视频播放,若是,则执行步骤S3,若否,则结束视频直播;步骤S3,初始化浮窗控制器,且由所述浮窗控制器获取直播视频;步骤S4,所述浮窗管理单例调用浮窗,并将浮窗展示于移动终端显示界面的最前端;步骤S5,所述浮窗控制器将直播视频加载于所述浮窗,以令所述浮窗显示直播视频。本发明能使得用户在观看直播的同时可以进行其他操作,进而提高用户体验。

Description

一种用于移动终端的直播视频浮窗播放方法
技术领域
本发明涉及直播视频播放方法,尤其涉及一种用于移动终端的直播视频浮窗播放方法。
背景技术
现有技术中,视频直播浮窗技术主要有以下两种方案:
一种是采用普通视图View作为视频的承载体,将视图view加到当前页面中,该方案使用普通视图View作为承载体,每当切换页面时都要去重新将承载体view加到新的页面上,逻辑复杂且不易管理,很容易出现问题,导致窗口被页面遮挡,而且会和其他页面相互影响,此方案不好实现而且非常不稳定;
另一种是采用window作为视频的承载体,Window作为全局变量存在,该方案采用window作为视频的承载体,比方案一能够较好的解决了页面管理和容易被遮挡问题,但是window作为全局变量存在,不能很好的和直播主页面进行切换,点击直播浮窗进入直播主页面,需要重新加载视频,体验极其不佳。
发明内容
本发明要解决的技术问题在于,针对现有技术的不足,提供一种用于移动终端的直播视频浮窗播放方法,该方法能够在用户退出观看直播的主页面时,将直播视频以浮窗的形式显示在移动终端显示界面的最前端,使得用户在观看直播的同时可以进行其他操作,进而提高用户体验。
为解决上述技术问题,本发明采用如下技术方案。
一种用于移动终端的直播视频浮窗播放方法,该方法基于浮窗、浮窗控制器和浮窗管理单例实现,所述浮窗的尺寸小于移动终端显示界面的尺寸,所述方法包括有如下步骤:步骤S1,在移动终端的视频直播APP主页面进行视频直播;步骤S2,退出移动终端的视频直播APP主页面,并检测当前状态下是否有直播视频播放,若是,则执行步骤S3,若否,则结束视频直播;步骤S3,初始化浮窗控制器,且由所述浮窗控制器获取直播视频;步骤S4,所述浮窗管理单例调用浮窗,并将浮窗展示于移动终端显示界面的最前端;步骤S5,所述浮窗控制器将直播视频加载于所述浮窗,以令所述浮窗显示直播视频;所述浮窗管理单例初始化后存在于所述视频直播APP的整个运行周期,通过所述浮窗管理单例对所述浮窗的展示和消失进行管理;所述步骤S5中,所述浮窗控制器为直播浮窗专用基类,利用所述直播浮窗专用基类实现直播视频播放逻辑,所述直播浮窗专用基类继承于所述移动终端的window根控制器基类。
优选地,所述浮窗包括有关闭按钮,当用户点击所述关闭按钮时,所述浮窗管理单例结束对所述浮窗的调用,以令所述浮窗隐藏。
优选地,还包括有window载体,所述window载体用于检测用户在浮窗处的滑动手势,并根据该滑动手势将所述浮窗移动至相应位置。
优选地,所述window载体作为视图载体,将所述window根控制器基类的内容展示在所述视频直播APP页面最上方。
优选地,所述移动终端为手机。
本发明公开的用于移动终端的直播视频浮窗播放方法,在用户使用所述视频直播APP观看直播的过程中,如果用户退出视频直播的主页面,直播视频会以浮窗的形式浮在界面最前端,而且浮窗可以响应手势被拖到任何地方,不影响用户在其它页面的操作,这样用户可以在观看直播的同时又可以进行其他操作。相比现有技术而言,本发明能实时并且顺畅的响应用户拖动,而且会保证始终漂浮于页面最前端而不被遮挡,此外,本发明可避免影响其他页面的操作,进而满足用户需求。
附图说明
图1为实现本发明方法的系统框架结构图。
图2为本发明方法的流程图。
图3为本发明优选实施例中的移动终端显示界面截图。
具体实施方式
下面结合附图和实施例对本实用新型作更加详细的描述。
本实用新型公开了一种用于移动终端的直播视频浮窗播放方法,结合图1至图3所示,该方法基于浮窗、浮窗控制器和浮窗管理单例实现,所述浮窗的尺寸小于移动终端显示界面的尺寸,所述方法包括有如下步骤:
步骤S1,在移动终端的视频直播APP主页面进行视频直播;
步骤S2,退出移动终端的视频直播APP主页面,并检测当前状态下是否有直播视频播放,若是,则执行步骤S3,若否,则结束视频直播;
步骤S3,初始化浮窗控制器,且由所述浮窗控制器获取直播视频;
步骤S4,所述浮窗管理单例调用浮窗,并将浮窗展示于移动终端显示界面的最前端;
步骤S5,所述浮窗控制器将直播视频加载于所述浮窗,以令所述浮窗显示直播视频。
作为一种优选方式,所述浮窗包括有关闭按钮,当用户点击所述关闭按钮时,所述浮窗管理单例结束对所述浮窗的调用,以令所述浮窗隐藏。
本实施例还包括有window载体,所述window载体用于检测用户在浮窗处的滑动手势,并根据该滑动手势将所述浮窗移动至相应位置。
实际应用中,所述移动终端为手机。
本发明公开的直播视频浮窗播放方法,在用户使用所述视频直播APP观看直播的过程中,如果用户退出视频直播的主页面,直播视频会以浮窗的形式浮在界面最前端,而且浮窗可以响应手势被拖到任何地方,不影响用户在其它页面的操作,这样用户可以在观看直播的同时又可以进行其他操作。相比现有技术而言,本发明能实时并且顺畅的响应用户拖动,而且会保证始终漂浮于页面最前端而不被遮挡,此外,本发明可避免影响其他页面的操作,进而满足用户需求。
本发明在实际应用中可参考如下实施例:
首先,所述浮窗管理单例初始化后存在于所述视频直播APP的整个运行周期,通过所述浮窗管理单例对所述浮窗的展示和消失进行管理;其次,window载体作为视图载体,将所述window根控制器基类的内容展示在所述视频直播APP页面最上方,而且window载体实现了滑动手势的处理逻辑,将根据用户的拖动,自动移动位置;再次,window根控制器基类是用来被直播浮窗专用基类继承的,亦即:所述直播浮窗专用基类继承于移动终端的window根控制器基类,里边实现的一些共性的东西,这也是此方案比较通用的关键,可继承此类的不限于直播浮窗;此外,直播浮窗专用基类实现了直播视频播放的逻辑,亦即:所述步骤S5中,所述浮窗控制器为直播浮窗专用基类,利用所述直播浮窗专用基类实现直播视频播放逻辑,此为定制化的展示内容。
具体的执行过程如下:当用户退出直播主页面时,首先检测是否正在播放直播视频,如果是就开始初始化直播浮窗专用基类,并且将当前播放的渲染view赋值给直播浮窗专用基类,初始化和设置完成后,通过浮窗管理单例展示出浮窗。
以上所述只是本发明较佳的实施例,并不用于限制本发明,凡在本发明的技术范围内所做的修改、等同替换或者改进等,均应包含在本发明所保护的范围内。

Claims (5)

1.一种用于移动终端的直播视频浮窗播放方法,其特征在于,该方法基于浮窗、浮窗控制器和浮窗管理单例实现,所述浮窗的尺寸小于移动终端显示界面的尺寸,所述方法包括有如下步骤:
步骤S1,在移动终端的视频直播APP主页面进行视频直播;
步骤S2,退出移动终端的视频直播APP主页面,并检测当前状态下是否有直播视频播放,若是,则执行步骤S3,若否,则结束视频直播;
步骤S3,初始化浮窗控制器,且由所述浮窗控制器获取直播视频;
步骤S4,所述浮窗管理单例调用浮窗,并将浮窗展示于移动终端显示界面的最前端;
步骤S5,所述浮窗控制器将直播视频加载于所述浮窗,以令所述浮窗显示直播视频;
所述浮窗管理单例初始化后存在于所述视频直播APP的整个运行周期,通过所述浮窗管理单例对所述浮窗的展示和消失进行管理;
所述步骤S5中,所述浮窗控制器为直播浮窗专用基类,利用所述直播浮窗专用基类实现直播视频播放逻辑,所述直播浮窗专用基类继承于所述移动终端的window根控制器基类。
2.如权利要求1所述的用于移动终端的直播视频浮窗播放方法,其特征在于,所述浮窗包括有关闭按钮,当用户点击所述关闭按钮时,所述浮窗管理单例结束对所述浮窗的调用,以令所述浮窗隐藏。
3.如权利要求1所述的用于移动终端的直播视频浮窗播放方法,其特征在于,还包括有window载体,所述window载体用于检测用户在浮窗处的滑动手势,并根据该滑动手势将所述浮窗移动至相应位置。
4.如权利要求3所述的用于移动终端的直播视频浮窗播放方法,其特征在于,所述window载体作为视图载体,将所述window根控制器基类的内容展示在所述视频直播APP页面最上方。
5.如权利要求1所述的用于移动终端的直播视频浮窗播放方法,其特征在于,所述移动终端为手机。
CN201810054635.8A 2018-01-19 2018-01-19 一种用于移动终端的直播视频浮窗播放方法 Active CN108235104B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810054635.8A CN108235104B (zh) 2018-01-19 2018-01-19 一种用于移动终端的直播视频浮窗播放方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810054635.8A CN108235104B (zh) 2018-01-19 2018-01-19 一种用于移动终端的直播视频浮窗播放方法

Publications (2)

Publication Number Publication Date
CN108235104A CN108235104A (zh) 2018-06-29
CN108235104B true CN108235104B (zh) 2020-08-28

Family

ID=62668065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810054635.8A Active CN108235104B (zh) 2018-01-19 2018-01-19 一种用于移动终端的直播视频浮窗播放方法

Country Status (1)

Country Link
CN (1) CN108235104B (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451341B (zh) 2018-10-30 2020-09-11 北京达佳互联信息技术有限公司 视频播放方法、视频播放装置、电子设备及存储介质
CN109819268B (zh) * 2019-03-15 2021-03-02 网易(杭州)网络有限公司 视频直播中的直播间播放控制方法、装置、介质及设备
CN112333462A (zh) * 2020-11-04 2021-02-05 北京字节跳动网络技术有限公司 直播间页面跳转方法、返回方法、装置及电子设备

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577176A (zh) * 2012-08-02 2014-02-12 腾讯科技(深圳)有限公司 视频独立播放的实现方法及实现该方法的移动终端设备
CN105353943A (zh) * 2015-12-01 2016-02-24 广州华多网络科技有限公司 一种数据显示方法以及装置
CN105933756A (zh) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 以画中画方式直播视频的方法及装置
CN106028143A (zh) * 2016-05-27 2016-10-12 北京小米移动软件有限公司 视频直播方法及装置
CN106792089A (zh) * 2016-12-15 2017-05-31 腾讯科技(深圳)有限公司 视频播放方法和装置
CN106803978A (zh) * 2017-03-16 2017-06-06 上海青橙实业有限公司 移动终端以及基于悬浮窗口播放视频的方法
CN106993214A (zh) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 网络直播方法及装置
CN107092417A (zh) * 2017-03-30 2017-08-25 北京潘达互娱科技有限公司 网络直播方法及装置
CN107426613A (zh) * 2017-03-31 2017-12-01 武汉斗鱼网络科技有限公司 基于网络直播间的视频资源镜像加载播放方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9692800B2 (en) * 2014-06-11 2017-06-27 Google Inc. Enhanced streaming media playback

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577176A (zh) * 2012-08-02 2014-02-12 腾讯科技(深圳)有限公司 视频独立播放的实现方法及实现该方法的移动终端设备
CN105353943A (zh) * 2015-12-01 2016-02-24 广州华多网络科技有限公司 一种数据显示方法以及装置
CN106028143A (zh) * 2016-05-27 2016-10-12 北京小米移动软件有限公司 视频直播方法及装置
CN105933756A (zh) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 以画中画方式直播视频的方法及装置
CN106792089A (zh) * 2016-12-15 2017-05-31 腾讯科技(深圳)有限公司 视频播放方法和装置
CN106803978A (zh) * 2017-03-16 2017-06-06 上海青橙实业有限公司 移动终端以及基于悬浮窗口播放视频的方法
CN106993214A (zh) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 网络直播方法及装置
CN107092417A (zh) * 2017-03-30 2017-08-25 北京潘达互娱科技有限公司 网络直播方法及装置
CN107426613A (zh) * 2017-03-31 2017-12-01 武汉斗鱼网络科技有限公司 基于网络直播间的视频资源镜像加载播放方法及系统

Also Published As

Publication number Publication date
CN108235104A (zh) 2018-06-29

Similar Documents

Publication Publication Date Title
AU2017208225B2 (en) Device, method, and graphical user interface for adjusting the appearance of a control
AU2014278597C1 (en) Device, method, and graphical user interface for providing navigation and search functionalities
CN108235104B (zh) 一种用于移动终端的直播视频浮窗播放方法
AU2011215021B2 (en) Method and apparatus for providing history of information associated to time information
CN103793138A (zh) 移动终端及后台应用程序的显示方法
TW201617837A (zh) 一種螢幕顯示視窗的處理方法以及移動終端
WO2022022121A1 (zh) 用于建立设备联动场景的交互方法、存储介质及电子设备
CN105511728B (zh) 一种终端设备的桌面图标管理方法及装置
WO2018119584A1 (zh) 柔性显示屏的交互方法及装置
CN103941964B (zh) 一种基于桌面组件的信息加载方法及智能终端
CN103793134A (zh) 一种触摸屏终端多界面切换的方法及触摸屏终端
CN103902165A (zh) 实现菜单背景的方法和装置
CN103777850A (zh) 菜单显示方法、装置和终端
CN104750450A (zh) 一种即时通信中的文件共享方法及终端
CN108804182A (zh) 一种弹幕区域的调节方法及客户端
CN103019766B (zh) 一种基于Android设备的动态壁纸设置方法、装置及终端
CN103324436A (zh) 一种任务处理方法及装置
CN102508609A (zh) 一种控制电脑应用程序窗口显示与隐藏的方法
CN103809852A (zh) 在同一屏幕上同时显示多个应用程序的方法及装置
WO2016008410A1 (zh) 视频播放方法及系统
CN110830653B (zh) 传感器控制方法、装置、移动终端以及存储介质
WO2015117526A1 (zh) 一种触控处理方法和装置
CN106155676B (zh) 一种应用程序的访问控制方法、装置及终端
CN102880413A (zh) 用于具有触控屏的移动终端控制显示的方法和移动终端
CN104978118B (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