[go: up one dir, main page]

CN114282081A - Media file display processing method and device, electronic equipment and readable storage medium - Google Patents

Media file display processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114282081A
CN114282081A CN202111612539.9A CN202111612539A CN114282081A CN 114282081 A CN114282081 A CN 114282081A CN 202111612539 A CN202111612539 A CN 202111612539A CN 114282081 A CN114282081 A CN 114282081A
Authority
CN
China
Prior art keywords
display
information
content
presentation
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111612539.9A
Other languages
Chinese (zh)
Inventor
张亚
孙玉海
张敬宇
杨云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Chongqing BOE Smart Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Chongqing BOE Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd, Chongqing BOE Smart Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202111612539.9A priority Critical patent/CN114282081A/en
Publication of CN114282081A publication Critical patent/CN114282081A/en
Priority to PCT/CN2022/122042 priority patent/WO2023124318A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The disclosure provides a media file display processing method and device, electronic equipment and a readable storage medium. A media file display processing method is applied to a display device, and comprises the following steps: acquiring a media file and a display requirement for the media file; determining the display state of the media file according to the display requirement and the state of the display device; and displaying the media file according to the display state. The embodiment of the disclosure can improve the compatibility and the applicability of media file display.

Description

媒体文件的展示处理方法、装置、电子设备和可读存储介质Method, apparatus, electronic device and readable storage medium for displaying and processing media files

技术领域technical field

本公开实施例涉及显示技术领域,尤其涉及一种媒体文件的展示处理方法、装置、电子设备和可读存储介质。Embodiments of the present disclosure relate to the field of display technologies, and in particular, to a method, apparatus, electronic device, and readable storage medium for displaying and processing media files.

背景技术Background technique

随着智慧城市、智慧金融、智慧园区等场景的打造,在这些场景中,通常会设置显示装置以呈现需要播放的媒体文件,所需展示的媒体文件可能是由内容平台定制并向各终端显示装置推送,然后由各终端显示装置发布展示的。然而每一内容平台的内容可能推送至多个存在差异的终端显示装置,每一终端显示装置也可能接收来自多个内容平台的内容推送,且多个内容平台推送的内容格式等参数之间也可能存在差异。With the creation of scenarios such as smart cities, smart finance, and smart parks, in these scenarios, display devices are usually set up to present the media files that need to be played. The media files to be displayed may be customized by the content platform and displayed to each terminal. device push, and then published and displayed by each terminal display device. However, the content of each content platform may be pushed to multiple terminal display devices with differences, and each terminal display device may also receive content pushes from multiple content platforms, and there may also be differences between parameters such as content formats pushed by multiple content platforms. has a difference.

发明内容SUMMARY OF THE INVENTION

本公开实施例提供一种媒体文件的展示处理方法、装置、电子设备和可读存储介质。Embodiments of the present disclosure provide a method, apparatus, electronic device, and readable storage medium for displaying and processing media files.

第一方面,本公开实施例提供了一种媒体文件的展示处理方法,应用于显示装置,所述方法包括以下步骤:In a first aspect, an embodiment of the present disclosure provides a method for displaying and processing media files, which is applied to a display device, and the method includes the following steps:

获取媒体文件以及对于所述媒体文件的展示要求;Obtain media files and display requirements for said media files;

根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态;Determine the presentation status of the media file according to the presentation requirement and the status of the display device;

根据所述展示状态展示所述媒体文件;presenting the media file according to the presentation state;

其中,所述展示要求包括媒体信息、展示页信息、内容容器信息和内容信息中一项或多项,所述媒体信息包括展示页的数量信息,每一所述展示页包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the presentation requirement includes one or more of media information, presentation page information, content container information and content information, the media information includes quantity information of presentation pages, and each presentation page includes at least one content container, The display page information includes definition information for the content container in the display page, the content container information is used to define the display state of the target content in the content container, and the content information is used to define the attribute of the target content .

在一些实施例中,所述展示要求包括媒体信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the presentation requirement includes media information, and the determining the presentation status of the media file according to the presentation requirement and the status of the display device includes:

获取所述媒体文件对应的节目信息,所述节目信息包括节目编号和节目名称中的至少一项;Obtain program information corresponding to the media file, where the program information includes at least one of a program number and a program name;

根据所述节目信息获取所述媒体文件的素材路径;Acquire the material path of the media file according to the program information;

基于所述素材路径确定各所述展示页的节目素材和背景素材,其中,所述背景素材包括背景音乐、背景图片和背景颜色中的一项或多项,在所述背景素材包括背景图片和背景颜色的情况下,所述背景图片的优先级高于所述背景颜色的优先级;The program material and background material of each display page are determined based on the material path, wherein the background material includes one or more of background music, background picture and background color, and the background material includes background picture and background material. In the case of a background color, the priority of the background image is higher than the priority of the background color;

生成包括各所述展示页的节目素材和背景素材的展示状态。A presentation state including program material and background material of each presentation page is generated.

在一些实施例中,所述展示要求还包括展示页信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the presentation requirement further includes presentation page information, and the determining the presentation status of the media file according to the presentation requirement and the status of the display device includes:

获取每一展示页的身份信息,所述身份信息包括展示页的编号和名称中的一项或多项;Acquiring identity information of each display page, the identity information including one or more of the number and name of the display page;

根据所述身份信息确定所述展示页中的内容容器的数量。The number of content containers in the presentation page is determined according to the identity information.

在一些实施例中,所述展示要求还包括内容容器信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the presentation requirement further includes content container information, and the determining the presentation status of the media file according to the presentation requirement and the status of the display device includes:

获取所述内容容器在媒体展示界面中的尺寸信息和位置信息,其中,所述尺寸信息包括第一比例,所述位置信息包括第二比例,其中,所述第一比例为所述内容容器的尺寸和所述媒体展示界面的比例,所述第二比例为所述内容容器的边缘与所述媒体展示界面的边缘之间的距离和所述媒体展示界面的尺寸的比例;Acquire size information and position information of the content container in the media display interface, where the size information includes a first scale, and the position information includes a second scale, where the first scale is the size of the content container The size and the ratio of the media display interface, the second ratio is the ratio of the distance between the edge of the content container and the edge of the media display interface and the size of the media display interface;

根据所述尺寸信息和所述显示装置的尺寸确定所述内容容器的显示尺寸,其中,所述显示尺寸包括第三比例,所述第一比例与所述第三比例相等,所述第三比例为所述内容容器的显示尺寸和所述显示装置的尺寸的比例;The display size of the content container is determined according to the size information and the size of the display device, wherein the display size includes a third scale, the first scale is equal to the third scale, and the third scale is the ratio of the display size of the content container to the size of the display device;

根据所述位置信息和所述显示装置的尺寸确定所述内容容器的显示位置,其中,所述显示位置包括第四比例,所述第四比例为所述内容容器的显示位置与所述显示装置的边缘之间距离和所述显示装置的尺寸的比例,所述第二比例和所述第四比例相等。The display position of the content container is determined according to the position information and the size of the display device, wherein the display position includes a fourth ratio, and the fourth ratio is the difference between the display position of the content container and the display device. The ratio of the distance between the edges and the size of the display device, the second ratio and the fourth ratio are equal.

在一些实施例中,所述展示页中的内容容器的数量为多个,所述展示状态包括所述展示页中各所述内容容器的显示层级、透明度和背景信息中的一项或多项。In some embodiments, the number of content containers in the presentation page is multiple, and the presentation status includes one or more of the display level, transparency and background information of each of the content containers in the presentation page .

在一些实施例中,展示要求还包括内容信息,每一所述目标内容的属性为图片、视频、网页、文本、文档和时钟内容中的一项;In some embodiments, the presentation requirement further includes content information, and the attribute of each target content is one of pictures, videos, web pages, texts, documents, and clock content;

所述内容信息包括所述目标内容的编号和名称中的至少一项,所述内容信息还把控所述目标内容的存储地址;The content information includes at least one of the number and name of the target content, and the content information also controls the storage address of the target content;

其中,在所述目标内容的属性为图片的情况下,所述展示状态包括所述目标内容的拉伸状态;Wherein, when the attribute of the target content is a picture, the display state includes a stretched state of the target content;

在所述目标内容的属性为视频的情况下,所述展示状态包括所述目标内容的播放音量和播放倍速中的一项或多项;In the case where the attribute of the target content is video, the display state includes one or more of the playback volume and playback speed of the target content;

在所述目标内容的属性为网页的情况下,所述展示状态包括所述目标内容的缩放比例;In the case that the attribute of the target content is a web page, the display state includes a zoom ratio of the target content;

在所述目标内容的属性为文本的情况下,所述展示状态包括所述目标内容的字体信息和背景信息中的一项或多项;In the case that the attribute of the target content is text, the display state includes one or more of font information and background information of the target content;

在所述目标内容的属性为文档的情况下,所述展示状态包括所述目标内容的翻页速度和缩放比例中的一项或多项;In the case where the attribute of the target content is a document, the display state includes one or more of a page turning speed and a zoom ratio of the target content;

在所述目标内容的属性为时钟内容的情况下,所述展示状态包括所述目标内容的字体信息和动画效果中的一项或多项。When the attribute of the target content is clock content, the presentation state includes one or more items of font information and animation effects of the target content.

在一些实施例中,所述展示要求还包括对于所述媒体信息、所述展示页信息、所述内容容器信息和所述内容信息中一项或多项的时间属性的定义;所述时间属性包括开始时间、结束时间、持续时间和延迟时长中的一项或多项。In some embodiments, the presentation requirements further include definitions of temporal attributes for one or more of the media information, the presentation page information, the content container information, and the content information; the temporal attributes Include one or more of start time, end time, duration, and delay duration.

在一些实施例中,所述媒体文件的格式为json字符串。In some embodiments, the format of the media file is a json string.

第二方面,本公开实施例还提供一种媒体文件的展示处理装置,包括:In a second aspect, an embodiment of the present disclosure further provides an apparatus for displaying and processing media files, including:

内容获取模块,用于获取媒体文件以及对于所述媒体文件的展示要求;a content acquisition module for acquiring media files and display requirements for the media files;

展示状态确定模块,用于根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态;a display state determination module, configured to determine the display state of the media file according to the display requirement and the state of the display device;

展示模块,用于根据所述展示状态展示所述媒体文件;a presentation module, configured to present the media file according to the presentation state;

其中,所述展示要求包括对于媒体信息、展示页信息、内容容器信息和内容信息中一项或多项的要求,所述媒体信息包括展示页的数量信息以及各所述展示页的展示时间,每一所述展示页包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the presentation requirements include requirements for one or more of media information, presentation page information, content container information, and content information, and the media information includes information on the number of presentation pages and presentation time of each presentation page, Each of the presentation pages includes at least one content container, the presentation page information includes definition information for the content container in the presentation page, the content container information is used to define the presentation state of the target content in the content container, and the The content information is used to define the attributes of the target content.

第三方面,本公开实施例还提供一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序;所述处理器,用于读取存储器中的程序实现如前述第一方面所述方法中的步骤。In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a memory, a processor, and a program stored on the memory and executable on the processor; the processor is configured to read the memory The program in implements the steps in the method as described in the aforementioned first aspect.

第四方面,本公开实施例还提供一种可读存储介质,用于存储程序,所述程序被处理器执行时实现如前述第一方面所述方法中的步骤。In a fourth aspect, an embodiment of the present disclosure further provides a readable storage medium for storing a program, and when the program is executed by a processor, the steps in the method according to the foregoing first aspect are implemented.

附图说明Description of drawings

为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments of the present disclosure. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.

图1是本公开一实施例提供的媒体文件的展示处理方法的流程示意图;1 is a schematic flowchart of a method for displaying and processing media files provided by an embodiment of the present disclosure;

图2是本公开一实施例中媒体文件的展示界面的场景图;2 is a scene diagram of a display interface of a media file in an embodiment of the present disclosure;

图3是本公开一实施例提供的媒体文件的展示处理装置的结构示意图;3 is a schematic structural diagram of an apparatus for displaying and processing media files provided by an embodiment of the present disclosure;

图4是本公开一实施提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an implementation of the present disclosure.

具体实施方式Detailed ways

下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.

本公开实施例中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。此外,本申请中使用“和/或”表示所连接对象的至少其中之一,例如A和/或B和/或C,表示包含单独A,单独B,单独C,以及A和B都存在,B和C都存在,A和C都存在,以及A、B和C都存在的7种情况。The terms "first", "second" and the like in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices. In addition, the use of "and/or" in this application means at least one of the connected objects, such as A and/or B and/or C, means A alone, B alone, C alone, and both A and B are present, Both B and C exist, both A and C exist, and 7 cases where A, B, and C all exist.

本公开实施例提供了一种媒体文件的展示处理方法。Embodiments of the present disclosure provide a method for displaying and processing media files.

在其中一些实施例中,该媒体文件的展示处理方法应用于显示装置,如图1所示,该方法包括以下步骤:In some of the embodiments, the method for displaying and processing the media file is applied to a display device. As shown in FIG. 1 , the method includes the following steps:

步骤101:获取媒体文件以及对于所述媒体文件的展示要求。Step 101: Acquire media files and display requirements for the media files.

步骤102:根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态。Step 102: Determine the presentation status of the media file according to the presentation requirement and the status of the display device.

步骤103:根据所述展示状态展示所述媒体文件。Step 103: Display the media file according to the display state.

本实施例中,针对所需展示的媒体文件设置展示要求,该展示要求包括媒体信息、展示页信息、内容容器信息和内容信息中一项或多项。In this embodiment, a presentation requirement is set for the media file to be presented, and the presentation requirement includes one or more of media information, presentation page information, content container information, and content information.

这里,媒体信息包括展示页的数量信息,本实施例中,媒体文件可以在一个或多个页面展示,每一展示页面被称作一个展示页。Here, the media information includes information on the number of display pages. In this embodiment, the media file may be displayed on one or more pages, and each display page is referred to as a display page.

每一展示页包括至少一个内容容器,内容素材可以是播放器实例等内容容器,媒体文件在内容容器中按照设定的规制进行展示。Each display page includes at least one content container, the content material may be a content container such as a player instance, and the media files are displayed in the content container according to the set regulations.

本公开实施例通过展示页信息定义展示页中内容容器的定义信息,该定义信息包括内容容器在展示页中的位置、内容容器的展示时间等相关定义,基于该定义信息,能够确定展示页中各内容容器的展示过程。In the embodiment of the present disclosure, the definition information of the content container in the display page is defined by the display page information, and the definition information includes relevant definitions such as the position of the content container in the display page and the display time of the content container. The presentation process of each content container.

内容容器信息用于定义目标内容在内容容器中的展示状态,需要理解的是,目标内容可以以不同的方式展示。示例性的,对于一段视频文件来说,可以循环播放,也可以单次播放。The content container information is used to define the display state of the target content in the content container. It should be understood that the target content can be displayed in different ways. Exemplarily, for a video file, it can be played in a loop or played in a single time.

内容信息用于定义目标内容的属性,针对不同的内容,可以以不同的方式进行展示,同时,还有其不同的展示需求,示例性的,对于图片文件来说,需要定义其展示顺序,而如果目标内容还包括视频文件,则还可能包括对于音量、播放倍速等相关调节的设定。通过明确目标内容的属性,能够实现对于目标内容展示过程更加准确的控制,有助于提高展示效果。The content information is used to define the attributes of the target content. Different content can be displayed in different ways. At the same time, there are also different display requirements. Exemplarily, for image files, the display order needs to be defined. If the target content also includes video files, it may also include settings for related adjustments such as volume and playback speed. By clarifying the attributes of the target content, more accurate control over the display process of the target content can be achieved, which helps to improve the display effect.

本实施例的技术方案中,通过媒体信息、展示页信息、内容容器信息和内容信息之间的相互组合,能够从简单到复杂的完成对于不同类型媒体文件的展示状态的定义,基于所确定的展示状态,作为展示终端的显示装置可以在满足展示状态的情况下,根据显示装置的性能参数等对媒体文件进行编排、调整、转码等操作,这样,基于内容平台发送的媒体文件能够有效的适应不同的显示装置,而显示装置对于基于不同的操作系统、编码格式等推送的媒体文件可以根据自身的性能参数等自行进行转码编排处理,同样能够按照展示要求进行展示,提高了兼容性和适用性。In the technical solution of this embodiment, through the combination of media information, display page information, content container information and content information, the definition of the display states of different types of media files can be completed from simple to complex, based on the determined Display state, the display device as the display terminal can arrange, adjust, and transcode media files according to the performance parameters of the display device under the condition of satisfying the display state. In this way, the media files sent based on the content platform can effectively Adapt to different display devices, and display devices can transcode and arrange media files pushed based on different operating systems, encoding formats, etc. according to their own performance parameters, etc., and can also display according to display requirements, which improves compatibility and applicability.

在一些实施例中,所述展示要求包括媒体信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the presentation requirement includes media information, and the determining the presentation status of the media file according to the presentation requirement and the status of the display device includes:

获取所述媒体文件对应的节目信息,所述节目信息包括节目编号和节目名称中的至少一项;Obtain program information corresponding to the media file, where the program information includes at least one of a program number and a program name;

根据所述节目信息获取所述媒体文件的素材路径;Acquire the material path of the media file according to the program information;

基于所述素材路径确定各所述展示页的节目素材和背景素材;Determine the program material and background material of each of the presentation pages based on the material path;

生成包括各所述展示页的节目素材和背景素材的展示状态。A presentation state including program material and background material of each presentation page is generated.

如表1所示,本实施例中对于媒体信息的定义主要包括以下内容。As shown in Table 1, the definition of media information in this embodiment mainly includes the following contents.

表1:媒体信息的定义Table 1: Definition of Media Information

属性名称property name 描述内容Description 节目编号program number 唯一编号,用于和其它节目的区分Unique number, used to distinguish it from other programs 节目名称name of the show 用于显著表示节目内容的名称The name used to prominently indicate the content of the program 素材路径material path 用于存储节目素材资源的相对路径Relative path used to store program assets 持续时长duration 设置节目呈现持续时间,单位:秒Set the program presentation duration, unit: seconds 背景颜色background color 定义节目呈现的背景,节目背景图未设置时有效。Defines the background of the program presentation. It is valid when the program background image is not set. 背景图片Background picture 定义节目背景图,优先级高于背景颜色。Define the background image of the program, the priority is higher than the background color. 背景音乐Background music 节目的背景音乐program background music 音量volume 呈现节目时的音量The volume at which the program is presented 是否静音mute 播放节目时是否静音Whether to mute the program when playing 展示页Show page 此节目包含的展示页内容,可以为一张或多张。The content of the show page contained in this program can be one or more.

本实施例中,每一媒体文件的节目信息包括唯一的节目编号和节目名称,基于媒体文件的节目信息,能够对该媒体文件进行识别和区分。In this embodiment, the program information of each media file includes a unique program number and program name, and the media file can be identified and distinguished based on the program information of the media file.

媒体文件所需的素材保存在特定的存储空间中,实施时,可以基于节目信息访问素材路径以获取相关素材。相关素材具体包括节目素材和背景素材,其中,节目素材指的是与内容相关的素材,而背景素材指的是形成媒体文件的节目背景的素材,示例性的,可以是背景音乐、背景图片和背景颜色中的一项或多项。其中,在背景素材包括背景图片和背景颜色的情况下,背景图片的优先级高于背景颜色的优先级,可以理解为,优先使用图片作为媒体文件的节目背景,如果没有背景图片,则根据媒体信息使用选定颜色的背景。The material required by the media file is stored in a specific storage space. During implementation, the material path can be accessed based on the program information to obtain the relevant material. The related materials specifically include program materials and background materials, where the program materials refer to the materials related to the content, and the background materials refer to the materials that form the program background of the media file, exemplarily, can be background music, background pictures and One or more of the background colors. Among them, when the background material includes a background image and a background color, the priority of the background image is higher than that of the background color. It can be understood that the image is preferentially used as the program background of the media file. The message uses the background of the selected color.

持续时长用于定义该媒体文件对应的节目的播放总时长。The duration is used to define the total playing duration of the program corresponding to the media file.

媒体信息还可以包括对于音量和是否静音的设置,从而可以确定媒体文件的整体展示音量和静音状态。The media information may also include settings for volume and whether to mute, so that the overall presentation volume and mute state of the media file can be determined.

每一媒体文件对应的节目可以通过一个展示页或多个展示页展示。The program corresponding to each media file can be displayed through one display page or multiple display pages.

在一些实施例中,所述展示要求还包括展示页信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the presentation requirement further includes presentation page information, and the determining the presentation status of the media file according to the presentation requirement and the status of the display device includes:

获取每一展示页的身份信息,所述身份信息包括展示页的编号和名称中的一项或多项;Acquiring identity information of each display page, the identity information including one or more of the number and name of the display page;

根据所述身份信息确定所述展示页中的内容容器的数量。The number of content containers in the presentation page is determined according to the identity information.

表2:展示页信息的定义Table 2: Definition of Display Page Information

属性名称property name 描述内容Description 编号Numbering 用于一个节目中多页For multiple pages in a program 名称name 此页的名称the name of this page 持续时间duration 本页内容单次呈现的时长,单位:秒The duration of a single presentation of the content of this page, unit: seconds 容器列表container list 包含一个或多个内容容器Contains one or more content containers 背景音乐Background music 呈现时的背景音乐Background music when presented 音量volume 呈现时的音量volume when rendered 是否静音mute 呈现内容时是否静音Whether to mute when rendering content

本实施例中,针对每一展示页,同样设置了唯一对应的身份信息,该身份信息包括编号和名称中的一项或多项。In this embodiment, unique corresponding identity information is also set for each display page, and the identity information includes one or more items of number and name.

展示页信息中的持续时间用于定义每一展示页的展示时长。The duration in the display page information is used to define the display time of each display page.

如图2所示,展示页中的内容容器的数量可以是一个或多个,每一展示页对应的容器列表中记载了该展示页中包含的全部内容容器。这样,基于该容器列表,能够确定位于内容容器所在的展示页以及各展示页中的内容容器数量。As shown in FIG. 2 , the number of content containers in the presentation page may be one or more, and the container list corresponding to each presentation page records all the content containers included in the presentation page. In this way, based on the container list, the presentation page where the content container is located and the number of content containers in each presentation page can be determined.

在一些实施例中,所述展示要求还包括内容容器信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the presentation requirement further includes content container information, and the determining the presentation status of the media file according to the presentation requirement and the status of the display device includes:

获取所述内容容器在媒体展示界面中的尺寸信息和位置信息,其中,所述尺寸信息包括第一比例,所述位置信息包括第二比例,其中,所述第一比例为所述内容容器的尺寸和所述媒体展示界面的比例,所述第二比例为所述内容容器的边缘与所述媒体展示界面的边缘之间的距离和所述媒体展示界面的尺寸的比例;Acquire size information and position information of the content container in the media display interface, where the size information includes a first scale, and the position information includes a second scale, wherein the first scale is the size of the content container The size and the ratio of the media display interface, and the second ratio is the ratio of the distance between the edge of the content container and the edge of the media display interface and the size of the media display interface;

根据所述尺寸信息和所述显示装置的尺寸确定所述内容容器的显示尺寸,其中,所述显示尺寸包括第三比例,所述第一比例与所述第三比例相等,所述第三比例为所述内容容器的显示尺寸和所述显示装置的尺寸的比例;The display size of the content container is determined according to the size information and the size of the display device, wherein the display size includes a third scale, the first scale is equal to the third scale, and the third scale is the ratio of the display size of the content container to the size of the display device;

根据所述位置信息和所述显示装置的尺寸确定所述内容容器的显示位置,其中,所述显示位置包括第四比例,所述第四比例为所述内容容器的显示位置与所述显示装置的边缘之间距离和所述显示装置的尺寸的比例,所述第二比例和所述第四比例相等。The display position of the content container is determined according to the position information and the size of the display device, wherein the display position includes a fourth ratio, and the fourth ratio is the difference between the display position of the content container and the display device. The ratio of the distance between the edges and the size of the display device, the second ratio and the fourth ratio are equal.

在一些实施例中,所述展示页中的内容容器的数量为多个,所述展示状态包括所述展示页中各所述内容容器的显示层级、透明度和背景信息中的一项或多项。In some embodiments, the number of content containers in the presentation page is multiple, and the presentation status includes one or more of the display level, transparency, and background information of each of the content containers in the presentation page .

表3:内容容器信息定义Table 3: Content Container Information Definitions

Figure BDA0003435479650000081
Figure BDA0003435479650000081

Figure BDA0003435479650000091
Figure BDA0003435479650000091

本实施例中进一步根据边距定义内容容器的尺寸以及在展示页中的位置。In this embodiment, the size of the content container and the position on the display page are further defined according to the margin.

需要理解的是,不同显示装置的尺寸是不同的,为了使用不同尺寸的显示装置,本实施例中基于比例对内容容器尺寸和位置进行定义。It should be understood that the sizes of different display devices are different. In order to use display devices of different sizes, in this embodiment, the size and position of the content container are defined based on proportions.

媒体展示界面指的是内容发布平台所发布的原始媒体文件对应的展示状态,本公开实施例以比例对内容容器尺寸信息和位置信息进行定义。The media display interface refers to the display state corresponding to the original media file published by the content publishing platform, and the embodiment of the present disclosure defines the size information and position information of the content container in proportion.

示例性的,对于尺寸信息来说,本实施例中计算内容容器的尺寸和媒体展示界面的总尺寸之间的比例,记做第一比例,当在显示装置上显示时,获取显示装置的尺寸,然后计算内容容器在显示装置上的显示尺寸,这里,显示尺寸和显示装置的尺寸之间的比例为第三比例,这样,在第一比例和第三比例相等的情况下,内容容器在媒体展示界面中占据的面积比例和在显示装置上显示时是一致的。Exemplarily, for the size information, in this embodiment, the ratio between the size of the content container and the total size of the media display interface is calculated and recorded as the first ratio, and when displayed on the display device, the size of the display device is obtained. , and then calculate the display size of the content container on the display device. Here, the ratio between the display size and the size of the display device is the third ratio. In this way, when the first ratio and the third ratio are equal, the content container is displayed on the media The proportion of the area occupied in the display interface is consistent with that displayed on the display device.

实施时,可以根据像素和分辨率的关系计算各比例关系,也可以基于长度百分百的方式计算各比例关系。During implementation, each proportional relationship may be calculated based on the relationship between pixels and resolution, or each proportional relationship may be calculated based on a percentage of length.

本实施例中,还能够确定内容容器的显示位置,这里显示位置包括内容容器与显示装置的上、下、左、右等各边缘之间的距离。具体计算过程可参考上述过程,此处不再赘述。In this embodiment, the display position of the content container can also be determined, where the display position includes the distance between the content container and the upper, lower, left and right edges of the display device. For the specific calculation process, reference may be made to the above process, which will not be repeated here.

这样,无论显示装置的尺寸如何,本公开实施例能够确保内容容器在画面中的尺寸比例和相对位置是相同的。In this way, regardless of the size of the display device, the embodiments of the present disclosure can ensure that the size ratio and relative position of the content container in the screen are the same.

显示层级用于确定不同内容容器的堆叠顺序,当两个内容容器的位置上存在重叠时,位于上方的内容容器覆盖位于下方的内容容器,会对下方的内容容器的界面造成一定的遮挡。The display level is used to determine the stacking order of different content containers. When the positions of two content containers overlap, the content container at the top covers the content container at the bottom, which will block the interface of the content container at the bottom.

透明度用于调整内容容器的透明度,以调整内容容器对于背景的遮挡效果。Transparency is used to adjust the transparency of the content container to adjust the occlusion effect of the content container on the background.

本实施例中还可以对内容容器的背景、边框尺寸、边框颜色等状态参数进行限定。In this embodiment, status parameters such as the background, frame size, and frame color of the content container may also be limited.

持续时长和延迟时长字段用于定义内容容器的显示时长和延迟展示的时长。The Duration and Delay fields define how long the content container is displayed and how long it is delayed.

在一些实施例中,展示要求还包括内容信息,每一所述目标内容的属性为图片、视频、网页、文本、文档和时钟内容中的一项;In some embodiments, the presentation requirement further includes content information, and the attribute of each target content is one of pictures, videos, web pages, texts, documents, and clock content;

表4:内容信息的定义Table 4: Definition of Content Information

Figure BDA0003435479650000101
Figure BDA0003435479650000101

所述内容信息包括所述目标内容的编号和名称中的至少一项,所述内容信息还把控所述目标内容的存储地址。The content information includes at least one of the number and name of the target content, and the content information also controls the storage address of the target content.

本实施例中,持续时间字段用于定义内容信息的持续时间,背景音乐、音量、是否静音则用于定义声音相关信息。In this embodiment, the duration field is used to define the duration of the content information, and the background music, volume, and whether to mute or not are used to define sound-related information.

如表5所示,在目标内容的属性为图片的情况下,展示状态包括目标内容的拉伸状态。As shown in Table 5, when the attribute of the target content is a picture, the display state includes the stretched state of the target content.

表5:图片内容的描述信息Table 5: Description of image content

Figure BDA0003435479650000111
Figure BDA0003435479650000111

针对图片素材,可以设置不同的拉伸状态,以满足显示要求。For picture materials, different stretch states can be set to meet display requirements.

如表6所示,在目标内容的属性为视频的情况下,展示状态包括目标内容的播放音量和播放倍速中的一项或多项。As shown in Table 6, when the attribute of the target content is video, the presentation state includes one or more items of playback volume and playback speed of the target content.

表6:视频内容的描述信息Table 6: Description of video content

属性名称property name 描述内容Description 素材源material source 指定素材的地址Specify the address of the material 音量volume 视频播放的音量Video playback volume 速率rate 视频播放的倍速Video playback speed

针对视频素材,可以设置其播放音量和播放倍速。For video material, you can set its playback volume and playback speed.

如表7所示,在目标内容的属性为网页的情况下,展示状态包括目标内容的缩放比例。As shown in Table 7, when the attribute of the target content is a web page, the display state includes the zoom ratio of the target content.

表7:网页内容的描述信息Table 7: Description of web content

属性名称property name 描述内容Description 网址URL 网页的地址web page address 缩放比例scaling ratio 网页呈现时的缩放比例The zoom factor when the page is rendered

针对网页素材,可以设置网页的缩放比例。For web material, you can set the zoom ratio of the web page.

如表8所示,在目标内容的属性为文档的情况下,展示状态包括目标内容的翻页速度和缩放比例中的一项或多项;As shown in Table 8, when the attribute of the target content is a document, the display state includes one or more of the page turning speed and the zoom ratio of the target content;

表8:文档内容的描述信息Table 8: Description of document content

Figure BDA0003435479650000112
Figure BDA0003435479650000112

Figure BDA0003435479650000121
Figure BDA0003435479650000121

针对文档素材,可以设置文档的翻页速度和缩放比例。For document material, you can set the page turning speed and zoom ratio of the document.

如表9所示,在目标内容的属性为文本的情况下,展示状态包括目标内容的字体信息和背景信息中的一项或多项。As shown in Table 9, when the attribute of the target content is text, the presentation state includes one or more items of font information and background information of the target content.

表9:文本内容的描述信息Table 9: Description of text content

Figure BDA0003435479650000122
Figure BDA0003435479650000122

Figure BDA0003435479650000131
Figure BDA0003435479650000131

针对文本素材,可以设置字体信息和背景信息,其中,字体信息具体包括颜色、字体、字号、粗细、样式、对齐方式、行距等,背景信息主要包括背景颜色等相关内容,为了提高文本素材的展示效果,还可以选择控制文本素材进行滚动展示,并进一步设置滚动方式和滚动速度等相关参数。For text materials, you can set font information and background information. The font information specifically includes color, font, font size, thickness, style, alignment, line spacing, etc. The background information mainly includes background color and other related content. In order to improve the display of text materials You can also choose to control the text material for scrolling display, and further set relevant parameters such as scrolling mode and scrolling speed.

如表10所示,在目标内容的属性为时钟内容的情况下,展示状态包括目标内容的字体信息和动画效果中的一项或多项。As shown in Table 10, when the attribute of the target content is the clock content, the presentation state includes one or more items of font information and animation effects of the target content.

表10:时钟内容的描述信息Table 10: Description of clock contents

Figure BDA0003435479650000132
Figure BDA0003435479650000132

Figure BDA0003435479650000141
Figure BDA0003435479650000141

这里,时钟内容指的是在媒体文件的展示界面上显示一个指示时间的时钟,时钟可以用于正常计时,也可以用于倒计时,具体可以通过时间类型字段定义,时钟的文本的定义方式可以参考上述文本内容。Here, the clock content refers to displaying a clock indicating the time on the display interface of the media file. The clock can be used for normal timing or countdown, which can be defined by the time type field. For the definition method of the clock text, please refer to the above text.

在一些实施例中,如表11所示,所述展示要求还包括对于所述媒体信息、所述展示页信息、所述内容容器信息和所述内容信息中一项或多项的时间属性的定义;所述时间属性包括开始时间、结束时间、持续时间和延迟时长中的一项或多项。In some embodiments, as shown in Table 11, the presentation requirements further include a temporal attribute for one or more of the media information, the presentation page information, the content container information, and the content information. Definition; the time attribute includes one or more of start time, end time, duration and delay duration.

表11:时间属性定义Table 11: Time attribute definitions

Figure BDA0003435479650000142
Figure BDA0003435479650000142

Figure BDA0003435479650000151
Figure BDA0003435479650000151

参照表11,通过为相应的字段定义不同的取值,从而能够实现对于媒体信息、展示页信息、内容容器信息和内容信息的时间属性的定义。Referring to Table 11, by defining different values for corresponding fields, the definition of media information, presentation page information, content container information, and time attributes of content information can be realized.

在一些实施例中,所述媒体文件的格式为json字符串,以提高展示要文件传输和实用的通用性。In some embodiments, the format of the media file is a json string, so as to improve the versatility of file transfer and practicality.

本公开实施例还提供一种媒体文件的展示处理装置。Embodiments of the present disclosure also provide a display processing apparatus for media files.

如图3所示,在一个实施例中,该媒体文件的展示处理装置300包括:As shown in FIG. 3, in one embodiment, the display processing apparatus 300 of the media file includes:

内容获取模块301,用于获取媒体文件以及对于所述媒体文件的展示要求;A content acquisition module 301, configured to acquire media files and display requirements for the media files;

展示状态确定模块302,用于根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态;a presentation status determination module 302, configured to determine the presentation status of the media file according to the presentation requirement and the status of the display device;

展示模块303,用于根据所述展示状态展示所述媒体文件;A presentation module 303, configured to present the media file according to the presentation state;

其中,所述展示要求包括对于媒体信息、展示页信息、内容容器信息和内容信息中一项或多项的要求,所述媒体信息包括展示页的数量信息以及各所述展示页的展示时间,每一所述展示页包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the presentation requirements include requirements for one or more of media information, presentation page information, content container information, and content information, and the media information includes information on the number of presentation pages and presentation time of each presentation page, Each of the presentation pages includes at least one content container, the presentation page information includes definition information for the content container in the presentation page, the content container information is used to define the presentation state of the target content in the content container, and the The content information is used to define the attributes of the target content.

在一些实施例中,所述展示要求包括媒体信息,所述展示状态确定模块302具体用于:In some embodiments, the presentation requirement includes media information, and the presentation state determining module 302 is specifically configured to:

获取所述媒体文件对应的节目信息,所述节目信息包括节目编号和节目名称中的至少一项;Obtain program information corresponding to the media file, where the program information includes at least one of a program number and a program name;

根据所述节目信息获取所述媒体文件的素材路径;Acquire the material path of the media file according to the program information;

基于所述素材路径确定各所述展示页的节目素材和背景素材,其中,所述背景素材包括背景音乐、背景图片和背景颜色中的一项或多项,在所述背景素材包括背景图片和背景颜色的情况下,所述背景图片的优先级高于所述背景颜色的优先级;The program material and background material of each display page are determined based on the material path, wherein the background material includes one or more of background music, background picture and background color, and the background material includes background picture and background material. In the case of a background color, the priority of the background image is higher than the priority of the background color;

生成包括各所述展示页的节目素材和背景素材的展示状态。A presentation state including program material and background material of each presentation page is generated.

在一些实施例中,所述展示要求还包括展示页信息,所述展示状态确定模块302具体用于:In some embodiments, the presentation requirement further includes presentation page information, and the presentation status determination module 302 is specifically configured to:

获取每一展示页的身份信息,所述身份信息包括展示页的编号和名称中的一项或多项;Obtain the identity information of each display page, the identity information includes one or more of the number and name of the display page;

根据所述身份信息确定所述展示页中的内容容器的数量。The number of content containers in the presentation page is determined according to the identity information.

在一些实施例中,所述展示要求还包括内容容器信息,所述展示状态确定模块302具体用于:In some embodiments, the presentation requirement further includes content container information, and the presentation state determination module 302 is specifically configured to:

获取所述内容容器在媒体展示界面中的尺寸信息和位置信息,其中,所述尺寸信息包括第一比例,所述位置信息包括第二比例,其中,所述第一比例为所述内容容器的尺寸和所述媒体展示界面的比例,所述第二比例为所述内容容器的边缘与所述媒体展示界面的边缘之间的距离和所述媒体展示界面的尺寸的比例;Acquire size information and position information of the content container in the media display interface, where the size information includes a first scale, and the position information includes a second scale, where the first scale is the size of the content container The size and the ratio of the media display interface, the second ratio is the ratio of the distance between the edge of the content container and the edge of the media display interface and the size of the media display interface;

根据所述尺寸信息和所述显示装置的尺寸确定所述内容容器的显示尺寸,其中,所述显示尺寸包括第三比例,所述第一比例与所述第三比例相等,所述第三比例为所述内容容器的显示尺寸和所述显示装置的尺寸的比例;The display size of the content container is determined according to the size information and the size of the display device, wherein the display size includes a third scale, the first scale is equal to the third scale, and the third scale is the ratio of the display size of the content container to the size of the display device;

根据所述位置信息和所述显示装置的尺寸确定所述内容容器的显示位置,其中,所述显示位置包括第四比例,所述第四比例为所述内容容器的显示位置与所述显示装置的边缘之间距离和所述显示装置的尺寸的比例,所述第二比例和所述第四比例相等。The display position of the content container is determined according to the position information and the size of the display device, wherein the display position includes a fourth ratio, and the fourth ratio is the difference between the display position of the content container and the display device. The ratio between the distance between the edges and the size of the display device, the second ratio and the fourth ratio are equal.

在一些实施例中,所述展示页中的内容容器的数量为多个,所述展示状态包括所述展示页中各所述内容容器的显示层级、透明度和背景信息中的一项或多项。In some embodiments, the number of content containers in the presentation page is multiple, and the presentation status includes one or more of the display level, transparency and background information of each of the content containers in the presentation page .

在一些实施例中,展示要求还包括内容信息,每一所述目标内容的属性为图片、视频、网页、文本、文档和时钟内容中的一项;In some embodiments, the presentation requirement further includes content information, and the attribute of each target content is one of pictures, videos, web pages, texts, documents, and clock content;

所述内容信息包括所述目标内容的编号和名称中的至少一项,所述内容信息还把控所述目标内容的存储地址;The content information includes at least one of the number and name of the target content, and the content information also controls the storage address of the target content;

其中,在所述目标内容的属性为图片的情况下,所述展示状态包括所述目标内容的拉伸状态;Wherein, when the attribute of the target content is a picture, the display state includes a stretched state of the target content;

在所述目标内容的属性为视频的情况下,所述展示状态包括所述目标内容的播放音量和播放倍速中的一项或多项;In the case where the attribute of the target content is video, the display state includes one or more of the playback volume and playback speed of the target content;

在所述目标内容的属性为网页的情况下,所述展示状态包括所述目标内容的缩放比例;In the case that the attribute of the target content is a web page, the display state includes a zoom ratio of the target content;

在所述目标内容的属性为文本的情况下,所述展示状态包括所述目标内容的字体信息和背景信息中的一项或多项;In the case that the attribute of the target content is text, the display state includes one or more of font information and background information of the target content;

在所述目标内容的属性为文档的情况下,所述展示状态包括所述目标内容的翻页速度和缩放比例中的一项或多项;In the case where the attribute of the target content is a document, the display state includes one or more of a page turning speed and a zoom ratio of the target content;

在所述目标内容的属性为时钟内容的情况下,所述展示状态包括所述目标内容的字体信息和动画效果中的一项或多项。When the attribute of the target content is clock content, the presentation state includes one or more items of font information and animation effects of the target content.

在一些实施例中,所述展示要求还包括对于所述媒体信息、所述展示页信息、所述内容容器信息和所述内容信息中一项或多项的时间属性的定义;所述时间属性包括开始时间、结束时间、持续时间和延迟时长中的一项或多项。In some embodiments, the presentation requirements further include definitions of temporal attributes for one or more of the media information, the presentation page information, the content container information, and the content information; the temporal attributes Include one or more of start time, end time, duration, and delay duration.

在一些实施例中,所述媒体文件的格式为json字符串。In some embodiments, the format of the media file is a json string.

本实施例的媒体文件的展示处理装置300能够实现上述媒体文件的展示处理方法实施例的各个步骤,并能实现基本相同的技术效果,此处不再赘述。The apparatus 300 for displaying and processing a media file in this embodiment can implement the steps of the above-mentioned embodiments of the method for displaying and processing a media file, and can achieve basically the same technical effect, which is not repeated here.

本公开实施例还提供一种电子设备。请参见图4,电子设备可以包括处理器401、存储器402及存储在存储器402上并可在处理器401上运行的程序4021。Embodiments of the present disclosure also provide an electronic device. Referring to FIG. 4 , the electronic device may include a processor 401 , a memory 402 , and a program 4021 stored on the memory 402 and executable on the processor 401 .

在电子设备为终端的情况下,程序4021被处理器401执行时可实现图1对应的方法实施例中的任意步骤及达到相同的有益效果,此处不再赘述。When the electronic device is a terminal, when the program 4021 is executed by the processor 401, any steps in the method embodiment corresponding to FIG. 1 can be implemented and the same beneficial effects can be achieved, which will not be repeated here.

在电子设备为网络侧设备的情况下,程序4021被处理器401执行时可实现图4对应的方法实施例中的任意步骤及达到相同的有益效果,此处不再赘述。When the electronic device is a network-side device, when the program 4021 is executed by the processor 401, any steps in the method embodiment corresponding to FIG. 4 can be implemented and the same beneficial effects can be achieved, which will not be repeated here.

本领域普通技术人员可以理解实现上述实施例方法的全部或者部分步骤是可以通过程序指令相关的硬件来完成,所述的程序可以存储于一可读取介质中。Those of ordinary skill in the art can understand that all or part of the steps of implementing the methods of the above embodiments can be completed by program instructions related to hardware, and the program can be stored in a readable medium.

本公开实施例还提供一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时可实现上述图1对应的方法实施例中的任意步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present disclosure further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, any step in the method embodiment corresponding to FIG. 1 can be implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.

所述的存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

以上所述是本公开实施例的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above are the preferred implementations of the embodiments of the present disclosure. It should be pointed out that for those skilled in the art, without departing from the principles described in the present disclosure, several improvements and modifications can be made. These improvements and Retouching should also be considered within the scope of the present disclosure.

Claims (11)

1. A media file display processing method is applied to a display device and comprises the following steps:
acquiring a media file and a display requirement for the media file;
determining the display state of the media file according to the display requirement and the state of the display device;
displaying the media file according to the display state;
the display requirement comprises one or more of media information, display page information, content container information and content information, wherein the media information comprises number information of display pages, each display page comprises at least one content container, the display page information comprises content container definition information for the display pages, the content container information is used for defining the display state of target content in the content container, and the content information is used for defining the attribute of the target content.
2. The method of claim 1, wherein the presentation requirement includes media information, and the determining the presentation status of the media file from the presentation requirement and the status of the display device comprises:
acquiring program information corresponding to the media file, wherein the program information comprises at least one of a program number and a program name;
acquiring a material path of the media file according to the program information;
determining program materials and background materials of each display page based on the material paths, wherein the background materials comprise one or more of background music, a background picture and a background color, and the priority of the background picture is higher than that of the background color under the condition that the background materials comprise the background picture and the background color;
and generating a display state comprising the program material and the background material of each display page.
3. The method of claim 2, wherein the presentation requirement further comprises presentation page information, the determining a presentation status of the media file according to the presentation requirement and a status of the display device comprising:
acquiring identity information of each display page, wherein the identity information comprises one or more of the number and the name of the display page;
and determining the number of content containers in the display page according to the identity information.
4. The method of claim 3, wherein the presentation requirements further include content container information, the determining a presentation status of the media file from the presentation requirements and a status of the display device comprising:
acquiring size information and position information of the content container in a media display interface, wherein the size information comprises a first proportion, the position information comprises a second proportion, the first proportion is the size of the content container and the proportion of the media display interface, and the second proportion is the proportion of the distance between the edge of the content container and the edge of the media display interface and the size of the media display interface;
determining a display size of the content container according to the size information and a size of the display device, wherein the display size includes a third scale, the first scale is equal to the third scale, and the third scale is a ratio of the display size of the content container and the size of the display device;
determining a display position of the content container according to the position information and the size of the display device, wherein the display position comprises a fourth scale, the fourth scale is a ratio of a distance between the display position of the content container and an edge of the display device and the size of the display device, and the second scale and the fourth scale are equal.
5. The method of claim 4, wherein the number of content containers in the presentation page is multiple, and the presentation state comprises one or more of a display level, a transparency, and background information of each of the content containers in the presentation page.
6. The method of claim 4, wherein the presentation requirement further comprises content information, each of the target contents having an attribute of one of picture, video, web page, text, document and clock content;
the content information comprises at least one of the number and the name of the target content, and the content information also controls the storage address of the target content;
wherein, when the attribute of the target content is a picture, the display state comprises a stretching state of the target content;
in the case that the attribute of the target content is a video, the display state comprises one or more items of playing volume and playing speed of the target content;
under the condition that the attribute of the target content is a webpage, the display state comprises the scaling of the target content;
in the case that the attribute of the target content is a text, the display state includes one or more items of font information and background information of the target content;
under the condition that the attribute of the target content is a document, the display state comprises one or more items of page turning speed and scaling of the target content;
in a case where the attribute of the target content is clock content, the presentation state includes one or more of font information and an animation effect of the target content.
7. The method of any of claims 1-6, wherein the presentation requirements further include definitions of temporal attributes for one or more of the media information, the presentation page information, the content container information, and the content information; the time attributes include one or more of a start time, an end time, a duration, and a delay period.
8. The method of any of claims 1-6, wherein the media file is in the format of a json string.
9. A presentation processing apparatus for media files, comprising:
the content acquisition module is used for acquiring a media file and a display requirement for the media file;
the display state determining module is used for determining the display state of the media file according to the display requirement and the state of the display device;
the display module is used for displaying the media files according to the display state;
the display requirements comprise requirements for one or more of media information, display page information, content container information and content information, the media information comprises quantity information of display pages and display time of each display page, each display page comprises at least one content container, the display page information comprises content container definition information for the content containers in the display pages, the content container information is used for defining display states of target content in the content containers, and the content information is used for defining attributes of the target content.
10. An electronic device, comprising: a memory, a processor, and a program stored on the memory and executable on the processor; the processor is used for reading the program in the memory to realize the steps in the method for displaying and processing the media file according to any one of claims 1 to 8.
11. A readable storage medium storing a program which when executed by a processor implements the steps in the method of presentation processing of a media file as claimed in any one of claims 1 to 8.
CN202111612539.9A 2021-12-27 2021-12-27 Media file display processing method and device, electronic equipment and readable storage medium Pending CN114282081A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111612539.9A CN114282081A (en) 2021-12-27 2021-12-27 Media file display processing method and device, electronic equipment and readable storage medium
PCT/CN2022/122042 WO2023124318A1 (en) 2021-12-27 2022-09-28 Presentation processing method and apparatus for media file, and electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111612539.9A CN114282081A (en) 2021-12-27 2021-12-27 Media file display processing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114282081A true CN114282081A (en) 2022-04-05

Family

ID=80876098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111612539.9A Pending CN114282081A (en) 2021-12-27 2021-12-27 Media file display processing method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN114282081A (en)
WO (1) WO2023124318A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115412536A (en) * 2022-08-26 2022-11-29 京东方数字科技有限公司 Content display method and device, electronic equipment and readable storage medium
WO2023124318A1 (en) * 2021-12-27 2023-07-06 京东方科技集团股份有限公司 Presentation processing method and apparatus for media file, and electronic device and readable storage medium
CN118132042A (en) * 2023-12-29 2024-06-04 武汉亿纬储能有限公司 A page layout method, device and computer-readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118210931B (en) * 2024-04-22 2025-02-18 北京读上高楼文化科技有限公司 Knowledge graph-based interactive reading method, system, terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756768A (en) * 2017-11-08 2019-05-14 中国电信股份有限公司 Video stream processing method, device and video flowing display methods, device
CN112256221A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information display method and device and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101859766B1 (en) * 2009-12-23 2018-06-28 삼성전자주식회사 System and method for displaying document content using universal plug and play
CN104079978B (en) * 2014-06-27 2017-07-21 西安诺瓦电子科技有限公司 Window adaptive media playout method and device and media networking dissemination method
CN105528427B (en) * 2015-12-08 2019-05-10 腾讯科技(深圳)有限公司 Sharing method and device in media file processing method, social application
CN107294934B (en) * 2016-04-12 2020-11-27 腾讯科技(北京)有限公司 Media information display method, client, server and system
CN106095551B (en) * 2016-06-07 2020-10-30 腾讯科技(深圳)有限公司 Method and device for displaying media files
CN106101856B (en) * 2016-06-24 2019-05-24 腾讯科技(北京)有限公司 The playing method and device of media file
CN109587537B (en) * 2018-12-20 2021-06-01 聚好看科技股份有限公司 Display method, device and storage medium for multimedia files of smart TV
CN114282081A (en) * 2021-12-27 2022-04-05 京东方科技集团股份有限公司 Media file display processing method and device, electronic equipment and readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756768A (en) * 2017-11-08 2019-05-14 中国电信股份有限公司 Video stream processing method, device and video flowing display methods, device
CN112256221A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information display method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124318A1 (en) * 2021-12-27 2023-07-06 京东方科技集团股份有限公司 Presentation processing method and apparatus for media file, and electronic device and readable storage medium
CN115412536A (en) * 2022-08-26 2022-11-29 京东方数字科技有限公司 Content display method and device, electronic equipment and readable storage medium
CN118132042A (en) * 2023-12-29 2024-06-04 武汉亿纬储能有限公司 A page layout method, device and computer-readable storage medium

Also Published As

Publication number Publication date
WO2023124318A1 (en) 2023-07-06

Similar Documents

Publication Publication Date Title
CN114282081A (en) Media file display processing method and device, electronic equipment and readable storage medium
ES2866798T3 (en) Systems, methods, and interfaces for displaying online content and block-level content on an access device
WO2016200448A1 (en) Generating layout for content presentation structures
WO2017173781A1 (en) Video frame capturing method and device
CN102541819B (en) Electronic document reading mode processing method and device
JP2010511939A5 (en)
US20120216101A1 (en) Electronic reader system with bookmarking and method of operation thereof
CN110769300B (en) Method and equipment for presenting horizontal screen video in information stream
CN105373593B (en) The method and device of object element in a kind of displayed web page
CN108320319B (en) Cartoon synthesis method, device and equipment and computer readable storage medium
US20120013640A1 (en) Graphical representation of events
US10721519B2 (en) Automatic generation of network pages from extracted media content
CN111415396A (en) An image generation method, device and storage medium
JP2012123093A (en) Electronic book display device, method and program
US11119973B2 (en) Managing white space in a portal web page
CN108521578A (en) A method for detecting areas that can be textured in a video and implementing textures in the video
CN107748688A (en) A kind of information displaying method and device
WO2023087990A1 (en) Image display method and apparatus, computer device, and storage medium
US8543910B2 (en) Dog ear-based page turning for electronic documents
CN118227127A (en) Space occupation processing method and device and nonvolatile storage medium
CN115134663B (en) Information display method, device, system and electronic equipment
CN104125492B (en) Video broadcasting method and device
CN104731824A (en) Picture display method and picture display device
CN113691865A (en) A kind of multimedia playback method and system
CN100349203C (en) Co-screen displaying device supporting scale chracter shape and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220405