HK40100489A - Display method for content item, device, equipment and storage medium - Google Patents
Display method for content item, device, equipment and storage medium Download PDFInfo
- Publication number
- HK40100489A HK40100489A HK42024087933.8A HK42024087933A HK40100489A HK 40100489 A HK40100489 A HK 40100489A HK 42024087933 A HK42024087933 A HK 42024087933A HK 40100489 A HK40100489 A HK 40100489A
- Authority
- HK
- Hong Kong
- Prior art keywords
- target
- content item
- terminal
- content
- display interface
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及计算机技术领域,特别涉及一种内容项的展示方法、装置、设备以及存储介质。This application relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for displaying content items.
背景技术Background Technology
随着计算机技术的发展,越来越多的用户会使用社交类应用进行沟通和交流。随着社交类应用的不断发展,社交类应用上展示的内容项的类型越来越丰富。比如,社交类应用上提供的广告的样式在不断变化,越来越多的用户倾向看到互动性更强、更有趣的广告。With the development of computer technology, more and more users are using social networking applications for communication and interaction. As social networking applications continue to evolve, the types of content displayed on them are becoming increasingly diverse. For example, the styles of advertisements offered on social networking applications are constantly changing, and more and more users prefer to see more interactive and engaging ads.
相关技术中,广告主在社交类应用上投放广告时,往往会使用社交类应用提供的模板进行广告创作,随后通过社交类应用将广告推送给用户。In related technologies, when advertisers place ads on social applications, they often use templates provided by the social applications to create ads, and then push the ads to users through the social applications.
但是,这种方法创造出的广告较为死板,用户往往会直接忽略社交类应用中的广告,导致广告投放的效果较差,人机交互的效率较低。However, this method creates rather rigid ads, and users often ignore ads in social applications, resulting in poor ad performance and low efficiency in human-computer interaction.
发明内容Summary of the Invention
本申请实施例提供了一种内容项的展示方法、装置、设备以及存储介质,可以提升内容项的展示效果,技术方案如下:This application provides a method, apparatus, device, and storage medium for displaying content items, which can improve the display effect of content items. The technical solution is as follows:
一方面,提供了一种内容项的展示方法,所述方法包括:On the one hand, a method for displaying content items is provided, the method including:
在目标应用的内容展示界面上,展示目标内容项,所述目标内容项包括多个素材,所述内容展示界面用于展示在所述目标应用中发布的内容项;On the content display interface of the target application, target content items are displayed, and the target content items include multiple materials. The content display interface is used to display the content items published in the target application.
响应于运行所述目标应用的终端的姿态发生变化,基于所述终端变化后的姿态,重新组合所述多个素材;In response to a change in the posture of the terminal running the target application, the multiple materials are recombined based on the changed posture of the terminal;
在所述内容展示界面上展示重新组合后的所述多个素材,以更新所述目标内容项的展示形式。The recombined materials are displayed on the content display interface to update the display format of the target content item.
一方面,提供了一种内容项的展示装置,所述装置包括:On the one hand, a device for displaying content items is provided, the device comprising:
内容项展示模块,用于在目标应用的内容展示界面上,展示目标内容项,所述目标内容项包括多个素材,所述内容展示界面用于展示在所述目标应用中发布的内容项;The content item display module is used to display target content items on the content display interface of the target application. The target content items include multiple materials, and the content display interface is used to display the content items published in the target application.
位置确定模块,用于响应于运行所述目标应用的终端的姿态发生变化,基于所述终端变化后的姿态,重新组合所述多个素材;A location determination module is used to recombine the multiple materials based on the changed posture of the terminal running the target application in response to a change in the posture of the terminal.
素材展示模块,用于在所述内容展示界面上展示重新组合后的所述多个素材,以更新所述目标内容项的展示形式。The material display module is used to display the recombined materials on the content display interface to update the display format of the target content item.
在一种可能的实施方式中,所述位置确定模块,用于响应于所述终端的姿态发生变化,基于所述终端变化后的姿态,确定所述终端姿态变化前后的姿态差;基于各个所述素材的深度以及所述姿态差,确定各个所述素材的位移,所述深度用于表示素材与所述终端的使用对象之间的距离;基于各个所述素材的位移,确定所述目标内容项中各个所述素材的在重新组合后的目标位置。In one possible implementation, the position determination module is configured to, in response to a change in the posture of the terminal, determine the posture difference before and after the change in the terminal's posture; determine the displacement of each of the materials based on the depth of each material and the posture difference, wherein the depth represents the distance between the material and the user object of the terminal; and determine the target position of each material in the target content item after recombination based on the displacement of each material.
在一种可能的实施方式中,所述位置确定模块,用于将所述姿态差与各个所述素材的深度相乘,得到各个所述素材的位移;将各个所述素材的初始屏幕坐标与对应的位移相加,得到各个所述素材在重新组合后的目标屏幕坐标。In one possible implementation, the position determination module is used to multiply the pose difference by the depth of each of the materials to obtain the displacement of each of the materials; and to add the initial screen coordinates of each of the materials to the corresponding displacement to obtain the target screen coordinates of each of the materials after recombination.
在一种可能的实施方式中,所述位置确定模块,用于响应于所述终端的姿态发生变化,确定变化后的姿态对应的素材叠加顺序;基于所述素材叠加顺序,确定所述目标内容项中各个所述素材在重新组合后的目标位置。In one possible implementation, the position determination module is configured to, in response to a change in the posture of the terminal, determine the material stacking order corresponding to the changed posture; and, based on the material stacking order, determine the target position of each material in the target content item after recombination.
在一种可能的实施方式中,所述位置确定模块,用于响应于所述终端的姿态发生变化,确定各个所述素材的旋转中心;基于所述终端姿态变化前后的姿态差以及各个所述素材的类型,确定各个所述素材的旋转角度;基于各个所述素材的旋转中心和旋转角度,确定所述目标内容项中各个所述素材在重新组合后的目标位置。In one possible implementation, the position determination module is configured to determine the rotation center of each of the materials in response to a change in the posture of the terminal; determine the rotation angle of each of the materials based on the posture difference before and after the change in the terminal posture and the type of each of the materials; and determine the target position of each of the materials in the target content item after recombination based on the rotation center and rotation angle of each of the materials.
在一种可能的实施方式中,所述内容项展示模块,用于在所述目标应用的内容展示界面上,按照深度从小至大的顺序渲染所述多个素材,以将所述多个素材展示在所述内容展示界面上,所述深度用于表示素材与所述终端的使用对象之间的距离。In one possible implementation, the content item display module is used to render the multiple materials in ascending order of depth on the content display interface of the target application, so as to display the multiple materials on the content display interface, wherein the depth is used to represent the distance between the material and the user object of the terminal.
在一种可能的实施方式中,所述装置还包括:In one possible implementation, the device further includes:
尺寸确定模块,用于在所述目标内容项的展示框出现在所述目标应用的内容展示界面的情况下,确定所述展示框在所述内容展示界面中的尺寸;The size determination module is used to determine the size of the display box in the content display interface when the display box of the target content item appears in the content display interface of the target application;
所述内容项展示模块,用于在所述展示框在所述内容展示界面中的尺寸符合尺寸条件的情况下,在所述内容展示界面中播放所述多个素材中的视频。The content item display module is used to play videos from the multiple materials in the content display interface when the size of the display frame in the content display interface meets the size requirements.
在一种可能的实施方式中,所述装置还包括:In one possible implementation, the device further includes:
素材确定模块,用于响应于所述终端的姿态发生变化,获取变化后的姿态对应的候选素材;The material determination module is used to obtain candidate materials corresponding to the changed posture in response to a change in the posture of the terminal.
素材替换模块,用于采用所述候选素材替换所述多个素材中的目标素材,所述目标素材与所述候选素材为相同类型的素材。The material replacement module is used to replace the target material among the plurality of materials with the candidate material, wherein the target material and the candidate material are of the same type.
在一种可能的实施方式中,所述目标内容项包括多个图层,所述内容项展示模块,用于在所述目标应用的内容展示界面上,展示所述多个图层中第一个图层上的素材;In one possible implementation, the target content item includes multiple layers, and the content item display module is used to display the material on the first layer of the multiple layers on the content display interface of the target application;
所述素材展示模块,还用于响应于运行所述目标应用的终端的姿态发生变化,同时展示所述多个图层上的素材。The material display module is also used to display materials on the multiple layers simultaneously in response to a change in the posture of the terminal running the target application.
在一种可能的实施方式中,所述装置还包括下述任一项:In one possible implementation, the device further includes any of the following:
内容项界面展示模块,用于响应于对所述多个图层中任一图层的点击操作或拖拽操作,展示所述图层对应的内容项界面;The content item interface display module is used to display the content item interface corresponding to any of the multiple layers in response to a click or drag operation on any layer.
放大模块,用于响应于对所述多个图层中任一图层的点击操作,放大显示所述图层;A zoom-in module is used to zoom in on any of the multiple layers in response to a click operation on that layer.
取消显示模块,用于响应于对所述多个图层中任一图层的点击操作,取消显示所述多个图层中的其他图层。The cancel display module is used to cancel the display of other layers in response to a click operation on any of the multiple layers.
在一种可能的实施方式中,所述素材展示模块,还用于响应于运行所述目标应用的终端的姿态发生变化,展示所述多个图层中目标图层上的素材,所述目标图层为与所述终端变化后的姿态对应的图层。In one possible implementation, the material display module is further configured to display material on a target layer among the multiple layers in response to a change in the posture of the terminal running the target application, wherein the target layer is the layer corresponding to the changed posture of the terminal.
在一种可能的实施方式中,所述素材展示模块,还用于响应于对所述多个素材中任一素材的拖动操作,将所述素材展示在所述拖动操作结束的位置。In one possible implementation, the material display module is further configured to display the material at the position where the drag operation ends in response to a drag operation on any one of the plurality of materials.
在一种可能的实施方式中,所述装置还包括:In one possible implementation, the device further includes:
分享模块,用于响应于所述目标内容项被滑动至所述内容展示界面上展示的任一内容项,将所述目标内容项分享给所述内容项的发布对象。The sharing module is used to share the target content item with the publishing object of the content item in response to the target content item being slid to any content item displayed on the content display interface.
在一种可能的实施方式中,所述装置还包括下述任一项:In one possible implementation, the device further includes any of the following:
内容项界面展示模块,用于响应于对所述目标内容项上任一位置的点击操作,展示所述目标内容项对应的内容项界面,所述内容项界面用于介绍所述目标内容项;The content item interface display module is used to respond to a click operation on any position of the target content item and display the content item interface corresponding to the target content item. The content item interface is used to introduce the target content item.
放大模块,用于响应于对所述目标内容项上任一位置的点击操作,在所述内容展示界面中放大所述目标内容项。A zoom module is used to zoom in on the target content item in the content display interface in response to a click operation on any position of the target content item.
在一种可能的实施方式中,所述装置还包括:In one possible implementation, the device further includes:
关闭模块,用于响应于对所述目标内容项的长按操作,展示内容项关闭控件;响应于对所述内容项关闭控件的点击操作,在所述内容展示界面中取消展示所述目标内容项。The closing module is used to display a content item closing control in response to a long press operation on the target content item; and to de-display the target content item in the content display interface in response to a click operation on the content item closing control.
在一种可能的实施方式中,所述装置还包括:In one possible implementation, the device further includes:
内容项添加模块,用于将所述终端登录的对象对应的所述目标内容项添加至所述内容展示界面对应的内容展示列表;The content item adding module is used to add the target content item corresponding to the object logged in by the terminal to the content display list corresponding to the content display interface;
所述内容项展示模块,用于响应于所述内容展示界面被滑动至所述目标内容项对应的位置,展示所述目标内容项。The content item display module is used to display the target content item in response to the content display interface being slid to the position corresponding to the target content item.
一方面,提供了一种计算机设备,所述计算机设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条计算机程序,所述计算机程序由所述一个或多个处理器加载并执行以实现所述内容项的展示方法。On one hand, a computer device is provided, the computer device including one or more processors and one or more memories, the one or more memories storing at least one computer program, the computer program being loaded and executed by the one or more processors to implement the method of displaying the content item.
一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条计算机程序,所述计算机程序由处理器加载并执行以实现所述内容项的展示方法。On one hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the method for displaying the content item.
一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括程序代码,该程序代码存储在计算机可读存储介质中,计算机设备的处理器从计算机可读存储介质读取该程序代码,处理器执行该程序代码,使得该计算机设备执行上述内容项的展示方法。On one hand, a computer program product or computer program is provided, which includes program code stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the display method of the above-mentioned content item.
通过本申请实施例提供的技术方案,在内容展示界面上展示目标内容项,该目标内容项包括多个素材。在终端的姿态发生变化的情况下,重新组合目标内容项中的多个素材。在内容展示界面上展示重新组合后的该多个素材也就是调整了改变了目标内容项的展示形式。也就是说,目标内容项中多个素材的展示形式与终端的姿态相关联,从而丰富了目标内容项的展示形式,为目标内容项赋予了互动性,吸引用户与目标内容项进行互动。在目标内容项为广告的情况下,也就提高了广告的投放效果和人机交互的效率。The technical solution provided in this application displays a target content item on a content display interface, the target content item comprising multiple materials. When the terminal's posture changes, the multiple materials within the target content item are recombined. Displaying these recombined materials on the content display interface thus adjusts and changes the display format of the target content item. In other words, the display format of the multiple materials within the target content item is related to the terminal's posture, thereby enriching the display format of the target content item, giving it interactivity, and attracting users to interact with it. When the target content item is an advertisement, this also improves the effectiveness of advertising and the efficiency of human-computer interaction.
附图说明Attached Figure Description
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
图1是本申请实施例提供的一种内容项的展示方法的实施环境的示意图;Figure 1 is a schematic diagram of the implementation environment of a content item display method provided in an embodiment of this application;
图2是本申请实施例提供的一种内容项的展示方法的流程图;Figure 2 is a flowchart of a method for displaying content items provided in an embodiment of this application;
图3是本申请实施例提供的另一种内容项的展示方法的流程图;Figure 3 is a flowchart of another method for displaying content items provided in an embodiment of this application;
图4是本申请实施例提供的一种内容展示界面的示意图;Figure 4 is a schematic diagram of a content display interface provided in an embodiment of this application;
图5是本申请实施例提供的又一种内容项的展示方法的流程图;Figure 5 is a flowchart of another method for displaying content items provided in an embodiment of this application;
图6是本申请实施例提供的另一种内容展示界面的示意图;Figure 6 is a schematic diagram of another content display interface provided in an embodiment of this application;
图7是本申请实施例提供的又一种内容展示界面的示意图;Figure 7 is a schematic diagram of another content display interface provided in an embodiment of this application;
图8是本申请实施例提供的再一种内容展示界面的示意图;Figure 8 is a schematic diagram of another content display interface provided in an embodiment of this application;
图9是本申请实施例提供的一种内容项的展示装置的结构示意图;Figure 9 is a schematic diagram of the structure of a content item display device provided in an embodiment of this application;
图10是本申请实施例提供的一种终端的结构示意图。Figure 10 is a schematic diagram of the structure of a terminal provided in an embodiment of this application.
具体实施方式Detailed Implementation
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式做进一步的详细描述。To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.
人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。换句话说,人工智能是计算机科学的一个综合技术,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器。人工智能也就是研究各种智能机器的设计原理与实现方法,使机器具有感知、推理与决策的功能。Artificial Intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.
下拉刷新:用于智能手机、平板电脑等终端,是指向下拉重新加载、刷新。Pull-to-refresh: Used on smartphones, tablets, and other devices, this refers to pulling down to reload and refresh the page.
页面停留:是指用户在页面上停留,不进行上滑和下滑操作。Page dwell: This refers to a user remaining on the page without swiping up or down.
Feed流:是指持续更新并呈现给用户内容的信息流。其中Timeline(时间线)是最典型的Feed流展示方式,按照Feed流内容更新的时间先后顺序将内容展示给用户。Feed: A continuously updated stream of information presented to the user. Timeline is the most typical feed display method, showing content to the user in the chronological order of its updates.
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
图1是本申请实施例提供的一种内容项的展示方法的实施环境示意图,参见图1,该实施环境包括终端110和服务器140。Figure 1 is a schematic diagram of the implementation environment of a content item display method provided in an embodiment of this application. Referring to Figure 1, the implementation environment includes a terminal 110 and a server 140.
终端110通过无线网络或有线网络与服务器140相连。可选地,终端110是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表等,但并不局限于此。终端110安装和运行有支持内容项展示的应用程序。Terminal 110 is connected to server 140 via a wireless or wired network. Optionally, terminal 110 may be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. Terminal 110 has an application installed and running that supports the display of content items.
服务器140是独立的物理服务器,或者是多个物理服务器构成的服务器集群或者分布式系统,或者是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。服务器140为终端110上运行的应用程序提供后台服务。Server 140 is a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. Server 140 provides background services for applications running on terminal 110.
可选地,终端110泛指多个终端中的一个,本申请实施例仅以终端110来举例说明。Optionally, terminal 110 refers to one of a plurality of terminals. This application embodiment only uses terminal 110 as an example for illustration.
本领域技术人员可以知晓,上述终端的数量可以更多或更少。比如上述终端仅为一个,或者上述终端为几十个或几百个,或者更多数量,此时上述实施环境中还包括其他终端。本申请实施例对终端的数量和设备类型不加以限定。Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more, in which case other terminals may also be included in the above implementation environment. This application does not limit the number of terminals or the type of device in its embodiments.
在本申请实施例中,可以由服务器或终端作为执行主体来实施本申请实施例提供的技术方案,也可以通过终端和服务器之间的交互来实施本申请提供的技术方法,本申请实施例对此不作限定。In the embodiments of this application, the technical solutions provided in the embodiments of this application can be implemented by a server or a terminal as the execution subject, or the technical methods provided in this application can be implemented through the interaction between the terminal and the server. The embodiments of this application do not limit this.
介绍完本申请实施例的实施环境进行介绍之后,下面对本申请实施例的应用场景进行介绍。在下述说明过程中,终端也即是上述实施环境中的终端110,服务器也即是上述实施环境中的服务器140。After introducing the implementation environment of the embodiments of this application, the application scenarios of the embodiments of this application will be introduced below. In the following description, the terminal is the terminal 110 in the above implementation environment, and the server is the server 140 in the above implementation environment.
本申请实施例提供的内容项的展示方法能够应用在各类Feed流中,比如,可以应用在社交类应用的信息分享Feed流中,或者应用在短视频类应用的短视频Feed流中,或者应用在资讯类应用的资讯Feed流中,本申请实施例对此不做限定。The content item display method provided in this application embodiment can be applied to various feed streams. For example, it can be applied to the information sharing feed stream of social applications, or to the short video feed stream of short video applications, or to the news feed stream of news applications. This application embodiment does not limit this.
在本申请实施例提供的技术方案应用在社交类应用的信息分享Feed流为例,该社交类应用的信息分享Feed流为社交类应用的用户发布的内容项构成的Feed流。终端从服务器获取该社交类应用的信息分享Feed流中的内容项,该信息分享Feed流包括目标内容项。终端将获取到的内容项展示在内容展示界面上。在该内容展示界面被滑动至该目标内容项对应的位置情况下,终端在该内容展示界面上展示该目标内容项,该目标内容项包括多个素材,该多个素材包括文字、图片以及视频等。在该目标内容项为广告的情况下,也即是在该内容展示界面中展示广告。在终端姿态发生变化的情况下,终端确定目标内容项中多个素材的目标位置,该目标位置与该多个素材在该目标内容项中的初始位置不同。终端在目标位置上展示该目标内容项对应的素材,也即是调整了目标内容项中多个素材之间的相对位置关系。在该目标内容项为广告的情况下,该多个素材为广告中的图片以及视频等素材。通过本申请实施例提供的技术方案,改变终端的姿态就能够控制终端改变目标内容项中素材的位置,丰富了内容项的展示形式。Taking the technical solution provided in this application embodiment as an example of an information sharing feed stream in a social application, the information sharing feed stream of this social application consists of content items published by users of the social application. The terminal obtains content items from the information sharing feed stream of this social application from the server. This information sharing feed stream includes target content items. The terminal displays the obtained content items on a content display interface. When the content display interface is swiped to the position corresponding to the target content item, the terminal displays the target content item on the content display interface. The target content item includes multiple materials, including text, images, and videos. If the target content item is an advertisement, then an advertisement is displayed on the content display interface. When the terminal's posture changes, the terminal determines the target position of the multiple materials in the target content item. This target position is different from the initial position of the multiple materials in the target content item. The terminal displays the materials corresponding to the target content item at the target position, that is, it adjusts the relative positional relationship between the multiple materials in the target content item. If the target content item is an advertisement, then the multiple materials are images and videos in the advertisement. The technical solution provided in this application embodiment allows the terminal to change the position of materials in the target content item by changing the terminal's posture, thus enriching the display format of the content item.
需要说明的是,本申请实施例提供的技术方案应用在其他类型的Feed流的方式与上述描述属于同一发明构思,过程不再赘述。It should be noted that the technical solutions provided in this application are applied to other types of feed streams and belong to the same inventive concept as described above, and the process will not be repeated here.
当然,本申请实施例提供的技术方案除了应用在上述三种类型的Feed流中之外,也能够应用在其他类型的Feed流中,本申请实施例对此不做限定。Of course, the technical solutions provided in this application can be applied to other types of feed streams in addition to the three types mentioned above, and this application does not limit them.
在介绍完本申请实施例的实施环境和应用场景之后,下面对本申请实施例提供的内容项的展示方法进行说明,参见图2,以执行主体为终端为例,方法包括下述步骤。After introducing the implementation environment and application scenarios of the embodiments of this application, the following describes the display method of the content items provided by the embodiments of this application. Referring to Figure 2, taking the terminal as the execution subject as an example, the method includes the following steps.
201、在目标应用的内容展示界面上,展示目标内容项,该目标内容项包括多个素材,该内容展示界面用于展示在该目标应用中发布的内容项。201. On the content display interface of the target application, display the target content item, which includes multiple materials. The content display interface is used to display the content item published in the target application.
其中,目标应用为社交类应用、短视频类应用或者资讯类应用等,内容展示界面用于展示在目标应用中发布的内容项,比如对象在社交类应用中发布的内容项等。在一些实施例中,该内容展示界面为一个滑动容器,该滑动容器包括多个该内容项。在该内容展示界面上执行滑动操作能够查看不同的内容项。目标内容项为特定类型的内容项,比如,该目标内容项为广告,相应地,该目标内容项也被称为目标广告。该多个素材包括文本、图片以及视频等,多个素材进行组合构成该目标内容项。The target application can be a social media app, a short video app, or a news app, etc. The content display interface is used to display content items published in the target application, such as content items published by an object in a social media app. In some embodiments, the content display interface is a sliding container that includes multiple content items. Sliding on the content display interface allows users to view different content items. The target content item is a specific type of content item; for example, if the target content item is an advertisement, it is also called a target advertisement. The multiple materials include text, images, and videos, and these materials are combined to constitute the target content item.
202、响应于运行该目标应用的终端的姿态发生变化,终端基于该终端变化后的姿态,重新组合该多个素材。202. In response to a change in the posture of the terminal running the target application, the terminal recombines the multiple materials based on the changed posture of the terminal.
其中,终端的姿态用于表示终端相对于地面的角度。在一些实施例中,终端的姿态通过终端中的陀螺仪确定。目标内容项中多个素材的组合方式由技术人员根据实际情况进行设置。重新组合该多个素材是指改变该多个素材的组合方式。The terminal's attitude is used to represent its angle relative to the ground. In some embodiments, the terminal's attitude is determined by a gyroscope within the terminal. The combination of multiple materials in the target content item is set by technicians according to the actual situation. Recombining these multiple materials refers to changing the way they are combined.
203、终端在该内容展示界面上展示重新组合后的该多个素材,以更新该目标内容项的展示形式。203. The terminal displays the recombined multiple materials on the content display interface to update the display format of the target content item.
其中,重新组合后该多个素材的组合方式也就发生了变化,相应地,目标内容项的展示形式也就发生了变化,也即是,目标内容项的展示形式用于表示该多个素材的组合方式。In this process, the way these multiple materials are combined changes, and correspondingly, the display format of the target content item also changes. That is, the display format of the target content item is used to represent the way these multiple materials are combined.
通过本申请实施例提供的技术方案,在内容展示界面上展示目标内容项,该目标内容项包括多个素材。在终端的姿态发生变化的情况下,重新组合目标内容项中的多个素材。在内容展示界面上展示重新组合后的该多个素材也就是调整了改变了目标内容项的展示形式。也就是说,目标内容项中多个素材的展示形式与终端的姿态相关联,从而丰富了目标内容项的展示形式,为目标内容项赋予了互动性,吸引用户与目标内容项进行互动。在目标内容项为广告的情况下,也就提高了广告的投放效果和人机交互的效率。The technical solution provided in this application displays a target content item on a content display interface, the target content item comprising multiple materials. When the terminal's posture changes, the multiple materials within the target content item are recombined. Displaying these recombined materials on the content display interface thus adjusts and changes the display format of the target content item. In other words, the display format of the multiple materials within the target content item is related to the terminal's posture, thereby enriching the display format of the target content item, giving it interactivity, and attracting users to interact with it. When the target content item is an advertisement, this also improves the effectiveness of advertising and the efficiency of human-computer interaction.
上述步骤201-203是对本申请实施例提供的内容项的展示方法的简单介绍,下面将结合一些例子,对本申请实施例提供的技术方案进行更加详细的说明,参见图3,以执行主体为终端为例,方法包括下述步骤。The above steps 201-203 are a brief introduction to the method of displaying content items provided in the embodiments of this application. The technical solutions provided in the embodiments of this application will be described in more detail below with some examples. Referring to Figure 3, taking the terminal as the execution subject as an example, the method includes the following steps.
301、终端获取终端登录的对象对应的目标内容项,该目标内容项包括多个素材。301. The terminal obtains the target content item corresponding to the object logged in on the terminal. The target content item includes multiple materials.
其中,该终端登录的对象是指该终端上运行的应用程序上登录的账号,该终端上运行的应用程序为提供内容展示界面的应用。目标内容项为用于宣传和推广的内容项,比如,该目标内容项为被投放的广告,相应地,该目标内容项也被称为目标广告。目标内容项的多个素材包括文本、图片以及视频等,在该目标内容项为广告的情况下,该多个素材也被称为多个广告素材。在一些实施例中,该目标内容项包括多个图层,该多个素材分布在该多个图层上,每个图像包括至少一个素材。In this context, "login target" refers to the account logged into the application running on the terminal, which is the application providing the content display interface. "Target content item" refers to content used for promotion and advertising; for example, it could be an advertisement, and is therefore also called a target advertisement. The multiple materials of the target content item include text, images, and videos, etc. In the case of an advertisement, these multiple materials are also referred to as multiple advertising materials. In some embodiments, the target content item includes multiple layers, and the multiple materials are distributed across these layers, with each image including at least one material.
在一种可能的实施方式中,终端向服务器发送内容项获取请求,该内容项获取请求携带该终端登录的对象的标识。服务器获取该内容项获取请求,从该内容项获取请求中获取该终端登录的对象的标识。服务器基于该终端登录的对象的标识进行查询,得到该对象的对象特征。服务器基于该对象的对象特征进行召回,得到该对象对应的目标内容项。服务器向终端发送该目标内容项,终端获取该目标内容项。In one possible implementation, the terminal sends a content item retrieval request to the server, the request carrying the identifier of the object the terminal is logged into. The server receives the content item retrieval request and retrieves the identifier of the object the terminal is logged into from the request. The server performs a query based on the identifier of the object the terminal is logged into to obtain the object characteristics. The server performs a recall based on the object characteristics to obtain the target content item corresponding to the object. The server sends the target content item to the terminal, and the terminal retrieves the target content item.
其中,该内容项获取请求的触发包括在内容展示界面上执行下拉操作以及对内容查看控件的点击操作,该内容查看控件用于触发该内容展示界面。对象特征用于对该对象进行抽象表示,该对象特征的生成和使用需要经过用户的同意,在用户不同意生成或使用该对象特征的情况下,服务器从内容项数据库中随机获取内容项,获取到的内容项也即是该目标内容项,该内容项数据库包括多个内容项,该内容项数据库中的内容项均为相同类型的内容项,也即是用于宣传和推广的内容项。The content item retrieval request is triggered by performing a drop-down operation on the content display interface and clicking on the content viewing control, which is used to trigger the content display interface. Object characteristics are used to abstractly represent the object. The generation and use of these object characteristics require user consent. If the user does not consent to the generation or use of these object characteristics, the server randomly retrieves a content item from the content item database. This retrieved content item is the target content item. The content item database includes multiple content items, all of which are of the same type—that is, content items used for promotion and advertising.
在这种实施方式下,终端能够从服务器获取该终端登录的对象对应的目标内容项,在确定该目标内容项的过程中,服务器利用了对象特征,从而保证确定出的目标内容项与该对象更为贴近,确定目标内容项的准确性较高。In this implementation, the terminal can obtain the target content item corresponding to the object logged in by the terminal from the server. In the process of determining the target content item, the server uses the object characteristics to ensure that the determined target content item is closer to the object, and the accuracy of determining the target content item is high.
在一种可能的实施方式中,终端从多个候选内容项中获取该目标内容项,该多个候选内容项均为用于宣传和推广的内容项,该多个候选内容项存储在该终端上,该多个候选内容项均为该终端登录的对象对应的内容项。In one possible implementation, the terminal obtains the target content item from a plurality of candidate content items, all of which are content items for publicity and promotion, and the plurality of candidate content items are stored on the terminal, and each of the plurality of candidate content items is a content item corresponding to an object logged in by the terminal.
在一些实施例中,该多个候选内容项为服务器提前下发至该终端的,该多个候选内容项的下发时机既可以是对象登录时,也可以是服务器定时下发,本申请实施例对此不做限定。In some embodiments, the plurality of candidate content items are pre-sent to the terminal by the server. The timing of the issuance of the plurality of candidate content items can be either when the object logs in or when the server issues them at a scheduled time. This application embodiment does not limit this.
在这种实施方式下,终端能够从多个候选内容项中快速确定目标内容项,确定目标内容项的效率较高。In this implementation, the terminal can quickly determine the target content item from multiple candidate content items, and the efficiency of determining the target content item is relatively high.
为了对上述实施方式进行更加清楚地说明,下面对该目标内容项的生成方法进行说明。To provide a clearer explanation of the above implementation methods, the method for generating the target content item will be described below.
在一种可能的实施方式中,服务器获取初始内容项,该初始内容项包括颜色通道内容项和透明度通道内容项。服务器基于目标规则,将该颜色通道内容项和该透明度通道内容项进行合成,得到该目标内容项,其中,该目标规则为与该终端上运行的应用程序对应,基于该目标规则合成的内容项能够通过该应用程序进行展示,该目标规则由技术人员根据实际情况进行设置,本申请实施例对此不做限定。In one possible implementation, the server obtains an initial content item, which includes a color channel content item and a transparency channel content item. Based on a target rule, the server synthesizes the color channel content item and the transparency channel content item to obtain the target content item. This target rule corresponds to an application running on the terminal, and the content item synthesized based on this target rule can be displayed through the application. This target rule is set by a technician according to actual conditions, and this application embodiment does not limit its implementation.
其中,该颜色通道内容项为RGB颜色通道图像或者RGB颜色通道视频,该透明度通道内容项为透明度通道图像或者透明度通道视频。在该目标内容项为广告的情况下,该初始内容项也即是广告主上传的广告,目标内容项为服务器合成的目标广告。相应地,该目标内容项中多个素材的选择和组合也是由广告主设计的。The color channel content item is either an RGB color channel image or an RGB color channel video, and the transparency channel content item is either a transparency channel image or a transparency channel video. In the case where the target content item is an advertisement, the initial content item is the advertisement uploaded by the advertiser, and the target content item is the target advertisement synthesized by the server. Correspondingly, the selection and combination of multiple materials within the target content item are also designed by the advertiser.
在一些实施例中,服务器提供内容项投放功能,通过该内容项投放功能能够向服务器上传初始内容项,并对该初始内容项进行投放,在该初始内容项为广告的情况下,投放该初始内容项也即是投放广告。投放该初始内容项的目的是使得使用对应应用程序的用户能够看到该初始内容项。在一些实施例中,投放该初始内容项需要消耗一定数量的虚拟资源。In some embodiments, the server provides a content item delivery function, through which initial content items can be uploaded to the server and delivered. If the initial content item is an advertisement, then delivering the initial content item is equivalent to delivering an advertisement. The purpose of delivering the initial content item is to ensure that users of the corresponding application can see it. In some embodiments, delivering the initial content item requires consuming a certain amount of virtual resources.
302、终端将该目标内容项添加至该内容展示界面对应的内容展示列表。302. The terminal adds the target content item to the content display list corresponding to the content display interface.
其中,该内容展示列表用于存储在该内容展示界面中展示的内容项,在该内容展示界面进行页面停留能够查看内容展示界面中的内容项,在该内容展示界面进行下拉刷新能够刷新该内容展示界面中的内容项。该内容展示列表包括多个内容项,该多个内容项用于在该内容展示界面中进行展示,该多个内容项包括目标对象在目标时间段内发布的内容项,比如该目标对象在该目标时间段内发布的文本、图片以及视频等,该目标对象为该终端登录的对象所关注的对象,或者该目标对象为该终端登录的对象的好友对象。该目标时间段由技术人员根据实际情况进行设置,本申请实施例对此不做限定。该目标对象的数量为一个或者多个,本申请实施例对此不做限定。另外,在一些实施例中,该多个内容项还包括该终端登录的对象在该目标时间段内发布的内容项。The content display list stores the content items displayed on the content display interface. Users can view these items by hovering over the page, and the content display list refreshes when the user pulls down to refresh the content. The content display list includes multiple content items displayed on the content display interface. These multiple content items include content posted by a target object within a target time period, such as text, images, and videos posted by the target object during that time period. The target object is an object followed by the user logged into the terminal, or a friend of the user logged into the terminal. The target time period is set by technicians according to actual conditions, and this application embodiment does not limit this. The number of target objects can be one or more, and this application embodiment does not limit this. Additionally, in some embodiments, the multiple content items also include content posted by the user logged into the terminal within the target time period.
在一种可能的实施方式中,终端将目标内容项添加至该内容展示列表的目标位置,该目标位置由技术人员根据实际情况进行设置,本申请实施例对此不做限定。In one possible implementation, the terminal adds the target content item to the target position of the content display list. The target position is set by a technician according to the actual situation, and this application embodiment does not limit this.
303、响应于目标应用的内容展示界面被滑动至该目标内容项对应的位置,终端在该内容展示界面上展示该目标内容项,该内容展示界面用于展示在该目标应用中发布的内容项。303. In response to the target application's content display interface being slid to the position corresponding to the target content item, the terminal displays the target content item on the content display interface, which is used to display content items published in the target application.
其中,该内容展示界面为一个滑动容器,响应于在该内容展示界面上的滑动操作,终端在该内容展示界面展示内容展示列表中不同的内容项。该内容展示界面上该目标内容项对应的位置是指该滑动容器中该目标内容项所在的位置。目标应用为社交类应用、短视频类应用或者资讯类应用等,本申请实施例对此不做限定。The content display interface is a sliding container. In response to a sliding operation on this interface, the terminal displays different content items from a content list. The position of the target content item on the content display interface refers to its location within the sliding container. The target application can be a social media application, a short video application, or a news application, etc., but this embodiment does not limit the scope of the application.
在一种可能的实施方式中,响应于对该目标应用的内容展示界面的滑动操作,终端控制该内容展示界面展示不同的内容项。在该目标内容项出现在该内容展示界面的情况下,也就表示该内容展示界面被滑动至该目标内容项对应的位置,终端展示该目标内容项,其中,展示该目标内容项也即是将该目标内容项中多个素材渲染在该内容展示界面上,该多个素材的组合方式为预设组合方式,该预设组合方式由技术人员根据实际情况进行设置,在该目标内容项为广告的情况下,该预设组合方式由广告主进行设置。In one possible implementation, in response to a swiping operation on the content display interface of the target application, the terminal controls the content display interface to display different content items. When the target content item appears on the content display interface, it means that the content display interface has been swiped to the position corresponding to the target content item, and the terminal displays the target content item. Displaying the target content item means rendering multiple materials from the target content item on the content display interface. The combination of these multiple materials is a preset combination method, which is set by technicians according to actual conditions. If the target content item is an advertisement, the preset combination method is set by the advertiser.
在这种实施方式下,通过滑动操作能够控制该内容展示界面进行滑动,从而在该内容展示界面中展示不同的内容项,在滑动至该目标内容项对应的位置时,在该内容展示界面中展示该目标内容项即可,人机交互的效率较高。In this implementation, the content display interface can be controlled to slide by swiping, thereby displaying different content items on the content display interface. When the swipe reaches the position corresponding to the target content item, the target content item is displayed on the content display interface, which is highly efficient for human-computer interaction.
在一种可能的实施方式中,响应于该内容展示界面被滑动至该目标内容项对应的位置,在终端的内容展示界面上,按照深度从小至大的顺序渲染该多个素材,以将该多个素材展示在该内容展示界面上,该深度用于表示素材与该终端的使用对象之间的距离。In one possible implementation, in response to the content display interface being slid to the position corresponding to the target content item, the multiple materials are rendered on the content display interface of the terminal in ascending order of depth, so as to display the multiple materials on the content display interface. The depth is used to represent the distance between the material and the user of the terminal.
其中,素材的深度(Deep offset)也被称为素材的视觉深度,素材的深度与素材与该终端的使用对象之间的距离负相关,也即是深度越大,则表示素材与该使用对象之间的距离越小;深度越小,则表示素材与该使用对象之间的距离越大,比如,内容项包括素材A和素材B,素材A是覆盖在该素材B上的,那么素材B与该使用对象之间的距离大于素材A与该使用对象之间的距离,该素材B的深度小于该素材A的深度。终端的使用对象也即是使用该终端的用户。The depth of the content (also known as the visual depth) is negatively correlated with the distance between the content and the user on the terminal. A greater depth indicates a smaller distance between the content and the user; conversely, a smaller depth indicates a larger distance. For example, if content includes content A and content B, and content A is overlaid on content B, then the distance between content B and the user is greater than the distance between content A and the user. Therefore, the depth of content B is less than the depth of content A. The user on the terminal is the user of that terminal.
在这种实施方式下,终端能够根据素材的深度来渲染该多个素材,由于深度用于表示素材与该终端的使用对象之间的距离,按照深度来渲染素材能够保证素材按照设计时的方式进行展示。In this implementation, the terminal can render the multiple materials according to their depth. Since depth is used to represent the distance between the material and the user of the terminal, rendering the material according to its depth ensures that the material is displayed as designed.
举例来说,响应于该内容展示界面被滑动至该目标内容项对应的位置,从该内容展示界面对应的内容展示列中获取该目标内容项的多个素材、该多个素材的渲染位置以及该多个素材的深度。终端在该展示界面上,按照深度从小至大的顺序,将该多个素材渲染在对应的渲染位置上,以将该多个素材展示在该内容展示界面上,也即是将该目标内容项展示在该内容展示界面上。For example, in response to the content display interface being scrolled to the position corresponding to the target content item, multiple assets for the target content item, their rendering positions, and their depths are retrieved from the content display column corresponding to the content display interface. The terminal then renders these multiple assets on the display interface in ascending order of depth at their corresponding rendering positions, thus displaying the multiple assets on the content display interface, which is equivalent to displaying the target content item on the content display interface.
在一种可能的实施方式中,该多个素材包括视频,在该目标内容项的展示框出现在该内容展示界面的情况下,终端确定该展示框在该内容展示界面中的尺寸。在该展示框在该内容展示界面中的尺寸符合尺寸条件的情况下,终端在该内容展示界面中播放该目标内容项多个素材中的视频。In one possible implementation, the multiple materials include videos. When a display box for the target content item appears on the content display interface, the terminal determines the size of the display box within the content display interface. If the size of the display box within the content display interface meets the size requirements, the terminal plays the video from the multiple materials of the target content item on the content display interface.
其中,该目标内容项的展示框为该目标内容项的展示范围,该目标内容项中多个素材会展示在该展示框中。该展示框在该内容展示界面中的尺寸符合尺寸条件是指,该展示框在该内容展示界面中的尺寸大于或等于尺寸阈值,该尺寸阈值由技术人员根据实际情况进行设置,比如,在该展示框在该内容展示界面中的尺寸是指该展示框在该内容展示界面中的面积的情况下,展示框在该内容展示界面中的尺寸符合尺寸条件是指,该展示框在该内容展示界面中的面积大于或等于面积阈值,该面积阈值为该展示框面积的30%或者50%等。The display frame for the target content item defines its display area, within which multiple materials within the target content item will be displayed. The display frame meeting size requirements within the content display interface means that its size is greater than or equal to a size threshold. This size threshold is set by technical personnel based on actual conditions. For example, if the size of the display frame refers to its area within the content display interface, then meeting the size requirements means that the area of the display frame within the content display interface is greater than or equal to an area threshold, such as 30% or 50% of the display frame's area.
在这种实施方式下,终端在该目标内容项的展示框出现在该内容展示界面中的尺寸达到一定程度时会播放素材中的视频,避免了目标内容项未出现时就提前播放所导致的资源浪费,也能够保证用户可以看到该素材中的视频,人机交互的效率较高。In this implementation, the terminal will play the video in the material when the display box of the target content item appears in the content display interface to a certain size. This avoids the waste of resources caused by playing the video in advance before the target content item appears, and also ensures that the user can see the video in the material, resulting in high efficiency of human-computer interaction.
在一种可能的实施方式中,该目标内容项包括多个图层,该多个素材位于该多个图层,一个图层包括至少一个素材。终端在该目标内容展示界面上,展示该多个图层中第一个图层上的素材。In one possible implementation, the target content item comprises multiple layers, with multiple materials located on these layers, and each layer including at least one material. The terminal displays the material on the first layer of these multiple layers on the target content display interface.
其中,该多个图层均为不透明的图层,初始状态下,该目标内容项的多个图层叠加放置。该多个图层中第一个图层也即是该多个图层中顶部的图层。在一些实施例中,该目标内容项的多个图层为该目标内容项的多个子内容项。比如,在该目标内容项为广告的情况下,在一些实施例中,该广告的多个图层均为该广告的一个子广告,每个子广告为一个完整的广告创意,比如,该广告包括两个子广告,第一个子广告为图片,第二个子广告为视频,在第一个子广告叠加在第二个子广告之上的情况下,终端展示该第一个子广告上的素材,也即是展示第一个子广告。在当前状态下,第二个子广告是不可见的。In this context, all layers are opaque, and initially, the multiple layers of the target content item are stacked on top of each other. The first layer among these multiple layers is also the top layer. In some embodiments, the multiple layers of the target content item are multiple sub-content items of the target content item. For example, if the target content item is an advertisement, in some embodiments, the multiple layers of the advertisement are all sub-advertisements of the advertisement, and each sub-advertisement is a complete advertising creative. For instance, the advertisement includes two sub-advertisements: the first sub-advertisement is an image, and the second sub-advertisement is a video. When the first sub-advertisement is superimposed on the second sub-advertisement, the terminal displays the material on the first sub-advertisement, that is, it displays the first sub-advertisement. In the current state, the second sub-advertisement is invisible.
可选地,在终端在该内容展示界面上,展示目标内容项之后,还能够执行下述任一个步骤。Optionally, after the target content item is displayed on the content display interface, the terminal can also perform any of the following steps.
在一种可能的实施方式中,响应于对该多个素材中任一素材的拖动操作,终端将该素材展示在该拖动操作结束的位置。In one possible implementation, in response to a drag operation on any of the plurality of materials, the terminal displays the material at the position where the drag operation ends.
其中,该多个素材为目标内容项中的素材。These multiple materials are materials within the target content item.
在这种实施方式下,用户能够通过拖动操作来改变素材的位置,为用户提供了丰富的自主性。In this implementation, users can change the position of the material by dragging, providing them with a high degree of autonomy.
举例来说,响应于对该多个素材中任一素材的拖动操作,终端将该素材调整为激活状态,该素材随着该拖动操作在该目标内容项的展示框内移动。响应于该拖动操作结束,终端将该素材展示在该拖动操作结束的位置上。For example, in response to a drag operation on any of the multiple media items, the terminal activates that media item, and the media item moves within the display frame of the target content item as the drag operation ends. In response to the end of the drag operation, the terminal displays the media item at the position where the drag operation ended.
在一种可能的实施方式中,响应于该目标内容项被滑动至该内容展示界面上展示的任一内容项,终端将该目标内容项分享给该内容项的发布对象。In one possible implementation, in response to the target content item being swiped to any content item displayed on the content display interface, the terminal shares the target content item with the publishing object of the content item.
其中,该内容项的发布对象为发布该内容项的账号。The content item is to be published by the account that publishes it.
在这种实施方式下,通过在内容展示界面上的滑动操作就能够快捷地将目标内容项分享给对应的对象,人机交互的效率较高。In this implementation, the target content item can be quickly shared with the corresponding object by swiping on the content display interface, resulting in high efficiency of human-computer interaction.
举例来说,响应于该目标内容项被滑动至该内容展示界面上展示的任一内容项,终端确定该内容项对应的发布对象。终端向服务器发送内容项分享请求,该内容项分享请求携带该目标内容项的标识以及该内容项对应的发布对象。服务器获取该内容项获取请求,从该内容项获取请求中获取该目标内容项的标识以及该内容项对应的发布对象。服务器基于该目标内容项的标识以及该内容项对应的发布对象,将该目标内容项发送给该内容项对应的发布对象。For example, in response to the target content item being swiped to any content item displayed on the content display interface, the terminal determines the publishing object corresponding to the content item. The terminal sends a content item sharing request to the server, which carries the identifier of the target content item and the publishing object corresponding to the content item. The server obtains the content item acquisition request and retrieves the identifier of the target content item and the publishing object corresponding to the content item from the content item acquisition request. Based on the identifier of the target content item and the publishing object corresponding to the content item, the server sends the target content item to the publishing object corresponding to the content item.
在一些实施例中,将该目标内容项分享给该内容项的发布对象包括下述两种方式:In some embodiments, sharing the target content item with the publishing object of the content item includes the following two methods:
方式1、通过聊天窗口将该目标内容项分享给该内容项的发布对象。Method 1: Share the target content item with the person who published the content item through the chat window.
方式2、将该目标内容项添加至该内容项的发布对象对应的内容展示列表。Method 2: Add the target content item to the content display list corresponding to the publishing object of the content item.
服务器可以通过上述任一种方式来将该目标内容项分享给该内容项的发布对象,本申请实施例对此不做限定。The server can share the target content item with the publishing object of the content item through any of the above methods, and the embodiments of this application do not limit this.
在一种可能的实施方式中,响应于对该目标内容项上任一位置的点击操作,终端展示该目标内容项对应的内容项界面,该内容项界面用于介绍该目标内容项。In one possible implementation, in response to a click operation at any location on the target content item, the terminal displays a content item interface corresponding to the target content item, which is used to introduce the target content item.
其中,该目标内容项对应的内容项界面为该目标内容项的关联界面。在一些实施例中,除了将该目标内容项整体设置为可以响应点击操作之外,还可以将该目标内容项局部设置为可以响应点击操作,本申请实施例对此不做限定。The content item interface corresponding to the target content item is the associated interface of the target content item. In some embodiments, in addition to setting the target content item as a whole to be responsive to click operations, the target content item can also be set to be responsive to click operations in a partial manner; this application embodiment does not limit this.
在这种实施方式下,终端能够响应于对目标内容项的点击操作来展示该目标内容项对应的内容项界面,用户通过该内容项界面能够更加清楚地了解该目标内容项的相关信息,提高了人机交互的效率。In this implementation, the terminal can respond to a click on a target content item by displaying the corresponding content item interface. Through this content item interface, the user can more clearly understand the relevant information of the target content item, thus improving the efficiency of human-computer interaction.
在一些实施例中,该内容项界面为目标应用程序的子程序的界面,该目标应用程序为提供该内容展示界面的应用程序,该子程序为该目标内容项关联的子程序,点击该目标内容项也就能够在该目标应用程序内调用该子程序。也即是,响应于对该目标内容项上任一位置的点击操作,终端获取该目标内容项对应的跳转指令。终端基于该跳转指令调用该子程序。在该目标内容项为广告的情况下,该子程序也即是用于介绍和销售广告推荐的产品和服务的子程序,用户可以通过该内容项界面来进一步了解广告推荐的产品和服务。In some embodiments, the content item interface is the interface of a subroutine of a target application. The target application is the application that provides the content display interface, and the subroutine is the subroutine associated with the target content item. Clicking the target content item will invoke the subroutine within the target application. That is, in response to a click operation at any location on the target content item, the terminal obtains a jump instruction corresponding to the target content item. The terminal invokes the subroutine based on the jump instruction. When the target content item is an advertisement, the subroutine is also a subroutine used to introduce and sell the products and services recommended in the advertisement. Users can further learn about the products and services recommended in the advertisement through the content item interface.
在一些实施例中,该内容项界面为终端上安装的其他应用程序的界面,点击该目标内容项能够控制终端启动该其他应用程序。也即是,响应于对该目标内容项上任一位置的点击操作,终端获取该目标内容项对应的跳转指令。终端基于该跳转指令启动该其他应用程序。在该目标内容项为广告的情况下,该其他应用程序也即是用于介绍和销售广告推荐的产品和服务的应用程序。In some embodiments, the content item interface is the interface of another application installed on the terminal, and clicking the target content item can control the terminal to launch that other application. That is, in response to a click operation at any position on the target content item, the terminal obtains a jump instruction corresponding to the target content item. The terminal launches the other application based on the jump instruction. When the target content item is an advertisement, the other application is also an application used to introduce and sell the products and services recommended in the advertisement.
在一些实施例中,该内容项界面为网页,点击该目标内容项能够控制终端将内容展示界面切换为该目标内容项对应的网页。也即是,响应于对该目标内容项上任一位置的点击操作,终端获取该目标内容项对应的跳转指令。终端基于该跳转指令启动该网页。在该目标内容项为广告的情况下,该网页也即是用于介绍和销售广告推荐的产品和服务的网页。In some embodiments, the content item interface is a webpage, and clicking the target content item controls the terminal to switch the content display interface to the webpage corresponding to the target content item. That is, in response to a click operation at any position on the target content item, the terminal obtains a jump instruction corresponding to the target content item. The terminal launches the webpage based on the jump instruction. When the target content item is an advertisement, the webpage is also a webpage used to introduce and sell the advertised products and services.
在一种可能的实施方式中,响应于对该目标内容项上任一位置的点击操作,终端在该内容展示界面中放大该目标内容项。In one possible implementation, in response to a click operation at any location on the target content item, the terminal zooms in on the target content item in the content display interface.
在这种实施方式下,终端能够响应于对该目标内容项的点击操作来放大该目标内容项,有助于用户清楚地查看目标内容项。In this implementation, the terminal can zoom in on the target content item in response to a click operation, which helps the user to clearly view the target content item.
在一种可能的实施方式中,响应于对该目标内容项的长按操作,终端展示内容项关闭控件。响应于对该内容项关闭控件的点击操作,终端在该内容展示界面中取消展示该目标内容项。In one possible implementation, in response to a long press on the target content item, the terminal displays a content item close control. In response to a click on the content item close control, the terminal de-displays the target content item in the content display interface.
在这种实施方式下,终端提供内容项关闭控件来实现对目标内容项的快捷关闭,提高了人机交互的效率。In this implementation, the terminal provides a content item closing control to enable quick closing of the target content item, thereby improving the efficiency of human-computer interaction.
在一些实施例中,该内容展示界面提供与该目标内容项进行互动的功能。比如,提供对该目标内容项点赞以及评论的功能。在社交类应用的信息分享类Feed流中,用于对该目标内容项的点赞以及分享会在该目标内容项展示在其他用户的终端上时同时展示,从而丰富该目标内容项的互动性。In some embodiments, the content display interface provides interactive functionality with the target content item. For example, it provides the ability to like and comment on the target content item. In the information sharing feed of social applications, liking and sharing the target content item will be displayed simultaneously when the target content item is shown on other users' devices, thereby enriching the interactivity of the target content item.
可选地,在步骤303之后,终端既可以执行下述步骤304和305,也可以执行下述步骤306和307,或者,在该目标内容项包括多个图层,该目标内容项的多个素材位于该多个图层的情况下,执行下述步骤308或者309,本申请实施例对此不做限定。Optionally, after step 303, the terminal may execute either steps 304 and 305, or steps 306 and 307. Alternatively, if the target content item includes multiple layers and multiple materials of the target content item are located on the multiple layers, steps 308 or 309 may be executed. This application embodiment does not limit this.
304、响应于运行该目标应用的终端的姿态发生变化,终端基于该终端变化后的姿态,重新组合该多个素材。304. In response to a change in the posture of the terminal running the target application, the terminal recombines the multiple materials based on the changed posture of the terminal.
其中,终端的姿态用于表示终端相对于地面的角度,终端的姿态发生变化也就表示终端相对于地面的角度发生了变化,从用户的角度来说,用户转动终端会导致终端的姿态发生变化。在一些实施例中,终端的姿态通过终端上的陀螺仪确定。运行该目标应用的终端也即是显示该内容展示界面的终端。目标内容项中多个素材的组合方式由技术人员根据实际情况进行设置。重新组合该多个素材是指改变该多个素材的组合方式,也即是重新确定该多个素材在目标内容项中的展示位置。比如,目标内容项包括素材A、素材B以及素材C,在终端的姿态变化前,该素材A、素材B以及素材C的组合方式为,素材A在目标内容项的左上角,素材B位于该目标内容项的中心,素材C为素材A和素材B的背景图像。在终端的姿态发生变化的情况下,素材C的位置不变,素材A的位置由左上角变为右上角,素材B的位置由中心变为右下角,这样也就实现了素材A、素材B以及素材C的重新组合。In this context, the terminal's posture represents its angle relative to the ground. A change in the terminal's posture indicates a change in its angle relative to the ground. From the user's perspective, rotating the terminal causes a change in its posture. In some embodiments, the terminal's posture is determined by a gyroscope on the terminal. The terminal running the target application is also the terminal displaying the content interface. The combination of multiple materials in the target content item is set by technical personnel according to the actual situation. Recombining these multiple materials means changing their combination, that is, redetermining their display positions within the target content item. For example, if the target content item includes material A, material B, and material C, before the terminal's posture changes, material A, material B, and material C are combined as follows: material A is in the upper left corner of the target content item, material B is in the center of the target content item, and material C is the background image of material A and material B. When the terminal's posture changes, the position of material C remains unchanged, the position of material A changes from the upper left corner to the upper right corner, and the position of material B changes from the center to the lower right corner, thus achieving a recombination of material A, material B, and material C.
在一种可能的实施方式中,响应于该终端的姿态发生变化,终端确定该终端姿态变化前后的姿态差。终端基于各个素材的深度以及该姿态差,确定各个素材的位移,该深度用于表示素材与该终端的使用对象之间的距离。终端基于各个素材的位移,确定该目标内容项中各个素材在重新组合后的目标位置。In one possible implementation, in response to a change in the terminal's posture, the terminal determines the posture difference before and after the posture change. Based on the depth of each element and the posture difference, the terminal determines the displacement of each element, where the depth represents the distance between the element and the object being used by the terminal. Based on the displacement of each element, the terminal determines the target position of each element in the target content item after recombination.
其中,素材的深度(Deep offset)用于表示素材与该终端的使用对象之间的距离。在素材的深度为第一数值的情况下,表示对应素材与该使用对象之间的距离为基准距离,该素材的位置不会随着该终端的姿态发生变化,在一些实施例中,该第一数值为0。在素材的深度大于第一数值的情况下,素材的深度越大,表示对应素材与该使用对象之间的距离越小;素材的深度越小,表示对应素材与该使用对象之间的距离越大。在素材的深度小于该第一数值的情况下,素材的深度越大,表示对应素材与该使用对象之间的距离越大;素材的深度越小,表示对应素材与该使用对象之间的距离越小。The depth offset of the clip represents the distance between the clip and the user object on the terminal. When the depth is a first value, it indicates a baseline distance between the clip and the user object; the clip's position does not change with the terminal's orientation. In some embodiments, this first value is 0. When the depth is greater than the first value, a greater depth indicates a smaller distance between the clip and the user object, and a smaller depth indicates a larger distance. Conversely, when the depth is less than the first value, a greater depth indicates a larger distance between the clip and the user object, and a smaller depth indicates a smaller distance.
在这种实施方式下,素材的深度除了能够用于渲染素材之外,还能够用于在终端的姿态发生变化之后,确定素材在重新组合后的目标位置。通过该深度能够控制素材移动的范围,为设计人员提供了丰富的设计方式。In this implementation, the depth of the material can be used not only for rendering but also to determine the target position of the material after recombination following a change in the terminal's posture. This depth allows control over the range of material movement, providing designers with a wealth of design options.
举例来说,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端确定该终端的当前姿态和变化前的姿态。终端将该终端的当前姿态和变化前的姿态作差,得到该终端姿态变化前后的姿态差。终端将该姿态差与各个素材的深度相乘,得到各个素材的位移。终端将各个素材的初始屏幕坐标与对应的位移相加,得到各个素材在重新组合后的目标屏幕坐标,各个素材的目标屏幕坐标也即是各个素材在重新组合后的目标位置,也就是在终端姿态变化之后素材将要移动至的位置。比如,终端的姿态通过下述公式(1)来表示,终端姿态变化前后的姿态差通过下述公式(2)来确定,各个素材的目标屏幕坐标通过下述公式(3)来确定。For example, in response to the gyroscope detecting a change in the terminal's attitude, the terminal determines its current attitude and the attitude before the change. The terminal subtracts the current attitude from the attitude before the change to obtain the attitude difference before and after the change. The terminal multiplies this attitude difference by the depth of each material to obtain the displacement of each material. The terminal adds the initial screen coordinates of each material to its corresponding displacement to obtain the target screen coordinates of each material after recombination. The target screen coordinates of each material are also the target positions of each material after recombination, which is the positions to which the materials will move after the terminal's attitude changes. For example, the terminal's attitude is represented by the following formula (1), the attitude difference before and after the terminal's attitude change is determined by the following formula (2), and the target screen coordinates of each material are determined by the following formula (3).
DM=w+xi+yj+zk (1)DM=w+xi+yj+zk (1)
其中,DM(Device Motion)为终端的姿态,x,y,z∈R,i2=j2=z2=ijk=-1,w为预设参数。Wherein, DM (Device Motion) is the attitude of the terminal, x, y, z∈R, i 2 = j 2 = z 2 = ijk=-1, and w is a preset parameter.
DMdiff=DMcur-DMori (2)DM diff = DM cur - DM ori (2)
其中,DMdiff为姿态差,DMcur为终端的当前姿态,DMori为终端变化前的姿态。Wherein, DM diff is the attitude difference, DM cur is the current attitude of the terminal, and DM ori is the attitude of the terminal before the change.
Pcur=Pori+Pdiff×Deepoffset (3)P cur =P ori +P diff ×Deepoffset (3)
其中,Pcur为各个素材在重新组合后的目标屏幕坐标,Pori为各个素材在重新组合前的初始屏幕坐标,Pdiff为DMdiff在x轴和y轴的分量,记作Pdiff=(x′,y′),Deepoffset为各个素材的深度,Pdiff×Deepoffset为各个素材的位移。从上述公式(3)可以看出,在任一素材的深度为0(基准距离)的情况下,该终端姿态变化时该素材的位置不会发生变化。在任一素材的深度大于0的情况下,该素材的移动方向与终端的姿态变化方向相同。在任一素材的深度小于0的情况下,该素材的移动方向与终端的姿态变化方向相反。Where P <sub>cur</sub> is the target screen coordinate of each material after recombination, P <sub>ori</sub> is the initial screen coordinate of each material before recombination, P <sub>diff </sub> is the component of DM <sub>diff </sub> on the x and y axes, denoted as P <sub>diff</sub> = (x′, y′), Deepoffset is the depth of each material, and P<sub>diff</sub> × Deepoffset is the displacement of each material. From the above formula (3), it can be seen that when the depth of any material is 0 (reference distance), the position of the material will not change when the terminal's attitude changes. When the depth of any material is greater than 0, the direction of movement of the material is the same as the direction of attitude change of the terminal. When the depth of any material is less than 0, the direction of movement of the material is opposite to the direction of attitude change of the terminal.
在一种可能的实施方式中,响应于该终端的姿态发生变化,终端确定变化后的姿态对应的素材叠加顺序。终端基于该素材叠加顺序,确定该目标内容项中各个素材在重新组合后的目标位置。In one possible implementation, in response to a change in the terminal's posture, the terminal determines the material stacking order corresponding to the changed posture. Based on this material stacking order, the terminal determines the target position of each material in the target content item after recombination.
其中,相同的多个素材在不同的叠加顺序下,能够呈现出不同的视觉效果,比如,该目标内容项包括素材A和素材B,在终端的姿态变化之前,素材A和素材B的叠加顺序为素材A叠加在素材B上。在终端的姿态变化之后,素材A和素材B的叠加顺序变为素材B叠加在素材A上,通过改变素材的叠加顺序,能够改变目标内容项的展示形式。素材在重新组合后的目标位置是指,各个素材在重新组合后的叠加顺序。In this context, multiple identical materials, when stacked in different orders, can present different visual effects. For example, if the target content item includes material A and material B, before the terminal's posture changes, material A is stacked on top of material B. After the terminal's posture changes, the stacking order becomes material B stacked on top of material A. By changing the stacking order of the materials, the display format of the target content item can be altered. The target position of the materials after recombination refers to the stacking order of the individual materials after recombination.
在这种实施方式下,在终端的姿态发生变化的情况下,终端能够基于变化后的姿态确定素材叠加顺序,从而基于确定出的素材叠加顺序来进一步确定多个素材在重新组合后的目标位置,后续能够基于多个素材在重新组合后的目标位置来对该多个素材进行调整,为用户提供更加丰富的内容项展示形式,吸引用户浏览目标内容项。In this implementation, when the terminal's posture changes, the terminal can determine the material stacking order based on the changed posture. Based on the determined material stacking order, the terminal can further determine the target position of multiple materials after recombination. Subsequently, the multiple materials can be adjusted based on the target position of the multiple materials after recombination, providing users with a richer content display format and attracting users to browse the target content items.
举例来说,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端确定该终端的当前姿态,当前姿态也即是终端变化后的姿态。终端基于该终端的当前姿态在叠加顺序表中进行查询,得到当前姿态对应的素材叠加顺序,该叠加顺序表用于记录姿态与素材叠加顺序之间的对应关系,该叠加顺序表由技术人员根据实际情况进行设置,本申请实施例对此不做限定。终端基于该当前姿态对应的素材叠加顺序,确定各个素材在重新组合后的叠加顺序,该各个素材的叠加顺序也即是各个素材在重新组合后的目标位置。For example, in response to the gyroscope detecting a change in the terminal's attitude, the terminal determines its current attitude, which is also the changed attitude. Based on this current attitude, the terminal queries a stacking order table to obtain the corresponding material stacking order. This stacking order table records the correspondence between attitudes and material stacking orders. This table is set by technicians according to actual conditions, and this embodiment does not limit its configuration. Based on the material stacking order corresponding to the current attitude, the terminal determines the stacking order of each material after recombination. This stacking order of each material is also the target position of each material after recombination.
在一种可能的实施方式中,响应于该终端的姿态发生变化,终端确定各个素材的旋转中心。终端基于该终端姿态变化前后的姿态差以及各个素材的类型,确定各个素材的旋转角度。终端基于各个素材的旋转中心和旋转角度,确定该目标内容项中各个素材在重新组合后的目标位置。In one possible implementation, in response to a change in the terminal's posture, the terminal determines the rotation center of each element. Based on the posture difference before and after the posture change and the type of each element, the terminal determines the rotation angle of each element. Based on the rotation center and rotation angle of each element, the terminal determines the target position of each element in the target content item after recombination.
其中,各个素材的旋转中心也即是各个素材旋转时围绕的中心,各个素材的旋转中心均位于该目标内容项的展示框内,该旋转中心是不可见的。素材的类型包括文本、图片以及视频等。多个素材的目标位置是指各个素材在旋转之后的位置。The rotation center of each element is the center around which it rotates, and this rotation center is located within the display frame of the target content item; it is not visible. Element types include text, images, and videos. The target position of multiple elements refers to their position after rotation.
在这种实施方式下,在终端的姿态发生变化的情况下,终端能够确定各个素材的旋转中心。基于姿态变换前后的姿态差以及各个素材的类型,确定各个素材的旋转角度。基于各个素材的旋转中心和旋转角度,对各个素材进行旋转,从而改变各个素材之间的相对位置关系,也即是对该多个素材进行重新组合,从而为用户提供更加丰富的内容项展示形式,吸引用户浏览目标内容项。In this implementation, when the terminal's posture changes, the terminal can determine the rotation center of each element. Based on the posture difference before and after the posture change and the type of each element, the rotation angle of each element is determined. Based on the rotation center and rotation angle of each element, the elements are rotated, thereby changing the relative positional relationship between them. In other words, the multiple elements are recombined, thus providing users with a richer display of content items and attracting users to browse the target content items.
举例来说,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端基于各个素材的标识在旋转中心表中进行查询,得到各个素材的旋转中心在该目标内容项的展示框中的坐标。终端将该终端的当前姿态和变化前的姿态作差,得到该终端姿态变化前后的姿态差。终端基于该终端姿态变化前后的姿态差,确定各个素材的基础旋转角度,该基础旋转角度与姿态差之间的对应关系由技术人员根据实际情况进行设置,比如设置一个反映姿态差与基础旋转角度之间关系的映射函数,将该姿态差带入该映射函数就能够得到对应的基础旋转角度。终端基于各个素材的类型,确定各个素材的旋转权重,其中,素材类型与旋转权重之间的对应关系由技术人员根据实际情况进行设置,比如,将文本对应的旋转权重设置为0.8,将图片对应的旋转权重设置为0.7,将视频对应的旋转权重设置为0.5等,本申请实施例对此不做限定。终端将各个素材的旋转权重与基础旋转角度相乘,得到各个素材的旋转角度。终端基于各个素材的旋转中心在该目标内容项的展示框中的坐标以及各个素材的旋转角度,确定各个素材旋转后的目标位置,该目标位置也即是在重新组合后素材所在的位置。For example, in response to the terminal's gyroscope detecting a change in the terminal's posture, the terminal queries a rotation center table based on the identifier of each material to obtain the coordinates of the rotation center of each material within the display frame of the target content item. The terminal subtracts the current posture of the terminal from its posture before the change to obtain the posture difference before and after the change. Based on the posture difference before and after the change, the terminal determines the base rotation angle of each material. The correspondence between this base rotation angle and the posture difference is set by the technician according to the actual situation. For example, a mapping function reflecting the relationship between the posture difference and the base rotation angle can be set, and the posture difference can be substituted into this mapping function to obtain the corresponding base rotation angle. The terminal determines the rotation weight of each material based on its type. The correspondence between the material type and the rotation weight is set by the technician according to the actual situation. For example, the rotation weight for text is set to 0.8, the rotation weight for images is set to 0.7, and the rotation weight for videos is set to 0.5, etc. This embodiment does not limit this. The terminal multiplies the rotation weight of each material by the base rotation angle to obtain the rotation angle of each material. The terminal determines the target position of each material after rotation based on the coordinates of the rotation center of each material in the display frame of the target content item and the rotation angle of each material. This target position is also the position of the material after recombination.
305、终端在该内容展示界面上展示重新组合后的该多个素材,以更新该目标内容项的展示形式。305. The terminal displays the recombined multiple materials on the content display interface to update the display format of the target content item.
在一种可能的实施方式中,终端在该目标内容项的展示框的该目标位置上,展示该目标内容项对应的素材,该目标内容项的展示框位于该内容展示界面上。In one possible implementation, the terminal displays the material corresponding to the target content item at the target position in the display box of the target content item, and the display box of the target content item is located on the content display interface.
其中,该目标内容项的展示框为用于展示该目标内容项的区域。在一些实施例中,该展示框为一个长方形区域,该目标内容项对应的素材展示在该展示框中。The display frame for the target content item is an area used to display the target content item. In some embodiments, the display frame is a rectangular area where the material corresponding to the target content item is displayed.
举例来说,终端加载该目标内容项对应的素材。终端将该目标内容项对应的素材渲染在目标位置上,从而对目标内容项中素材的展示位置进行更新,丰富该目标内容项的展示形式。比如图4包括姿态变换前的内容展示界面401以及姿态变化后的内容展示界面402。参见图4,在内容展示界面401中,包括该目标内容项的展示框4011,该展示框4011中展示有素材A、素材B以及素材C。在终端的姿态发生变化之后,在内容展示界面402中,该素材A、素材B以及素材C之间的相对位置关系发生了变化。For example, the terminal loads the material corresponding to the target content item. The terminal renders the material corresponding to the target content item at the target location, thereby updating the display position of the material in the target content item and enriching the display format of the target content item. For example, Figure 4 includes a content display interface 401 before the posture change and a content display interface 402 after the posture change. Referring to Figure 4, in the content display interface 401, there is a display box 4011 for the target content item, which displays material A, material B, and material C. After the terminal's posture changes, the relative positional relationship between material A, material B, and material C changes in the content display interface 402.
以该目标内容项为广告主投放的广告为例对本申请实施例提供的技术方案进行说明,参见图5,广告主通过服务器上传初始广告视频,该初始广告视频包括颜色通道广告视频501和透明度通道广告视频502,该初始广告视频也即是初始内容项。服务器通过素材合成服务503,基于目标规则将颜色通道广告视频501和透明度通道广告视频502进行合成,得到目标广告视频,该目标广告视频也即是终端上运行程序所需的广告视频,这里对所需包括格式匹配以及形式匹配,该目标广告视频包括多个素材。服务器将该目标广告视频的多个素材上传至广告主素材库504,以便在后续广告投放过程中进行调用。广告主通过服务器提供的广告投放服务505,创建目标广告视频的投放任务。服务器通过广告播放服务506将该目标广告视频的多个素材下发给终端。终端基于该多个素材播放该目标广告视频。在终端的姿态发生变化的情况下,终端基于变化后的姿态调整该多个素材的位置,从而改变该目标广告视频的展示形式。比如,广告主投放服饰类广告,该服饰类广告包括模特以及想要推荐的帽子。在未发生姿态变化情况下,终端展示该广告时,该帽子位于该模特的左边。在发生姿态变化的情况下,终端将该帽子展示在该模特的头上。Taking the advertisement placed by the advertiser as an example, the technical solution provided in this application embodiment will be described. Referring to Figure 5, the advertiser uploads an initial advertisement video through the server. This initial advertisement video includes a color channel advertisement video 501 and a transparency channel advertisement video 502, which is also the initial content item. The server uses the material synthesis service 503 to synthesize the color channel advertisement video 501 and the transparency channel advertisement video 502 based on the target rules to obtain the target advertisement video. This target advertisement video is also the advertisement video required for the program to run on the terminal. Here, the requirements include format matching and form matching. The target advertisement video includes multiple materials. The server uploads the multiple materials of the target advertisement video to the advertiser's material library 504 for use in subsequent advertisement placement. The advertiser creates a placement task for the target advertisement video through the advertisement placement service 505 provided by the server. The server distributes the multiple materials of the target advertisement video to the terminal through the advertisement playback service 506. The terminal plays the target advertisement video based on the multiple materials. When the terminal's posture changes, the terminal adjusts the position of the multiple materials based on the changed posture, thereby changing the display format of the target advertisement video. For example, an advertiser places an ad for clothing, which includes a model and a hat they want to recommend. When the user's posture remains unchanged, the hat is positioned to the left of the model when the ad is displayed on the device. When the posture changes, the hat is displayed on the model's head.
采用上述步骤进行广告投放,每个用户通过晃动手机,手机触发陀螺仪的位移,使得不同角度的手机能够给用户呈现不同的广告素材组合,形成“横看成岭侧成峰,远近高低各不同”的广告体验,更加多维丰富的展现广告主素材创意及产品细节。另外,还能够让品牌形象得以更直观立体的展现,更好地助力品牌实现商业价值,更好地传播品牌故事。在交类应用的信息分享Feed流提供的广告中,允许广告主在单个广告中向用户传递更多广告创意内容,给予广告主更大更自由的发挥空间,便于其打造用户心智,树立品牌形象。By employing the above steps for ad delivery, each user shakes their phone, triggering the gyroscope's movement. This allows the phone to display different combinations of ad creatives from different angles, creating a multi-dimensional and richer advertising experience that showcases the advertiser's creative ideas and product details. Furthermore, it allows for a more direct and three-dimensional presentation of the brand image, better supporting the brand in realizing its commercial value and effectively communicating its brand story. Ads provided by the information sharing feeds of cross-platform applications allow advertisers to convey more creative content to users within a single ad, giving them greater creative freedom to build user awareness and establish a brand image.
306、响应于该终端的姿态发生变化,终端获取变化后的姿态对应的候选素材。306. In response to a change in the terminal's posture, the terminal acquires the candidate material corresponding to the changed posture.
其中,变化后的姿态对应的候选素材的数量可以为一个也可以为多个,本申请实施例对此不做限定。不同姿态对应的候选素材由技术人员根据实际情况进行设置,本申请实施例对此不做限定。候选素材用于替换目标内容项中的素材。The number of candidate materials corresponding to the changed posture can be one or more, and this embodiment does not limit this. The candidate materials corresponding to different postures are set by technicians according to the actual situation, and this embodiment does not limit this either. The candidate materials are used to replace the materials in the target content item.
在一种可能的实施方式中,响应于该终端的姿态发生变化,终端确定该终端的当前姿态。终端确定该当前姿态对应的候选素材。In one possible implementation, in response to a change in the terminal's posture, the terminal determines its current posture. The terminal then determines the candidate material corresponding to this current posture.
在这种实施方式下,在终端的姿态发生变化的情况下,终端能够根据变化后的姿态确定候选素材,后续可以采用该候选素材来替换目标内容项中的素材,从而丰富目标内容项的展示效果。In this implementation, when the terminal's posture changes, the terminal can determine candidate materials based on the changed posture. These candidate materials can then be used to replace the materials in the target content item, thereby enriching the display effect of the target content item.
举例来说,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端确定该终端的当前姿态,当前姿态也即是终端变化后的姿态。终端基于该终端的当前姿态在候选素材表中进行查询,得到当前姿态对应的候选素材,也即是变化后的姿态对应的候选素材,其中,该候选素材表中姿态与候选素材的对应关系由技术人员根据实际情况进行设置,本申请实施例对此不做限定。For example, in response to the gyroscope detecting a change in the terminal's posture, the terminal determines its current posture, which is also the posture after the change. Based on this current posture, the terminal queries a candidate material table to obtain the candidate material corresponding to the current posture, which is also the candidate material corresponding to the changed posture. The correspondence between postures and candidate materials in this table is set by an expert based on actual conditions, and this embodiment does not limit this.
在一种可能的实施方式中,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端确定该终端的当前姿态和变化前的姿态。终端将该终端的当前姿态和变化前的姿态作差,得到该终端姿态变化前后的姿态差。终端确定该姿态差对应的候选素材,该姿态差对应的候选素材也即是变化后的姿态对应的候选素材。In one possible implementation, in response to the terminal's gyroscope detecting a change in the terminal's attitude, the terminal determines its current attitude and its attitude before the change. The terminal subtracts the current attitude from the attitude before the change to obtain the attitude difference. The terminal then determines candidate material corresponding to this attitude difference, which is also the candidate material corresponding to the changed attitude.
在这种实施方式下,终端能够根据变化前后的姿态差来确定候选素材,也即是不同的姿态差对应于不同的候选素材,丰富了候选素材的选择范围。由于候选素材用于替换目标内容项中的素材,从而提高了目标内容项的丰富性。In this implementation, the terminal can determine candidate materials based on the pose difference before and after the change; that is, different pose differences correspond to different candidate materials, thus enriching the selection range of candidate materials. Since the candidate materials are used to replace materials in the target content item, the richness of the target content item is improved.
举例来说,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端确定该终端的当前姿态和变化前的姿态。终端将该终端的当前姿态和变化前的姿态作差,得到该终端姿态变化前后的姿态差。终端基于该姿态差在候选素材表中进行查询,得到该姿态差对应的候选素材,也即是变化后的姿态对应的候选素材,其中,该候选素材表中姿态差与候选素材的对应关系由技术人员根据实际情况进行设置,本申请实施例对此不做限定。For example, in response to the gyroscope detecting a change in the terminal's attitude, the terminal determines its current attitude and the attitude before the change. The terminal subtracts the current attitude from the attitude before the change to obtain the attitude difference. Based on this attitude difference, the terminal queries a candidate material table to obtain the candidate material corresponding to the attitude difference, which is also the candidate material corresponding to the changed attitude. The correspondence between the attitude difference and the candidate material in the candidate material table is set by an expert according to the actual situation; this embodiment does not limit this.
307、终端采用该候选素材替换该多个素材中的目标素材,该目标素材与该候选素材为相同类型的素材。307. The terminal uses the candidate material to replace the target material among the multiple materials, and the target material and the candidate material are of the same type.
在一种可能的实施方式中,终端基于该候选素材的类型,在该多个素材中确定目标素材,该目标素材与该候选素材为相同类型的素材。终端采用该候选素材替换该目标素材。In one possible implementation, the terminal determines a target material from among the multiple materials based on the type of the candidate material, the target material being of the same type as the candidate material. The terminal then replaces the target material with the candidate material.
在这种实施方式下,终端可以采用候选素材来替换该目标内容项中的目标素材,从而改变该目标内容项的内容,提高目标内容项的丰富性。In this implementation, the terminal can use candidate materials to replace the target material in the target content item, thereby changing the content of the target content item and improving its richness.
308、响应于运行该目标应用的终端的姿态发生变化,终端同时展示该多个图层上的素材。308. In response to a change in the posture of the terminal running the target application, the terminal simultaneously displays materials on multiple layers.
其中,该多个图层为该目标内容项的多个子内容项。在该终端的姿态发生变化之前,该目标内容项的展示形式为该多个图层中第一个图层上的素材。These multiple layers are multiple sub-content items of the target content item. Before the terminal's posture changes, the target content item is displayed as material on the first layer among these multiple layers.
在一种可能的实施方式中,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端以平铺形式展示该多个图层上的素材,其中,以平铺形式展示该多个图层上的素材是指,以互不遮挡的方式展示该多个图层上的素材,在这种实施方式下,终端的姿态发生变化之后,能够将原本只展示第一个图层上素材的展示形式改变为同时展示多个图层上素材的展示形式,从而丰富了目标内容项的展示形式,为目标内容项赋予了互动性,提高了用户与目标内容项进行互动的积极性。In one possible implementation, in response to the terminal's gyroscope detecting a change in the terminal's posture, the terminal displays the materials on the multiple layers in a tiled manner. This tiled display means that the materials on the multiple layers are displayed without obstructing each other. In this implementation, after the terminal's posture changes, the display format, which originally only showed the materials on the first layer, can be changed to simultaneously displaying materials on multiple layers. This enriches the display format of the target content item, gives it interactivity, and increases the user's enthusiasm for interacting with the target content item.
在该目标内容项为广告的情况下,该多个图层为该广告的子广告,比如,该广告为汽车广告,该汽车广告包括两个子广告,第一个子广告是汽车图片,汽车图像对应的图层上的素材的组合构成该汽车图像。第二个子广告是汽车视频与另一张汽车图片的组合,第二个子广告对应的图层上的素材包括该汽车视频和另一张汽车图片。参见图6,在终端的姿态发生变化之前,该第一个子广告对应的图层为第一个图层,那么终端在展示该目标内容项时,也即是展示该第一个子广告601。响应于该终端的姿态发生变化,终端以平铺形式展示该第一个子广告601和第二个子广告602,比如,将第一个子广告601展示在左侧,将第二个子广告602展示在右侧,两个子广告之间没有遮挡,用户既可以看到该第一个子广告601,也能够看到该第二个子广告602。When the target content item is an advertisement, the multiple layers are sub-ads of that advertisement. For example, if the advertisement is a car advertisement, it includes two sub-ads. The first sub-ad is a car image, and the combination of materials on the layer corresponding to the car image constitutes the car image. The second sub-ad is a combination of a car video and another car image, and the materials on the layer corresponding to the second sub-ad include the car video and the other car image. Referring to Figure 6, before the terminal's posture changes, the layer corresponding to the first sub-ad is the first layer. Therefore, when the terminal displays the target content item, it is also displaying the first sub-ad 601. In response to the change in the terminal's posture, the terminal displays the first sub-ad 601 and the second sub-ad 602 in a tiled manner. For example, the first sub-ad 601 is displayed on the left, and the second sub-ad 602 is displayed on the right. There is no obstruction between the two sub-ads, and the user can see both the first sub-ad 601 and the second sub-ad 602.
在一种可能的实施方式中,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端以层叠形式展示该多个图层上的素材,其中,以层叠形式展示该多个图层上的素材是指,将该多个图层旋转不同的角度以展示该多个图层上的素材。在这种实施方式下,终端的姿态发生变化之后,能够将原本只展示第一个图层上素材的展示形式改变为层叠展示多个图层上素材的展示形式,从而丰富了目标内容项的展示形式,为目标内容项赋予了互动性,提高了用户与目标内容项进行互动的积极性。In one possible implementation, in response to a change in the terminal's posture detected by its gyroscope, the terminal displays multiple layers of material in a layered manner. This layered display refers to rotating the multiple layers by different angles to display the material on each layer. In this implementation, after a change in the terminal's posture, the display format can be changed from simply showing the material on the first layer to displaying multiple layers in a layered manner, thereby enriching the display format of the target content item, giving it interactivity, and increasing the user's enthusiasm for interacting with the target content item.
在该目标内容项为广告的情况下,该多个图层为该广告的子广告,比如,该广告为汽车广告,该汽车广告包括两个子广告,第一个子广告是汽车图片,汽车图像对应的图层上的素材的组合构成该汽车图像。第二个子广告是汽车视频与另一张汽车图片的组合,第二个子广告对应的图层上的素材包括该汽车视频和另一张汽车图片。参见图7,在终端的姿态发生变化之前,该第一个子广告对应的图层为第一个图层,那么终端在展示该目标内容项时,也即是展示该第一个子广告701。响应于该终端的姿态发生变化,终端以层叠形式展示该第一个子广告701和第二个子广告702,比如,将第一个子广告701竖直展示,将第二个子广告702旋转30°后进行展示,用户既可以看到该第一个子广告701,也能够看到该第二个子广告702。When the target content item is an advertisement, the multiple layers are sub-ads of that advertisement. For example, if the advertisement is a car advertisement, it includes two sub-ads. The first sub-ad is a car image, and the combination of materials on the layer corresponding to the car image constitutes the car image. The second sub-ad is a combination of a car video and another car image, and the materials on the layer corresponding to the second sub-ad include the car video and the other car image. Referring to Figure 7, before the terminal's posture changes, the layer corresponding to the first sub-ad is the first layer. Therefore, when the terminal displays the target content item, it is also displaying the first sub-ad 701. In response to the change in the terminal's posture, the terminal displays the first sub-ad 701 and the second sub-ad 702 in a layered manner. For example, the first sub-ad 701 is displayed vertically, and the second sub-ad 702 is rotated 30° before being displayed. The user can see both the first sub-ad 701 and the second sub-ad 702.
可选地,在步骤308之后,终端还能够执行下述任一个步骤。Optionally, after step 308, the terminal may also perform any of the following steps.
在一种可能的实施方式中,响应于对该多个图层中任一图层的点击操作或拖拽操作,终端展示该图层对应的内容项界面。In one possible implementation, in response to a click or drag operation on any of the multiple layers, the terminal displays the content item interface corresponding to that layer.
其中,该图层对应的内容项界面为该图层的关联界面。The content item interface corresponding to this layer is the associated interface of this layer.
在这种实施方式下,终端能够响应于对目标内容项中任一图层的点击操作或拖动操作来展示该图层对应的内容项界面,用户通过该内容项界面能够更加清楚地了解该目标内容项的相关信息,提高了人机交互的效率。In this implementation, the terminal can respond to click or drag operations on any layer of the target content item to display the content item interface corresponding to that layer. Through this content item interface, users can more clearly understand the relevant information of the target content item, thus improving the efficiency of human-computer interaction.
在一些实施例中,该内容项界面为目标应用程序的子程序的界面,该目标应用程序为提供该内容展示界面的应用程序,该子程序为该图层关联的子程序,点击或拖动该图层也就能够在该目标应用程序内调用该子程序。也即是,响应于对该图层上任一位置的点击操作或拖动操作,终端获取该图层对应的跳转指令。终端基于该跳转指令调用该子程序。In some embodiments, the content item interface is the interface of a subroutine of a target application, which is the application that provides the content display interface. The subroutine is the subroutine associated with the layer, and clicking or dragging the layer will invoke the subroutine within the target application. That is, in response to a click or drag operation at any position on the layer, the terminal obtains the corresponding jump instruction for the layer. The terminal invokes the subroutine based on the jump instruction.
在一些实施例中,该内容项界面为终端上安装的其他应用程序的界面,点击或拖动该图层能够控制终端启动该其他应用程序。也即是,响应于对该图层上任一位置的点击操作或拖动操作,终端获取该图层对应的跳转指令。终端基于该跳转指令启动该其他应用程序。In some embodiments, the content item interface is the interface of other applications installed on the terminal, and clicking or dragging the layer can control the terminal to launch the other application. That is, in response to a click or drag operation at any position on the layer, the terminal obtains the corresponding jump instruction for that layer. The terminal launches the other application based on the jump instruction.
在一些实施例中,该内容项界面为网页,点击或拖动该图层能够控制终端将内容展示界面切换为该图层对应的网页。也即是,响应于对该图层上任一位置的点击操作或拖动操作,终端获取该图层对应的跳转指令。终端基于该跳转指令启动该网页。In some embodiments, the content item interface is a webpage, and clicking or dragging the layer can control the terminal to switch the content display interface to the webpage corresponding to that layer. That is, in response to a click or drag operation at any position on the layer, the terminal obtains a jump instruction corresponding to that layer. The terminal launches the webpage based on the jump instruction.
在一种可能的实施方式中,响应于对该多个图层中任一图层的点击操作,放大显示该图层。In one possible implementation, the layer is magnified in response to a click operation on any of the plurality of layers.
在这种实施方式下,终端能够响应于对该目标内容项中任一图层的点击操作来放大该图层,有助于用户清楚地查看该图层。In this implementation, the terminal can zoom in on any layer in the target content item in response to a click operation, which helps the user to view the layer clearly.
在一种可能的实施方式中,响应于对该多个图层中任一图层的点击操作,取消显示该多个图层中的其他图层。In one possible implementation, in response to a click operation on any of the plurality of layers, the other layers in the plurality of layers are de-displayed.
在这种实施方式下,点击该多个图层中的任一图层能够控制终端仅显示该图层,消除了其他图层对查看该图层的影响,提高了人机交互的效率。In this implementation, clicking on any one of the multiple layers allows the terminal to display only that layer, eliminating the influence of other layers on viewing that layer and improving the efficiency of human-computer interaction.
举例来说,响应于对该多个图层中任一图层的点击操作,终端将该多个图层设置为叠加状态,将该图层设置为该多个图层的第一个图层。For example, in response to a click on any of the multiple layers, the terminal sets the multiple layers to an overlay state and sets that layer as the first layer among the multiple layers.
309、响应于运行该目标应用的终端的姿态发生变化,终端展示该多个图层中目标图层上的素材,该目标图层为与该终端变化后的姿态对应的图层。309. In response to a change in the posture of the terminal running the target application, the terminal displays material on the target layer among the multiple layers, the target layer being the layer corresponding to the changed posture of the terminal.
其中,目标图层与终端变化后的姿态之间的对应关系由技术人员根据实际情况进行设置,本申请实施例对此不做限定。在一些实施例中,终端在展示该目标图层时,该多个图层中的其他图层是不可见的。The correspondence between the target layer and the changed posture of the terminal is set by technicians according to the actual situation, and this application embodiment does not limit this. In some embodiments, when the terminal displays the target layer, the other layers among the plurality of layers are invisible.
在一种可能的实施方式中,响应于该终端的陀螺仪检测到该终端的姿态发生变化,终端从该多个图层中确定与变化后的姿态对应的目标图层。终端在该内容展示界面上展示该目标图层。In one possible implementation, in response to the terminal's gyroscope detecting a change in the terminal's attitude, the terminal determines a target layer from the plurality of layers that corresponds to the changed attitude. The terminal then displays the target layer on the content display interface.
在该目标内容项为广告的情况下,该多个图层为该广告的子广告,比如,该广告为汽车广告,该汽车广告包括两个子广告,第一个子广告是汽车图片,汽车图像对应的图层上的素材的组合构成该汽车图像。第二个子广告是汽车视频与另一张汽车图片的组合,第二个子广告对应的图层上的素材包括该汽车视频和另一张汽车图片。参见图8,在终端的姿态发生变化之前,该第一个子广告对应的图层为第一个图层,那么终端在展示该目标内容项时,也即是展示该第一个子广告801。响应于该终端的姿态发生变化,终端展示第二个子广告802。When the target content item is an advertisement, the multiple layers are sub-ads of that advertisement. For example, if the advertisement is a car advertisement, it includes two sub-ads. The first sub-ad is a car image, and the combination of materials on the layer corresponding to the car image constitutes the car image. The second sub-ad is a combination of a car video and another car image, and the materials on the layer corresponding to the second sub-ad include the car video and the other car image. Referring to Figure 8, before the terminal's posture changes, the layer corresponding to the first sub-ad is the first layer. Therefore, when the terminal displays the target content item, it is also displaying the first sub-ad 801. In response to the change in the terminal's posture, the terminal displays the second sub-ad 802.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
通过本申请实施例提供的技术方案,在内容展示界面上展示目标内容项,该目标内容项包括多个素材。在终端的姿态发生变化的情况下,重新组合目标内容项中的多个素材。在内容展示界面上展示重新组合后的该多个素材也就是调整了改变了目标内容项的展示形式。也就是说,目标内容项中多个素材的展示形式与终端的姿态相关联,从而丰富了目标内容项的展示形式,为目标内容项赋予了互动性,吸引用户与目标内容项进行互动。在目标内容项为广告的情况下,也就提高了广告的投放效果和人机交互的效率。The technical solution provided in this application displays a target content item on a content display interface, the target content item comprising multiple materials. When the terminal's posture changes, the multiple materials within the target content item are recombine. Displaying these recombine materials on the content display interface thus adjusts and changes the display format of the target content item. In other words, the display format of the multiple materials within the target content item is related to the terminal's posture, thereby enriching the display format of the target content item, giving it interactivity, and attracting users to interact with it. When the target content item is an advertisement, this also improves the effectiveness of advertising and the efficiency of human-computer interaction.
图9是本申请实施例提供的一种内容项的展示装置的结构示意图,参见图9,装置包括:内容项展示模块901、位置确定模块902以及素材展示模块903。Figure 9 is a schematic diagram of the structure of a content item display device provided in an embodiment of this application. Referring to Figure 9, the device includes: a content item display module 901, a position determination module 902, and a material display module 903.
内容项展示模块901,用于在目标应用的内容展示界面上,展示目标内容项,该目标内容项包括多个素材,该内容展示界面用于展示在该目标应用中发布的内容项。The content item display module 901 is used to display target content items on the content display interface of the target application. The target content items include multiple materials. The content display interface is used to display content items published in the target application.
位置确定模块902,用于响应于运行该目标应用的终端的姿态发生变化,基于该终端变化后的姿态,重新组合该多个素材。The position determination module 902 is used to recombine the multiple materials based on the changed posture of the terminal running the target application in response to a change in the posture of the terminal.
素材展示模块903,用于在该内容展示界面上展示重新组合后的该多个素材,以更新该目标内容项的展示形式。The material display module 903 is used to display the recombined materials on the content display interface to update the display format of the target content item.
在一种可能的实施方式中,该位置确定模块902,用于响应于该终端的姿态发生变化,基于该终端变化后的姿态,确定该终端姿态变化前后的姿态差。基于各个该素材的深度以及该姿态差,确定各个该素材的位移,该深度用于表示素材与该终端的使用对象之间的距离。基于各个该素材的位移,确定该目标内容项中各个该素材的在重新组合后的目标位置。In one possible implementation, the position determination module 902 is configured to, in response to a change in the terminal's posture, determine the posture difference before and after the posture change, based on the changed posture of the terminal. Based on the depth of each element and the posture difference, the displacement of each element is determined, where the depth represents the distance between the element and the user object of the terminal. Based on the displacement of each element, the target position of each element in the target content item after recombination is determined.
在一种可能的实施方式中,该位置确定模块902,用于将该姿态差与各个该素材的深度相乘,得到各个该素材的位移。将各个该素材的初始屏幕坐标与对应的位移相加,得到各个该素材在重新组合的目标屏幕坐标。In one possible implementation, the position determination module 902 is used to multiply the attitude difference by the depth of each of the materials to obtain the displacement of each material. The initial screen coordinates of each material are added to the corresponding displacement to obtain the target screen coordinates of each material in the recombined state.
在一种可能的实施方式中,该位置确定模块902,用于响应于该终端的姿态发生变化,确定变化后的姿态对应的素材叠加顺序。基于该素材叠加顺序,确定该目标内容项中各个该素材在重新组合后的目标位置。In one possible implementation, the position determination module 902 is used to determine the material stacking order corresponding to the changed posture in response to a change in the terminal's posture. Based on the material stacking order, the target position of each material in the target content item after recombination is determined.
在一种可能的实施方式中,该位置确定模块902,用于响应于该终端的姿态发生变化,确定各个该素材的旋转中心。基于该终端姿态变化前后的姿态差以及各个该素材的类型,确定各个该素材的旋转角度。基于各个该素材的旋转中心和旋转角度,确定该目标内容项中各个该素材在重新组合后的目标位置。In one possible implementation, the position determination module 902 is used to determine the rotation center of each of the materials in response to a change in the terminal's posture. Based on the posture difference before and after the change in the terminal's posture and the type of each material, the rotation angle of each material is determined. Based on the rotation center and rotation angle of each material, the target position of each material in the target content item after recombination is determined.
在一种可能的实施方式中,该内容项展示模块901,用于在该目标应用的内容展示界面上,按照深度从小至大的顺序渲染该多个素材,以将该多个素材展示在该内容展示界面上,该深度用于表示素材与该终端的使用对象之间的距离。In one possible implementation, the content item display module 901 is used to render the multiple materials in ascending order of depth on the content display interface of the target application, so as to display the multiple materials on the content display interface, wherein the depth is used to represent the distance between the material and the user of the terminal.
在一种可能的实施方式中,该装置还包括:In one possible implementation, the device further includes:
尺寸确定模块,用于在该目标内容项的展示框出现在该目标应用的内容展示界面的情况下,确定该展示框在该内容展示界面中的尺寸。The size determination module is used to determine the size of the display box in the content display interface when the display box of the target content item appears in the content display interface of the target application.
该内容项展示模块901,用于在该展示框在该内容展示界面中的尺寸符合尺寸条件的情况下,在该内容展示界面中播放该多个素材中的视频。The content item display module 901 is used to play the video from the multiple materials in the content display interface when the size of the display frame in the content display interface meets the size conditions.
在一种可能的实施方式中,该装置还包括:In one possible implementation, the device further includes:
素材确定模块,用于响应于该终端的姿态发生变化,获取变化后的姿态对应的候选素材。The material determination module is used to obtain candidate materials corresponding to the changed posture in response to a change in the posture of the terminal.
素材替换模块,用于采用该候选素材替换该多个素材中的目标素材,该目标素材与该候选素材为相同类型的素材。The material replacement module is used to replace the target material among multiple materials with the candidate material, where the target material and the candidate material are of the same type.
在一种可能的实施方式中,该目标内容项包括多个图层,该内容项展示模块901,用于在该目标应用的内容展示界面上,展示该多个图层中第一个图层上的素材。In one possible implementation, the target content item includes multiple layers, and the content item display module 901 is used to display the material on the first layer of the multiple layers on the content display interface of the target application.
该素材展示模块903,还用于响应于运行该目标应用的终端的姿态发生变化,同时展示该多个图层上的素材。The material display module 903 is also used to display materials on multiple layers simultaneously in response to changes in the posture of the terminal running the target application.
在一种可能的实施方式中,该装置还包括下述任一项:In one possible implementation, the device further includes any of the following:
内容项界面展示模块,用于响应于对该多个图层中任一图层的点击操作或拖拽操作,展示该图层对应的内容项界面。The content item display module is used to display the content item interface corresponding to any of the multiple layers in response to a click or drag operation on any of the layers.
放大模块,用于响应于对该多个图层中任一图层的点击操作,放大显示该图层。The zoom module is used to zoom in on any of the multiple layers in response to a click operation.
取消显示模块,用于响应于对该多个图层中任一图层的点击操作,取消显示该多个图层中的其他图层。The Cancel Show module is used to cancel the display of other layers in response to a click operation on any one of the multiple layers.
在一种可能的实施方式中,该素材展示模块903,还用于响应于运行该目标应用的终端的姿态发生变化,展示该多个图层中目标图层上的素材,该目标图层为与该终端变化后的姿态对应的图层。In one possible implementation, the material display module 903 is further configured to display material on a target layer among the multiple layers in response to a change in the posture of the terminal running the target application, the target layer being the layer corresponding to the changed posture of the terminal.
在一种可能的实施方式中,该素材展示模块903,还用于响应于对该多个素材中任一素材的拖动操作,将该素材展示在该拖动操作结束的位置。In one possible implementation, the material display module 903 is further configured to display the material at the position where the drag operation ends in response to a drag operation on any of the plurality of materials.
在一种可能的实施方式中,该装置还包括:In one possible implementation, the device further includes:
分享模块,用于响应于该目标内容项被滑动至该内容展示界面上展示的任一内容项,将该目标内容项分享给该内容项的发布对象。The sharing module is used to share the target content item with the publishing object of the content item when the target content item is swiped to any content item displayed on the content display interface.
在一种可能的实施方式中,该装置还包括下述任一项:In one possible implementation, the device further includes any of the following:
内容项界面展示模块,用于响应于对该目标内容项上任一位置的点击操作,展示该目标内容项对应的内容项界面,该内容项界面用于介绍该目标内容项。The content item interface display module is used to respond to a click operation at any position on the target content item and display the content item interface corresponding to the target content item. The content item interface is used to introduce the target content item.
放大模块,用于响应于对该目标内容项上任一位置的点击操作,在该内容展示界面中放大该目标内容项。The zoom module is used to zoom in on the target content item in the content display interface in response to a click operation at any position on the target content item.
在一种可能的实施方式中,该装置还包括:In one possible implementation, the device further includes:
关闭模块,用于响应于对该目标内容项的长按操作,展示内容项关闭控件。响应于对该内容项关闭控件的点击操作,在该内容展示界面中取消展示该目标内容项。The close module is used to display a close control for a content item in response to a long press. Clicking the close control removes the content item from the display screen.
在一种可能的实施方式中,该装置还包括:In one possible implementation, the device further includes:
内容项添加模块,用于将该终端登录的对象对应的该目标内容项添加至该内容展示界面对应的内容展示列表。The content item addition module is used to add the target content item corresponding to the logged-in object of the terminal to the content display list of the content display interface.
该内容项展示模块901,用于响应于该内容展示界面被滑动至该目标内容项对应的位置,展示该目标内容项。The content item display module 901 is used to display the target content item in response to the content display interface being slid to the position corresponding to the target content item.
需要说明的是:上述实施例提供的内容项的展示装置在展示内容项时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将计算机设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的内容项的展示装置与内容项的展示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the content item display device provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the content item display device and the content item display method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
通过本申请实施例提供的技术方案,在内容展示界面上展示目标内容项,该目标内容项包括多个素材。在终端的姿态发生变化的情况下,重新组合目标内容项中的多个素材。在内容展示界面上展示重新组合后的该多个素材也就是调整了改变了目标内容项的展示形式。也就是说,目标内容项中多个素材的展示形式与终端的姿态相关联,从而丰富了目标内容项的展示形式,为目标内容项赋予了互动性,吸引用户与目标内容项进行互动。在目标内容项为广告的情况下,也就提高了广告的投放效果和人机交互的效率。The technical solution provided in this application displays a target content item on a content display interface, the target content item comprising multiple materials. When the terminal's posture changes, the multiple materials within the target content item are recombine. Displaying these recombine materials on the content display interface thus adjusts and changes the display format of the target content item. In other words, the display format of the multiple materials within the target content item is related to the terminal's posture, thereby enriching the display format of the target content item, giving it interactivity, and attracting users to interact with it. When the target content item is an advertisement, this also improves the effectiveness of advertising and the efficiency of human-computer interaction.
本申请实施例提供了一种计算机设备,用于执行上述方法,该计算机设备可以实现为终端,下面对终端的结构进行介绍:This application provides a computer device for performing the above-described method. This computer device can be implemented as a terminal. The structure of the terminal is described below:
图10是本申请实施例提供的一种终端的结构示意图。该终端1000可以是:智能手机、平板电脑、笔记本电脑或台式电脑。终端1000还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。Figure 10 is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal 1000 can be a smartphone, tablet computer, laptop computer, or desktop computer. The terminal 1000 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
通常,终端1000包括有:一个或多个处理器1001和一个或多个存储器1002。Typically, terminal 1000 includes one or more processors 1001 and one or more memories 1002.
处理器1001可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1001可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1001也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1001可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责展示屏所需要展示的内容的渲染和绘制。一些实施例中,处理器1001还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Processor 1001 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1001 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1001 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1001 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
存储器1002可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1002还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1002中的非暂态的计算机可读存储介质用于存储至少一个计算机程序,该至少一个计算机程序用于被处理器1001所执行以实现本申请中方法实施例提供的内容项的展示方法。The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1002 are used to store at least one computer program, which is executed by the processor 1001 to implement the method for displaying content items provided in the method embodiments of this application.
在一些实施例中,终端1000还可选包括有:外围设备接口1003和至少一个外围设备。处理器1001、存储器1002和外围设备接口1003之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口1003相连。具体地,外围设备包括:射频电路1004、展示屏1005、摄像头组件1006、音频电路1007和电源1008中的至少一种。In some embodiments, the terminal 1000 may also optionally include: a peripheral device interface 1003 and at least one peripheral device. The processor 1001, memory 1002, and peripheral device interface 1003 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, and a power supply 1008.
外围设备接口1003可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1001和存储器1002。在一些实施例中,处理器1001、存储器1002和外围设备接口1003被集成在同一芯片或电路板上;在一些其他实施例中,处理器1001、存储器1002和外围设备接口1003中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。Peripheral device interface 1003 can be used to connect at least one I/O (Input/Output) related peripheral device to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002 and peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1001, memory 1002 and peripheral device interface 1003 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
射频电路1004用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1004通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1004将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1004包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。The radio frequency (RF) circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1004 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.
展示屏1005用于展示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当展示屏1005是触摸展示屏时,展示屏1005还具有采集在展示屏1005的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1001进行处理。此时,展示屏1005还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。Display screen 1005 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1005 is a touch screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1001 for processing. In this case, display screen 1005 can also be used to provide virtual buttons and/or a virtual keyboard, also known as soft buttons and/or a soft keyboard.
摄像头组件1006用于采集图像或视频。可选地,摄像头组件1006包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal.
音频电路1007可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1001进行处理,或者输入至射频电路1004以实现语音通信。The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 1001 for processing, or input to the radio frequency circuit 1004 to realize voice communication.
电源1008用于为终端1000中的各个组件进行供电。电源1008可以是交流电、直流电、一次性电池或可充电电池。The power supply 1008 is used to supply power to the various components in the terminal 1000. The power supply 1008 can be AC power, DC power, a disposable battery, or a rechargeable battery.
在一些实施例中,终端1000还包括有一个或多个传感器1009。该一个或多个传感器1009包括但不限于:加速度传感器1010、陀螺仪传感器1011、压力传感器1012、光学传感器1013以及接近传感器1014。In some embodiments, the terminal 1000 further includes one or more sensors 1009. The one or more sensors 1009 include, but are not limited to: an acceleration sensor 1010, a gyroscope sensor 1011, a pressure sensor 1012, an optical sensor 1013, and a proximity sensor 1014.
加速度传感器1010可以检测以终端1000建立的坐标系的三个坐标轴上的加速度大小。Accelerometer 1010 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established with terminal 1000.
陀螺仪传感器1011可以终端1000的机体方向及转动角度,陀螺仪传感器1011可以与加速度传感器1010协同采集用户对终端1000的3D动作。The gyroscope sensor 1011 can detect the orientation and rotation angle of the terminal 1000. The gyroscope sensor 1011 can work in conjunction with the accelerometer sensor 1010 to collect the user's 3D movements on the terminal 1000.
压力传感器1012可以设置在终端1000的侧边框和/或展示屏1005的下层。当压力传感器1012设置在终端1000的侧边框时,可以检测用户对终端1000的握持信号,由处理器1001根据压力传感器1012采集的握持信号进行左右手识别或快捷操作。当压力传感器1012设置在展示屏1005的下层时,由处理器1001根据用户对展示屏1005的压力操作,实现对UI界面上的可操作性控件进行控制。The pressure sensor 1012 can be installed on the side bezel of the terminal 1000 and/or on the lower layer of the display screen 1005. When the pressure sensor 1012 is installed on the side bezel of the terminal 1000, it can detect the user's grip signal on the terminal 1000, and the processor 1001 can perform left/right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1012. When the pressure sensor 1012 is installed on the lower layer of the display screen 1005, the processor 1001 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1005.
光学传感器1013用于采集环境光强度。在一个实施例中,处理器1001可以根据光学传感器1013采集的环境光强度,控制展示屏1005的展示亮度。An optical sensor 1013 is used to collect ambient light intensity. In one embodiment, a processor 1001 can control the display brightness of a display screen 1005 based on the ambient light intensity collected by the optical sensor 1013.
接近传感器1014用于采集用户与终端1000的正面之间的距离。The proximity sensor 1014 is used to detect the distance between the user and the front of the terminal 1000.
本领域技术人员可以理解,图10中示出的结构并不构成对终端1000的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art will understand that the structure shown in FIG10 does not constitute a limitation on the terminal 1000, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括计算机程序的存储器,上述计算机程序可由处理器执行以完成上述实施例中的内容项的展示方法。例如,该计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program that can be executed by a processor to complete the method for displaying content items in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
在示例性实施例中,还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括程序代码,该程序代码存储在计算机可读存储介质中,计算机设备的处理器从计算机可读存储介质读取该程序代码,处理器执行该程序代码,使得该计算机设备执行上述内容项的展示方法。In an exemplary embodiment, a computer program product or computer program is also provided, which includes program code stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the above-described method for displaying the content item.
在一些实施例中,本申请实施例所涉及的计算机程序可被部署在一个计算机设备上执行,或者在位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行,分布在多个地点且通过通信网络互连的多个计算机设备可以组成区块链系统。In some embodiments, the computer program involved in the present application embodiments may be deployed and executed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network. Multiple computer devices distributed in multiple locations and interconnected through a communication network may constitute a blockchain system.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
上述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims (20)
Publications (1)
| Publication Number | Publication Date |
|---|---|
| HK40100489A true HK40100489A (en) | 2024-05-03 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11823256B2 (en) | Virtual reality platform for retail environment simulation | |
| EP3835933A1 (en) | Product browsing method and apparatus, device and storage medium | |
| US12093704B2 (en) | Devices, methods, systems, and media for an extended screen distributed user interface in augmented reality | |
| US20170084084A1 (en) | Mapping of user interaction within a virtual reality environment | |
| KR102043274B1 (en) | Digital signage system for providing mixed reality content comprising three-dimension object and marker and method thereof | |
| CN113194329B (en) | Live interaction method, device, terminal and storage medium | |
| US20160035016A1 (en) | Method for experiencing multi-dimensional content in a virtual reality environment | |
| KR20210105558A (en) | Method, apparatus, and computer program for providing content based on user reaction related to video | |
| US12367004B2 (en) | System and method for simultaneously displaying multiple GUIs via the same display | |
| US20240185546A1 (en) | Interactive reality computing experience using multi-layer projections to create an illusion of depth | |
| CN116188738A (en) | Method, apparatus, device and storage medium for interaction in virtual environment | |
| CN111597359A (en) | Information stream sharing method, device, equipment and storage medium | |
| US20140229823A1 (en) | Display apparatus and control method thereof | |
| US20230334791A1 (en) | Interactive reality computing experience using multi-layer projections to create an illusion of depth | |
| US20190378335A1 (en) | Viewer position coordination in simulated reality | |
| Muhammad Nizam et al. | A Scoping Review on Tangible and Spatial Awareness Interaction Technique in Mobile Augmented Reality‐Authoring Tool in Kitchen | |
| CN117010965A (en) | Interaction method, device, equipment and medium based on information stream advertisement | |
| US20240212067A1 (en) | Interface display method and apparatus, device, and medium | |
| HK40100489A (en) | Display method for content item, device, equipment and storage medium | |
| US20230334792A1 (en) | Interactive reality computing experience using optical lenticular multi-perspective simulation | |
| US20230334790A1 (en) | Interactive reality computing experience using optical lenticular multi-perspective simulation | |
| Billinghurst | Foundations and TrendsR• in Human-Computer Interaction Vol. 8, No. 2-3 (2014) 73–272 c• 2015 M. Billinghurst, A. Clark, and G. Lee | |
| TWI718551B (en) | Method and system for displaying online content using stereoscopic images | |
| Apostolakis et al. | ‘Bring your own device’in VR: intuitive second-screen experiences in VR isolation | |
| CN117010955A (en) | Content item display method, device, equipment and storage medium |