Format image playing method, system, device and equipment and storage medium
By storing the relevant information of the layout image into a distributed file system and using the storage path information to generate the target layout image, the problem of the player inability to play due to abnormal station system is solved, and the normal display of the layout image and high-reliability data storage are achieved.
Patent Information
- Application Number
- CN202510226173.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, if the station system cannot work normally, the broadcast controller cannot play layout images.
The passenger information system stores the relevant information of the desired layout image to be played in the distributed file system, and sends storage path information to the broadcast controller, so that the broadcast controller obtains relevant information from the distributed file system to generate the target layout image for playback.
Ensure normal playback of layout images, avoid dependence on station systems, and improve the reliability and acquisition efficiency of data storage.
Smart Images

Figure CN120336564A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of rail transit passenger information systems, and particularly to a method, system, device, equipment, and storage medium for playing layout images. Background Art
[0002] In a passenger information system (PIS), layout images are the most direct way to display information to passengers. Usually, various information such as train schedule information, live videos, and line maps are provided for passengers to view.
[0003] Currently, when the passenger information system plays layout images through a broadcast controller, it will first send the relevant information of the layout image to be displayed to the station system, and the station system will send the relevant information of the layout image to be displayed to the broadcast controller, so that the broadcast controller can play the layout image according to the relevant information of the layout image to be displayed for passengers to view.
[0004] However, using the above method, if the station system fails to work properly, such as being abnormal or offline, the passenger information system will be unable to communicate with the station system. Therefore, the passenger information system cannot send the relevant information of the layout image to be displayed to the station system, resulting in the broadcast controller being unable to play the layout image. Summary of the Invention
[0005] This application provides a method, system, device, equipment, and storage medium for playing layout images to solve the problem in the prior art that if the station system fails to work properly, the broadcast controller cannot play the layout image, thus ensuring the normal playing of the layout image.
[0006] This application provides a method for playing layout images, which is applied to a broadcast controller. The method includes: Receiving the storage path information sent by the passenger information system; Based on the storage path information, obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system. The relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; Generating a corresponding target layout image based on the elements in the layout image expected to be played and the attribute files of the elements, and playing the target layout image.
[0007] According to the method for playing layout images provided by this application, the relevant information further includes the playing time of the layout image expected to be played. Playing the target layout image includes: Playing the target layout image based on the playing time.
[0008] According to a method for playing a layout image provided by the present application, based on the storage path information, obtaining relevant information of the layout image expected to be played by the passenger information system from the distributed file system, including: Based on the storage path information, obtaining a target compressed package corresponding to the layout image expected to be played by the passenger information system from the distributed file system; Parsing the target compressed package to obtain relevant information of the layout image expected to be played.
[0009] An embodiment of the present application further provides a method for playing a layout image, which is applied to a passenger information system. The method includes: Obtaining relevant information of the layout image expected to be played, where the relevant information includes elements in the layout image expected to be played and attribute files of the elements; Storing the relevant information in the distributed file system; Sending the storage path information of the relevant information in the distributed file system to the broadcast controller; where the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, and based on the elements in the layout image expected to be played and the attribute files of the elements in the relevant information, generate a corresponding target layout image and play the target layout image.
[0010] According to a method for playing a layout image provided by the present application, the relevant information further includes the playing time of the layout image expected to be played. The storing the relevant information in the distributed file system includes: Compressing the elements in the layout image expected to be played, the attribute files of the elements, and the playing time to obtain a target compressed package; Storing the target compressed package in the distributed file system.
[0011] According to a method for playing a layout image provided by the present application, the obtaining relevant information of the layout image expected to be played includes: Receiving a dragging operation input by a user; In response to the dragging operation, determining the relevant information of the layout image expected to be played.
[0012] The present application further provides a layout image playing system, including: a broadcast controller and a passenger information system; Wherein, the broadcast controller is used to execute the method for playing a layout image according to any one of the above on the broadcast controller side, and the passenger information system is used to execute the method for playing a layout image according to any one of the above on the passenger information system side.
[0013] The present application also provides a playback device for layout images, which is applied to a broadcast controller. The device includes: A receiving unit, configured to receive the storage path information sent by the passenger information system; An obtaining unit, configured to obtain, based on the storage path information, relevant information of the layout image expected to be played by the passenger information system from the distributed file system, where the relevant information includes elements in the expected layout image and attribute files of the elements; A processing unit, configured to generate a corresponding target layout image based on the elements in the expected layout image and the attribute files of the elements, and play the target layout image.
[0014] The present application also provides a playback device for layout images, which is applied to the passenger information system. The device includes: An obtaining unit, configured to obtain relevant information of the layout image expected to be played, where the relevant information includes elements in the expected layout image and attribute files of the elements; A storage unit, configured to store the relevant information in the distributed file system; A sending unit, configured to send the storage path information of the relevant information in the distributed file system to the broadcast controller; wherein the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, generate a corresponding target layout image based on the elements in the relevant information and the attribute files of the elements, and play the target layout image.
[0015] The present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for playing a layout image as described in any one of the above is implemented.
[0016] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for playing a layout image as described in any one of the above is implemented.
[0017] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the method for playing a layout image as described in any one of the above is implemented.
[0018] The method, system, device, equipment, and storage medium for playing layout images provided by this application. The broadcast controller receives the storage path information sent by the passenger information system; based on the storage path information, it obtains the relevant information of the layout image expected to be played by the passenger information system from the distributed file system. The relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; based on the elements in the layout image expected to be played and the attribute files of the elements, it generates the corresponding target layout image and plays the target layout image. Storing the relevant information of the layout image expected to be played in the distributed file system in this way enables the broadcast controller to obtain the relevant information of the layout image expected to be played from the distributed file system based on the storage path information, and generate the corresponding target layout image for playing. This not only makes the acquisition of relevant information no longer dependent on the station system, but also the distributed file system usually stores the relevant information on different nodes through replication and caching mechanisms, ensuring the high reliability of data storage. Therefore, it can effectively solve the problem in the prior art that if the station system fails to work properly, the broadcast controller cannot play the layout image, thus ensuring the normal playback of the layout image. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in this application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0020] Figure 1 It is a schematic flowchart of a method for playing a layout image provided by an embodiment of this application.
[0021] Figure 2 It is a schematic flowchart of a method for obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system provided by an embodiment of this application.
[0022] Figure 3 It is a schematic flowchart of another method for playing a layout image provided by an embodiment of this application.
[0023] Figure 4 It is a schematic structural diagram of a system for playing a layout image provided by an embodiment of this application.
[0024] Figure 5 It is a schematic structural diagram of a device for playing a layout image provided by an embodiment of this application.
[0025] Figure 6 It is a schematic structural diagram of another device for playing a layout image provided by an embodiment of this application.
[0026] Figure 7 Schematic diagram of the physical structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0027] To make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the accompanying drawings in the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0028] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist simultaneously, and B exists alone, where A and B may be singular or plural. In the written description of the present application, the character " / " generally represents an "or" relationship between the associated objects before and after.
[0029] The technical solutions provided by the embodiments of the present application can be applied to scenarios such as train arrival and guide information display, public information release, emergency information release, and advertisement broadcast. In these scenarios, the passenger information system plays the layout images required for the scenarios through a broadcast controller.
[0030] When playing the layout images required for the scenarios through the broadcast controller, the passenger information system forwards the relevant information of the layout images expected to be displayed to the broadcast controller through the station system, so that the broadcast controller plays the layout images according to the relevant information of the layout images expected to be displayed for passengers to view.
[0031] Among them, the passenger information system is a modern information service platform integrating multimedia network technology and computer technology, designed specifically for passengers of public transportation, especially urban rail transit. It real-time transmits information, etc. through various media such as broadcast controllers at fixed positions in the station, such as liquid crystal display (LCD) devices or light emitting diode (LED) displays, on-vehicle displays, and mobile device applications.
[0032] However, using the above method, if the station system cannot work properly, such as being abnormal or offline, the passenger information system will be unable to communicate with the station system. Therefore, the passenger information system cannot send the relevant information of the layout images expected to be displayed to the station system, resulting in the broadcast controller being unable to play the layout images.
[0033] To solve the problem in the prior art that if the station system fails to work properly, the playback controller cannot play the layout image, and thus ensure the normal playback of the layout image, the embodiment of the present application provides a method for playing a layout image. The passenger information system can first store the relevant information of the layout image to be played in a distributed file system, and send the corresponding storage path information to the playback controller, so that the playback controller can obtain the relevant information of the layout image to be played from the distributed file system based on the storage path information, and generate a corresponding target layout image for playback. Storing the relevant information of the layout image to be played in the distributed file system in this way, enabling the playback controller to obtain the relevant information of the layout image to be played from the distributed file system based on the storage path information, and generating a corresponding target layout image for playback, not only makes the acquisition of relevant information no longer dependent on the station system, but also the distributed file system usually stores the relevant information on different nodes through replication and caching mechanisms, ensuring the high reliability of data storage. Therefore, the problem in the prior art that if the station system fails to work properly, the playback controller cannot play the layout image can be effectively solved, thus ensuring the normal playback of the layout image.
[0034] Next, the method for playing a layout image provided by the present application will be described in detail through the following several specific embodiments. It can be understood that these several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0035] Figure 1 It is a schematic flowchart of a method for playing a layout image provided by an embodiment of the present application, which is applied to a playback controller. Exemplarily, please refer to Figure 1 As shown, the method for playing a layout image may include: S101. Receive the storage path information sent by the passenger information system.
[0036] In order not to rely on the station system to forward the relevant information of the layout image expected to be played by the passenger information system, and thus ensure the normal playback of the layout image, in the embodiment of the present application, after obtaining the relevant information of the layout image expected to be played, the passenger information system can store the relevant information in a distributed file system, and directly send the storage path information of the relevant information in the distributed file system to the playback controller, realizing real-time communication with the playback controller, so that the playback controller can quickly respond to the passenger information system, and based on the storage path information, obtain the relevant information of the layout image expected to be played by the passenger information system from the distributed file system, that is, execute the following S102.
[0037] Exemplarily, in the embodiments of the present application, when the passenger information system obtains the relevant information of the layout image to be played, in one possible implementation manner, it may receive a drag operation input by the user; and in response to the drag operation, determine the relevant information of the layout image to be played; in another possible implementation manner, it may receive a selection operation of the user for the relevant information of multiple preset layout images to be played, and in response to the selection operation, determine the relevant information of the currently desired layout image from the relevant information of the multiple preset layout images to be played, etc., which can be specifically set according to actual needs.
[0038] It can be understood that in the embodiments of the present application, after the passenger information system obtains the relevant information of the layout image to be played, by storing the relevant information in the distributed file system and sending the storage path information of the relevant information in the distributed file system to the broadcast controller, the broadcast controller can obtain the relevant information of the layout image to be played from the distributed file system based on the storage path information. This not only makes the acquisition of relevant information no longer dependent on the station system, but also the distributed file system usually stores the relevant information on different nodes through replication and caching mechanisms. Even if one of the nodes is abnormal, the broadcast controller can still obtain the relevant information from other nodes, ensuring the high reliability of data storage. Therefore, by adopting the technical solution provided by the present application, the problem in the prior art that the broadcast controller cannot play the layout image when the station system fails to work properly can be effectively solved, thus ensuring the normal playback of the layout image.
[0039] S102. Based on the storage path information, obtain the relevant information of the layout image expected to be played by the passenger information system from the distributed file system, where the relevant information includes elements in the layout image expected to be played and attribute files of the elements.
[0040] Exemplarily, the elements may include pictures, videos, text boxes, route maps, etc., which can be specifically set according to actual needs.
[0041] Exemplarily, the attribute files of the elements may include the color, shape, size, and coordinate position of the elements, etc., for generating the corresponding target layout image subsequently.
[0042] Among them, the color attribute of an element determines its color performance in the layout image. Different colors can convey different emotions and atmospheres, having an important impact on the overall visual effect. The shape attribute of an element determines its appearance in the layout image. The shape can be a simple geometric figure, or a complex pattern or icon. The choice and arrangement of shapes can affect the overall layout and visual effect of the layout. The size attribute of an element determines its size in the layout image. The choice of size can affect the prominence and visual impact of the element, thus guiding the viewer's line of sight and attention. The position of an element is usually directly related to the coordinates, determining its relative relationship with other elements, and thus affecting the overall layout and visual effect.
[0043] Exemplarily, in the embodiments of the present application, the relevant information may include, in addition to the elements and attribute files of the elements in the layout image to be played as expected, the playback time of the layout image, etc., and can be specifically set according to actual needs.
[0044] After obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system based on the storage path information, the following S103 can be executed.
[0045] S103. Generate a corresponding target layout image based on the elements and attribute files of the elements in the layout image expected to be played, and play the target layout image.
[0046] Exemplarily, when generating a corresponding target layout image based on the elements and attribute files of the elements in the layout image expected to be played, a native JavaScript method can be used to generate the corresponding target layout image; or a layout image generation tool, etc. can be used to generate the corresponding target layout image, and can be specifically set according to actual needs.
[0047] It can be seen that in the embodiment of the present application, the broadcast controller receives the storage path information sent by the passenger information system; based on the storage path information, it obtains the relevant information of the layout image expected to be played by the passenger information system from the distributed file system, and the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; based on the elements in the layout image expected to be played and the attribute files of the elements, it generates a corresponding target layout image and plays the target layout image. In this way, the relevant information of the layout image expected to be played is stored in the distributed file system, so that the broadcast controller obtains the relevant information of the layout image expected to be played from the distributed file system based on the storage path information, and generates a corresponding target layout image for playing. This not only makes the acquisition of relevant information no longer dependent on the station system, but also the distributed file system usually stores the relevant information on different nodes through replication and caching mechanisms, ensuring the high reliability of data storage. Therefore, it can effectively solve the problem in the prior art that if the station system cannot work properly, the broadcast controller cannot play the layout image, thus ensuring the normal playback of the layout image.
[0048] Based on the above Figure 1 illustrated embodiment, exemplarily, in the above S102, when obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system based on the storage path information, the specific implementation can refer to the following Figure 2 illustrated embodiment.
[0049] Figure 2 It is a schematic flowchart of a method for obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system provided by the embodiment of the present application. Exemplarily, please refer to Figure 2 shown. The method may include: S201. Based on the storage path information, obtain the target compressed package corresponding to the layout image expected to be played by the passenger information system from the distributed file system.
[0050] Exemplarily, in the embodiment of the present application, after the passenger information system obtains the relevant information of the layout image expected to be played, it can compress the relevant information, compress it into a target compressed package, and store the obtained target compressed package in the distributed file system. In this way, by storing the target compressed package in the distributed file system, the broadcast controller can not only obtain complete relevant information, ensuring the integrity of the relevant information obtained by the broadcast controller; but also reduce the folder size and improve the acquisition efficiency of the relevant information.
[0051] Exemplarily, when the passenger information system compresses the relevant information of the layout image it expects to play, it can use professional software or online tools, such as Adobe Photoshop, online web platforms such as "i Compression" or "iyasuo", etc., to compress the relevant information of the layout image it expects to play; it can also use compression algorithms, such as wavelet transform, Huffman coding, etc., to compress the relevant information of the layout image it expects to play, and specific settings can be made according to actual needs.
[0052] S202. Parse the target compressed package to obtain the relevant information of the layout image expected to be played.
[0053] Combined with the above description, the player can, based on the storage path information, obtain the target compressed package corresponding to the layout image expected to be played by the passenger information system from the distributed file system; and parse the target compressed package to obtain the relevant information of the layout image expected to be played. In this way, by parsing and obtaining the relevant information of the layout image expected to be played through the target compressed package, the broadcast controller can not only obtain complete relevant information, ensuring the integrity of the relevant information obtained by the broadcast controller; but also reduce the folder size and improve the acquisition efficiency of the relevant information.
[0054] Based on any of the above embodiments, exemplarily, in the embodiments of the present application, the relevant information may further include the playing time of the layout image expected to be played.
[0055] In the case where the relevant information further includes the playing time of the layout image expected to be played, the target layout image can be played based on the playing time for the passengers to view.
[0056] It can be understood that if the relevant information does not include the playing time of the layout image expected to be played, after the player generates the corresponding target layout image based on the elements and attribute files of the layout image expected to be played, the target layout image can be directly played; or, the target layout image can also be played based on the pre-configured playing time, etc., and specific settings can be made according to actual needs.
[0057] Figure 3 It is a schematic flowchart of another method for playing a layout image provided by the embodiments of the present application, which is applied to the passenger information system. Exemplarily, please refer to Figure 3 As shown, the method for playing the layout image may include: S301. Obtain the relevant information of the layout image expected to be played, where the relevant information includes the elements and attribute files of the layout image expected to be played.
[0058] S302. Store the relevant information in the distributed file system.
[0059] S303. Send the storage path information of the relevant information in the distributed file system to the broadcast controller; wherein, the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, generate a corresponding target layout image based on the elements and the attribute files of the elements in the layout image to be played as expected in the relevant information, and play the target layout image.
[0060] Exemplarily, in the embodiments of the present application, the relevant information further includes the playing time of the layout image to be played as expected. Storing the relevant information in the distributed file system includes: Compress the elements, the attribute files of the elements, and the playing time in the layout image to be played as expected to obtain a target compressed package; Store the target compressed package in the distributed file system.
[0061] Exemplarily, in the embodiments of the present application, obtaining the relevant information of the layout image to be played as expected includes: Receive a drag operation input by a user; In response to the drag operation, determine the relevant information of the layout image to be played as expected.
[0062] The method for playing a layout image on the passenger information system side provided by the embodiments of the present application has the same implementation principle and beneficial effects as those of the method for playing a layout image on the broadcast controller side described above. For the implementation principle and beneficial effects, reference can be made to those of the method for playing a layout image on the broadcast controller side, and details will not be elaborated here.
[0063] The embodiments of the present application further provide a system for playing a layout image. Exemplarily, please refer to Figure 4 as shown in Figure 4 which is a schematic structural diagram of a system for playing a layout image provided by the embodiments of the present application. The system for playing a layout image may include: a broadcast controller and a passenger information system.
[0064] Wherein, the broadcast controller is used to execute the method for playing a layout image on the broadcast controller side described in any of the above embodiments, and the passenger information system is used to execute the method for playing a layout image on the passenger information system side described in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the method for playing a layout image. For the implementation principle and beneficial effects, reference can be made to those of the method for playing a layout image, and details will not be elaborated here.
[0065] Next, a device for playing a layout image provided by the present application will be described. The device for playing a layout image described below can be correspondingly referred to the method for playing a layout image described above.
[0066] Figure 5The structural schematic diagram of a layout image playback device provided by an embodiment of the present application. Exemplarily, it is applied to a broadcast controller. Please refer to Figure 5 As shown, the layout image playback device 50 may include: A receiving unit 501, configured to receive the storage path information sent by the passenger information system; An obtaining unit 502, configured to obtain the relevant information of the layout image expected to be played by the passenger information system from the distributed file system based on the storage path information, where the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; A processing unit 503, configured to generate a corresponding target layout image based on the elements in the layout image expected to be played and the attribute files of the elements, and play the target layout image.
[0067] Exemplarily, in an embodiment of the present application, the relevant information further includes the playback time of the layout image expected to be played. The processing unit 503 is configured to play the target layout image, including: Playing the target layout image based on the playback time.
[0068] Exemplarily, in an embodiment of the present application, the obtaining unit 502 is configured to obtain the relevant information of the layout image expected to be played by the passenger information system from the distributed file system based on the storage path information, including: Obtaining the target compressed package corresponding to the layout image expected to be played by the passenger information system from the distributed file system based on the storage path information; Parsing the target compressed package to obtain the relevant information of the layout image expected to be played.
[0069] The layout image playback device 50 provided by the embodiment of the present application may execute the technical solution of the layout image playback method on the broadcast controller side described in any of the above embodiments. The implementation principle and beneficial effects are similar to those of the layout image playback method. Please refer to the implementation principle and beneficial effects of the layout image playback method, which will not be elaborated here.
[0070] Figure 6 The structural schematic diagram of another layout image playback device provided by the embodiment of the present application. It is applied to the passenger information system. Exemplarily, please refer to Figure 6 As shown, the layout image playback device 60 may include: An obtaining unit 601, configured to obtain the relevant information of the layout image expected to be played, where the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; A storage unit 602, configured to store the relevant information into a distributed file system; A sending unit 603, configured to send the storage path information of the relevant information in the distributed file system to a broadcast controller; wherein, the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, and generate a corresponding target layout image based on the elements in the expected-play layout image and the attribute files of the elements, and play the target layout image.
[0071] Exemplarily, in an embodiment of the present application, the relevant information further includes the playing time of the expected-play layout image, and the storage unit 602, configured to store the relevant information into a distributed file system, includes: Compress the elements in the expected-play layout image, the attribute files of the elements, and the playing time to obtain a target compressed package; Store the target compressed package into the distributed file system.
[0072] Exemplarily, in an embodiment of the present application, the obtaining unit 601, configured to obtain relevant information of an expected-play layout image, includes: Receive a drag operation input by a user; In response to the drag operation, determine the relevant information of the expected-play layout image.
[0073] The layout image playing device 60 provided in an embodiment of the present application can execute the technical solution of the layout image playing method on the passenger information system side described in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the layout image playing method. For details, refer to the implementation principle and beneficial effects of the layout image playing method, which will not be elaborated here.
[0074] Figure 7 This is a schematic physical structure diagram of an electronic device provided in an embodiment of the present application, as Figure 7As shown in the figure, the electronic device may include: a processor 710, a communications interface 720, a memory 730, and a communication bus 740. Among them, the processor 710, the communications interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call the logical instructions in the memory 730 to execute the method for playing the layout image. The method includes: receiving the storage path information sent by the passenger information system; based on the storage path information, obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system, where the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; based on the elements in the layout image expected to be played and the attribute files of the elements, generating a corresponding target layout image, and playing the target layout image.
[0075] Or, to execute the method for playing the layout image. The method includes: obtaining the relevant information of the layout image expected to be played, where the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; storing the relevant information in the distributed file system; sending the storage path information of the relevant information in the distributed file system to the playback controller; where the storage path information is used to instruct the playback controller to obtain the relevant information from the distributed file system, and based on the elements in the layout image expected to be played and the attribute files of the elements in the relevant information, generating a corresponding target layout image, and playing the target layout image.
[0076] In addition, when the logical instructions in the above-mentioned memory 730 are implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program codes.
[0077] On the other hand, the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the playing method of the layout image provided by each of the above methods. The method includes: receiving the storage path information sent by the passenger information system; based on the storage path information, obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system, where the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; based on the elements in the layout image expected to be played and the attribute files of the elements, generating a corresponding target layout image, and playing the target layout image.
[0078] Or, To execute the playing method of the layout image, the method includes: obtaining the relevant information of the layout image expected to be played, where the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; storing the relevant information in the distributed file system; sending the storage path information of the relevant information in the distributed file system to the broadcast controller; where the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, and based on the elements in the layout image expected to be played and the attribute files of the elements in the relevant information, generating a corresponding target layout image, and playing the target layout image.
[0079] On another aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it realizes the playing method of the layout image provided by each of the above methods. The method includes: receiving the storage path information sent by the passenger information system; based on the storage path information, obtaining the relevant information of the layout image expected to be played by the passenger information system from the distributed file system, where the relevant information includes the elements in the layout image expected to be played and the attribute files of the elements; based on the elements in the layout image expected to be played and the attribute files of the elements, generating a corresponding target layout image, and playing the target layout image.
[0080] Or, A method for playing a layout image is provided. The method includes: obtaining relevant information of the layout image to be played, where the relevant information includes elements in the layout image to be played and attribute files of the elements; storing the relevant information in a distributed file system; sending storage path information of the relevant information in the distributed file system to a broadcast controller; where the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, generate a corresponding target layout image based on the elements in the relevant information of the layout image to be played and the attribute files of the elements, and play the target layout image.
[0081] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
[0082] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0083] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for playing a layout image, characterized in that Applied to a broadcast controller, the method includes: Receiving storage path information sent by a passenger information system; Based on the storage path information, obtaining relevant information of the layout image expected to be played by the passenger information system from a distributed file system, where the relevant information includes elements in the expected layout image and attribute files of the elements; Based on the elements in the expected layout image and the attribute files of the elements, generating a corresponding target layout image and playing the target layout image.
2. The method for playing a layout image according to claim 1, wherein The relevant information further includes the playing time of the expected layout image, and playing the target layout image includes: Based on the playing time, playing the target layout image.
3. The method for playing a layout image according to claim 1 or 2, characterized in that The obtaining, based on the storage path information, of the relevant information of the layout image expected to be played by the passenger information system from the distributed file system includes: Based on the storage path information, obtaining a target compressed package corresponding to the layout image expected to be played by the passenger information system from the distributed file system; Parsing the target compressed package to obtain the relevant information of the expected layout image.
4. A method for playing a layout image, characterized in that, Applied to a passenger information system, the method includes: Obtaining relevant information of an expected layout image, where the relevant information includes elements in the expected layout image and attribute files of the elements; Storing the relevant information in a distributed file system; Sending the storage path information of the relevant information in the distributed file system to a broadcast controller; where the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, generate a corresponding target layout image based on the elements in the expected layout image and the attribute files of the elements in the relevant information, and play the target layout image.
5. The method for playing a layout image according to claim 4, wherein, The relevant information further includes the playing time of the expected layout image, and the storing the relevant information in the distributed file system includes: Compressing the elements in the expected layout image, the attribute files of the elements, and the playing time to obtain a target compressed package; Storing the target compressed package in the distributed file system.
6. The method for playing a layout image according to claim 4 or 5, characterized in that The obtaining of the relevant information of the expected layout image includes: Receiving a dragging operation input by a user; In response to the dragging operation, determining the relevant information of the expected layout image.
7. A playback system for a layout image, characterized in that, Includes: A broadcast controller and a passenger information system; Wherein, the broadcast controller is used to execute the layout image playing method according to any one of claims 1-3 above, and the passenger information system is used to execute the layout image playing method according to any one of claims 4-6 above.
8. A playback device for a layout image, characterized in that, Applied to a broadcast controller, the device includes: A receiving unit, configured to receive storage path information sent by a passenger information system; An obtaining unit, configured to obtain relevant information of the layout image expected to be played by the passenger information system from a distributed file system based on the storage path information, where the relevant information includes elements in the expected layout image and attribute files of the elements; A processing unit, configured to generate a corresponding target layout image based on elements in the layout image to be played as expected and the attribute files of the elements, and play the target layout image.
9. A playback device for a layout image, characterized in that Applied to a passenger information system, the device includes: An obtaining unit, configured to obtain relevant information of the layout image to be played as expected, where the relevant information includes elements in the layout image to be played as expected and the attribute files of the elements; A storage unit, configured to store the relevant information in a distributed file system; A sending unit, configured to send the storage path information of the relevant information in the distributed file system to a broadcast controller; where the storage path information is used to instruct the broadcast controller to obtain the relevant information from the distributed file system, generate a corresponding target layout image based on elements in the layout image to be played as expected and the attribute files of the elements in the relevant information, and play the target layout image.
10. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the layout image playing method according to any one of claims 1-3, or implements the layout image playing method according to any one of claims 4-6.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the layout image playing method according to any one of claims 1-3, or implements the layout image playing method according to any one of claims 4-6.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the layout image playing method according to any one of claims 1-3, or implements the layout image playing method according to any one of claims 4-6.