WO2022193595A1 - Object playing method and apparatus - Google Patents

Object playing method and apparatus Download PDF

Info

Publication number
WO2022193595A1
WO2022193595A1 PCT/CN2021/119455 CN2021119455W WO2022193595A1 WO 2022193595 A1 WO2022193595 A1 WO 2022193595A1 CN 2021119455 W CN2021119455 W CN 2021119455W WO 2022193595 A1 WO2022193595 A1 WO 2022193595A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
pop
page
display
application
Prior art date
Application number
PCT/CN2021/119455
Other languages
French (fr)
Chinese (zh)
Inventor
刘磊
Original Assignee
北京达佳互联信息技术有限公司
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 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022193595A1 publication Critical patent/WO2022193595A1/en

Links

Images

Classifications

    • 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An object playing method and apparatus, and an electronic device and a storage medium. The method comprises: playing the current playing object (101) in a preset playing page (10); in response to detecting a pop-up display instruction triggered on the basis of a pop-up window display control (102), exiting the preset playing page (10), displaying a floating pop-up window (401) on a page (40) of a first application to which the preset playing page (10) belongs, and playing the current playing object (101) in the floating pop-up window (401); and in response to detecting a hiding instruction based on an application hiding control (402), hiding the page (40) of the first application, displaying the floating pop-up window (401) on an interface of an electronic device, and playing the current playing object (101) in the floating pop-up window (401).

Description

对象播放方法及装置Object playback method and device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202110282531.4、申请日为2021年03月16日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number of 202110282531.4 and the filing date of March 16, 2021, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is incorporated herein by reference.
技术领域technical field
本公开涉及通信技术领域,尤其涉及一种对象播放方法、装置、电子设备及存储介质。The present disclosure relates to the field of communication technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for playing an object.
背景技术Background technique
目前,移动终端从互联网多媒体中点播和直播视频的应用越来越广泛,随着移动互联网技术的不断发展,移动网络速度得到很大提升,人们对于移动视频场景的使用越来越多,并且移动视频以其方便、快捷的特点越来越受人们喜爱。尤其是人们在闲暇时间,甚至是在上下班的碎片化时间里观看视频点播/直播内容,这样就可以充分利用琐碎时间观看感兴趣的视频节目。At present, the application of on-demand and live video from Internet multimedia in mobile terminals is more and more extensive. With the continuous development of mobile Internet technology, the speed of mobile network has been greatly improved, people are using more and more mobile video scenarios, and mobile Video is more and more popular because of its convenience and speed. In particular, people watch VOD/live content in their spare time, even in the fragmented time of commuting, so that they can make full use of the trivial time to watch video programs of interest.
用户可以通过视频播放器的播放窗口观看视频节目,用户在观看视频节目的过程中,随时可能收到其他应用的消息,例如,某用户利用XX聊天应用向用户发了一条聊天信息,在用户需要回复该聊天信息的情况下,该用户就需要切换到XX聊天应用,才能回复消息。在用户需要继续观看视频节目的情况下,可以再切换到视频播放器继续观看。Users can watch video programs through the playback window of the video player. During the process of watching video programs, users may receive messages from other applications at any time. For example, a user uses the XX chat application to send a chat message to the user. In the case of replying to the chat message, the user needs to switch to the XX chat application in order to reply to the message. When the user needs to continue watching the video program, he can switch to the video player to continue watching.
发明内容SUMMARY OF THE INVENTION
本公开提供一种对象播放方法、装置、电子设备及存储介质。The present disclosure provides an object playing method, apparatus, electronic device and storage medium.
根据本公开实施例的第一方面,提供一种对象播放方法,应用于电子设备,包括:According to a first aspect of the embodiments of the present disclosure, a method for playing an object is provided, applied to an electronic device, including:
在预设播放页面中播放当前播放对象;预设播放页面包含有弹窗显示控件;Play the current playback object in the preset playback page; the preset playback page includes pop-up window display controls;
响应于检测到基于弹窗显示控件触发的弹窗显示指令,退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象;第一应用的页面上包含有应用隐藏控件;In response to detecting the pop-up display instruction triggered by the pop-up display control, exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page belongs, and play the current playback object in the floating pop-up window; The page of the first application includes an application hiding control;
响应于检测到基于应用隐藏控件的隐藏指令,隐藏第一应用的页面,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。In response to detecting the hiding instruction based on the application hiding control, the page of the first application is hidden, a floating pop-up window is displayed on the interface of the electronic device, and the current playing object is played in the floating pop-up window.
在一些实施例中,方法还包括:In some embodiments, the method further includes:
响应于检测到第二应用的启动指令,显示第二应用的页面;In response to detecting the startup instruction of the second application, displaying the page of the second application;
在第二应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。A floating pop-up window is displayed on the page of the second application, and the current playback object is played in the floating pop-up window.
在一些实施例中,方法还包括:In some embodiments, the method further includes:
响应于检测到第二应用的启动指令,缩小第一应用的页面至电子设备的界面的第一区域;In response to detecting the startup instruction of the second application, reducing the page of the first application to the first area of the interface of the electronic device;
在电子设备的界面的第二区域显示第二应用的页面;Display the page of the second application in the second area of the interface of the electronic device;
在缩小后的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。A floating pop-up window is displayed on the page of the reduced first application, and the current playback object is played in the floating pop-up window.
在一些实施例中,方法还包括:In some embodiments, the method further includes:
确定系统的资源信息;Determine the resource information of the system;
响应于资源信息满足预设资源信息,获取当前播放对象对应的第一格式的资源;In response to the resource information meeting the preset resource information, acquiring the resource of the first format corresponding to the current playback object;
在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象包括:Displaying a floating pop-up window on the page of the first application to which the preset playback page belongs, and playing the current playback object in the floating pop-up window includes:
在预设播放页面所属的第一应用的页面上显示悬浮弹窗;Display a floating pop-up window on the page of the first application to which the preset playback page belongs;
根据第一格式的资源,调用系统原生播放器在悬浮弹窗内播放当前播放对象。According to the resource in the first format, the system native player is called to play the current playback object in the floating pop-up window.
在一些实施例中,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象包括:In some embodiments, displaying a floating pop-up window on the interface of the electronic device, and playing the current playback object in the floating pop-up window includes:
在电子设备的界面上显示悬浮弹窗;Display a floating pop-up window on the interface of the electronic device;
利用电子设备的系统应用接口创建独立子线程,基于独立子线程在悬浮弹窗内播放当前播放对象。Use the system application interface of the electronic device to create an independent sub-thread, and play the current playback object in the floating pop-up window based on the independent sub-thread.
在一些实施例中,获取当前播放对象对应的第一格式的资源包括:In some embodiments, acquiring the resource in the first format corresponding to the current playback object includes:
向地址服务器发送资源地址请求;Send a resource address request to the address server;
接收到第一格式的资源的地址信息对应的资源地址反馈;receiving the resource address feedback corresponding to the address information of the resource in the first format;
基于地址信息获取第一格式的资源;Obtain the resource in the first format based on the address information;
第一格式的资源是资源服务器在获取到第二格式的资源,将第二格式的资源转换后发送的;在预设播放页面中播放的当前播放对象对应第二格式的资源。The resource in the first format is sent by the resource server after obtaining the resource in the second format and converting the resource in the second format; the current playback object played on the preset playback page corresponds to the resource in the second format.
在一些实施例中,在电子设备的界面上显示悬浮弹窗包括:In some embodiments, displaying the floating popup window on the interface of the electronic device includes:
获取当前播放对象的资源中的画面显示尺寸参数;Get the screen display size parameter in the resource of the current playback object;
基于画面显示尺寸参数在电子设备的界面上显示悬浮弹窗。A floating pop-up window is displayed on the interface of the electronic device based on the screen display size parameter.
在一些实施例中,电子设备的界面上还包括弹窗尺寸调整控件;In some embodiments, the interface of the electronic device further includes a pop-up window size adjustment control;
基于画面显示尺寸参数在电子设备的界面上显示悬浮弹窗;Display a pop-up window on the interface of the electronic device based on the screen display size parameter;
确定悬浮弹窗的初始显示尺寸参数;Determine the initial display size parameters of the floating pop-up window;
响应于检测到基于弹窗尺寸调整控件触发的弹窗调整指令,根据初始显示尺寸参数和画面显示尺寸参数的范围在电子设备的界面上显示悬浮弹窗。In response to detecting a pop-up window adjustment instruction triggered based on the pop-up window size adjustment control, a floating pop-up window is displayed on the interface of the electronic device according to the initial display size parameter and the range of the screen display size parameter.
根据本公开实施例的第二方面,提供一种对象播放装置,包括:According to a second aspect of the embodiments of the present disclosure, an object playback device is provided, including:
播放模块,被配置为在预设播放页面中播放当前播放对象;预设播放页面包含有弹窗显示控件;The playback module is configured to play the current playback object in the preset playback page; the preset playback page includes a pop-up window display control;
第一显示模块,被配置为响应于检测到基于弹窗显示控件触发的弹窗显示指令,退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象;第一应用的页面上包含有应用隐藏控件;The first display module is configured to exit the preset play page in response to detecting a pop-up window display instruction triggered by the pop-up window display control, display a floating pop-up window on the page of the first application to which the preset play page belongs, and display the floating pop-up window in the floating window. The current playback object is played in the pop-up window; the page of the first application contains application hidden controls;
第二显示模块,被配置为响应于检测到基于应用隐藏控件的隐藏指令,隐藏第一应用的页面,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。The second display module is configured to hide the page of the first application in response to detecting the hiding instruction based on the application hiding control, display a floating pop-up window on the interface of the electronic device, and play the current playing object in the floating pop-up window.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
第三显示模块,被配置为响应于检测到第二应用的启动指令,显示第二应用的页面;a third display module, configured to display a page of the second application in response to detecting the startup instruction of the second application;
第四显示模块,被配置为在第二应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。The fourth display module is configured to display a floating pop-up window on the page of the second application, and play the current playback object in the floating pop-up window.
在一些实施例中,第一显示模块,被配置为响应于检测到第二应用的启动指令,缩小第一应用的页面至电子设备的界面的第一区域;In some embodiments, the first display module is configured to reduce the page of the first application to the first area of the interface of the electronic device in response to detecting the start instruction of the second application;
第三显示模块,被配置为在电子设备的界面的第二区域显示第二应用的页面;a third display module, configured to display the page of the second application in the second area of the interface of the electronic device;
第一显示模块,被配置为在缩小后的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。The first display module is configured to display a floating pop-up window on the page of the reduced first application, and play the current playback object in the floating pop-up window.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
资源信息确定模块,被配置为确定系统的资源信息;a resource information determination module, configured to determine resource information of the system;
资源获取模块,被配置为响应于资源信息满足预设资源信息,获取当前播放对象对应的第一格式的资源;a resource acquisition module, configured to acquire resources in the first format corresponding to the current playback object in response to the resource information satisfying the preset resource information;
第一显示模块包括:The first display module includes:
第一显示子模块,被配置为在预设播放页面所属的第一应用的页面上显示悬浮弹窗;a first display sub-module, configured to display a floating pop-up window on the page of the first application to which the preset playback page belongs;
第一播放子模块,被配置为根据第一格式的资源,调用系统原生播放器在悬浮弹窗内播放当前播放对象。The first playback sub-module is configured to call the system native player to play the current playback object in the floating popup window according to the resource in the first format.
在一些实施例中,第二显示模块包括:In some embodiments, the second display module includes:
第二显示子模块,被配置为在电子设备的界面上显示悬浮弹窗;The second display sub-module is configured to display a floating pop-up window on the interface of the electronic device;
第二播放子模块,被配置为利用电子设备的系统应用接口创建独立子线程,基于独立子线程在悬浮弹窗内播放当前播放对象。The second playing sub-module is configured to create an independent sub-thread by using the system application interface of the electronic device, and play the current playing object in the floating pop-up window based on the independent sub-thread.
在一些实施例中,资源获取模块包括:In some embodiments, the resource acquisition module includes:
请求发送子模块,被配置为向地址服务器发送资源地址请求;The request sending submodule is configured to send a resource address request to the address server;
反馈接收子模块,被配置为接收到第一格式的资源的地址信息对应的资源地址反馈;a feedback receiving sub-module, configured to receive resource address feedback corresponding to the address information of the resource in the first format;
资源获取子模块,被配置为基于地址信息获取第一格式的资源;a resource acquisition submodule, configured to acquire resources in the first format based on the address information;
第一格式的资源是资源服务器在获取到第二格式的资源,将第二格式的资源转换后发送的;在预设播放页面中播放的当前播放对象对应第二格式的资源。The resource in the first format is sent by the resource server after obtaining the resource in the second format and converting the resource in the second format; the current playback object played on the preset playback page corresponds to the resource in the second format.
在一些实施例中,第二显示模块包括:In some embodiments, the second display module includes:
参数获取子模块,被配置为获取当前播放对象的资源中的画面显示尺寸参数;The parameter acquisition sub-module is configured to acquire the screen display size parameter in the resource of the current playback object;
第二显示子模块,被配置为基于画面显示尺寸参数在电子设备的界面上显示悬浮弹窗。The second display sub-module is configured to display a floating pop-up window on the interface of the electronic device based on the screen display size parameter.
在一些实施例中,电子设备的界面上还包括弹窗尺寸调整控件;In some embodiments, the interface of the electronic device further includes a pop-up window size adjustment control;
第二显示子模块,被配置为:The second display submodule, configured as:
确定悬浮弹窗的初始显示尺寸参数;Determine the initial display size parameters of the floating pop-up window;
响应于检测到基于弹窗尺寸调整控件触发的弹窗调整指令,根据初始显示尺寸参数和画面显示尺寸参数的范围在电子设备的界面上显示悬浮弹窗。In response to detecting a pop-up window adjustment instruction triggered based on the pop-up window size adjustment control, a floating pop-up window is displayed on the interface of the electronic device according to the initial display size parameter and the range of the screen display size parameter.
根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令,以实现如上述第一方面中任一项的方法。According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the first aspect as described above any of the methods.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,当计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例的第一方面中任一项的方法。According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the first aspect of the embodiments of the present disclosure any of the methods.
根据本公开实施例的第五方面,提供一种计算机程序产品,计算机程序产品包括计算机程序,计算机程序存储在可读存储介质中,计算机设备的至少一个处理器从可读存储介质读取并执行计算机程序,使得计算机设备执行本公开实施例的第一方面中任一项的方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, the computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the computer device reads and executes the computer program from the readable storage medium A computer program that causes a computer device to perform the method of any one of the first aspects of the embodiments of the present disclosure.
在预设播放页面中播放当前播放对象,预设播放页面包含有弹窗显示控件,响应于检测到基于弹窗显示控件触发的弹窗显示指令,退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象,第一应用的页面上包含有应用隐藏控件,响应于检测到基于应用隐藏控件的隐藏指令,隐藏第一应用的页面,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。本公开通过两次指令的操作,使得原来在第一应用的预设播放页面播放的当前播放对象,能够在将第一应用退至后台的前提下,在电子设备的界面上进行悬浮窗口形式的播放,为后续用户启动新的应用进行对应操作做好铺垫,简单便捷,提高用户体验。Play the current playback object on the preset play page, which includes a pop-up window display control, and exits the preset play page in response to detecting a pop-up window display instruction triggered by the pop-up display control, exits the preset play page and belongs to the preset play page A floating pop-up window is displayed on the page of the first application, and the current playback object is played in the floating pop-up window. The page of the first application contains application hiding controls, and the first application is hidden in response to detecting a hiding instruction based on the application hiding controls. , display a floating pop-up window on the interface of the electronic device, and play the current playback object in the floating pop-up window. In the present disclosure, through the operation of two instructions, the current playback object originally played on the preset playback page of the first application can be displayed in the form of a floating window on the interface of the electronic device under the premise of returning the first application to the background. Play, to pave the way for subsequent users to launch new applications to perform corresponding operations, which is simple and convenient, and improves user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种应用环境的示意图;FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种对象播放方法的流程图;FIG. 2 is a flowchart of a method for playing an object according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种预设播放页面的示意图;3 is a schematic diagram of a preset playback page according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种第一应用的页面的示意图;4 is a schematic diagram of a page of a first application according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种对象播放方法的流程图;FIG. 5 is a flowchart of a method for playing an object according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种获取当前播放对象对应的第一格式的资源的方法的流程图;6 is a flowchart of a method for obtaining a resource in a first format corresponding to a current playback object according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种第一应用的页面的示意图;FIG. 7 is a schematic diagram of a page of a first application according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种电子设备的界面的示意图;FIG. 8 is a schematic diagram of an interface of an electronic device according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种第二应用的页面的示意图;FIG. 9 is a schematic diagram of a page of a second application according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种对象播放方法的流程图;FIG. 10 is a flowchart of a method for playing an object according to an exemplary embodiment;
图11是根据一示例性实施例示出的一种对象播放装置的框图;FIG. 11 is a block diagram of an object playback apparatus according to an exemplary embodiment;
图12是根据一示例性实施例示出的一种用于对象播放的电子设备的框图。Fig. 12 is a block diagram of an electronic device for object playback according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的第一对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar first objects, and are not necessarily used to describe a specific order or sequence. order. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
请参阅图1,图1是根据一示例性实施例示出的一种对象播放方法的应用环境的示意图,如图1所示,该应用环境可以包括播放当前播放对象的电子设备,该电子设备上可以显示预设播放页面10,以及在该预设播放页面10上播放的当前播放对象101。Please refer to FIG. 1. FIG. 1 is a schematic diagram of an application environment of a method for playing an object according to an exemplary embodiment. As shown in FIG. 1, the application environment may include an electronic device that plays a currently playing object. The preset play page 10 and the current play object 101 played on the preset play page 10 can be displayed.
在一些实施例中,上述的电子设备可以在预设播放页面10中播放当前播放对象101,预设播放页面101可以包含有弹窗显示控件,响应于检测到基于弹窗显示控件触发的弹窗显示指令,退出预设播放页面,在预设播放页面10所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象,第一应用的页面上包含有应用隐藏控件,响应于检测到基于应用隐藏控件的隐藏指令,隐藏第一应用,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。其中,上述的电子设备可以包括但不限于智能手机、台式计算机、平板电脑、笔记本电脑、智能音箱、数字助理、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、智能可穿戴设备等类型的电子设备。也可以为运行于上述电子设备的软体,例如应用程序、小程序等。在一些实施例中,电子设备上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows、Unix等。In some embodiments, the above-mentioned electronic device may play the current playback object 101 in the preset playback page 10, and the preset playback page 101 may include a pop-up window display control, in response to detecting a pop-up window triggered based on the pop-up window display control Display the instruction, exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page 10 belongs, and play the current playback object in the floating pop-up window, and the page of the first application contains application hiding controls, In response to detecting the hiding instruction based on the application hiding control, the first application is hidden, a floating pop-up window is displayed on the interface of the electronic device, and the current playing object is played in the floating pop-up window. Wherein, the above-mentioned electronic devices may include, but are not limited to, smart phones, desktop computers, tablet computers, notebook computers, smart speakers, digital assistants, augmented reality (AR)/virtual reality (VR) devices, smart Electronic devices such as wearable devices. It can also be software running on the above-mentioned electronic device, such as an application program, an applet, and the like. In some embodiments, the operating system running on the electronic device may include, but is not limited to, the Android system, the IOS system, linux, windows, Unix, and the like.
此外,需要说明的是,图1所示的仅仅是本公开提供的对象播放方法的一种应用环境,在实际应用中,还可以包括其他应用环境,例如,在实际应用中,可以指存在服务器,电子设备播放的当前播放对象可以是从服务器获取的,在启动播放第一应用的情况下,服务器可以向电子设备推送当前播放对象。在一些实施例中,服务器可以包括是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。In addition, it should be noted that what is shown in FIG. 1 is only an application environment of the object playback method provided by the present disclosure. In practical applications, other application environments may also be included. For example, in practical applications, it may refer to the presence of a server , the current playback object played by the electronic device may be obtained from the server, and in the case of starting the playback of the first application, the server may push the current playback object to the electronic device. In some embodiments, the server may include an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or may provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, Network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
在一些实施例中,电子设备和服务器之间可以通过有线链路连接,也可以通过无线链路连接。In some embodiments, the electronic device and the server may be connected through a wired link, or may be connected through a wireless link.
图2是根据一示例性实施例示出的一种对象播放方法的流程图,如图2所示,对象播放方法可以应用于电子设备,也可以应用于其他节点设备,包括以下步骤:FIG. 2 is a flow chart of a method for playing an object according to an exemplary embodiment. As shown in FIG. 2 , the method for playing an object can be applied to an electronic device or other node devices, and includes the following steps:
在步骤S201中,在预设播放页面中播放当前播放对象;预设播放页面包含有弹窗显示控件。In step S201, the current play object is played on a preset play page; the preset play page includes a pop-up window display control.
在一些实施例中,当前播放对象可以是录制好的视频,可以是直播视频,还可以是其他可以播放的对象。In some embodiments, the currently playing object may be a recorded video, a live video, or other objects that can be played.
本公开实施例中,用户在电子设备的应用上观看直播间的直播视频的时候,可以如图1所示,在预设播放页面10播放当前播放对象101。其中,预设播放页面101可以以全屏的方式播放当前播放对象101,也可以以部分屏幕的方式播放当前播放对象101。In the embodiment of the present disclosure, when the user watches the live video in the live room on the application of the electronic device, as shown in FIG. 1 , the currently playing object 101 may be played on the preset play page 10 . The preset playback page 101 may play the current playback object 101 in a full-screen manner, or may play the current playback object 101 in a partial screen manner.
在一些实施例中,预设播放页面上还可以包含弹窗显示控件。图3是根据一示例性实施例示出的一种预设播放页面的示意图,如图3所示,除了预设播放页面10以及位于该预设播放页面10上的当前播放对象101之外,还可以包括弹窗显示控件102。在一些实施例中,图3所示的弹窗显示控件102只是一个实例,还可以以其他的形式呈现。In some embodiments, a pop-up window display control may also be included on the preset playback page. FIG. 3 is a schematic diagram of a preset play page according to an exemplary embodiment. As shown in FIG. 3 , in addition to the preset play page 10 and the current play object 101 located on the preset play page 10, there are also A popup display control 102 may be included. In some embodiments, the pop-up window display control 102 shown in FIG. 3 is just an example, and may also be presented in other forms.
在一些实施例中,弹窗显示控件可以一直显示在预设播放页面上,也可以在当前播放对象播放的时候,进行隐藏,只有在触碰预设播放页面的情况下,该弹窗显示控件才能显示在预设播放页面上。In some embodiments, the pop-up window display controls can always be displayed on the preset playback page, or can be hidden when the current playback object is playing, and the pop-up window display controls can only be displayed when the preset playback page is touched. to be displayed on the preset playback page.
在一些实施例中,在预设播放页面以部分屏幕的方式播放当前播放对象的情况下,还可以在预设播放页面的其他区域显示这个当前播放对象的描述信息,例如标题等等。In some embodiments, when the preset play page plays the current play object in a partial screen mode, the description information of the current play object, such as the title, etc., may also be displayed in other areas of the preset play page.
在步骤S203中,响应于检测到基于弹窗显示控件触发的弹窗显示指令,退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象;第一应用的页面上包含有应用隐藏控件,或者具有第一应用的隐藏操作手势。这里的隐藏可以看作对第一应用的最小化操作。In step S203, in response to detecting a pop-up window display instruction triggered by the pop-up window display control, exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page belongs, and display the floating pop-up window in the floating pop-up window. Play the current playback object; the page of the first application contains application hiding controls, or has a hiding operation gesture of the first application. The hiding here can be seen as a minimization operation on the first application.
本公开实施例中,响应于电子设备检测到基于弹窗显示控件触发的弹窗显示指令,可以退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,并在悬浮弹窗内播放当前播放对象。In this embodiment of the present disclosure, in response to the electronic device detecting a pop-up window display instruction triggered by a pop-up window display control, it can exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page belongs, and Play the current playback object in the floating popup.
在一些实施例中,响应于电子设备退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗最终可以呈现如图4所示的应用的页面,图4是根据一示例性实施例示出的一种第一应用的页面的示意图,包括第一应用的页面40,在第一应用的页面40上显示的悬浮弹窗401,以及在悬浮弹窗401中播放的当前播放对象101。In some embodiments, in response to the electronic device exiting the preset play page, displaying a floating pop-up window on the page of the first application to which the preset play page belongs may finally present the page of the application as shown in FIG. 4 , which is based on An exemplary embodiment shows a schematic diagram of a page of a first application, including a page 40 of the first application, a floating pop-up window 401 displayed on the page 40 of the first application, and the current playing in the floating pop-up window 401 Object 101 is played.
在一些实施例中,该悬浮弹窗内播放的当前播放对象可以是调用系统原生播放器播放的,也可以是调用第一应用自己包含的播放器播放的。In some embodiments, the current playback object played in the floating popup window may be played by calling a native player of the system, or may be played by calling a player included in the first application itself.
在一些实施例中,任何电子设备都可以实施步骤S203的技术方案。在另一些实施例中,考虑到不同的电子设备存在硬件配置或者软件配置上的差异,并不是所有的电子设备,或者说并不是拥有不同系统版本的电子设备都能实施该技术方案。因此,在退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象之 前,电子设备还可以通过确定系统的资源信息去确定接下来的实施方式。In some embodiments, any electronic device can implement the technical solution of step S203. In other embodiments, considering that different electronic devices have differences in hardware configuration or software configuration, not all electronic devices, or not electronic devices with different system versions can implement the technical solution. Therefore, after exiting the preset playback page, displaying a floating popup window on the page of the first application to which the preset playback page belongs, and before playing the current playback object in the floating popup window, the electronic device can also determine the resource information of the system to determine The next embodiment.
图5是根据一示例性实施例示出的一种对象播放方法的流程图,如图5所示,响应于检测到基于弹窗显示控件触发的弹窗显示指令,还可以根据下述的实施步骤进行操作:Fig. 5 is a flow chart of a method for playing an object according to an exemplary embodiment. As shown in Fig. 5, in response to detecting a pop-up window display instruction triggered by a pop-up window display control, the following implementation steps can also be performed. Do it:
在步骤S501中:确定系统的资源信息。In step S501: determine the resource information of the system.
在一些实施例中,电子设备在下载第一应用的时候,或者在更新第一应用的软件配置的时候,可以同时获得可以实施技术方案的系统的资源信息的表格。因此,电子设备可以先确定系统的资源信息。In some embodiments, when the electronic device downloads the first application, or when updating the software configuration of the first application, the electronic device can simultaneously obtain a table of resource information of the system that can implement the technical solution. Therefore, the electronic device can first determine the resource information of the system.
在一些实施例中,上述系统的资源信息可以是系统的版本信息,系统的接口信息等和电子设备相关的信息。In some embodiments, the resource information of the above-mentioned system may be the version information of the system, the interface information of the system, and other information related to the electronic device.
在步骤S503中:响应于资源信息满足预设资源信息,获取当前播放对象对应的第一格式的资源。In step S503: in response to the resource information satisfying the preset resource information, acquire the resource of the first format corresponding to the current playback object.
在一些实施例中,在资源信息属于可以实施技术方案的系统的资源信息的情况下,可以获取当前播放对象的第一格式的资源。In some embodiments, in the case that the resource information belongs to the resource information of the system that can implement the technical solution, the resource of the first format of the currently playing object can be acquired.
举个例子,电子设备是IOS系统设备,可以实施技术方案的系统的资源信息是IOS14及以上的版本信息,在确定的系统的版本信息正好是IOS14的情况下,则可以获取当前播放对象的第一格式的资源。这是因为,在预设播放页面中播放当前播放对象的情况下,使用的播放器可以是调用的第一应用包含的播放器。然而,在电子设备确定系统的资源信息满足预设资源信息的情况下,电子设备是可以采用系统支持的特定功能去生成悬浮弹窗,而这个特定功能需要使用到系统原生播放器,而系统原生播放器是不支持第一应用包含的播放器使用的第二格式的资源去进行当前播放对象的播放,因此,要生成悬浮弹窗,电子设备需要去获取和系统原生播放器适配的当前播放对象对应的第一格式的资源。如此,才能在退出预设播放页面的情况下,顺利地使用系统原生播放器在悬浮弹窗内播放当前播放对象。其中,上述的特定功能可以是IOS系统设备中的画中画功能。For example, if the electronic device is an IOS system device, and the resource information of the system that can implement the technical solution is the version information of IOS14 and above, if the determined version information of the system is exactly IOS14, the number of the current playback object can be obtained. A resource in one format. This is because, when the current playback object is played on the preset playback page, the player used may be the player included in the called first application. However, when the electronic device determines that the resource information of the system satisfies the preset resource information, the electronic device can use a specific function supported by the system to generate the floating pop-up window, and this specific function needs to use the system native player, and the system native The player does not support the resources of the second format used by the player contained in the first application to play the current playback object. Therefore, to generate a floating popup window, the electronic device needs to obtain the current playback that is compatible with the system's native player. The resource of the first format corresponding to the object. In this way, the system native player can be used to play the current playback object in the floating popup window smoothly when the preset playback page is exited. The above-mentioned specific function may be a picture-in-picture function in an IOS system device.
本公开实施例还提供一种获取当前播放对象对应的第一格式的资源的实施方法,包括:电子设备向地址服务器发送资源地址请求,接收到第一格式的资源的地址信息对应的资源地址反馈,基于地址信息获取第一格式的资源,其中,第一格式的资源是资源服务器在获取到第二格式的资源,将第二格式的资源转换后发送的;在预设播放页面中播放的当前播放对象对应第二格式的资源。An embodiment of the present disclosure also provides an implementation method for acquiring a resource in a first format corresponding to a current playback object, including: an electronic device sends a resource address request to an address server, and receives resource address feedback corresponding to the address information of the resource in the first format , obtain the resource in the first format based on the address information, where the resource in the first format is sent by the resource server after obtaining the resource in the second format and converting the resource in the second format; The playback object corresponds to the resource in the second format.
在一些实施例中,图6是根据一示例性实施例示出的一种获取当前播放对象对应的第一格式的资源的方法的流程图,如图6所示,包括:In some embodiments, FIG. 6 is a flowchart of a method for obtaining resources of a first format corresponding to a current playback object according to an exemplary embodiment, as shown in FIG. 6 , including:
在步骤S601中:电子设备向地址服务器发送资源地址请求。In step S601: the electronic device sends a resource address request to the address server.
在一些实施例中,电子设备向地址服务器发送的资源地址请求中包含了第一格式的资源的标识,也就是说,电子设备向地址服务器要的是和系统原生播放器适配的第一格式的资源的地址。In some embodiments, the resource address request sent by the electronic device to the address server includes the identifier of the resource in the first format, that is, the electronic device requests the address server in the first format compatible with the native player of the system address of the resource.
在步骤S602中:地址服务器向资源服务器发送该资源地址请求。In step S602: the address server sends the resource address request to the resource server.
在一些实施例中,上述的资源服务器可以是内容分发网络。In some embodiments, the aforementioned resource server may be a content distribution network.
在步骤S603中,资源服务器根据资源地址请求中的第一格式的资源的标识确定是否存储有第一格式的资源对应的第二格式的资源。在资源服务器根据资源地址请求中的第一格式的资源的标识存储有第一格式的资源对应的第二格式的资源的情况下,转至步骤S606;在资源服务器根据资源地址请求中的第一格式的资源的标识没有存储第一格式的资源对应的第二格式的资源的情况下,转至步骤S604。In step S603, the resource server determines whether the resource in the second format corresponding to the resource in the first format is stored according to the identifier of the resource in the first format in the resource address request. In the case that the resource server stores the resource in the second format corresponding to the resource in the first format according to the identifier of the resource in the first format in the resource address request, go to step S606; If the identifier of the resource in the format does not store the resource in the second format corresponding to the resource in the first format, go to step S604.
在步骤S604中,资源服务器向源站发送资源获取请求,该资源获取请求中包含有第二格式的资源的标识。In step S604, the resource server sends a resource acquisition request to the source station, where the resource acquisition request includes the identifier of the resource in the second format.
在步骤S605中,源站发送第二格式的资源至资源服务器。In step S605, the source station sends the resource in the second format to the resource server.
在步骤S606中,资源服务器将第二格式的资源转换成第一格式的资源。In step S606, the resource server converts the resource in the second format into the resource in the first format.
在步骤S607中,资源服务器将第一格式的资源的地址返回给地址服务器。In step S607, the resource server returns the address of the resource in the first format to the address server.
在步骤S608中,地址服务器将第一格式的资源的地址发送至电子设备。In step S608, the address server sends the address of the resource in the first format to the electronic device.
在步骤S609中,电子设备向资源服务器发送第一格式的资源的获取请求。In step S609, the electronic device sends a resource acquisition request in the first format to the resource server.
在步骤S610中,资源服务器向电子设备反馈第一格式的资源。In step S610, the resource server feeds back the resource in the first format to the electronic device.
如此,电子设备就可以顺利获取第一格式的资源,为后续调用系统原生播放器在悬浮弹窗内播放当前播放对象做准备。In this way, the electronic device can successfully acquire the resource in the first format, and prepares for the subsequent invocation of the system native player to play the current playback object in the floating popup window.
在步骤S505中:退出预设播放页面。In step S505: exit the preset play page.
在步骤S507中:在预设播放页面所属的第一应用的页面上显示悬浮弹窗。In step S507: a floating pop-up window is displayed on the page of the first application to which the preset play page belongs.
在步骤S509中:根据第一格式的资源,调用系统原生播放器在悬浮弹窗内播放当前播放对象。In step S509: according to the resource in the first format, call the system native player to play the current playback object in the floating popup window.
步骤S505-S509的内容可以参考步骤S203以扩展的内容,重复内容将不再赘述。For the content of steps S505-S509, reference may be made to the expanded content of step S203, and repeated content will not be repeated.
在一些实施例中,上述第一格式可以是HLS格式,是一种基于HTTP的自适应码率流媒体传输协议呈现的格式;第二格式可以是FLV格式。当然,不同的电子设备对应的系统原生播放器适配的第一格式的资源可以是不同的,不同第一应用对应的播放器适配的第二格式的资源也可以是不同的。In some embodiments, the above-mentioned first format may be an HLS format, which is a format presented by an HTTP-based adaptive bitrate streaming media transmission protocol; the second format may be an FLV format. Of course, the resources of the first format adapted to the system native players corresponding to different electronic devices may be different, and the resources of the second format adapted to the players corresponding to different first applications may also be different.
在一些实施例中,图7是根据一示例性实施例示出的一种第一应用的页面的示意图,如图7所示,除了包括第一应用的页面40,在第一应用的页面40上显示的悬浮弹窗401,以及在悬浮弹窗401中播放的当前播放对象101之外,还可以包含有应用隐藏控件402。该应用隐藏控件402用于响应于检测到被触碰,退出第一应用,也就是将第一应用退至后台。In some embodiments, FIG. 7 is a schematic diagram illustrating a page of a first application according to an exemplary embodiment. As shown in FIG. 7 , in addition to the page 40 including the first application, on the page 40 of the first application In addition to the displayed floating pop-up window 401 and the currently playing object 101 played in the floating pop-up window 401 , an application hiding control 402 may also be included. The application hiding control 402 is used to exit the first application in response to detection of being touched, that is, return the first application to the background.
在步骤S205中,响应于检测到基于应用隐藏控件的隐藏指令,隐藏第一应用,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。In step S205, in response to detecting the hiding instruction based on the application hiding control, hide the first application, display a floating pop-up window on the interface of the electronic device, and play the current playback object in the floating pop-up window.
图8是根据一示例性实施例示出的一种电子设备的界面的示意图,如图8所示,包括电子设备的界面80,以及在电子设备的界面上显示悬浮弹窗401,和在悬浮弹窗401内播放当前播放对象101。FIG. 8 is a schematic diagram of an interface of an electronic device according to an exemplary embodiment. As shown in FIG. 8 , it includes an interface 80 of the electronic device, and a floating pop-up window 401 is displayed on the interface of the electronic device, and a floating pop-up window 401 is displayed on the interface of the electronic device. The current playback object 101 is played in the window 401 .
本公开实施例中,在步骤S203被电子设备实施的情况下,系统原生播放器还是在电子设备的前台播放,因此,此时第一应用还运行在前台。在检测到基于应用隐藏控件的隐藏指 令,电子设备可以在承载第一应用的电子设备的界面上显示悬浮弹窗,利用电子设备的系统应用接口创建独立子线程,基于独立子线程在悬浮弹窗内播放当前播放对象。在一些实施例中,电子设备就是利用系统的特定功能,将系统原生播放器的渲染视图提交给了系统应用接口,在通过系统应用接口创建的独立子线程实现在悬浮弹窗内播放当前播放对象。In the embodiment of the present disclosure, when step S203 is implemented by the electronic device, the system native player still plays in the foreground of the electronic device, and therefore, the first application is still running in the foreground at this time. After detecting the hidden command based on the hidden control of the application, the electronic device can display a floating pop-up window on the interface of the electronic device hosting the first application, create an independent sub-thread by using the system application interface of the electronic device, and display the floating pop-up window based on the independent sub-thread. Play the current playback object inside. In some embodiments, the electronic device uses the specific function of the system to submit the rendering view of the system native player to the system application interface, and the independent sub-thread created through the system application interface realizes playing the current playback object in the floating pop-up window. .
这样情况下,等于系统原生播放器将当前播放对象分享给了其他模块,即使在第一应用退至后台的时候,可以利用其他模块支持在电子设备的界面上的悬浮弹窗式播放,最终实现本申请在第一应用退至电子设备后台的情况下,还能通过简单的操作实现在界面在观看当前播放对象,提高用户体验的技术方案。In this case, it means that the native player of the system shares the current playback object with other modules. Even when the first application returns to the background, other modules can be used to support floating pop-up playback on the interface of the electronic device, and finally realize the In the present application, when the first application returns to the background of the electronic device, the technical solution of viewing the current playing object on the interface and improving the user experience can be realized through a simple operation.
本公开实施例中,既然上述的步骤已经实现将第一应用隐藏至后台,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象的任务,那么,在一些实施例中,电子设备可以在检测到第二应用的启动指令的情况下,如图9所示,显示第二应用的页面90,在第二应用的页面上显示悬浮弹窗401,在悬浮弹窗内播放当前播放对象101。In the embodiment of the present disclosure, since the above steps have already implemented the task of hiding the first application in the background, displaying a floating pop-up window on the interface of the electronic device, and playing the currently playing object in the floating pop-up window, in some embodiments, , the electronic device can display the page 90 of the second application, display the floating pop-up window 401 on the page of the second application as shown in FIG. The object 101 is currently playing.
如此,使得用户在观看当前播放对象的同时,还可以同步进行别的应用上的操作,比如图9所示的社交应用上进行聊天,使得用户自己的休闲或者工作能够并行进行,提高用户体验。In this way, the user can simultaneously perform operations on other applications while watching the current playback object, such as chatting on the social application shown in FIG.
上文已经提出考虑到不同的电子设备存在硬件配置或者软件配置上的差异,并不是所有的电子设备,或者说并不是拥有不同系统版本的电子设备都能实施该技术方案。基于此,本公开还提出一种当系统的资源信息不满足预设资源信息的实施方式,图10是根据一示例性实施例示出的一种对象播放方法的流程图,包括:As mentioned above, considering that different electronic devices have differences in hardware configuration or software configuration, not all electronic devices or electronic devices with different system versions can implement the technical solution. Based on this, the present disclosure also proposes an implementation manner when the resource information of the system does not meet the preset resource information. FIG. 10 is a flowchart of an object playback method according to an exemplary embodiment, including:
在步骤S1001中:确定系统的资源信息。In step S1001: determine the resource information of the system.
在一些实施例中,电子设备在下载第一应用的情况下,或者在更新第一应用的软件配置的情况下,可以同时获得可以实施技术方案的系统的资源信息的表格。因此,电子设备可以先确定系统的资源信息。In some embodiments, in the case of downloading the first application, or in the case of updating the software configuration of the first application, the electronic device can simultaneously obtain a table of resource information of the system that can implement the technical solution. Therefore, the electronic device can first determine the resource information of the system.
在步骤S1003中:响应于资源信息不满足预设资源信息,退出预设播放页面。In step S1003: in response to the resource information not meeting the preset resource information, exit the preset play page.
在一些实施例中,在资源信息不属于可以实施技术方案的系统的资源信息的情况下,则可以使用之前配置的小窗功能,退出预设播放页面。In some embodiments, if the resource information does not belong to the resource information of the system that can implement the technical solution, the previously configured widget function can be used to exit the preset play page.
在步骤S1005中:在预设播放页面所属的第一应用的页面上显示悬浮弹窗;In step S1005: displaying a floating pop-up window on the page of the first application to which the preset playback page belongs;
在步骤S1007中:利用第一应用包含的播放器在悬浮弹窗内播放当前播放对象。In step S1007: use the player included in the first application to play the current playback object in the floating pop-up window.
在一些实施例中,在退出预设播放页面(比如说直播视频的直播间)的同时将直播间的播放器绑给小窗,由小窗继续播放当前播放内容,实现画面的无缝切换,这时候的小窗只能在第一应用处于前台时播放。In some embodiments, while exiting the preset playback page (for example, the live room of the live video), the player of the live room is bound to the small window, and the small window continues to play the current playing content, so as to realize the seamless switching of the screen, At this time, the small window can only be played when the first application is in the foreground.
基于上述的实施例可以看出,本公开的技术方案可以根据不同的待处理情况(系统的资源信息)灵活地对应不同的处理结果。这是因为考虑到网上还存在着大量因为电子设备原因或者用户自己的原因老客户端版本,使用同一处理方法,可能会存在不兼容的事实,因此,本公开从实际出发,以用户利益优先,全面考虑不同客户端的应用场景,根据新老客户端版本去进行兼容处理,防止不符合资源信息要求的电子设备出现卡顿,闪退甚至重启等异常。Based on the above embodiments, it can be seen that the technical solutions of the present disclosure can flexibly correspond to different processing results according to different situations to be processed (resource information of the system). This is because considering the fact that there are still a large number of old client versions on the Internet due to electronic equipment or the user's own reasons, using the same processing method, there may be incompatibility. Comprehensively consider the application scenarios of different clients, and perform compatible processing according to the old and new client versions to prevent the electronic devices that do not meet the resource information requirements from being stuck, crashing or even restarting.
本公开实施例中,在当前播放对象为直播视频的情况下,由于一些场景,其直播视频的视频流的尺寸是动态变换的。比如,普通的直播视频是尺寸为9:16的竖屏,但在主播比赛或者主播连线的场景下,就会变成18:16的横屏形式,然而,电子设备的特定功能可能不能自动的动态支持这种尺寸的变化,造成用户在观看过程中,可能因为悬浮弹窗尺寸的不合适影响用户体验,基于此,本公开可以获取当前播放对象的资源中的画面显示尺寸参数,基于画面显示尺寸参数(比如监测视轨中的naturalSize变化)在电子设备的界面上实时调整悬浮弹窗的显示尺寸。从而,不管是在设备的操作系统界面或者开启第二应用的界面的情况下,都可以实现画面比例的自适应能力,提高用户观看时的舒适度。In the embodiment of the present disclosure, when the current playback object is a live video, due to some scenarios, the size of the video stream of the live video is dynamically changed. For example, the normal live video is a 9:16 vertical screen, but in the scenario of the anchor game or the anchor connection, it will become an 18:16 horizontal screen. However, certain functions of electronic devices may not automatically The dynamic support of this size change may cause the user to experience the inappropriate size of the floating pop-up window during the viewing process. Based on this, the present disclosure can obtain the screen display size parameter in the resource of the current playback object, and based on the screen Display size parameters (such as monitoring the change of naturalSize in the visual track) adjust the display size of the floating pop-up window in real time on the interface of the electronic device. Therefore, no matter in the case of the operating system interface of the device or the interface of opening the second application, the self-adaptive capability of the screen ratio can be realized, and the user's viewing comfort can be improved.
监测画面显示尺寸参数的方式有多种,比如设置有一个定时器,该定时器可以用于辅助电子设备每隔预设时间获取画面显示尺寸参数,举个例子,可以每隔3秒获取一次画面显示尺寸参数。There are many ways to monitor the screen display size parameters. For example, a timer is set up, and the timer can be used to assist the electronic device to obtain the screen display size parameters at preset times. For example, the screen can be obtained every 3 seconds. Display size parameters.
其中,上段中的第一电子设备的界面上还包括弹窗尺寸调整控件,在电子设备获取当前播放对象的资源中的画面显示尺寸参数的情况下,基于画面显示尺寸参数在电子设备的界面上显示悬浮弹窗,确定悬浮弹窗的初始显示尺寸参数,响应于检测到基于弹窗尺寸调整控件触发的弹窗调整指令,根据初始显示尺寸参数和画面显示尺寸参数的范围在电子设备的界面上显示悬浮弹窗。也就是说,用户可以通过弹窗尺寸调整控件在上述9:16至18:16的尺寸中进行调整,直到用户自己找到一个比较舒服的悬浮弹窗观看尺寸。Wherein, the interface of the first electronic device in the above paragraph also includes a pop-up window size adjustment control. In the case where the electronic device obtains the screen display size parameter in the resource of the current playback object, the screen display size parameter is based on the screen display size parameter on the interface of the electronic device. Display the floating pop-up window, determine the initial display size parameters of the floating pop-up window, and in response to detecting the pop-up window adjustment command triggered by the pop-up window size adjustment control, according to the initial display size parameter and the range of the screen display size parameter on the interface of the electronic device Show a popup window. That is to say, the user can adjust the size of the above-mentioned 9:16 to 18:16 through the pop-up window size adjustment control until the user finds a more comfortable viewing size of the floating pop-up window.
如此,电子设备可以基于参数主动或者在用户的指示下被动调整悬浮弹窗的显示尺寸,实现随着画面显示尺寸参数进行动态调整的目的。In this way, the electronic device can actively adjust the display size of the floating pop-up window based on the parameters or passively under the user's instruction, so as to achieve the purpose of dynamically adjusting with the screen display size parameters.
在一些实施例中,第一应用和第二应用可以共存在电子设备的前台,使得用户在使用第一应用的同时还可以使用第二应用,不需要其中一个应用为另一个应用腾出空间,避免电子设备在切换过程中可能引起的卡顿等不良反应。In some embodiments, the first application and the second application may coexist in the foreground of the electronic device, so that the user can also use the second application while using the first application, without requiring one application to make room for the other application, Avoid adverse reactions such as stuttering that may be caused by electronic equipment during the switching process.
本公开实施例中,当电子设备检测到基于弹窗显示控件触发的弹窗显示指令,退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象的情况下,响应于检测到第二应用的启动指令,可以缩小第一应用的页面至电子设备的界面的第一区域,在电子设备的界面的第二区域显示第二应用的页面,在缩小后的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。In the embodiment of the present disclosure, when the electronic device detects a pop-up window display instruction triggered by the pop-up window display control, it exits the preset play page, displays a floating pop-up window on the page of the first application to which the preset play page belongs, and displays a floating pop-up window on the page of the first application to which the preset play page belongs. In the case of playing the current playback object in the window, in response to detecting the start instruction of the second application, the page of the first application can be reduced to the first area of the interface of the electronic device, and the second area of the interface of the electronic device can be displayed in the second area. On the page of the application, a floating pop-up window is displayed on the page of the first application after being scaled down, and the current playback object is played in the floating pop-up window.
在一些实施例中,还可以在第二应用上显示悬浮弹窗。甚至,除了第一区域和第二区域之外,电子设备的界面上还存在和第一区域以及第二区域不重叠的第三区域,可以在该第三区域上显示悬浮弹窗。在一些实施例中,第一区域和第二区域可以存在重叠部分。In some embodiments, a floating pop-up window may also be displayed on the second application. Even in addition to the first area and the second area, there is a third area on the interface of the electronic device that does not overlap with the first area and the second area, and a floating pop-up window can be displayed on the third area. In some embodiments, the first region and the second region may have overlapping portions.
在一些实施例中,第一区域、第二区域和第三区域可以通过用户手动调整,也就是说,每个区域都有对应的区域调整控件,在调整其中的一个区域调整控件的情况下,其他区域也可以产生联动反应,从而被动调整区域范围。In some embodiments, the first area, the second area and the third area can be manually adjusted by the user, that is, each area has a corresponding area adjustment control, and in the case of adjusting one of the area adjustment controls, Other regions can also generate linkage reactions, thereby passively adjusting the region range.
图11是根据一示例性实施例示出的一种对象播放装置框图。参照图12,该装置包括播放模块1101、第一显示模块1102和第二显示模块1103。Fig. 11 is a block diagram of an object playing device according to an exemplary embodiment. Referring to FIG. 12 , the apparatus includes a playback module 1101 , a first display module 1102 and a second display module 1103 .
播放模块1101,被配置为在预设播放页面中播放当前播放对象;预设播放页面包含有弹窗显示控件;The playback module 1101 is configured to play the current playback object in a preset playback page; the preset playback page includes a pop-up window display control;
第一显示模块1102,被配置为响应于检测到基于弹窗显示控件触发的弹窗显示指令,退出预设播放页面,在预设播放页面所属的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象;第一应用的页面上包含有应用隐藏控件;The first display module 1102 is configured to exit the preset play page in response to detecting a pop-up display instruction triggered by the pop-up display control, and display a floating pop-up window on the page of the first application to which the preset play page belongs. The current playback object is played in the floating pop-up window; the page of the first application contains application hidden controls;
第二显示模块1103,被配置为响应于检测到基于应用隐藏控件的隐藏指令,隐藏第一应用的页面,在电子设备的界面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。The second display module 1103 is configured to hide the page of the first application in response to detecting the hiding instruction based on the application hiding control, display a floating popup window on the interface of the electronic device, and play the current playing object in the floating popup window.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
第三显示模块,被配置为响应于检测到第二应用的启动指令,显示第二应用的页面;a third display module, configured to display a page of the second application in response to detecting the startup instruction of the second application;
第四显示模块,被配置为在第二应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。The fourth display module is configured to display a floating pop-up window on the page of the second application, and play the current playback object in the floating pop-up window.
在一些实施例中,第一显示模块,被配置为响应于检测到第二应用的启动指令,缩小第一应用的页面至电子设备的界面的第一区域;In some embodiments, the first display module is configured to reduce the page of the first application to the first area of the interface of the electronic device in response to detecting the start instruction of the second application;
第三显示模块,被配置为在电子设备的界面的第二区域显示第二应用的页面;a third display module, configured to display the page of the second application in the second area of the interface of the electronic device;
第一显示模块,被配置为在缩小后的第一应用的页面上显示悬浮弹窗,在悬浮弹窗内播放当前播放对象。The first display module is configured to display a floating pop-up window on the page of the reduced first application, and play the current playback object in the floating pop-up window.
在一些实施例中,装置还包括:In some embodiments, the apparatus further includes:
资源信息确定模块,被配置为确定系统的资源信息;a resource information determination module, configured to determine resource information of the system;
资源获取模块,被配置为响应于资源信息满足预设资源信息,获取当前播放对象对应的第一格式的资源;a resource acquisition module, configured to acquire resources in the first format corresponding to the current playback object in response to the resource information satisfying the preset resource information;
第一显示模块包括:The first display module includes:
第一显示子模块,被配置为在预设播放页面所属的第一应用的页面上显示悬浮弹窗;a first display sub-module, configured to display a floating pop-up window on the page of the first application to which the preset playback page belongs;
第一播放子模块,被配置为根据第一格式的资源,调用系统原生播放器在悬浮弹窗内播放当前播放对象。The first playback sub-module is configured to call the system native player to play the current playback object in the floating popup window according to the resource in the first format.
在一些实施例中,第二显示模块包括:In some embodiments, the second display module includes:
第二显示子模块,被配置为在电子设备的界面上显示悬浮弹窗;The second display sub-module is configured to display a floating pop-up window on the interface of the electronic device;
第二播放子模块,被配置为利用电子设备的系统应用接口创建独立子线程,基于独立子线程在悬浮弹窗内播放当前播放对象。The second playing sub-module is configured to create an independent sub-thread by using the system application interface of the electronic device, and play the current playing object in the floating pop-up window based on the independent sub-thread.
在一些实施例中,资源获取模块包括:In some embodiments, the resource acquisition module includes:
请求发送子模块,被配置为向地址服务器发送资源地址请求;The request sending submodule is configured to send a resource address request to the address server;
反馈接收子模块,被配置为接收到第一格式的资源的地址信息对应的资源地址反馈;a feedback receiving sub-module, configured to receive resource address feedback corresponding to the address information of the resource in the first format;
资源获取子模块,被配置为基于地址信息获取第一格式的资源;a resource acquisition submodule, configured to acquire resources in the first format based on the address information;
第一格式的资源是资源服务器在获取到第二格式的资源,将第二格式的资源转换后发送的;在预设播放页面中播放的当前播放对象对应第二格式的资源。The resource in the first format is sent by the resource server after obtaining the resource in the second format and converting the resource in the second format; the current playback object played on the preset playback page corresponds to the resource in the second format.
在一些实施例中,第二显示模块包括:In some embodiments, the second display module includes:
参数获取子模块,被配置为获取当前播放对象的资源中的画面显示尺寸参数;The parameter acquisition sub-module is configured to acquire the screen display size parameter in the resource of the current playback object;
第二显示子模块,被配置为基于画面显示尺寸参数在电子设备的界面上显示悬浮弹窗。The second display sub-module is configured to display a floating pop-up window on the interface of the electronic device based on the screen display size parameter.
在一些实施例中,电子设备的界面上还包括弹窗尺寸调整控件;In some embodiments, the interface of the electronic device further includes a pop-up window size adjustment control;
第二显示子模块,被配置为:The second display submodule, configured as:
确定悬浮弹窗的初始显示尺寸参数;Determine the initial display size parameters of the floating pop-up window;
响应于检测到基于弹窗尺寸调整控件触发的弹窗调整指令,根据初始显示尺寸参数和画面显示尺寸参数的范围在电子设备的界面上显示悬浮弹窗。In response to detecting a pop-up window adjustment instruction triggered based on the pop-up window size adjustment control, a floating pop-up window is displayed on the interface of the electronic device according to the initial display size parameter and the range of the screen display size parameter.
关于上述实施例中的装置,其中各个模块执行操作的实施方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiments, the implementation manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
图12是根据一示例性实施例示出的一种用于对象播放的电子设备1200的框图。FIG. 12 is a block diagram of an electronic device 1200 for object playback, according to an exemplary embodiment.
该电子设备可以是服务器,还可以是终端设备,其内部结构图可以如图12所示。该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种对象播放方法。The electronic device may be a server or a terminal device, and its internal structure diagram may be as shown in FIG. 12 . The electronic device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements an object playing method.
本领域技术人员可以理解,图12中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的电子设备的限定,电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 12 is only a block diagram of a partial structure related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied. The electronic device may include more than More or fewer components are shown in the figures, either in combination or with different arrangements of components.
在示例性实施例中,还提供了一种电子设备,包括:处理器;用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现如本公开实施例中的对象播放方法。In an exemplary embodiment, there is also provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure The object playback method in the example.
在示例性实施例中,还提供了一种计算机可读存储介质,当该计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例中的对象播放方法。In an exemplary embodiment, a computer-readable storage medium is also provided, when the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can perform the object playback in the embodiment of the present disclosure method.
在示例性实施例中,还提供了一种计算机程序产品,计算机程序产品包括计算机程序,计算机程序存储在可读存储介质中,计算机设备的至少一个处理器从可读存储介质读取并执行计算机程序,使得计算机设备执行本公开实施例的对象播放方法。In an exemplary embodiment, a computer program product is also provided, the computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the computer device reads from the readable storage medium and executes the computer The program enables the computer device to execute the object playing method of the embodiment of the present disclosure.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存 储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。All the embodiments of the present disclosure can be implemented independently or in combination with other embodiments, which are all regarded as the protection scope required by the present disclosure.

Claims (19)

  1. 一种对象播放方法,应用于电子设备,包括:An object playing method, applied to an electronic device, comprising:
    在预设播放页面中播放当前播放对象;所述预设播放页面包含弹窗显示控件;Play the current playback object in a preset playback page; the preset playback page includes a pop-up window display control;
    响应于检测到基于所述弹窗显示控件触发的弹窗显示指令,退出所述预设播放页面,在所述预设播放页面所属的第一应用的页面上显示悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象;所述第一应用的页面上包含应用隐藏控件;In response to detecting a pop-up window display instruction triggered by the pop-up window display control, exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page belongs, and display a floating pop-up window on the floating window. The current playback object is played in the pop-up window; the page of the first application includes an application hidden control;
    响应于检测到基于所述应用隐藏控件的隐藏指令,隐藏所述第一应用的页面,在所述电子设备的界面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。In response to detecting a hiding instruction based on the application hiding control, hide the page of the first application, display the floating pop-up window on the interface of the electronic device, and play the current playback in the floating pop-up window object.
  2. 根据权利要求1所述的对象播放方法,还包括:The object playback method according to claim 1, further comprising:
    响应于检测到第二应用的启动指令,显示所述第二应用的页面;In response to detecting the startup instruction of the second application, displaying the page of the second application;
    在所述第二应用的页面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。The floating pop-up window is displayed on the page of the second application, and the currently playing object is played in the floating pop-up window.
  3. 根据权利要求1所示的对象播放方法,还包括:The object playback method according to claim 1, further comprising:
    响应于检测到第二应用的启动指令,缩小所述第一应用的页面至所述电子设备的界面的第一区域;In response to detecting the start instruction of the second application, reducing the page of the first application to the first area of the interface of the electronic device;
    在所述电子设备的界面的第二区域显示所述第二应用的页面;Display the page of the second application in the second area of the interface of the electronic device;
    在缩小后的所述第一应用的页面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。The floating pop-up window is displayed on the reduced page of the first application, and the currently playing object is played in the floating pop-up window.
  4. 根据权利要求1-2任一所述的对象播放方法,还包括:The object playback method according to any one of claims 1-2, further comprising:
    确定系统的资源信息;Determine the resource information of the system;
    响应于所述资源信息满足预设资源信息,获取所述当前播放对象对应的第一格式的资源;In response to the resource information satisfying preset resource information, acquiring the resource in the first format corresponding to the current playback object;
    所述在所述预设播放页面所属的第一应用的页面上显示悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象包括:The displaying a floating pop-up window on the page of the first application to which the preset playback page belongs, and playing the current playback object in the floating pop-up window includes:
    在所述预设播放页面所属的第一应用的页面上显示所述悬浮弹窗;displaying the floating pop-up window on the page of the first application to which the preset playback page belongs;
    根据所述第一格式的资源,调用系统原生播放器在所述悬浮弹窗内播放所述当前播放对象。According to the resource in the first format, the system native player is called to play the current playback object in the floating popup window.
  5. 根据权利要求4所述的对象播放方法,其中,所述在所述电子设备的界面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象包括:The object playing method according to claim 4, wherein the displaying the floating pop-up window on the interface of the electronic device, and playing the currently playing object in the floating pop-up window comprises:
    在所述电子设备的界面上显示所述悬浮弹窗;displaying the floating pop-up window on the interface of the electronic device;
    利用所述电子设备的系统应用接口创建独立子线程,基于所述独立子线程在所述悬浮弹窗内播放所述当前播放对象。A system application interface of the electronic device is used to create an independent sub-thread, and based on the independent sub-thread, the current playing object is played in the floating popup window.
  6. 根据权利要求4所述的对象播放方法,其中,所述获取所述当前播放对象对应的第一格式的资源包括:The object playback method according to claim 4, wherein the acquiring the resource of the first format corresponding to the current playback object comprises:
    向地址服务器发送资源地址请求;Send a resource address request to the address server;
    接收到所述第一格式的资源的地址信息对应的资源地址反馈;receiving the resource address feedback corresponding to the address information of the resource in the first format;
    基于所述地址信息获取所述第一格式的资源;obtaining the resource in the first format based on the address information;
    所述第一格式的资源是资源服务器在获取到第二格式的资源,将所述第二格式的资源转换后发送的;在所述预设播放页面中播放的所述当前播放对象对应所述第二格式的资源。The resource in the first format is sent by the resource server after obtaining the resource in the second format and converting the resource in the second format; the current playback object played on the preset playback page corresponds to the Resources in the second format.
  7. 根据权利要求1所述的对象播放方法,其中,所述在所述电子设备的界面上显示所述悬浮弹窗包括:The object playback method according to claim 1, wherein the displaying the floating pop-up window on the interface of the electronic device comprises:
    获取所述当前播放对象的资源中的画面显示尺寸参数;Obtain the screen display size parameter in the resource of the current playback object;
    基于所述画面显示尺寸参数在所述电子设备的界面上显示所述悬浮弹窗。The floating pop-up window is displayed on the interface of the electronic device based on the screen display size parameter.
  8. 根据权利要求7所述的对象播放方法,其中,所述电子设备的界面还包括弹窗尺寸调整控件;The object playback method according to claim 7, wherein the interface of the electronic device further comprises a pop-up window size adjustment control;
    所述基于所述画面显示尺寸参数在所述电子设备的界面上显示所述悬浮弹窗;the displaying the floating pop-up window on the interface of the electronic device based on the screen display size parameter;
    确定所述悬浮弹窗的初始显示尺寸参数;determining the initial display size parameter of the floating pop-up window;
    响应于检测到基于所述弹窗尺寸调整控件触发的弹窗调整指令,根据所述初始显示尺寸参数和所述画面显示尺寸参数的范围在所述电子设备的界面上显示所述悬浮弹窗。In response to detecting a pop-up window adjustment instruction triggered based on the pop-up window size adjustment control, the floating pop-up window is displayed on the interface of the electronic device according to the initial display size parameter and the range of the screen display size parameter.
  9. 一种对象播放装置,包括:An object playback device, comprising:
    播放模块,被配置为在预设播放页面中播放当前播放对象;所述预设播放页面包含有弹窗显示控件;a playback module, configured to play the current playback object in a preset playback page; the preset playback page includes a pop-up window display control;
    第一显示模块,被配置为响应于检测到基于所述弹窗显示控件触发的弹窗显示指令,退出所述预设播放页面,在所述预设播放页面所属的第一应用的页面上显示悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象;所述第一应用的页面上包含有应用隐藏控件;A first display module, configured to exit the preset play page in response to detecting a pop-up window display instruction triggered based on the pop-up window display control, and display it on the page of the first application to which the preset play page belongs A floating pop-up window, in which the currently playing object is played; the page of the first application includes an application hiding control;
    第二显示模块,被配置为响应于检测到基于所述应用隐藏控件的隐藏指令,隐藏所述第一应用的页面,在所述电子设备的界面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。The second display module is configured to hide the page of the first application in response to detecting a hiding instruction based on the application to hide the control, display the floating pop-up window on the interface of the electronic device, and display the floating pop-up window on the interface of the electronic device. The current playback object is played in the pop-up window.
  10. 根据权利要求9所述的对象播放装置,还包括:The object playback device according to claim 9, further comprising:
    第三显示模块,被配置为响应于检测到第二应用的启动指令,显示所述第二应用的页面;a third display module, configured to display a page of the second application in response to detecting an activation instruction of the second application;
    第四显示模块,被配置为在所述第二应用的页面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。The fourth display module is configured to display the floating pop-up window on the page of the second application, and play the currently playing object in the floating pop-up window.
  11. 根据权利要求10所示的对象播放装置,其中,The object playback device according to claim 10, wherein,
    所述第一显示模块,进一步被配置为响应于检测到第二应用的启动指令,缩小所述第一应用的页面至所述电子设备的界面的第一区域;The first display module is further configured to reduce the page of the first application to the first area of the interface of the electronic device in response to detecting the start instruction of the second application;
    所述第三显示模块,进一步被配置为在所述电子设备的界面的第二区域显示所述第二应用的页面;The third display module is further configured to display the page of the second application in the second area of the interface of the electronic device;
    所述第一显示模块,进一步被配置为在缩小后的所述第一应用的页面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。The first display module is further configured to display the floating pop-up window on the reduced page of the first application, and play the currently playing object in the floating pop-up window.
  12. 根据权利要求9-10任一所述的对象播放装置,还包括:The object playback device according to any one of claims 9-10, further comprising:
    资源信息确定模块,被配置为确定系统的资源信息;a resource information determination module, configured to determine resource information of the system;
    资源获取模块,被配置为响应于所述资源信息满足预设资源信息,获取所述当前播放对象对应的第一格式的资源;a resource acquisition module, configured to acquire resources in the first format corresponding to the current playback object in response to the resource information satisfying preset resource information;
    所述第一显示模块包括:The first display module includes:
    第一显示子模块,被配置为在所述预设播放页面所属的第一应用的页面上显示所述悬浮弹窗;a first display sub-module, configured to display the floating pop-up window on the page of the first application to which the preset playback page belongs;
    第一播放子模块,被配置为根据所述第一格式的资源,调用系统原生播放器在所述悬浮弹窗内播放所述当前播放对象。The first playback sub-module is configured to call the system native player to play the current playback object in the floating popup window according to the resource in the first format.
  13. 根据权利要求12所述的对象播放装置,其中,所述第二显示模块包括:The object playback device according to claim 12, wherein the second display module comprises:
    第二显示子模块,被配置为在所述电子设备的界面上显示所述悬浮弹窗;a second display submodule, configured to display the floating pop-up window on the interface of the electronic device;
    第二播放子模块,被配置为利用所述电子设备的系统应用接口创建独立子线程,基于所述独立子线程在所述悬浮弹窗内播放所述当前播放对象。The second playing sub-module is configured to create an independent sub-thread by using the system application interface of the electronic device, and play the current playing object in the floating pop-up window based on the independent sub-thread.
  14. 根据权利要求12所述的对象播放装置,其中,所述资源获取模块包括:The object playback device according to claim 12, wherein the resource acquisition module comprises:
    请求发送子模块,被配置为向地址服务器发送资源地址请求;The request sending submodule is configured to send a resource address request to the address server;
    反馈接收子模块,被配置为接收到所述第一格式的资源的地址信息对应的资源地址反馈;a feedback receiving submodule, configured to receive resource address feedback corresponding to the address information of the resource in the first format;
    资源获取子模块,被配置为基于所述地址信息获取所述第一格式的资源;a resource acquisition sub-module, configured to acquire resources in the first format based on the address information;
    所述第一格式的资源是资源服务器在获取到第二格式的资源,将所述第二格式的资源转换后发送的;在所述预设播放页面中播放的所述当前播放对象对应所述第二格式的资源。The resource in the first format is sent by the resource server after obtaining the resource in the second format and converting the resource in the second format; the current playback object played on the preset playback page corresponds to the Resources in the second format.
  15. 根据权利要求9所述的对象播放装置,其中,所述第二显示模块包括:The object playback device according to claim 9, wherein the second display module comprises:
    参数获取子模块,被配置为获取所述当前播放对象的资源中的画面显示尺寸参数;a parameter acquisition submodule, configured to acquire the screen display size parameter in the resource of the current playback object;
    第二显示子模块,被配置为基于所述画面显示尺寸参数在所述电子设备的界面上显示所述悬浮弹窗。The second display sub-module is configured to display the floating pop-up window on the interface of the electronic device based on the screen display size parameter.
  16. 根据权利要求15所述的对象播放装置,其中,所述电子设备的界面上还包括弹窗尺寸调整控件;The object playback device according to claim 15, wherein the interface of the electronic device further comprises a pop-up window size adjustment control;
    所述第二显示子模块,被配置为:The second display sub-module is configured as:
    确定所述悬浮弹窗的初始显示尺寸参数;determining the initial display size parameter of the floating pop-up window;
    响应于检测到基于所述弹窗尺寸调整控件触发的弹窗调整指令,根据所述初始显示尺寸参数和所述画面显示尺寸参数的范围在所述电子设备的界面上显示所述悬浮弹窗。In response to detecting a pop-up window adjustment instruction triggered based on the pop-up window size adjustment control, the floating pop-up window is displayed on the interface of the electronic device according to the initial display size parameter and the range of the screen display size parameter.
  17. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:wherein the processor is configured to execute the instructions to implement the following steps:
    在预设播放页面中播放当前播放对象;所述预设播放页面包含有弹窗显示控件;Play the current playback object in a preset playback page; the preset playback page includes a pop-up window display control;
    响应于检测到基于所述弹窗显示控件触发的弹窗显示指令,退出所述预设播放页面, 在所述预设播放页面所属的第一应用的页面上显示悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象;所述第一应用的页面上包含有应用隐藏控件;In response to detecting a pop-up window display instruction triggered by the pop-up window display control, exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page belongs, and display the floating pop-up window on the floating window. The current playback object is played in the pop-up window; the page of the first application includes an application hidden control;
    响应于检测到基于所述应用隐藏控件的隐藏指令,隐藏所述第一应用的页面,在所述电子设备的界面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。In response to detecting a hiding instruction based on the application hiding control, hide the page of the first application, display the floating pop-up window on the interface of the electronic device, and play the current playback in the floating pop-up window object.
  18. 一种计算机可读存储介质,其中,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下步骤:A computer-readable storage medium, wherein, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the following steps:
    在预设播放页面中播放当前播放对象;所述预设播放页面包含有弹窗显示控件;Play the current playback object in a preset playback page; the preset playback page includes a pop-up window display control;
    响应于检测到基于所述弹窗显示控件触发的弹窗显示指令,退出所述预设播放页面,在所述预设播放页面所属的第一应用的页面上显示悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象;所述第一应用的页面上包含有应用隐藏控件;In response to detecting a pop-up window display instruction triggered by the pop-up window display control, exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page belongs, and display a floating pop-up window on the floating window. The current playback object is played in the pop-up window; the page of the first application includes an application hidden control;
    响应于检测到基于所述应用隐藏控件的隐藏指令,隐藏所述第一应用的页面,在所述电子设备的界面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。In response to detecting a hiding instruction based on the application hiding control, hide the page of the first application, display the floating pop-up window on the interface of the electronic device, and play the current playback in the floating pop-up window object.
  19. 一种计算机程序产品,其中,所述计算机程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,计算机设备的至少一个处理器从所述可读存储介质读取并执行所述计算机程序,使得所述计算机设备执行以下步骤:A computer program product, wherein the computer program product comprises a computer program stored in a readable storage medium from which at least one processor of a computer device reads and executes the computer A program that causes the computer device to perform the following steps:
    在预设播放页面中播放当前播放对象;所述预设播放页面包含有弹窗显示控件;Play the current playback object in a preset playback page; the preset playback page includes a pop-up window display control;
    响应于检测到基于所述弹窗显示控件触发的弹窗显示指令,退出所述预设播放页面,在所述预设播放页面所属的第一应用的页面上显示悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象;所述第一应用的页面上包含有应用隐藏控件;In response to detecting a pop-up window display instruction triggered by the pop-up window display control, exit the preset play page, display a floating pop-up window on the page of the first application to which the preset play page belongs, and display a floating pop-up window on the floating window. The current playback object is played in the pop-up window; the page of the first application includes an application hidden control;
    响应于检测到基于所述应用隐藏控件的隐藏指令,隐藏所述第一应用的页面,在所述电子设备的界面上显示所述悬浮弹窗,在所述悬浮弹窗内播放所述当前播放对象。In response to detecting a hiding instruction based on the application hiding control, hide the page of the first application, display the floating pop-up window on the interface of the electronic device, and play the current playback in the floating pop-up window object.
PCT/CN2021/119455 2021-03-16 2021-09-18 Object playing method and apparatus WO2022193595A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110282531.4 2021-03-16
CN202110282531.4A CN113126839B (en) 2021-03-16 2021-03-16 Object playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022193595A1 true WO2022193595A1 (en) 2022-09-22

Family

ID=76773250

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119455 WO2022193595A1 (en) 2021-03-16 2021-09-18 Object playing method and apparatus

Country Status (2)

Country Link
CN (1) CN113126839B (en)
WO (1) WO2022193595A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116074596A (en) * 2023-03-06 2023-05-05 成都光合信号科技有限公司 Information display method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126839B (en) * 2021-03-16 2023-06-23 北京达佳互联信息技术有限公司 Object playing method and device, electronic equipment and storage medium
CN113923502B (en) * 2021-11-04 2023-03-21 上海哔哩哔哩科技有限公司 Live video playing method and device
CN114153353A (en) * 2021-11-19 2022-03-08 成都金麦客科技有限公司 Display control method of suspension menu, terminal and computer readable storage medium
CN114640864A (en) * 2022-03-08 2022-06-17 广州方硅信息技术有限公司 Method, device, computer equipment and medium for playing small video in live broadcast room
CN114896011B (en) * 2022-05-09 2023-12-26 北京达佳互联信息技术有限公司 Method and device for playing dynamic content in page, electronic equipment and storage medium
CN115269105A (en) * 2022-08-19 2022-11-01 北京字跳网络技术有限公司 Content display method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318429A1 (en) * 2012-05-22 2013-11-28 Movile Dynamic floating web video player
CN106131686A (en) * 2016-06-27 2016-11-16 北京奇虎科技有限公司 Utilize video play mode changing method and the device of parasitic tool kit realization
CN106993214A (en) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 Live network broadcast method and device
CN109246466A (en) * 2018-10-30 2019-01-18 北京达佳互联信息技术有限公司 Video broadcasting method, device and electronic equipment
CN110636324A (en) * 2019-10-24 2019-12-31 腾讯科技(深圳)有限公司 Interface display method and device, computer equipment and storage medium
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN113126839A (en) * 2021-03-16 2021-07-16 北京达佳互联信息技术有限公司 Object playing method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8605886B2 (en) * 2006-12-18 2013-12-10 Verizon Patent And Licensing Inc. Method and system for multimedia contact routing
CN105577645A (en) * 2015-12-11 2016-05-11 中国科学院声学研究所 Agent-based HLS client-end device and realization method thereof
CN106803978A (en) * 2017-03-16 2017-06-06 上海青橙实业有限公司 Mobile terminal and the method that video is played based on suspension windows
CN108021321B (en) * 2017-12-28 2019-11-15 维沃移动通信有限公司 A kind of application operating status control method and mobile terminal
CN110336923B (en) * 2019-07-16 2021-06-18 网易(杭州)网络有限公司 Method and device for switching play modes, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318429A1 (en) * 2012-05-22 2013-11-28 Movile Dynamic floating web video player
CN106131686A (en) * 2016-06-27 2016-11-16 北京奇虎科技有限公司 Utilize video play mode changing method and the device of parasitic tool kit realization
CN106993214A (en) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 Live network broadcast method and device
CN109246466A (en) * 2018-10-30 2019-01-18 北京达佳互联信息技术有限公司 Video broadcasting method, device and electronic equipment
CN110636324A (en) * 2019-10-24 2019-12-31 腾讯科技(深圳)有限公司 Interface display method and device, computer equipment and storage medium
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN113126839A (en) * 2021-03-16 2021-07-16 北京达佳互联信息技术有限公司 Object playing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116074596A (en) * 2023-03-06 2023-05-05 成都光合信号科技有限公司 Information display method and device
CN116074596B (en) * 2023-03-06 2024-02-20 成都光合信号科技有限公司 Information display method and device

Also Published As

Publication number Publication date
CN113126839B (en) 2023-06-23
CN113126839A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
WO2022193595A1 (en) Object playing method and apparatus
US20200021545A1 (en) Method, device and storage medium for interactive message in video page
US9549007B2 (en) User interface widget unit sharing for application user interface distribution
US8769011B2 (en) Survivable browsing in virtualized desktop environment when host connectivity is lost
US11182051B2 (en) Instant communication message prompting method and instant communication client
US9049478B2 (en) System and method for implementing a dynamic media link
EP4068795A1 (en) Method and apparatus for displaying multimedia resources, device and storage medium
US11128894B2 (en) Method and mobile terminal for processing data
US20150012831A1 (en) Systems and methods for sharing graphical user interfaces between multiple computers
WO2022213661A1 (en) Video playback method and apparatus
WO2016150386A1 (en) Interface processing method, apparatus, and system
US10581993B2 (en) Method for forwarding traffic in application on mobile intelligent terminal
US10389832B2 (en) Remote casting of media content
US20130080560A1 (en) System and Method for Sharing Digital Data on a Presenter Device to a Plurality of Participant Devices
US20150106730A1 (en) Framework for screen content sharing system with generalized screen descriptions
WO2023138189A1 (en) Data processing method and apparatus, and device and medium
US11374992B2 (en) Seamless social multimedia
WO2016150388A1 (en) Interface processing method, apparatus, and system
US20160149968A1 (en) Queued Sharing of Content in Online Conferencing
CN113467674B (en) Virtual space operation method and device, electronic equipment and storage medium
CN113467676A (en) Virtual space operation method and device, electronic equipment and storage medium
WO2021078208A1 (en) Information acquisition method, cloudified set top box system, entity set top box, and storage medium
US20230388440A1 (en) Video call method and apparatus, and electronic device and storage medium
WO2016066056A1 (en) Image remote projection method, server and client
US20220311812A1 (en) Method and system for integrating video content in a video conference session

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21931170

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.01.2024)