WO2023124318A1 - Presentation processing method and apparatus for media file, and electronic device and readable storage medium - Google Patents

Presentation processing method and apparatus for media file, and electronic device and readable storage medium Download PDF

Info

Publication number
WO2023124318A1
WO2023124318A1 PCT/CN2022/122042 CN2022122042W WO2023124318A1 WO 2023124318 A1 WO2023124318 A1 WO 2023124318A1 CN 2022122042 W CN2022122042 W CN 2022122042W WO 2023124318 A1 WO2023124318 A1 WO 2023124318A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
information
content
ratio
media
Prior art date
Application number
PCT/CN2022/122042
Other languages
French (fr)
Chinese (zh)
Inventor
张亚
孙玉海
张敬宇
杨云
Original Assignee
京东方科技集团股份有限公司
重庆京东方智慧科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司, 重庆京东方智慧科技有限公司 filed Critical 京东方科技集团股份有限公司
Publication of WO2023124318A1 publication Critical patent/WO2023124318A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/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

Definitions

  • the embodiments of the present disclosure relate to the field of display technologies, and in particular, to a method, device, electronic device, and readable storage medium for displaying and processing media files.
  • display devices are usually set up to present media files to be played, and the media files to be displayed may be customized by the content platform and displayed to each terminal
  • the device pushes, and then each terminal display device publishes and displays.
  • the content of each content platform may be pushed to multiple different terminal display devices, and each terminal display device may also receive content pushes from multiple content platforms, and the content format and other parameters pushed by multiple content platforms may also be different. has a difference.
  • Embodiments of the present disclosure provide a method and device for displaying and processing media files, an electronic device, and a readable storage medium.
  • 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:
  • the display requirement includes one or more items of media information, display page information, content container information, and content information
  • the media information includes information about the number of display pages
  • each display 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 status of the target content in the content container
  • the content information is used to define the attributes of the target content .
  • the display requirement includes media information
  • the determining the display status of the media file according to the display requirement and the state of the display device includes:
  • Acquire program information corresponding to the media file where the program information includes at least one of a program number and a program name;
  • the background material includes one or more of background music, background picture and background color, and the background material includes background picture and background color.
  • the priority of the background image is higher than that of the background color;
  • a display state including program material and background material of each display page is generated.
  • the display requirement further includes display page information
  • determining the display status of the media file according to the display requirement and the state of the display device includes:
  • identity information of each display page said identity information including one or more of the number and name of the display page;
  • the display requirement further includes content container information, and determining the display status of the media file according to the display requirement and the state of the display device includes:
  • the size information includes a first ratio
  • the position information includes a second ratio
  • the first ratio is the content container's The ratio between the size and the media display interface
  • the second ratio is the ratio between 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 includes a third ratio, the first ratio is equal to the third ratio, and the third ratio is the ratio of the display size of the content container to the size of the display device;
  • the display position includes a fourth ratio
  • 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.
  • the number of content containers in the display page is multiple, and the display state includes one or more of the display level, transparency and background information of each content container in the display page .
  • the presentation requirement further includes content information, and the attribute of each target content is one of picture, video, web page, text, document 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;
  • the display state includes the stretch state of the target content
  • the display state includes one or more of the playback volume and playback speed of the target content
  • the display state includes a zoom ratio of the target content
  • the display state includes one or more of font information and background information of the target content
  • the display state includes one or more of the target content's page turning speed and zoom ratio
  • the display state includes one or more of font information and animation effects of the target content.
  • the display requirement further includes a definition of time attributes for one or more of the media information, the display page information, the content container information, and the content information; the time attributes include one or more of start time, end time, duration, and delay length.
  • the format of the media file is a json string.
  • the embodiment of the present disclosure also provides a display processing device for media files, including:
  • a content acquisition module configured to acquire media files and display requirements for said media files
  • a display state determining module configured to determine the display state of the media file according to the display requirement and the state of the display device
  • a display module configured to display the media file according to the display state
  • the display requirements include requirements for one or more of media information, display page information, content container information, and content information
  • the media information includes information on the number of display pages and display time of each display page
  • Each display page includes at least one content container
  • the display page information includes content container definition information for the display page
  • the content container information is used to define the display state of the target content in the content container, so The content information is used to define the attributes of the target content.
  • the embodiment of the present disclosure also provides an electronic device, including: a memory, a processor, and a program stored on the memory and operable on the processor; the processor is used to read the memory
  • the program in implements the steps in the method described in the aforementioned first aspect.
  • the embodiments of the present disclosure further provide a readable storage medium for storing a program, and when the program is executed by a processor, the steps in the method described in the aforementioned first aspect are implemented.
  • FIG. 1 is a schematic flowchart of a method for displaying and processing media files provided by an embodiment of the present disclosure
  • Fig. 2 is a scene diagram of a display interface of a media file in an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a display processing device for media files provided by an embodiment of the present disclosure
  • Fig. 4 is a schematic structural diagram of an electronic device provided by an implementation of the present disclosure.
  • 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 sequence or sequence.
  • the terms “comprising” and “having”, as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
  • An embodiment of the present disclosure provides a method for displaying and processing media files.
  • the display processing method of the media file is applied to a display device, as shown in FIG. 1, the method includes the following steps:
  • Step 101 Obtain media files and presentation requirements for the media files.
  • Step 102 Determine the presentation status of the media file according to the presentation requirement and the status of the display device.
  • Step 103 Display the media file according to the display state.
  • display requirements are set for media files to be displayed, and the display requirements include one or more of media information, display page information, content container information, and content information.
  • the media information includes information about the number of display pages.
  • media files can be displayed on one or more pages, and each display page is called a display page.
  • Each display page includes at least one content container, and the content material may be a content container such as a player instance, and media files are displayed in the content container according to the set rules.
  • the content material may be a content container such as a player instance, and media files are displayed in the content container according to the set rules.
  • the embodiment of the present disclosure defines the definition information of the content container in the display page through the display page information.
  • the definition information includes related definitions such as the position of the content container in the display page and the display time of the content container. Based on the definition information, it is possible to determine the The display process of each content container.
  • the content container information is used to define the display status 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 in a single play.
  • 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 different display requirements. For example, for image files, the display order needs to be defined, and If the target content also includes video files, it may also include related adjustment settings such as volume and playback speed. By clarifying the attributes of the target content, more accurate control over the process of displaying the target content can be achieved, which helps to improve the display effect.
  • the display device as a display terminal can arrange, adjust, and transcode the media files according to the performance parameters of the display device when the display state is satisfied.
  • the media files sent based on the content platform can be effectively displayed.
  • the display device can perform transcoding and arrangement processing on its own according to its own performance parameters for media files pushed based on different operating systems, encoding formats, etc., and can also display according to display requirements, improving compatibility and applicability.
  • the display requirement includes media information
  • the determining the display status of the media file according to the display requirement and the state of the display device includes:
  • Acquire program information corresponding to the media file where the program information includes at least one of a program number and a program name;
  • a display state including program material and background material of each display page is generated.
  • the definition of media information in this embodiment mainly includes the following contents.
  • Background music program background music volume The volume at which the program is presented Whether to mute Whether to mute when playing the program display page
  • the content of the display page contained in this program can be one or more.
  • the program information of each media file includes a unique program number and program name, and the media files 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.
  • the material path can be accessed based on the program information to obtain the relevant material.
  • Relevant materials specifically include program materials and background materials, wherein, program materials refer to materials related to content, and background materials refer to materials that form the program background of media files. Exemplarily, they can be background music, background pictures and One or more of the background colors. Among them, when the background material includes background pictures and background colors, the priority of the background picture is higher than that of the background color. It can be understood that the picture is preferentially used as the program background of the media file.
  • the information 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 display volume and mute status of the media file may be determined.
  • the program corresponding to each media file can be displayed through one display page or multiple display pages.
  • the display requirement further includes display page information
  • determining the display status of the media file according to the display requirement and the state of the display device includes:
  • identity information of each display page said identity information including one or more of the number and name of the display page;
  • uniquely 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 how long each display page is displayed.
  • the number of content containers in the display page may be one or more, and the container list corresponding to each display page records all the content containers included in the display page. In this way, based on the container list, the display pages where the content containers are located and the quantity of content containers in each display page can be determined.
  • the display requirement further includes content container information, and determining the display status of the media file according to the display requirement and the state of the display device includes:
  • the size information includes a first ratio
  • the position information includes a second ratio
  • the first ratio is the content container's The ratio between the size and the media display interface
  • the second ratio is the ratio between 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 includes a third ratio, the first ratio is equal to the third ratio, and the third ratio is the ratio of the display size of the content container to the size of the display device;
  • the display position includes a fourth ratio
  • 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.
  • the number of content containers in the display page is multiple, and the display state includes one or more of the display level, transparency and background information of each content container in the display page .
  • the size of the content container and its position on the display page are further defined according to the margin.
  • the media display interface refers to the display status corresponding to the original media files released by the content publishing platform.
  • the embodiment of the present disclosure defines the size information and location information of the content container in proportion.
  • the ratio between the size of the content container and the total size of the media display interface is calculated, which is 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.
  • 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 in the media The proportion of the area occupied by the display interface is consistent with that displayed on the display device.
  • each proportional relationship can be calculated according to the relationship between the pixel and the resolution, or can be calculated based on the percentage of the length.
  • 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.
  • the display position includes the distance between the content container and the upper, lower, left, and right edges 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 upper content container covers the lower content container, which will block the interface of the lower content container to a certain extent.
  • Transparency is used to adjust the transparency of the content container to adjust the occlusion effect of the content container on the background.
  • state parameters such as the background, frame size, and frame color of the content container may also be limited.
  • the duration and delay fields are used to define the display duration and delay display duration of the content container.
  • the presentation requirement further includes content information, and the attribute of each target content is one of picture, video, web page, text, document 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.
  • the duration field is used to define the duration of the content information, and the background music, volume, and whether to mute are used to define sound-related information.
  • the presentation state includes the stretching state of the target content.
  • Table 5 Description information of picture content
  • the display state includes one or more of the playback volume and playback speed of the target content.
  • the display state includes the scaling ratio of the target content.
  • Table 7 Descriptive information of web page content
  • the display state includes one or more of the page turning speed and zoom ratio of the target content
  • material source Specify the address of the material Automatic page turning time The duration of rendering each page, unit: second scaling ratio Zoom factor when rendering file content
  • the display state includes one or more items of font information and background information of the target content.
  • font information and background information can be set.
  • font information specifically includes color, font, font size, thickness, style, alignment, line spacing, etc.
  • background information mainly includes background color and other related content.
  • the display state includes one or more items of font information and animation effects of the target content.
  • 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 through the time type field.
  • For the definition method of the clock text please refer to the above text content.
  • the display requirement further includes time attributes for one or more of the media information, the display 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 time.
  • the format of the media file is a json character string, so as to improve the universality of file transmission and practicality.
  • the embodiment of the present disclosure also provides an apparatus for displaying and processing media files.
  • the display processing device 300 of the media file includes:
  • a content acquisition module 301 configured to acquire media files and display requirements for the media files
  • a display state determining module 302 configured to determine the display state of the media file according to the display requirement and the state of the display device;
  • a display module 303 configured to display the media file according to the display state
  • the display requirements include requirements for one or more of media information, display page information, content container information, and content information
  • the media information includes information on the number of display pages and display time of each display page
  • Each display page includes at least one content container
  • the display page information includes content container definition information for the display page
  • the content container information is used to define the display state of the target content in the content container, so The content information is used to define the attributes of the target content.
  • the presentation requirement includes media information
  • the presentation status determination module 302 is specifically used for:
  • Acquire program information corresponding to the media file where the program information includes at least one of a program number and a program name;
  • the background material includes one or more of background music, background picture and background color, and the background material includes background picture and background color.
  • the priority of the background image is higher than that of the background color;
  • a display state including program material and background material of each display page is generated.
  • the display requirement also includes display page information, and the display status determination module 302 is specifically used to:
  • identity information of each display page said identity information including one or more of the number and name of the display page;
  • the presentation requirement also includes content container information, and the presentation status determination module 302 is specifically used to:
  • the size information includes a first ratio
  • the position information includes a second ratio
  • the first ratio is the content container's The ratio between the size and the media display interface
  • the second ratio is the ratio between 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 includes a third ratio, the first ratio is equal to the third ratio, and the third ratio is the ratio of the display size of the content container to the size of the display device;
  • the display position includes a fourth ratio
  • 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.
  • the number of content containers in the display page is multiple, and the display state includes one or more of the display level, transparency and background information of each content container in the display page .
  • the presentation requirement further includes content information, and the attribute of each target content is one of picture, video, web page, text, document 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;
  • the display state includes the stretch state of the target content
  • the display state includes one or more of the playback volume and playback speed of the target content
  • the display state includes a zoom ratio of the target content
  • the display state includes one or more of font information and background information of the target content
  • the display state includes one or more of the target content's page turning speed and zoom ratio
  • the display state includes one or more of font information and animation effects of the target content.
  • the display requirement further includes a definition of time attributes for one or more of the media information, the display page information, the content container information, and the content information; the time attributes include one or more of start time, end time, duration, and delay length.
  • the format of the media file is a json string.
  • the apparatus 300 for displaying and processing media files in this embodiment can implement the steps of the above-mentioned embodiment of the method for displaying and processing media files, and can achieve basically the same technical effect, which will not be repeated here.
  • the embodiment of the present disclosure also provides an electronic device.
  • the electronic device may include a processor 401 , a memory 402 and a program 4021 stored in the memory 402 and executable on the processor 401 .
  • the electronic device is a terminal
  • the program 4021 when executed by the processor 401, any steps in the method embodiment corresponding to FIG. 1 can be implemented and the same beneficial effect can be achieved, and details are not repeated here.
  • the electronic device is a network-side device
  • the program 4021 when executed by the processor 401, any steps in the method embodiment corresponding to FIG. 4 can be implemented and the same beneficial effect can be achieved, which will not be repeated here.
  • An embodiment of the present disclosure further provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any step in the above method embodiment corresponding to FIG. 1 can be implemented, and The same technical effect can be achieved, so in order to avoid repetition, details will not be repeated here.
  • 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.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • magnetic disk or an optical disk and the like.

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)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided in the present disclosure are a presentation processing method and apparatus for a media file, and an electronic device and a readable storage medium. The presentation processing method for a media file is applied to a display apparatus. The method comprises the following steps: acquiring a media file and a presentation requirement for the media file; determining a presentation state of the media file according to the presentation requirement and a state of a display apparatus; and presenting the media file according to the presentation state.

Description

媒体文件的展示处理方法、装置、电子设备和可读存储介质Media file display processing method, device, electronic device and readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请主张在2021年12月27日在中国提交的中国专利申请No.202111612539.9的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202111612539.9 filed in China on December 27, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本公开实施例涉及显示技术领域,尤其涉及一种媒体文件的展示处理方法、装置、电子设备和可读存储介质。The embodiments of the present disclosure relate to the field of display technologies, and in particular, to a method, device, 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 media files to be played, and the media files to be displayed may be customized by the content platform and displayed to each terminal The device pushes, and then each terminal display device publishes and displays. However, the content of each content platform may be pushed to multiple different terminal display devices, and each terminal display device may also receive content pushes from multiple content platforms, and the content format and other parameters pushed by multiple content platforms may also be different. has a difference.
发明内容Contents of the invention
本公开实施例提供一种媒体文件的展示处理方法、装置、电子设备和可读存储介质。Embodiments of the present disclosure provide a method and device for displaying and processing media files, an electronic device, and a readable storage medium.
第一方面,本公开实施例提供了一种媒体文件的展示处理方法,应用于显示装置,所述方法包括以下步骤: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:
获取媒体文件以及对于所述媒体文件的展示要求;Acquiring media files and display requirements for said media files;
根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态;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;
其中,所述展示要求包括媒体信息、展示页信息、内容容器信息和内容信息中一项或多项,所述媒体信息包括展示页的数量信息,每一所述展示页 包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the display requirement includes one or more items of media information, display page information, content container information, and content information, the media information includes information about the number of display pages, and each display 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 status of the target content in the content container, and the content information is used to define the attributes of the target content .
在一些实施例中,所述展示要求包括媒体信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the display requirement includes media information, and the determining the display status of the media file according to the display requirement and the state of the display device includes:
获取所述媒体文件对应的节目信息,所述节目信息包括节目编号和节目名称中的至少一项;Acquire program information corresponding to the media file, where the program information includes at least one of a program number and a program name;
根据所述节目信息获取所述媒体文件的素材路径;Acquiring the material path of the media file according to the program information;
基于所述素材路径确定各所述展示页的节目素材和背景素材,其中,所述背景素材包括背景音乐、背景图片和背景颜色中的一项或多项,在所述背景素材包括背景图片和背景颜色的情况下,所述背景图片的优先级高于所述背景颜色的优先级;Determine the program material and background material of each display page 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 color. In the case of a background color, the priority of the background image is higher than that of the background color;
生成包括各所述展示页的节目素材和背景素材的展示状态。A display state including program material and background material of each display page is generated.
在一些实施例中,所述展示要求还包括展示页信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the display requirement further includes display page information, and determining the display status of the media file according to the display requirement and the state of the display device includes:
获取每一展示页的身份信息,所述身份信息包括展示页的编号和名称中的一项或多项;Obtain the identity information of each display page, said identity information including one or more of the number and name of the display page;
根据所述身份信息确定所述展示页中的内容容器的数量。Determine the number of content containers in the display page according to the identity information.
在一些实施例中,所述展示要求还包括内容容器信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the display requirement further includes content container information, and determining the display status of the media file according to the display requirement and the state of the display device includes:
获取所述内容容器在媒体展示界面中的尺寸信息和位置信息,其中,所述尺寸信息包括第一比例,所述位置信息包括第二比例,其中,所述第一比例为所述内容容器的尺寸和所述媒体展示界面的比例,所述第二比例为所述内容容器的边缘与所述媒体展示界面的边缘之间的距离和所述媒体展示界面的尺寸的比例;Acquiring size information and position information of the content container in the media display interface, wherein the size information includes a first ratio, and the position information includes a second ratio, wherein the first ratio is the content container's The ratio between the size and the media display interface, the second ratio is the ratio between 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;
根据所述尺寸信息和所述显示装置的尺寸确定所述内容容器的显示尺寸,其中,所述显示尺寸包括第三比例,所述第一比例与所述第三比例相等,所述第三比例为所述内容容器的显示尺寸和所述显示装置的尺寸的比例;Determine the display size of the content container according to the size information and the size of the display device, wherein the display size includes a third ratio, the first ratio is equal to the third ratio, and the third ratio is the ratio of the display size of the content container to the size of the display device;
根据所述位置信息和所述显示装置的尺寸确定所述内容容器的显示位 置,其中,所述显示位置包括第四比例,所述第四比例为所述内容容器的显示位置与所述显示装置的边缘之间距离和所述显示装置的尺寸的比例,所述第二比例和所述第四比例相等。Determine the display position of the content container 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 display page is multiple, and the display state includes one or more of the display level, transparency and background information of each content container in the display page .
在一些实施例中,展示要求还包括内容信息,每一所述目标内容的属性为图片、视频、网页、文本、文档和时钟内容中的一项;In some embodiments, the presentation requirement further includes content information, and the attribute of each target content is one of picture, video, web page, text, document 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, in the case where the attribute of the target content is a picture, the display state includes the stretch state of the target content;
在所述目标内容的属性为视频的情况下,所述展示状态包括所述目标内容的播放音量和播放倍速中的一项或多项;In the case where the attribute of the target content is a video, the display state includes one or more of the playback volume and playback speed of the target content;
在所述目标内容的属性为网页的情况下,所述展示状态包括所述目标内容的缩放比例;In the case where the attribute of the target content is a webpage, the display state includes a zoom ratio of the target content;
在所述目标内容的属性为文本的情况下,所述展示状态包括所述目标内容的字体信息和背景信息中的一项或多项;When 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 the target content's page turning speed and zoom ratio;
在所述目标内容的属性为时钟内容的情况下,所述展示状态包括所述目标内容的字体信息和动画效果中的一项或多项。In the case that the attribute of the target content is clock content, the display state includes one or more of font information and animation effects of the target content.
在一些实施例中,所述展示要求还包括对于所述媒体信息、所述展示页信息、所述内容容器信息和所述内容信息中一项或多项的时间属性的定义;所述时间属性包括开始时间、结束时间、持续时间和延迟时长中的一项或多项。In some embodiments, the display requirement further includes a definition of time attributes for one or more of the media information, the display page information, the content container information, and the content information; the time attributes Include one or more of start time, end time, duration, and delay length.
在一些实施例中,所述媒体文件的格式为json字符串。In some embodiments, the format of the media file is a json string.
第二方面,本公开实施例还提供一种媒体文件的展示处理装置,包括:In the second aspect, the embodiment of the present disclosure also provides a display processing device for media files, including:
内容获取模块,用于获取媒体文件以及对于所述媒体文件的展示要求;A content acquisition module, configured to acquire media files and display requirements for said media files;
展示状态确定模块,用于根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态;a display state determining module, configured to determine the display state of the media file according to the display requirement and the state of the display device;
展示模块,用于根据所述展示状态展示所述媒体文件;a display module, configured to display the media file according to the display state;
其中,所述展示要求包括对于媒体信息、展示页信息、内容容器信息和内容信息中一项或多项的要求,所述媒体信息包括展示页的数量信息以及各所述展示页的展示时间,每一所述展示页包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the display requirements include requirements for one or more of media information, display page information, content container information, and content information, and the media information includes information on the number of display pages and display time of each display page, Each display page includes at least one content container, the display page information includes content container definition information for the display page, and the content container information is used to define the display state of the target content in the content container, so The content information is used to define the attributes of the target content.
第三方面,本公开实施例还提供一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序;所述处理器,用于读取存储器中的程序实现如前述第一方面所述方法中的步骤。In the third aspect, the embodiment of the present disclosure also provides an electronic device, including: a memory, a processor, and a program stored on the memory and operable on the processor; the processor is used to read the memory The program in implements the steps in the method described in the aforementioned first aspect.
第四方面,本公开实施例还提供一种可读存储介质,用于存储程序,所述程序被处理器执行时实现如前述第一方面所述方法中的步骤。In a fourth aspect, the embodiments of the present disclosure further provide a readable storage medium for storing a program, and when the program is executed by a processor, the steps in the method described in the aforementioned first aspect are implemented.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will briefly introduce the accompanying drawings that need to be 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 skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本公开一实施例提供的媒体文件的展示处理方法的流程示意图;FIG. 1 is a schematic flowchart of a method for displaying and processing media files provided by an embodiment of the present disclosure;
图2是本公开一实施例中媒体文件的展示界面的场景图;Fig. 2 is a scene diagram of a display interface of a media file in an embodiment of the present disclosure;
图3是本公开一实施例提供的媒体文件的展示处理装置的结构示意图;FIG. 3 is a schematic structural diagram of a display processing device for 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 following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are part of the embodiments of the present disclosure, not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without creative efforts 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 sequence or sequence. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus. 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 that A alone, B alone, C alone, and both A and B exist, Both B and C exist, both A and C exist, and there are 7 situations where A, B, and C all exist.
本公开实施例提供了一种媒体文件的展示处理方法。An embodiment of the present disclosure provides a method for displaying and processing media files.
在其中一些实施例中,该媒体文件的展示处理方法应用于显示装置,如图1所示,该方法包括以下步骤:In some of these embodiments, the display processing method of the media file is applied to a display device, as shown in FIG. 1, the method includes the following steps:
步骤101:获取媒体文件以及对于所述媒体文件的展示要求。Step 101: Obtain media files and presentation 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, display requirements are set for media files to be displayed, and the display requirements include one or more of media information, display page information, content container information, and content information.
这里,媒体信息包括展示页的数量信息,本实施例中,媒体文件可以在一个或多个页面展示,每一展示页面被称作一个展示页。Here, the media information includes information about the number of display pages. In this embodiment, media files can be displayed on one or more pages, and each display page is called a display page.
每一展示页包括至少一个内容容器,内容素材可以是播放器实例等内容容器,媒体文件在内容容器中按照设定的规制进行展示。Each display page includes at least one content container, and the content material may be a content container such as a player instance, and media files are displayed in the content container according to the set rules.
本公开实施例通过展示页信息定义展示页中内容容器的定义信息,该定义信息包括内容容器在展示页中的位置、内容容器的展示时间等相关定义,基于该定义信息,能够确定展示页中各内容容器的展示过程。The embodiment of the present disclosure defines the definition information of the content container in the display page through the display page information. The definition information includes related definitions such as the position of the content container in the display page and the display time of the content container. Based on the definition information, it is possible to determine the The display process of each content container.
内容容器信息用于定义目标内容在内容容器中的展示状态,需要理解的是,目标内容可以以不同的方式展示。示例性的,对于一段视频文件来说,可以循环播放,也可以单次播放。The content container information is used to define the display status 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 in a single play.
内容信息用于定义目标内容的属性,针对不同的内容,可以以不同的方式进行展示,同时,还有其不同的展示需求,示例性的,对于图片文件来说,需要定义其展示顺序,而如果目标内容还包括视频文件,则还可能包括对于音量、播放倍速等相关调节的设定。通过明确目标内容的属性,能够实现对于目标内容展示过程更加准确的控制,有助于提高展示效果。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 different display requirements. For example, for image files, the display order needs to be defined, and If the target content also includes video files, it may also include related adjustment settings such as volume and playback speed. By clarifying the attributes of the target content, more accurate control over the process of displaying 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 status of different types of media files can be completed from simple to complex, based on the determined In the display state, the display device as a display terminal can arrange, adjust, and transcode the media files according to the performance parameters of the display device when the display state is satisfied. In this way, the media files sent based on the content platform can be effectively displayed. Adapt to different display devices, and the display device can perform transcoding and arrangement processing on its own according to its own performance parameters for media files pushed based on different operating systems, encoding formats, etc., and can also display according to display requirements, improving compatibility and applicability.
在一些实施例中,所述展示要求包括媒体信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the display requirement includes media information, and the determining the display status of the media file according to the display requirement and the state of the display device includes:
获取所述媒体文件对应的节目信息,所述节目信息包括节目编号和节目名称中的至少一项;Acquire program information corresponding to the media file, where the program information includes at least one of a program number and a program name;
根据所述节目信息获取所述媒体文件的素材路径;Acquiring the material path of the media file according to the program information;
基于所述素材路径确定各所述展示页的节目素材和背景素材;determining the program material and background material of each display page based on the material path;
生成包括各所述展示页的节目素材和背景素材的展示状态。A display state including program material and background material of each display 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
属性名称attribute name 描述内容Description
节目编号program number 唯一编号,用于和其它节目的区分Unique number, used to distinguish from other programs
节目名称Name of programme 用于显著表示节目内容的名称A name used to prominently denote program content
素材路径material path 用于存储节目素材资源的相对路径The relative path used to store the show assets
持续时长Duration 设置节目呈现持续时间,单位:秒Set the program presentation duration, unit: second
背景颜色background color 定义节目呈现的背景,节目背景图未设置时有效。Define 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
是否静音Whether to mute 播放节目时是否静音Whether to mute when playing the program
展示页display page 此节目包含的展示页内容,可以为一张或多张。The content of the display 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 files 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. Relevant materials specifically include program materials and background materials, wherein, program materials refer to materials related to content, and background materials refer to materials that form the program background of media files. Exemplarily, they can be background music, background pictures and One or more of the background colors. Among them, when the background material includes background pictures and background colors, the priority of the background picture is higher than that of the background color. It can be understood that the picture is preferentially used as the program background of the media file. The information 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 display volume and mute status of the media file may be determined.
每一媒体文件对应的节目可以通过一个展示页或多个展示页展示。The program corresponding to each media file can be displayed through one display page or multiple display pages.
在一些实施例中,所述展示要求还包括展示页信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the display requirement further includes display page information, and determining the display status of the media file according to the display requirement and the state of the display device includes:
获取每一展示页的身份信息,所述身份信息包括展示页的编号和名称中的一项或多项;Obtain the identity information of each display page, said identity information including one or more of the number and name of the display page;
根据所述身份信息确定所述展示页中的内容容器的数量。Determine the number of content containers in the display page according to the identity information.
表2:展示页信息的定义Table 2: Definition of display page information
属性名称attribute name 描述内容Description
编号serial number 用于一个节目中多页for multiple pages in one program
名称name 此页的名称the name of this page
持续时间duration 本页内容单次呈现的时长,单位:秒The duration of a single rendering of the content of this page, unit: second
容器列表container list 包含一个或多个内容容器Contains one or more content containers
背景音乐Background music 呈现时的背景音乐Background music while presenting
音量volume 呈现时的音量volume when rendered
是否静音Whether to mute 呈现内容时是否静音Whether to mute the sound when rendering content
本实施例中,针对每一展示页,同样设置了唯一对应的身份信息,该身份信息包括编号和名称中的一项或多项。In this embodiment, uniquely 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 how long each display page is displayed.
如图2所示,展示页中的内容容器的数量可以是一个或多个,每一展示页对应的容器列表中记载了该展示页中包含的全部内容容器。这样,基于该容器列表,能够确定位于内容容器所在的展示页以及各展示页中的内容容器数量。As shown in FIG. 2 , the number of content containers in the display page may be one or more, and the container list corresponding to each display page records all the content containers included in the display page. In this way, based on the container list, the display pages where the content containers are located and the quantity of content containers in each display page can be determined.
在一些实施例中,所述展示要求还包括内容容器信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:In some embodiments, the display requirement further includes content container information, and determining the display status of the media file according to the display requirement and the state of the display device includes:
获取所述内容容器在媒体展示界面中的尺寸信息和位置信息,其中,所述尺寸信息包括第一比例,所述位置信息包括第二比例,其中,所述第一比例为所述内容容器的尺寸和所述媒体展示界面的比例,所述第二比例为所述内容容器的边缘与所述媒体展示界面的边缘之间的距离和所述媒体展示界面的尺寸的比例;Acquiring size information and position information of the content container in the media display interface, wherein the size information includes a first ratio, and the position information includes a second ratio, wherein the first ratio is the content container's The ratio between the size and the media display interface, the second ratio is the ratio between 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;
根据所述尺寸信息和所述显示装置的尺寸确定所述内容容器的显示尺寸,其中,所述显示尺寸包括第三比例,所述第一比例与所述第三比例相等,所述第三比例为所述内容容器的显示尺寸和所述显示装置的尺寸的比例;Determine the display size of the content container according to the size information and the size of the display device, wherein the display size includes a third ratio, the first ratio is equal to the third ratio, and the third ratio is the ratio of the display size of the content container to the size of the display device;
根据所述位置信息和所述显示装置的尺寸确定所述内容容器的显示位置,其中,所述显示位置包括第四比例,所述第四比例为所述内容容器的显示位置与所述显示装置的边缘之间距离和所述显示装置的尺寸的比例,所述第二比例和所述第四比例相等。Determine the display position of the content container 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 display page is multiple, and the display state includes one or more of the display level, transparency and background information of each content container in the display page .
表3:内容容器信息定义Table 3: Definition of content container information
Figure PCTCN2022122042-appb-000001
Figure PCTCN2022122042-appb-000001
Figure PCTCN2022122042-appb-000002
Figure PCTCN2022122042-appb-000002
本实施例中进一步根据边距定义内容容器的尺寸以及在展示页中的位 置。In this embodiment, the size of the content container and its position on the display page are further defined according to the margin.
需要理解的是,不同显示装置的尺寸是不同的,为了使用不同尺寸的显示装置,本实施例中基于比例对内容容器尺寸和位置进行定义。It should be understood that different display devices have different sizes. In order to use display devices with different sizes, the size and position of the content container are defined based on ratio in this embodiment.
媒体展示界面指的是内容发布平台所发布的原始媒体文件对应的展示状态,本公开实施例以比例对内容容器尺寸信息和位置信息进行定义。The media display interface refers to the display status corresponding to the original media files released by the content publishing platform. The embodiment of the present disclosure defines the size information and location 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, which is 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 in the media The proportion of the area occupied by the display interface is consistent with that displayed on the display device.
实施时,可以根据像素和分辨率的关系计算各比例关系,也可以基于长度百分百的方式计算各比例关系。During implementation, each proportional relationship can be calculated according to the relationship between the pixel and the resolution, or can be calculated based on the percentage of the 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-mentioned 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 upper content container covers the lower content container, which will block the interface of the lower content container to a certain extent.
透明度用于调整内容容器的透明度,以调整内容容器对于背景的遮挡效果。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, state parameters such as the background, frame size, and frame color of the content container may also be limited.
持续时长和延迟时长字段用于定义内容容器的显示时长和延迟展示的时长。The duration and delay fields are used to define the display duration and delay display duration of the content container.
在一些实施例中,展示要求还包括内容信息,每一所述目标内容的属性为图片、视频、网页、文本、文档和时钟内容中的一项;In some embodiments, the presentation requirement further includes content information, and the attribute of each target content is one of picture, video, web page, text, document and clock content;
表4:内容信息的定义Table 4: Definition of content information
Figure PCTCN2022122042-appb-000003
Figure PCTCN2022122042-appb-000003
所述内容信息包括所述目标内容的编号和名称中的至少一项,所述内容信息还把控所述目标内容的存储地址。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 are used to define sound-related information.
如表5所示,在目标内容的属性为图片的情况下,展示状态包括目标内容的拉伸状态。As shown in Table 5, when the attribute of the target content is an image, the presentation state includes the stretching state of the target content.
表5:图片内容的描述信息Table 5: Description information of picture content
Figure PCTCN2022122042-appb-000004
Figure PCTCN2022122042-appb-000004
针对图片素材,可以设置不同的拉伸状态,以满足显示要求。For image materials, different stretching states can be set to meet display requirements.
如表6所示,在目标内容的属性为视频的情况下,展示状态包括目标内容的播放音量和播放倍速中的一项或多项。As shown in Table 6, when the attribute of the target content is a video, the display state includes one or more of the playback volume and playback speed of the target content.
表6:视频内容的描述信息Table 6: Description information of video content
属性名称attribute name 描述内容Description
素材源material source 指定素材的地址Specify the address of the material
音量volume 视频播放的音量The volume of the video playback
速率rate 视频播放的倍速Double speed of video playback
针对视频素材,可以设置其播放音量和播放倍速。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 scaling ratio of the target content.
表7:网页内容的描述信息Table 7: Descriptive information of web page content
属性名称attribute name 描述内容Description
网址url 网页的地址URL of the web page
缩放比例scaling ratio 网页呈现时的缩放比例The zoom factor when the webpage is rendered
针对网页素材,可以设置网页的缩放比例。For webpage materials, you can set the zoom ratio of the webpage.
如表8所示,在目标内容的属性为文档的情况下,展示状态包括目标内容的翻页速度和缩放比例中的一项或多项;As shown in Table 8, in the case where the attribute of the target content is a document, the display state includes one or more of the page turning speed and zoom ratio of the target content;
表8:文档内容的描述信息Table 8: Description information of document content
属性名称attribute name 描述内容Description
素材源material source 指定素材的地址Specify the address of the material
自动翻页的时间Automatic page turning time 每页呈现的时长,单位:秒The duration of rendering each page, unit: second
缩放比例scaling ratio 文件内容呈现时的缩放比例Zoom factor when rendering file content
针对文档素材,可以设置文档的翻页速度和缩放比例。For document materials, 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 display state includes one or more items of font information and background information of the target content.
表9:文本内容的描述信息Table 9: Description information of text content
Figure PCTCN2022122042-appb-000005
Figure PCTCN2022122042-appb-000005
Figure PCTCN2022122042-appb-000006
Figure PCTCN2022122042-appb-000006
针对文本素材,可以设置字体信息和背景信息,其中,字体信息具体包括颜色、字体、字号、粗细、样式、对齐方式、行距等,背景信息主要包括背景颜色等相关内容,为了提高文本素材的展示效果,还可以选择控制文本 素材进行滚动展示,并进一步设置滚动方式和滚动速度等相关参数。For text materials, font information and background information can be set. Among them, font information specifically includes color, font, font size, thickness, style, alignment, line spacing, etc., and background information mainly includes background color and other related content. In order to improve the display of text materials effect, you can also choose to control the scrolling display of the text material, and further set related parameters such as scrolling mode and scrolling speed.
如表10所示,在目标内容的属性为时钟内容的情况下,展示状态包括目标内容的字体信息和动画效果中的一项或多项。As shown in Table 10, when the attribute of the target content is clock content, the display state includes one or more items of font information and animation effects of the target content.
表10:时钟内容的描述信息Table 10: Description information of the clock content
Figure PCTCN2022122042-appb-000007
Figure PCTCN2022122042-appb-000007
Figure PCTCN2022122042-appb-000008
Figure PCTCN2022122042-appb-000008
这里,时钟内容指的是在媒体文件的展示界面上显示一个指示时间的时钟,时钟可以用于正常计时,也可以用于倒计时,具体可以通过时间类型字段定义,时钟的文本的定义方式可以参考上述文本内容。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 through the time type field. For the definition method of the clock text, please refer to the above text content.
在一些实施例中,如表11所示,所述展示要求还包括对于所述媒体信息、所述展示页信息、所述内容容器信息和所述内容信息中一项或多项的时间属性的定义;所述时间属性包括开始时间、结束时间、持续时间和延迟时长中的一项或多项。In some embodiments, as shown in Table 11, the display requirement further includes time attributes for one or more of the media information, the display 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 time.
表11:时间属性定义Table 11: Time attribute definition
Figure PCTCN2022122042-appb-000009
Figure PCTCN2022122042-appb-000009
Figure PCTCN2022122042-appb-000010
Figure PCTCN2022122042-appb-000010
参照表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 character string, so as to improve the universality of file transmission and practicality.
本公开实施例还提供一种媒体文件的展示处理装置。The embodiment of the present disclosure also provides an apparatus for displaying and processing media files.
如图3所示,在一个实施例中,该媒体文件的展示处理装置300包括:As shown in Figure 3, in one embodiment, the display processing device 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 display state determining module 302, configured to determine the display state of the media file according to the display requirement and the state of the display device;
展示模块303,用于根据所述展示状态展示所述媒体文件;A display module 303, configured to display the media file according to the display state;
其中,所述展示要求包括对于媒体信息、展示页信息、内容容器信息和内容信息中一项或多项的要求,所述媒体信息包括展示页的数量信息以及各所述展示页的展示时间,每一所述展示页包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the display requirements include requirements for one or more of media information, display page information, content container information, and content information, and the media information includes information on the number of display pages and display time of each display page, Each display page includes at least one content container, the display page information includes content container definition information for the display page, and the content container information is used to define the display state of the target content in the content container, so 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 status determination module 302 is specifically used for:
获取所述媒体文件对应的节目信息,所述节目信息包括节目编号和节目名称中的至少一项;Acquire program information corresponding to the media file, where the program information includes at least one of a program number and a program name;
根据所述节目信息获取所述媒体文件的素材路径;Acquiring the material path of the media file according to the program information;
基于所述素材路径确定各所述展示页的节目素材和背景素材,其中,所述背景素材包括背景音乐、背景图片和背景颜色中的一项或多项,在所述背景素材包括背景图片和背景颜色的情况下,所述背景图片的优先级高于所述背景颜色的优先级;Determine the program material and background material of each display page 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 color. In the case of a background color, the priority of the background image is higher than that of the background color;
生成包括各所述展示页的节目素材和背景素材的展示状态。A display state including program material and background material of each display page is generated.
在一些实施例中,所述展示要求还包括展示页信息,所述展示状态确定模块302具体用于:In some embodiments, the display requirement also includes display page information, and the display status determination module 302 is specifically used to:
获取每一展示页的身份信息,所述身份信息包括展示页的编号和名称中的一项或多项;Obtain the identity information of each display page, said identity information including one or more of the number and name of the display page;
根据所述身份信息确定所述展示页中的内容容器的数量。Determine the number of content containers in the display page according to the identity information.
在一些实施例中,所述展示要求还包括内容容器信息,所述展示状态确定模块302具体用于:In some embodiments, the presentation requirement also includes content container information, and the presentation status determination module 302 is specifically used to:
获取所述内容容器在媒体展示界面中的尺寸信息和位置信息,其中,所述尺寸信息包括第一比例,所述位置信息包括第二比例,其中,所述第一比例为所述内容容器的尺寸和所述媒体展示界面的比例,所述第二比例为所述内容容器的边缘与所述媒体展示界面的边缘之间的距离和所述媒体展示界面的尺寸的比例;Acquiring size information and position information of the content container in the media display interface, wherein the size information includes a first ratio, and the position information includes a second ratio, wherein the first ratio is the content container's The ratio between the size and the media display interface, the second ratio is the ratio between 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;
根据所述尺寸信息和所述显示装置的尺寸确定所述内容容器的显示尺寸,其中,所述显示尺寸包括第三比例,所述第一比例与所述第三比例相等,所述第三比例为所述内容容器的显示尺寸和所述显示装置的尺寸的比例;Determine the display size of the content container according to the size information and the size of the display device, wherein the display size includes a third ratio, the first ratio is equal to the third ratio, and the third ratio is the ratio of the display size of the content container to the size of the display device;
根据所述位置信息和所述显示装置的尺寸确定所述内容容器的显示位置,其中,所述显示位置包括第四比例,所述第四比例为所述内容容器的显示位置与所述显示装置的边缘之间距离和所述显示装置的尺寸的比例,所述第二比例和所述第四比例相等。Determine the display position of the content container 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 display page is multiple, and the display state includes one or more of the display level, transparency and background information of each content container in the display page .
在一些实施例中,展示要求还包括内容信息,每一所述目标内容的属性为图片、视频、网页、文本、文档和时钟内容中的一项;In some embodiments, the presentation requirement further includes content information, and the attribute of each target content is one of picture, video, web page, text, document 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, in the case where the attribute of the target content is a picture, the display state includes the stretch state of the target content;
在所述目标内容的属性为视频的情况下,所述展示状态包括所述目标内容的播放音量和播放倍速中的一项或多项;In the case where the attribute of the target content is a video, the display state includes one or more of the playback volume and playback speed of the target content;
在所述目标内容的属性为网页的情况下,所述展示状态包括所述目标内容的缩放比例;In the case where the attribute of the target content is a webpage, the display state includes a zoom ratio of the target content;
在所述目标内容的属性为文本的情况下,所述展示状态包括所述目标内容的字体信息和背景信息中的一项或多项;When 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 the target content's page turning speed and zoom ratio;
在所述目标内容的属性为时钟内容的情况下,所述展示状态包括所述目标内容的字体信息和动画效果中的一项或多项。In the case that the attribute of the target content is clock content, the display state includes one or more of font information and animation effects of the target content.
在一些实施例中,所述展示要求还包括对于所述媒体信息、所述展示页信息、所述内容容器信息和所述内容信息中一项或多项的时间属性的定义;所述时间属性包括开始时间、结束时间、持续时间和延迟时长中的一项或多项。In some embodiments, the display requirement further includes a definition of time attributes for one or more of the media information, the display page information, the content container information, and the content information; the time attributes Include one or more of start time, end time, duration, and delay length.
在一些实施例中,所述媒体文件的格式为json字符串。In some embodiments, the format of the media file is a json string.
本实施例的媒体文件的展示处理装置300能够实现上述媒体文件的展示处理方法实施例的各个步骤,并能实现基本相同的技术效果,此处不再赘述。The apparatus 300 for displaying and processing media files in this embodiment can implement the steps of the above-mentioned embodiment of the method for displaying and processing media files, and can achieve basically the same technical effect, which will not be repeated here.
本公开实施例还提供一种电子设备。请参见图4,电子设备可以包括处理器401、存储器402及存储在存储器402上并可在处理器401上运行的程序4021。The embodiment of the present disclosure also provides an electronic device. Referring to FIG. 4 , the electronic device may include a processor 401 , a memory 402 and a program 4021 stored in the memory 402 and executable on the processor 401 .
在电子设备为终端的情况下,程序4021被处理器401执行时可实现图1 对应的方法实施例中的任意步骤及达到相同的有益效果,此处不再赘述。In the case that 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 effect can be achieved, and details are not repeated here.
在电子设备为网络侧设备的情况下,程序4021被处理器401执行时可实现图4对应的方法实施例中的任意步骤及达到相同的有益效果,此处不再赘述。In the case that 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 effect can be achieved, which will not be repeated here.
本领域普通技术人员可以理解实现上述实施例方法的全部或者部分步骤是可以通过程序指令相关的硬件来完成,所述的程序可以存储于一可读取介质中。Those skilled in the art can understand that all or part of the steps for implementing the methods of the above embodiments can be completed by program instructions related hardware, and the program can be stored in a readable medium.
本公开实施例还提供一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时可实现上述图1对应的方法实施例中的任意步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present disclosure further provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any step in the above method embodiment corresponding to FIG. 1 can be implemented, and The same technical effect can be achieved, so in order to avoid repetition, details will not be 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 descriptions are preferred implementations of the embodiments of the present disclosure. It should be pointed out that those skilled in the art can make several improvements and modifications without departing from the principle of the present disclosure. These improvements and Retouching should also be considered within the protection scope of the present disclosure.

Claims (11)

  1. 一种媒体文件的展示处理方法,应用于显示装置,所述方法包括以下步骤:A method for displaying and processing media files, applied to a display device, the method comprising the following steps:
    获取媒体文件以及对于所述媒体文件的展示要求;Acquiring media files and display requirements for said media files;
    根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态;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;
    其中,所述展示要求包括媒体信息、展示页信息、内容容器信息和内容信息中一项或多项,所述媒体信息包括展示页的数量信息,每一所述展示页包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the display requirement includes one or more items of media information, display page information, content container information, and content information, the media information includes information about the number of display pages, and each display 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 status of the target content in the content container, and the content information is used to define the attributes of the target content .
  2. 根据权利要求1所述的方法,其中,所述展示要求包括媒体信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:The method according to claim 1, wherein the display requirement includes media information, and determining the display status of the media file according to the display requirement and the state of the display device comprises:
    获取所述媒体文件对应的节目信息,所述节目信息包括节目编号和节目名称中的至少一项;Acquire program information corresponding to the media file, where the program information includes at least one of a program number and a program name;
    根据所述节目信息获取所述媒体文件的素材路径;Acquiring the material path of the media file according to the program information;
    基于所述素材路径确定各所述展示页的节目素材和背景素材,其中,所述背景素材包括背景音乐、背景图片和背景颜色中的一项或多项,在所述背景素材包括背景图片和背景颜色的情况下,所述背景图片的优先级高于所述背景颜色的优先级;Determine the program material and background material of each display page 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 color. In the case of a background color, the priority of the background image is higher than that of the background color;
    生成包括各所述展示页的节目素材和背景素材的展示状态。A display state including program material and background material of each display page is generated.
  3. 根据权利要求2所述的方法,其中,所述展示要求还包括展示页信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:The method according to claim 2, wherein the display request further includes display page information, and determining the display state of the media file according to the display request and the state of the display device includes:
    获取每一展示页的身份信息,所述身份信息包括展示页的编号和名称中的一项或多项;Obtain the identity information of each display page, said identity information including one or more of the number and name of the display page;
    根据所述身份信息确定所述展示页中的内容容器的数量。Determine the number of content containers in the display page according to the identity information.
  4. 根据权利要求3所述的方法,其中,所述展示要求还包括内容容器信息,所述根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态,包括:The method according to claim 3, wherein the display requirement further includes content container information, and determining the display status of the media file according to the display requirement and the state of the display device includes:
    获取所述内容容器在媒体展示界面中的尺寸信息和位置信息,其中,所述尺寸信息包括第一比例,所述位置信息包括第二比例,所述第一比例为所述内容容器的尺寸和所述媒体展示界面的比例,所述第二比例为所述内容容器的边缘与所述媒体展示界面的边缘之间的距离和所述媒体展示界面的尺寸的比例;Acquiring size information and position information of the content container in the media presentation interface, wherein the size information includes a first ratio, the position information includes a second ratio, and the first ratio is the size and position of the content container. The ratio of the media display interface, the second ratio is the ratio between 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;
    根据所述尺寸信息和所述显示装置的尺寸确定所述内容容器的显示尺寸,其中,所述显示尺寸包括第三比例,所述第一比例与所述第三比例相等,所述第三比例为所述内容容器的显示尺寸和所述显示装置的尺寸的比例;Determine the display size of the content container according to the size information and the size of the display device, wherein the display size includes a third ratio, the first ratio is equal to the third ratio, and the third ratio is the ratio of the display size of the content container to the size of the display device;
    根据所述位置信息和所述显示装置的尺寸确定所述内容容器的显示位置,其中,所述显示位置包括第四比例,所述第四比例为所述内容容器的显示位置与所述显示装置的边缘之间距离和所述显示装置的尺寸的比例,所述第二比例和所述第四比例相等。Determine the display position of the content container 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.
  5. 根据权利要求4所述的方法,其中,所述展示页中的内容容器的数量为多个,所述展示状态包括所述展示页中各所述内容容器的显示层级、透明度和背景信息中的一项或多项。The method according to claim 4, wherein the number of content containers in the display page is multiple, and the display state includes the display level, transparency and background information of each of the content containers in the display page one or more.
  6. 根据权利要求4所述的方法,其中,展示要求还包括内容信息,每一所述目标内容的属性为图片、视频、网页、文本、文档和时钟内容中的一项;The method according to claim 4, wherein the display requirement further includes content information, and the attribute of each target content is one of pictures, videos, web pages, texts, documents and clock contents;
    所述内容信息包括所述目标内容的编号和名称中的至少一项,所述内容信息还把控所述目标内容的存储地址;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, in the case where the attribute of the target content is a picture, the display state includes the stretch state of the target content;
    在所述目标内容的属性为视频的情况下,所述展示状态包括所述目标内容的播放音量和播放倍速中的一项或多项;In the case where the attribute of the target content is a video, the display state includes one or more of the playback volume and playback speed of the target content;
    在所述目标内容的属性为网页的情况下,所述展示状态包括所述目标内容的缩放比例;In the case where the attribute of the target content is a webpage, the display state includes a zoom ratio of the target content;
    在所述目标内容的属性为文本的情况下,所述展示状态包括所述目标内容的字体信息和背景信息中的一项或多项;When 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 the target content's page turning speed and zoom ratio;
    在所述目标内容的属性为时钟内容的情况下,所述展示状态包括所述目标内容的字体信息和动画效果中的一项或多项。In the case that the attribute of the target content is clock content, the display state includes one or more of font information and animation effects of the target content.
  7. 根据权利要求1至6中任一项所述的方法,其中,所述展示要求还包括对于所述媒体信息、所述展示页信息、所述内容容器信息和所述内容信息中一项或多项的时间属性的定义;所述时间属性包括开始时间、结束时间、持续时间和延迟时长中的一项或多项。The method according to any one of claims 1 to 6, wherein the presentation requirement further includes one or more of the media information, the presentation page information, the content container information, and the content information The definition of the time attribute of the item; the time attribute includes one or more of start time, end time, duration and delay time.
  8. 根据权利要求1至6中任一项所述的方法,其中,所述媒体文件的格式为json字符串。The method according to any one of claims 1 to 6, wherein the format of the media file is a json character string.
  9. 一种媒体文件的展示处理装置,包括:A display processing device for media files, comprising:
    内容获取模块,用于获取媒体文件以及对于所述媒体文件的展示要求;A content acquisition module, configured to acquire media files and display requirements for said media files;
    展示状态确定模块,用于根据所述展示要求和所述显示装置的状态确定所述媒体文件的展示状态;a display state determining module, configured to determine the display state of the media file according to the display requirement and the state of the display device;
    展示模块,用于根据所述展示状态展示所述媒体文件;a display module, configured to display the media file according to the display state;
    其中,所述展示要求包括对于媒体信息、展示页信息、内容容器信息和内容信息中一项或多项的要求,所述媒体信息包括展示页的数量信息以及各所述展示页的展示时间,每一所述展示页包括至少一个内容容器,所述展示页信息包括对于所述展示页中内容容器定义信息,所述内容容器信息用于定义目标内容在所述内容容器中的展示状态,所述内容信息用于定义所述目标内容的属性。Wherein, the display requirements include requirements for one or more of media information, display page information, content container information, and content information, and the media information includes information on the number of display pages and display time of each display page, Each display page includes at least one content container, the display page information includes content container definition information for the display page, and the content container information is used to define the display state of the target content in the content container, so The content information is used to define the attributes of the target content.
  10. 一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序;所述处理器,用于读取存储器中的程序实现如权利要求1至8中任一项所述的媒体文件的展示处理方法中的步骤。An electronic device, comprising: a memory, a processor, and a program stored on the memory and operable on the processor; the processor is used to read the program in the memory to implement claims 1 to 8 The steps in the presentation processing method of any one of the media files.
  11. 一种可读存储介质,用于存储程序,所述程序被处理器执行时实现如权利要求1至8中任一项所述的媒体文件的展示处理方法中的步骤。A readable storage medium for storing a program, and when the program is executed by a processor, the steps in the method for displaying and processing media files according to any one of claims 1 to 8 are implemented.
PCT/CN2022/122042 2021-12-27 2022-09-28 Presentation processing method and apparatus for media file, and electronic device and readable storage medium WO2023124318A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111612539.9 2021-12-27
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
WO2023124318A1 true WO2023124318A1 (en) 2023-07-06

Family

ID=80876098

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114282081A (en) * 2021-12-27 2022-04-05 京东方科技集团股份有限公司 Media file display processing method and device, electronic equipment and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154195A1 (en) * 2009-12-23 2011-06-23 Samsung Electronics Co., Ltd. SYSTEM AND METHOD FOR DISPLAYING DOCUMENT CONTENT USING UPnP
CN104079978A (en) * 2014-06-27 2014-10-01 西安诺瓦电子科技有限公司 Window-adaptive media playing method and device and media interconnection release method
CN105528427A (en) * 2015-12-08 2016-04-27 腾讯科技(深圳)有限公司 Media file processing method, and sharing method and device in social application
CN106095551A (en) * 2016-06-07 2016-11-09 腾讯科技(深圳)有限公司 The method and apparatus showing media file
CN106101856A (en) * 2016-06-24 2016-11-09 腾讯科技(北京)有限公司 The playing method and device of media file
CN107294934A (en) * 2016-04-12 2017-10-24 腾讯科技(北京)有限公司 Methods of exhibiting, client, server and the system of media information
CN109587537A (en) * 2018-12-20 2019-04-05 聚好看科技股份有限公司 Methods of exhibiting, device and the storage medium of the multimedia file of smart television
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
CN114282081A (en) * 2021-12-27 2022-04-05 京东方科技集团股份有限公司 Media file display processing method and device, electronic equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154195A1 (en) * 2009-12-23 2011-06-23 Samsung Electronics Co., Ltd. SYSTEM AND METHOD FOR DISPLAYING DOCUMENT CONTENT USING UPnP
CN104079978A (en) * 2014-06-27 2014-10-01 西安诺瓦电子科技有限公司 Window-adaptive media playing method and device and media interconnection release method
CN105528427A (en) * 2015-12-08 2016-04-27 腾讯科技(深圳)有限公司 Media file processing method, and sharing method and device in social application
CN107294934A (en) * 2016-04-12 2017-10-24 腾讯科技(北京)有限公司 Methods of exhibiting, client, server and the system of media information
CN106095551A (en) * 2016-06-07 2016-11-09 腾讯科技(深圳)有限公司 The method and apparatus showing media file
CN106101856A (en) * 2016-06-24 2016-11-09 腾讯科技(北京)有限公司 The playing method and device of media file
CN109756768A (en) * 2017-11-08 2019-05-14 中国电信股份有限公司 Video stream processing method, device and video flowing display methods, device
CN109587537A (en) * 2018-12-20 2019-04-05 聚好看科技股份有限公司 Methods of exhibiting, device and the storage medium of the multimedia file of smart television
CN112256221A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information display method and device and electronic equipment
CN114282081A (en) * 2021-12-27 2022-04-05 京东方科技集团股份有限公司 Media file display processing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114282081A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
US10380227B2 (en) Generating layout for content presentation structures
US8065628B2 (en) Dynamic user interface for previewing live content
US20160366466A1 (en) Method for displaying bullet screen of video, and electronic device
US20080034284A1 (en) Method and system for displaying multimedia content
US10042520B2 (en) Interactive electronic book
KR101377379B1 (en) Rendering document views with supplemental informational content
US8924839B2 (en) Electronic reader system with bookmarking and method of operation thereof
JP2010511939A5 (en)
US9275016B1 (en) Content item transformations for image overlays
JP2014165766A (en) Content creation device, content distribution server, and content creation method
US20070204209A1 (en) Combining and displaying multimedia content
US20090313574A1 (en) Mobile document viewer
US20120013640A1 (en) Graphical representation of events
CA2722459A1 (en) Methods, media, and devices for providing a package of assets
CN105335445A (en) Layout display method and device
WO2023124318A1 (en) Presentation processing method and apparatus for media file, and electronic device and readable storage medium
US11119973B2 (en) Managing white space in a portal web page
US20150109532A1 (en) Customizing mobile media captioning based on mobile media rendering
US11803993B2 (en) Multiplane animation system
WO2023087990A1 (en) Image display method and apparatus, computer device, and storage medium
CN113885829A (en) Sound effect display method and terminal equipment
CN104731824A (en) Picture display method and picture display device
US10769354B2 (en) System and method for triggering state changes in content with initiation of multi-media playback
Ricky et al. Study of Photography Result using Blind Test Method
US10073819B2 (en) Media table for a digital document

Legal Events

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

Ref document number: 22913583

Country of ref document: EP

Kind code of ref document: A1