Audio and video data transmission method and device, equipment and storage medium
By detecting the optical fiber reception status and display status in the first display device of the ground PIS playback system, switching to local or network playback when the fiber link is abnormal, solving the user viewing experience problem caused by a single point of failure, and improving the reliability and user experience of audio and video playback.
Patent Information
- Application Number
- CN202411863206.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-21
AI Technical Summary
When the ground PIS playback system is displayed on multiple backends, there is a single point of failure that leads to poor user viewing experience.
By detecting the optical fiber reception status and display status in the first display device, if a specific preset condition is met, the audio and video data received based on the optical fiber connection is played; if other preset conditions are met, the local pre-stored audio and video data or audio and video data received based on the network communication connection is played.
It improves the reliability of audio and video playback of the display device, avoids playback interruptions caused by abnormal fiber transmission links, and improves the user's viewing experience.
Smart Images

Figure CN119676490A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of audio and video playback technology, and in particular, to a method, device, equipment and storage medium for audio and video data transmission. Background Art
[0002] The ground PIS (Passenger Information System) playback system in rail transit, also known as the passenger information system, is a comprehensive platform that integrates subway operation information and multimedia services. The ground PIS playback system is mainly installed in stations. Through the media equipment installed in the station hall and platform, it provides passengers with train operation information, line information, station name information, etc., ensuring that passengers can understand the train operation status in a timely and accurate manner.
[0003] At present, the back-end playback (i.e., display device end) of the ground PIS playback system is mainly based on full optical fiber transmission. An LCD playback controller (as a sending device) is installed in the cabinet of the station control room, and the audio and video to be played are transmitted to the remote LCD display device through optical fiber for display. Multiple LCD display devices are usually set up at the remote end for simultaneous display or combined display. When there is a single point failure in the LCD playback controller, the corresponding LCD display device cannot display normally, and even all LCD display devices cannot display normally, affecting the user's viewing experience. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device and storage medium for transmitting audio and video data, which can solve the technical problem of poor user viewing experience when the existing ground PIS playback system performs multi-backend display, improve the reliability of audio and video playback of the display device, and improve the user's viewing experience.
[0005] In a first aspect, an embodiment of the present application provides an audio and video data transmission method for a first display device, the first display device being used to perform an optical fiber connection and a network communication connection with a sending device, the audio and video data transmission method comprising:
[0006] receiving a play instruction, and in response to the play instruction, detecting the optical fiber receiving state and the first display state at preset intervals, wherein the first display state is the detection state of the display screen and the video input state of the display screen;
[0007] When the optical fiber receiving state and the first display state meet a first preset condition, the audio and video data received based on the optical fiber connection is played, the first preset condition includes that the optical fiber receiving state is that the light attenuation value is less than a preset threshold and the first display state is a normal state, and the normal state includes that the display screen and the video input of the display screen are detected to be normal;
[0008] When the optical fiber receiving state and the first display state meet the second preset condition, the locally pre-stored audio and video data or the audio and video data received based on the network communication connection are played. The second preset condition includes that the optical fiber receiving state is that the light attenuation value is greater than or equal to a preset threshold or the first display state is an abnormal state. The abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal.
[0009] In one embodiment, when the optical fiber receiving state and the first display state meet the second preset condition, after playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, it includes:
[0010] Detecting a second display state, where the second display state includes a locally pre-stored video input state and a detection state of the display screen;
[0011] When the second display state is an abnormal state, restart processing is performed, and the abnormal state includes that the locally pre-stored video input is abnormal or the display screen cannot be detected;
[0012] When the second display state is a normal state, locally pre-stored audio and video data or audio and video data received based on a network communication connection is played, and the normal state includes that the locally pre-stored video input is normal and the display screen is detected.
[0013] In one embodiment, when the second display state is an abnormal state, after the restart process is performed, the method includes:
[0014] Re-detecting the second display state;
[0015] When the second display state is a normal state, playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection;
[0016] Or, after a preset number of restarts, when the second display state is still in an abnormal state, the fault information is reported to the sending device through a network connection.
[0017] In one embodiment, the audio and video data transmission method further includes:
[0018] The playback status is reported to the sending device through a network connection. The playback status includes optical fiber playback status, local playback status, or network communication playback status.
[0019] In one embodiment, the first display device includes a first controller and a display screen, the first controller is used to perform an optical fiber connection and a network communication connection with a sending device, the first controller includes a first broadcast control module, an optical receiving module and a circuit switching module, the optical receiving module is connected to the first broadcast control module and the circuit switching module, the first broadcast control module is connected to the circuit switching module, the optical receiving module is used to perform an optical fiber connection with the sending device, the first broadcast control module is used to perform a network communication connection with the sending device, and the circuit switching module is connected to the display screen;
[0020] Detecting the optical fiber receiving state and the first display state at preset intervals includes:
[0021] At preset intervals, the optical receiving module detects the optical fiber receiving state based on the optical fiber connection;
[0022] The EDID information of the display screen is read through the optical receiving module based on the HDMI interface to determine the detection status of the display screen;
[0023] Detecting the video input status of the display screen by connecting the circuit switching module to the display screen;
[0024] When the optical fiber receiving state and the first display state meet the second preset condition, playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection includes:
[0025] When the optical receiving module detects that the optical fiber receiving state is no video source input, the optical fiber connection is interrupted, or the optical attenuation value is less than a preset threshold, or when the optical receiving module detects that the first display state is an abnormal state, the first abnormal information is sent to the first broadcast control module through the network connection;
[0026] The first broadcast control module sends a first switching signal to the circuit switching module according to the first abnormal information;
[0027] The circuit switching module switches to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection according to the first switching signal.
[0028] In one embodiment, the circuit switching module switches to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection according to the first switching signal, including:
[0029] The circuit switching module obtains the locally pre-stored audio and video data from the local storage module according to the first switching signal, and transmits the audio and video data to the display screen for playback;
[0030] Alternatively, the circuit switching module obtains the audio and video data from the sending device based on the network communication connection through the first broadcast control module according to the first switching signal, and transmits the audio and video data to the display screen for playback.
[0031] In a second aspect, an embodiment of the present application provides an audio and video data transmission method for a sending device, the audio and video data transmission method comprising:
[0032] Transmitting audio and video data to a first display device via an optical fiber connection, the first display device being used to play the audio and video data received based on the optical fiber connection at preset intervals when the optical fiber receiving state and the first display state meet a first preset condition, the first preset condition including that the optical fiber receiving state is a light attenuation value less than a preset threshold and the first display state is a normal state, the normal state including that the display screen and the video input of the display screen are detected to be normal; or, when the optical fiber receiving state and the first display state meet a second preset condition, playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, the second preset condition including that the optical fiber receiving state is a light attenuation value greater than or equal to a preset threshold or the first display state is an abnormal state, the abnormal state including that the display screen cannot be detected or the video input of the display screen is abnormal;
[0033] Receiving, through a network connection, a playback status reported by the first display device, where the playback status includes an optical fiber playback status, a local playback status, or a network communication playback status;
[0034] The audio and video data are sent to the first display device via an optical fiber connection and / or a network communication connection according to the playback status.
[0035] In a third aspect, an embodiment of the present application provides an audio and video data transmission device for a first display device, the first display device being used to perform an optical fiber connection and a network communication connection with a sending device, the audio and video data transmission device comprising:
[0036] A first state detection unit, used for receiving a play instruction, and in response to the play instruction, detecting an optical fiber receiving state and a first display state at preset intervals, wherein the first display state is a detection state of the display screen and a video input state of the display screen;
[0037] A first playback unit, configured to play audio and video data received based on the optical fiber connection when the optical fiber receiving state and the first display state meet a first preset condition, wherein the first preset condition includes that the optical fiber receiving state is that the light attenuation value is less than a preset threshold and the first display state is a normal state, wherein the normal state includes that the display screen and the video input of the display screen are detected to be normal;
[0038] The second playback unit is used to play locally pre-stored audio and video data or play audio and video data received based on a network communication connection when the optical fiber receiving state and the first display state meet a second preset condition, and the second preset condition includes that the optical fiber receiving state has an optical attenuation value greater than or equal to a preset threshold or the first display state is an abnormal state, and the abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal.
[0039] In a fourth aspect, an embodiment of the present application provides an audio and video data transmission device, including:
[0040] memory and one or more processors;
[0041] The memory is used to store one or more programs;
[0042] When the one or more programs are executed by the one or more processors, the one or more processors implement the audio and video data transmission method as described in the first aspect.
[0043] In a fifth aspect, an embodiment of the present application provides a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute the audio and video data transmission method as described in the first aspect.
[0044] In the embodiment of the present application, when a multi-backend display is performed in a ground PIS playback system, the first display device is used as one of the backend display devices, and the first display device is used to perform an optical fiber connection and a network communication connection with a sending device. When a playback instruction is received, in response to the playback instruction, the optical fiber receiving state and the first display state are detected at preset intervals. When the optical fiber receiving state and the first display state meet a first preset condition, the audio and video data received based on the optical fiber connection are played. When the optical fiber receiving state and the first display state meet a second preset condition, the locally pre-stored audio and video data or the audio and video data received based on the network communication connection are played, wherein the first preset condition includes that the optical fiber receiving state is that the optical attenuation value is less than a preset threshold and the first display state is a normal state, and the normal state of the first display state includes that the display screen and the video input of the display screen are detected to be normal; the second preset condition includes that the optical fiber receiving state is that the optical attenuation value is greater than or equal to the preset threshold or the first display state is an abnormal state, and the abnormal state of the first display state includes that the display screen cannot be detected or the video input of the display screen is abnormal. By adopting the above-mentioned technical means, the first display device can judge whether to play the audio and video data received based on the optical fiber connection, the locally pre-stored audio and video data, or the audio and video data received based on the network communication connection according to the optical fiber reception status and the first display status, so as to avoid the problem that the optical fiber transmission link is abnormal and cannot be played. When there is an abnormality in the optical fiber transmission link, the first display device can still play the locally pre-stored audio and video data or the audio and video data received based on the network communication connection, thereby ensuring the normal playback function of the first display device at the back end, improving the reliability of the audio and video playback of the display device, and further improving the user's viewing experience.
[0045] The beneficial effects of the audio and video data transmission device, audio and video data transmission equipment and storage medium provided above can refer to the beneficial effects of the audio and video data transmission method. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a schematic diagram of an existing ground PIS playback system provided in an embodiment of the present application;
[0047] Figure 2 It is a schematic diagram of a ground PIS playback system provided in an embodiment of the present application;
[0048] Figure 3 is a schematic diagram of another ground PIS playback system provided in an embodiment of the present application;
[0049] Figure 4 is a flow chart of an audio and video data transmission method provided by an embodiment of the present application;
[0050] Figure 5 is a flowchart of another audio and video data transmission method provided by an embodiment of the present application;
[0051] Figure 6 This is a flowchart of another method for transmitting audio and video data provided by an embodiment of the present application;
[0052] Figure 7 It is a structural diagram of an audio and video data transmission device provided in an embodiment of the present application;
[0053] Figure 8 It is a structural diagram of an audio and video data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0055] At present, the back-end playback (i.e., display device end) of the ground PIS playback system is mainly based on full optical fiber transmission. An LCD playback controller (as a sending device) is installed in the cabinet of the station control room, and the audio and video to be played are transmitted to the remote LCD display device through optical fiber for display. Multiple LCD display devices are usually set up at the remote end for simultaneous display or combined display. When there is a single point failure in the LCD playback controller, the corresponding LCD display device cannot display normally, and even all LCD display devices cannot display normally, affecting the user's viewing experience.
[0056] Figure 1 This is a schematic diagram of an existing ground PIS playback system provided in an embodiment of the present application, referring to Figure 1 In order to meet the needs of different display scenarios, each station generally installs at least three LCD display devices 13, one on the up platform, one on the down platform, and one in the station hall. The LCD playback controller 11 (as a sending device) is connected to multiple LCD display devices 13 through optical splitter 12 for optical fiber communication. When a single point failure occurs in the LCD playback controller 11 in the front-end playback, all LCD display devices 13 connected to the LCD playback controller 11 will not be able to display normally.
[0057] Based on this, an audio and video data transmission method, apparatus, device and storage medium of an embodiment of the present application are provided, aiming at when a ground PIS playback system performs multiple back-end displays, a first display device is used as one of the back-end display devices, and the first display device is used to perform optical fiber connection and network communication connection with a sending device. When a playback instruction is received, in response to the playback instruction, the optical fiber receiving state and the first display state are detected at preset time intervals. When the optical fiber receiving state and the first display state meet a first preset condition, the audio and video data received based on the optical fiber connection are played. When the optical fiber receiving state and the first display state meet a second preset condition, the locally pre-stored audio and video data or the audio and video data received based on the network communication connection are played, wherein the first preset condition includes that the optical fiber receiving state is that the light attenuation value is less than a preset threshold and the first display state is a normal state, and the normal state of the first display state includes that the display screen and the video input of the display screen are detected to be normal; the second preset condition includes that the optical fiber receiving state is that the light attenuation value is greater than or equal to the preset threshold or the first display state is an abnormal state, and the abnormal state of the first display state includes that the display screen cannot be detected or the video input of the display screen is abnormal. By adopting the above-mentioned technical means, the first display device can judge whether to play the audio and video data received based on the optical fiber connection, the audio and video data pre-stored locally, or the audio and video data received based on the network communication connection according to the optical fiber reception status and the first display status, so as to avoid the problem that the optical fiber transmission link is abnormal and cannot be played. When there is an abnormality in the optical fiber transmission link, the first display device can still play the audio and video data pre-stored locally or the audio and video data received based on the network communication connection, thereby ensuring the normal playback function of the first display device at the back end. Compared with the existing LCD playback controller having a single point failure, in which all the display devices at the back end cannot display normally, this embodiment improves the reliability of the audio and video playback of the display device, thereby improving the user's viewing experience.
[0058] Figure 2 is a schematic diagram of a ground PIS playback system provided in an embodiment of the present application, Figure 3 is another ground PIS playback system schematic diagram provided in the embodiment of the present application, referring to Figure 2-3The terrestrial PIS playback system provided in the embodiment of the present application includes a sending device 10 and at least one first display device 14. The sending device 10 can be an LCD playback controller. The sending device 10 is connected to multiple first display devices 14 at the back end through an optical splitter 12 based on optical fiber. The first display device 14 includes a first controller 141 and a display screen 142. The first controller 141 is used to connect to the sending device 10 through optical fiber and network communication. Exemplarily, the first controller 141 can be a two-in-one OPS playback controller. Among them, the first controller 141 includes a first broadcast control module 1411, an optical receiving module 1412 and a circuit switching module 1413. The first broadcast control module 1411 is connected to the sending device 10 (i.e., the LCD playback controller) through a switch 20 for network communication, and the optical receiving module 1412 is connected to the sending device 10 (i.e., the LCD playback controller) through an optical splitter 12 for optical fiber communication. The optical receiving module 1412 is used to connect to the sending device 10 through an optical fiber, the first broadcast control module 1411 is used to connect to the sending device 10 through a network communication, and the circuit switching module 1413 is connected to the display screen 142. In each first display device 14, the optical receiving module 1412 in the first controller 141 is connected to the first broadcast control module 1411 and the circuit switching module 1413, and the first broadcast control module 1411 is connected to the circuit switching module 1413. The sending device 10 (i.e., the LCD playback controller) includes a second broadcast control module 101 and an optical transmitting module 102, wherein the optical transmitting module 102 includes a video input detection circuit. In the sending device 10, the second broadcast control module 101 is connected to the optical transmitting module 102. The second broadcast control module 101 is connected to the first broadcast control module 1411 in the corresponding first display device 14 through a switch 20 for network communication, and the optical transmitting module 102 is connected to the optical receiving module 1412 in the corresponding first display device 14 through an optical splitter 12. The optical transmission module 102 in the sending device 10 includes a video source input detection circuit 1021 , and the video source input detection circuit 1021 is used to detect whether there is a video source input, that is, to detect whether the sending device sends audio and video data to the optical transmission module 102 .
[0059] In this embodiment, through the setting of the aforementioned ground PIS playback system, in the sending device 10, the second playback control module 101 can be used to realize the conversion between the network audio and video signal and the optical fiber audio and video signal; in each first display device 14, based on the integrated circuit switching module 1413 in the first controller 141, the switching of the playback of locally pre-stored audio and video data, the playback of network audio and video data and the playback of optical fiber audio and video data can be realized, so that through the execution of the audio and video data transmission method provided by this embodiment, it can be determined by the first display device 14 according to the optical fiber receiving state and the first display state whether to play the audio and video received based on the optical fiber connection or the locally pre-stored audio and video or the audio and video received based on the network communication connection, so as to avoid the problem that the optical fiber transmission link is abnormal and cannot be played, so that when the optical fiber transmission link is abnormal, the first display device 14 can still play the locally pre-stored audio and video or the audio and video received based on the network communication connection, thereby ensuring the normal playback function of the first display device 14 at the back end, improving the reliability of the audio and video playback of the display device, and thus improving the user's viewing experience. When the fiber optic transmission link is transmitting normally and the transmission quality is good, it switches to playing the audio and video data received based on the fiber optic connection, thereby achieving an efficient playback effect, so that when multiple first display devices 14 are displayed simultaneously or in combination, a better display effect can be achieved, further enhancing the user's viewing experience.
[0060] The optical receiving module 1412 includes an optical fiber detection circuit 1412a and a screen detection circuit 1412b, wherein the optical fiber detection circuit 1412a is used to detect the optical fiber connection state, and the screen detection circuit 1412b is used to detect the first display state. The optical fiber receiving state includes whether there is a video source input, whether the optical fiber connection is interrupted, and whether the light attenuation value is less than a preset threshold. The first display state is the detection state of the display screen and the video input state of the display screen. Exemplarily, the EDID (Extended Display Identification Data) information of the display screen 142 can be read by the optical receiving module 1412 based on the HDMI interface, and whether the display screen 142 is detected can be determined based on whether the EDID information is read. If the optical receiving module 1412 reads the EDID information of the display screen 142 based on the corresponding HDMI interface, it means that the display screen 142 is detected; if the optical receiving module 1412 cannot read the EDID information of the display screen 142 based on the corresponding HDMI interface, it means that the display screen 142 cannot be detected. After confirming that the display screen 142 is detected, it is also necessary to detect the video input state of the display screen 142, which can be detected by connecting the circuit switching module 1413 to the display screen 142. If the display screen 142 feedbacks corresponding video input state information through the connection between the circuit switching module 1413 and the display screen 142, it means that the video input of the display screen is normal; if the display screen 142 feedbacks corresponding video input state information through the connection between the circuit switching module 1413 and the display screen 142, it means that the video input of the display screen is abnormal.
[0061] Figure 4 A flowchart of an audio and video data transmission method provided in an embodiment of the present application is given. The audio and video data transmission method provided in this embodiment can be executed by an audio and video data transmission device, which can be implemented by software and / or hardware. The audio and video data transmission device can be composed of two or more physical entities, or can be composed of one physical entity. Generally speaking, the audio and video data transmission device can be a display device, such as an LCD display screen.
[0062] The following description is made by taking the LCD display screen as the main body of the audio and video data transmission method. Figure 4 The audio and video data transmission method is used for the aforementioned first display device, which may be an LCD display screen. The first display device is used to perform optical fiber connection and network communication connection with the sending device, and the audio and video data transmission method specifically includes:
[0063] S101, receiving a play instruction, and in response to the play instruction, detecting an optical fiber receiving state and a first display state at preset intervals, where the first display state is a detection state of a display screen and a video input state of the display screen.
[0064] After receiving the play instruction, each first display device responds to the play instruction and detects the fiber receiving state and the first display state at preset intervals to determine whether to switch the play. The fiber receiving state includes whether there is a video source input, whether there is a fiber connection interruption, and whether the light attenuation value is less than a preset threshold. Whether the light attenuation value is less than the preset threshold can also be used to understand whether there is a video source input and whether there is a fiber connection interruption, so the corresponding fiber connection state is directly determined based on the light attenuation value. The optical receiving module in the first display device can detect the fiber receiving state based on the fiber connection. The optical fiber receiving state can be the light attenuation value of the optical fiber connection, and the connection state of the optical fiber (or the optical fiber communication quality) is determined according to the light attenuation value. The light attenuation value obtained by the detection can be compared with the preset threshold. When the light attenuation value is less than the preset threshold, it means that the optical fiber connection state is good. When the light attenuation value is greater than or equal to the preset threshold, it means that the optical fiber connection state is abnormal, and there may be problems such as disconnection or poor optical fiber transmission quality. The first display state is the detection state of the display screen and the video input state of the display screen. Exemplarily, the EDID information of the display screen can be read by the optical receiving module based on the HDMI interface, and whether the display screen is detected can be determined based on whether the EDID information is read. If the optical receiving module reads the EDID information of the display screen based on the corresponding HDMI interface, it means that the display screen is detected; if the optical receiving module cannot read the EDID information of the display screen based on the corresponding HDMI interface, it means that the display screen cannot be detected. After determining that the display screen is detected, it is also necessary to detect the video input status of the display screen, and the video input status of the display screen can be detected by connecting the circuit switching module to the display screen. If the display screen feedbacks the corresponding video input status information through the connection between the circuit switching module and the display screen, it means that the video input of the display screen is normal; if the display screen feedbacks the corresponding video input status information through the connection between the circuit switching module and the display screen, it means that the video input of the display screen is abnormal. The first display state includes a normal state and an abnormal state. When the display screen and the video input of the display screen are detected to be normal, the first display state is a normal state; when the display screen or the video input of the display screen cannot be detected to be abnormal, the first display state is an abnormal state.
[0065] Exemplarily, the preset threshold value may be a specific value or an interval, for example, the preset threshold value is -21dB or the preset threshold value is -21dB to 75dB. When the optical attenuation value of the optical fiber connection is less than -21dB, it means that the optical receiving state is normal; when the optical attenuation value of the optical fiber connection is greater than or equal to -21dB, it means that the optical fiber receiving state is abnormal.
[0066] Exemplarily, the detection period can be set according to actual conditions, for example, it can be configured within the range of 1 to 60 seconds. By setting the detection period, the optical fiber receiving state and the first display state are detected once every preset time, thereby avoiding malfunction of the first controller.
[0067] S102. When the optical fiber receiving state and the first display state satisfy a first preset condition, play the audio and video data received based on the optical fiber connection. The first preset condition includes that the optical fiber receiving state is that the light attenuation value is less than a preset threshold and the first display state is a normal state. The normal state includes detecting that the display screen and the video input of the display screen are normal.
[0068] When the optical fiber receiving state is detected as the light attenuation value is less than the preset threshold, it means that the transmission link of the optical fiber connection is normal at this time, and there is a good optical fiber transmission effect; when the first display state is detected as the normal state, it means that the optical receiving module detects the display screen at this time, and detects that there is an optical fiber audio and video signal input to the display screen, that is, the video input of the display screen is detected to be normal, which means that the display screen can normally play the audio and video data received based on the optical fiber connection. Therefore, the optical fiber receiving state can be set as the first preset condition that the light attenuation value is less than the preset threshold and the first display state is the normal state. When the optical fiber receiving state and the first display state meet the first preset condition, the audio and video data received based on the optical fiber connection is played without causing problems such as freeze or no display, so as to achieve efficient playback effect, so that when multiple first display devices are displayed simultaneously or spliced, a better display effect can be achieved, thereby improving the user's viewing experience.
[0069] Exemplarily, when the optical fiber receiving state and the first display state meet the first preset condition, after playing the audio and video data received based on the optical fiber connection, the playing state is reported to the sending device through the network connection, and the playing state at this time is the optical fiber playing state. The sending device receives the playing state reported by the first display device, and the sending device sends the corresponding audio and video data to the first display device through the optical fiber connection according to the playing state (i.e., the optical fiber playing state).
[0070] S103. When the optical fiber receiving state and the first display state satisfy a second preset condition, play the locally pre-stored audio and video data or play the audio and video data received based on the network communication connection. The second preset condition includes that the optical fiber receiving state is that the light attenuation value is greater than or equal to a preset threshold or the first display state is an abnormal state, and the abnormal state includes that the video input of the optical fiber is abnormal or the optical fiber connection is abnormal, and the abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal.
[0071] When the optical fiber receiving state light attenuation value is greater than or equal to the preset threshold, it means that there is an abnormality in the optical fiber transmission link between the sending device and the first display device or the optical fiber transmission effect is poor. If the audio and video data received based on the optical fiber is played at this time, it may cause playback freezes or display failures. Therefore, at this time, you can switch to playing locally pre-stored audio and video data or playing audio and video data received based on the network communication connection to ensure that the display screen can play audio and video normally, avoid black screen or freezes that affect the viewing experience, and thereby improve the user's viewing experience.
[0072] The first display state is an abnormal state, wherein the abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal, that is, the optical receiving module detects that there is no optical fiber audio and video signal input to the display screen or the optical receiving module cannot detect the display screen. If the audio and video data received based on the optical fiber connection is played at this time, the display screen cannot display due to the lack of optical fiber audio and video signal input, or the display screen cannot receive normal playback due to the failure of the optical receiving module to detect the display screen. Therefore, it is possible to switch to playing locally pre-stored audio and video data or playing audio and video data received based on a network communication connection to ensure that the display screen can play audio and video data normally, avoid a black screen that affects the viewing experience, and thereby enhance the user's viewing experience.
[0073] Therefore, the optical fiber receiving state is that the light attenuation value is greater than or equal to the preset threshold or the first display state is an abnormal state, which is set as the second preset condition, wherein the abnormal state of the first display state includes that the display screen cannot be detected or the video input of the display screen is abnormal. When it is detected that the optical fiber receiving state and the first display state meet the second preset condition, the playback is switched to the locally pre-stored audio and video data or the audio and video data received based on the network communication connection, so as to ensure that the display screen can play audio and video normally, avoid the black screen or playback jams that affect the viewing experience, and thus improve the user's viewing experience.
[0074] Exemplarily, the optical receiving state is detected by the optical receiving module based on the optical fiber connection with the sending device at preset intervals, and the first display state is detected by the optical receiving module and the circuit switching module. When the optical receiving module detects that the optical fiber receiving state is no video source input, the optical fiber connection is interrupted, or the light attenuation value is less than the preset threshold, or when the optical receiving module detects that the first display state is an abnormal state, the optical receiving module sends a first abnormal information value to the first broadcast control module. The first broadcast control module sends a first switching signal to the circuit switching module according to the received first abnormal information. The circuit switching module switches to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection according to the first switching signal. The circuit switching module obtains the locally pre-stored audio and video data from the local storage module according to the first switching signal, and transmits it to the display screen for playback. Or, the circuit switching module obtains the audio and video data from the sending device through the first broadcast control module based on the network communication connection according to the first switching signal, and transmits it to the display screen for playback.
[0075] In the above, by judging whether to play the audio and video data received based on the optical fiber connection or the locally pre-stored audio and video data or the audio and video data received based on the network communication connection according to the optical fiber reception status and the first display status, the problem of being unable to play due to an abnormality in the optical fiber transmission link is avoided. When an abnormality occurs in the optical fiber transmission link, the first display device can still play the locally pre-stored audio and video data or the audio and video data received based on the network communication connection, thereby ensuring the normal playback function of the first display device at the back end. Compared with the existing LCD playback controller having a single point failure, in which all the back end display devices cannot display normally, this embodiment improves the reliability of the audio and video playback of the display device, thereby improving the user's viewing experience.
[0076] Based on the above embodiments, Figure 5 is a flowchart of another method for transmitting audio and video data provided by an embodiment of the present application, referring to Figure 5 , the audio and video data transmission method specifically includes:
[0077] S201. When the optical fiber receiving state and the first display state satisfy a second preset condition, play the locally pre-stored audio and video data or play the audio and video data received based on the network communication connection. The second preset condition includes that the optical fiber receiving state is that the light attenuation value is greater than or equal to a preset threshold or the first display state is an abnormal state. The abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal.
[0078] S202: Detect a second display state, where the second display state includes a locally pre-stored video input state and a detection state of the display screen.
[0079] When the optical fiber receiving state and the first display state meet the second preset condition, after switching to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, the second display state can be detected to determine the transmission link state of the locally pre-stored audio and video inside the first display device and whether the display screen is detected. The second display state includes the locally pre-stored video input state and the detection state of the display screen. The aforementioned S201 switches to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection. At this time, it is usually switched to play the locally pre-stored audio and video data. In order to determine whether the locally pre-stored audio and video data can be played normally, it is necessary to detect the locally pre-stored video input state and the detection state of the display screen to confirm whether there is an abnormality when playing the locally pre-stored audio and video data and to perform some operations to eliminate the abnormal playback when the playback is abnormal. Exemplarily, the EDID information of the display screen can be read by the first controller based on the HDMI interface to determine the detection state of the display screen. If the EDID information is read, it means that the display screen is detected. If the EDID information cannot be read, it means that the display screen cannot be detected. The local pre-stored video input status can be detected by connecting the circuit switching module to the display screen. If the local pre-stored video input status information fed back by the display screen is detected, it means that the local pre-stored video input is normal. If the local video input status information fed back by the display screen is not detected, it means that the local pre-stored video input is abnormal.
[0080] S203: When the second display state is an abnormal state, restart processing is performed. The abnormal state includes that the locally pre-stored video input is abnormal or the display screen cannot be detected.
[0081] After the aforementioned switching to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, if the second display state is detected to be an abnormal state, the display screen is restarted. The abnormal state of the second display state includes an abnormality of the locally pre-stored video input or the display screen cannot be detected. By restarting the display screen, an attempt is made to repair the abnormality of the locally pre-stored video input or the abnormality of the display screen cannot be detected.
[0082] S204: After the preset number of restart processes are performed, if the second display state is still in an abnormal state, report the fault information to the sending device through the network connection.
[0083] After the above-mentioned detection that the second display state is an abnormal state and the restart process is performed, the second display state is re-detected, and when the second display state is a normal state, the following S205 is executed. After the preset number of restart processes, if the second display state is still an abnormal state, it means that the abnormal state cannot be repaired based on the restart, so the playback can be stopped and the fault information can be reported to the sending device through the network connection.
[0084] It should be noted that the preset number of restarts can be set according to actual conditions and is not limited in this embodiment.
[0085] S205. When the second display state is a normal state, play the locally pre-stored audio and video data or play the audio and video data received based on the network communication connection. The normal state includes that the locally pre-stored video input is normal and the display screen is detected.
[0086] After the aforementioned switch to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, it is usually switched to play the locally pre-stored audio and video data. If it is detected that the second display state is in a normal state, the locally pre-stored audio and video data will continue to be played. The normal state of the second display state includes that the locally pre-stored video input is normal and the display screen is detected. When the second display state is in a normal state, it means that the display screen can play the locally pre-stored audio and video data normally, so the locally pre-stored audio and video data can continue to be played. In addition, the first display device reports the playback status to the sending device via the network connection. The playback status at this time includes the local playback status or the network communication playback status.
[0087] In the above, when the optical fiber receiving state and the first display state meet the second preset condition, the locally pre-stored audio and video data are played or the audio and video data received based on the network communication connection are played, and it is judged according to the second display state that the locally pre-stored audio and video data can be played normally on the display screen. When the second display state is an abnormal state, that is, the display screen cannot play normally, the display screen is restarted to try to repair the current abnormal situation. If after the restart process, it is detected that the second display state is a normal state, which means that the corresponding abnormal situation is repaired based on the restart, the locally pre-stored audio and video data will continue to be played, so as to avoid affecting the user's viewing experience due to the inability to play due to the abnormal situation, and the abnormal situation can be automatically repaired through the restart function of the first display device itself, thereby improving the intelligence and automation of abnormal repair, thereby enhancing the user's experience.
[0088] In one embodiment, when the optical fiber receiving state and the first display state meet the second preset condition, when switching to playing the locally pre-stored audio and video data, the second display state is detected, and the second display state at this time includes the locally pre-stored video input state and the link state of the local storage connection. If the second display state is detected to be an abnormal state, that is, the locally pre-stored video input is abnormal or the display screen cannot be detected, the display screen is restarted to try to repair the abnormality of the locally pre-stored video input or the abnormality of the display screen cannot be detected. After the preset number of restarts, when the second display state is still an abnormal state, switch to playing the audio and video data received based on the network communication connection, and re-execute S201-S205. If the second display state is still an abnormal state after switching to playing the audio and video data received based on the network communication connection, and after the preset number of restarts, the second display state is still an abnormal state, it means that the abnormal state cannot be repaired based on the restart, so the playback can be stopped and the fault information can be reported to the sending device through the network connection.
[0089] In one embodiment, when the optical fiber receiving state and the first display state meet the second preset condition, the playback is switched to the audio and video data received based on the network communication connection, and the second display state is detected. At this time, the second display state includes the video input state of the display screen and the detection state of the display screen. If the second display state is detected to be an abnormal state, that is, the video input of the display screen is abnormal or the display screen cannot be detected, the display screen is restarted to try to repair the abnormal video input of the display screen or the display screen cannot be detected. After the preset number of restarts, when the second display state is still an abnormal state, switch to playing the locally pre-stored audio and video data, and re-execute S201-S205. If the second display state is still an abnormal state after switching to playing the locally pre-stored audio and video data, and after the preset number of restarts, the second display state is still an abnormal state, it means that the abnormal state cannot be repaired based on the restart, so the playback can be stopped and the fault information can be reported to the sending device through the network connection.
[0090] Based on the above embodiments, Figure 6 is a flowchart of another method for transmitting audio and video data provided in an embodiment of the present application, referring to Figure 6 The audio and video data transmission method is used for sending equipment. The audio and video data transmission method specifically includes:
[0091] S301 , transmitting audio and video data to a first display device via an optical fiber connection.
[0092] The sending device initially transmits the audio and video data to the first display device via the optical fiber connection, and each first display device executes the aforementioned audio and video data transmission method of S101-S103 and S201-S205 based on the audio and video data transmitted by the sending device via the optical fiber connection, determines its own playback state, and reports the corresponding playback state to the first display device via the network connection. The playback state includes the optical fiber playback state, the local playback state, or the network communication playback state.
[0093] S302: Receive a playback status reported by a first display device through a network connection, where the playback status includes an optical fiber playback status, a local playback status, or a network communication playback status.
[0094] The sending device receives the play status reported by the first display device through a network connection, and the play status includes the optical fiber play status, the local play status or the network communication play status. It should be noted that the play status reported by each first display device may be different.
[0095] S303: Send the audio and video data to the first display device through an optical fiber connection and / or a network communication connection according to the playback status.
[0096] The sending device sends the audio and video data to the corresponding first display device through the optical fiber connection and / or the network communication connection according to the playback status reported by the corresponding first display device. For example, assuming that the playback status reported by the first display device is the optical fiber playback status, the sending device sends the audio and video data to the corresponding first display device through the optical fiber connection. Assuming that the playback status reported by the first display device is the network communication playback status, the sending device sends the audio and video data to the corresponding first display device through the network communication connection. Assuming that the playback status reported by the first display device is the local playback status, the sending device can suspend sending the audio and video data to the corresponding first display device until the corresponding first display device updates the playback status to the optical fiber playback status or the network communication playback status, and then sends the audio and video data to the first display device through the optical fiber connection or the network communication connection.
[0097] Exemplarily, in the sending device, the conversion between the network audio and video signal and the optical fiber audio and video signal can be realized through the second broadcast control module. When the audio and video data is sent to the first display device through the optical fiber connection, the audio and video data can be transmitted to the optical transmission module through the second broadcast control module, and then transmitted to the optical receiving module of the corresponding first display device through the optical transmission module. When the audio and video data is sent to the first display device through the network communication connection, it can be transmitted to the switch through the second broadcast control module, and then transmitted to the first broadcast control module of the corresponding first display device through the switch.
[0098] As described above, the sending device switches the link for providing audio and video data according to the playback status reported by the corresponding first display device. The link switching can be performed in real time according to the playback status of the first display device, thereby improving the work efficiency of audio and video data transmission, thereby improving the work efficiency of the first display device in playing the corresponding audio and video data, and further improving the user's viewing experience.
[0099] In one embodiment, a comparison table of state detection and control strategy is provided. When executing the audio and video data transmission provided by this embodiment, the corresponding control strategy can be executed according to the comparison table.
[0100]
[0101]
[0102] In the above table, the disconnection of the circuit switching module means the disconnection of the audio and video playback received by the optical fiber, that is, switching to the playback of the locally pre-stored audio and video data or the playback of the audio and video data received based on the network communication connection.
[0103] As described above, by adding an optical fiber detection circuit to the optical receiving module, the optical fiber connection state and the optical fiber connection quality detection are realized. A screen detection circuit is added to the optical receiving module to regularly detect the first display state of the display screen (i.e., LCD display screen), and automatically reset (i.e., restart) the display screen according to the detection result. By adding a circuit switching module to the first controller, the input source of the display screen (optical receiving module or first broadcast control module) can be automatically switched according to the signal detection strategy.
[0104] As described above, through the ground PIS playback system and audio and video data transmission method provided by this embodiment, the ground PIS playback system can realize that when the system function module fails, the first controller (i.e., the two-in-one OPS controller) can switch to local playback or network communication connection playback. When the sending device (i.e., the LCD playback controller) is in normal state, it can be determined by signal detection whether it is necessary to switch to local playback or network communication connection playback, as well as the circuit switching module and the first playback control module, to select the video source output to the display screen (i.e., LCD display screen) through intelligent conditional judgment, thereby solving the problem of overall system failure caused by single point failure in the existing system and improving the redundancy and reliability of system playback.
[0105] Based on the above embodiments, Figure 7 This is a schematic diagram of the structure of an audio and video data transmission device provided in an embodiment of the present application. Figure 7The audio and video data transmission device provided in this embodiment is used for a first display device, and the first display device is used to connect to a sending device through optical fiber and network communication. The audio and video data transmission device specifically includes: a first state detection unit 21, a first playback unit 22, and a second playback unit 23.
[0106] The first state detection unit 21 is used to receive a play instruction, and in response to the play instruction, detect the optical fiber receiving state and the first display state at preset intervals, wherein the first display state is the detection state of the display screen and the video input state of the display screen;
[0107] A first playback unit 22, configured to play the audio and video data received based on the optical fiber connection when the optical fiber receiving state and the first display state meet a first preset condition, wherein the first preset condition includes that the optical fiber receiving state is that the light attenuation value is less than a preset threshold and the first display state is a normal state, wherein the normal state includes that the display screen and the video input of the display screen are detected to be normal;
[0108] The second playback unit 23 is used to play locally pre-stored audio and video data or play audio and video data received based on a network communication connection when the optical fiber receiving state and the first display state meet a second preset condition, and the second preset condition includes that the optical fiber receiving state has an optical attenuation value greater than or equal to a preset threshold or the first display state is an abnormal state, and the abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal.
[0109] In one embodiment, the audio and video data transmission device further includes: a second state detection unit, a restart unit and a third playback unit;
[0110] A second state detection unit, used to detect a second display state, the second display state including a locally pre-stored video input state and a detection state of the display screen;
[0111] A restart unit, used for performing a restart process when the second display state is an abnormal state, wherein the abnormal state includes an abnormality in a locally pre-stored video input or failure to detect a display screen;
[0112] The third playback unit is used to play the locally pre-stored audio and video data or the audio and video data received based on the network communication connection when the second display state is a normal state, and the normal state includes that the locally pre-stored video input is normal and the display screen is detected.
[0113] In one embodiment, the audio and video data transmission device further includes: a re-detection unit, a fourth playback unit, and a fault reporting unit;
[0114] a re-detection unit, used for re-detecting the second display state;
[0115] A fourth playback unit, configured to play locally pre-stored audio and video data or play audio and video data received based on a network communication connection when the second display state is a normal state;
[0116] The fault reporting unit is used to report the fault information to the sending device through the network connection when the second display state is still in an abnormal state after the preset number of restart processes are performed.
[0117] In one embodiment, the audio and video data transmission device further includes: a playback status reporting unit;
[0118] The play status reporting unit is used to report the play status to the sending device through a network connection. The play status includes the optical fiber play status, the local play status or the network communication play status.
[0119] In one embodiment, the first display device includes a first controller and a display screen, the first controller is used to perform an optical fiber connection and a network communication connection with a sending device, the first controller includes a first broadcast control module, an optical receiving module and a circuit switching module, the optical receiving module is connected to the first broadcast control module and the circuit switching module, the first broadcast control module is connected to the circuit switching module, the optical receiving module is used to perform an optical fiber connection with the sending device, the first broadcast control module is used to perform a network communication connection with the sending device, and the circuit switching module is connected to the display screen;
[0120] The first state detection unit 21 includes: a first detection subunit, a second detection subunit, and a third detection subunit;
[0121] A first detection subunit, configured to detect the optical fiber receiving state based on the optical fiber connection through the optical receiving module at preset intervals;
[0122] A second detection subunit is used to read the EDID information of the display screen based on the HDMI interface through the optical receiving module to determine the detection state of the display screen;
[0123] A third detection subunit, used to detect the video input state of the display screen through the connection between the circuit switching module and the display screen;
[0124] The second playback unit 23 includes: an abnormal information sending subunit, a switching signal sending subunit and a playback switching subunit;
[0125] The abnormal information sending subunit is used to send the first abnormal information to the first broadcast control module through the network connection when the optical receiving module detects that the optical fiber receiving state is no video source input, the optical fiber connection is interrupted, or the optical attenuation value is less than a preset threshold, or when the optical receiving module detects that the first display state is an abnormal state;
[0126] A switching signal sending subunit, used for the first broadcast control module to send a first switching signal to the circuit switching module according to the first abnormal information;
[0127] The play switching subunit is used for the circuit switching module to switch to play the locally pre-stored audio and video data or play the audio and video data received based on the network communication connection according to the first switching signal.
[0128] In one embodiment, based on the above-mentioned embodiment, the play switching subunit is further used for the circuit switching module to obtain the locally pre-stored audio and video data from the local storage module according to the first switching signal, and transmit it to the display screen for playback;
[0129] Alternatively, the circuit switching module obtains the audio and video data from the sending device based on the network communication connection through the first broadcast control module according to the first switching signal, and transmits the audio and video data to the display screen for playback.
[0130] The audio and video data transmission device provided in the embodiment of the present application can be used to execute the audio and video data transmission method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0131] The present application provides an audio and video data transmission device, referring to Figure 8 The audio and video data transmission device includes: a processor 31, a memory 32, a communication module 33, an input device 34 and an output device 35. The number of processors in the audio and video data transmission device can be one or more, and the number of memories in the audio and video data transmission device can be one or more. The processor, memory, communication module, input device and output device of the audio and video data transmission device can be connected through a bus or other methods.
[0132] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the audio and video data transmission method of any embodiment of the present application (for example, the first state detection unit, the first playback unit, and the second playback unit in the audio and video data transmission device). The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0133] The communication module 33 is used for data transmission.
[0134] The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory, that is, realizes the above-mentioned audio and video data transmission method.
[0135] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.
[0136] The audio and video data transmission device provided above can be used to execute the audio and video data transmission method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0137] The embodiment of the present application also provides a storage medium storing computer executable instructions, which are used to execute an audio and video data transmission method when executed by a computer processor. The audio and video data transmission method includes: receiving a play instruction, responding to the play instruction, detecting an optical fiber receiving state and a first display state at preset intervals, the first display state being a detection state of a display screen and a video input state of the display screen; when the optical fiber receiving state and the first display state meet a first preset condition, playing the audio and video data received based on the optical fiber connection, the first preset condition including that the optical fiber receiving state has an optical attenuation value less than a preset threshold and that the first display state is a normal state, the normal state including that the display screen and the video input of the display screen are detected to be normal; when the optical fiber receiving state and the first display state meet a second preset condition, playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, the second preset condition including that the optical fiber receiving state has an optical attenuation value greater than or equal to a preset threshold or that the first display state is an abnormal state, the abnormal state including that the display screen cannot be detected or that the video input of the display screen is abnormal.
[0138] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0139] Of course, the storage medium storing computer executable instructions provided in the embodiment of the present application is not limited to the above audio and video data transmission method, and the computer executable instructions can also execute related operations in the audio and video data transmission method provided in any embodiment of the present application.
[0140] The audio and video data transmission device, storage medium and audio and video data transmission equipment provided in the above embodiments can execute the audio and video data transmission method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the audio and video data transmission method provided in any embodiment of the present application.
[0141] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A method for transmitting audio and video data, characterized in that: For a first display device, the first display device is used to perform an optical fiber connection and a network communication connection with a sending device, and the method includes: receiving a play instruction, and in response to the play instruction, detecting an optical fiber receiving state and a first display state at preset intervals, wherein the first display state is a detection state of a display screen and a video input state of the display screen; When the optical fiber receiving state and the first display state meet a first preset condition, playing the audio and video data received based on the optical fiber connection, the first preset condition includes that the optical fiber receiving state is that the light attenuation value is less than a preset threshold and the first display state is a normal state, and the normal state includes detecting that the display screen and the video input of the display screen are normal; When the optical fiber receiving state and the first display state meet the second preset condition, the locally pre-stored audio and video data or the audio and video data received based on the network communication connection are played, and the second preset condition includes that the optical fiber receiving state is that the light attenuation value is greater than or equal to a preset threshold or the first display state is an abnormal state, and the abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal.
2. The method according to claim 1, characterized in that When the optical fiber receiving state and the first display state meet the second preset condition, after playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, it includes: Detecting a second display state, where the second display state includes a locally pre-stored video input state and a detection state of the display screen; When the second display state is an abnormal state, restart processing is performed, and the abnormal state includes that the locally pre-stored video input is abnormal or the display screen cannot be detected; When the second display state is a normal state, locally pre-stored audio and video data or audio and video data received based on a network communication connection is played, and the normal state includes that the locally pre-stored video input is normal and the display screen is detected.
3. The method according to claim 2, characterized in that When the second display state is an abnormal state, after the restart process is performed, the method includes: re-detecting the second display state; When the second display state is a normal state, playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection; Or, after a preset number of restarts, when the second display state is still in an abnormal state, fault information is reported to the sending device via a network connection.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The playing status is reported to the sending device via a network connection, wherein the playing status includes an optical fiber playing status, a local playing status or a network communication playing status.
5. The method according to claim 1, characterized in that: The first display device includes a first controller and a display screen, the first controller is used to connect to the sending device through optical fiber and network communication, the first controller includes a first broadcast control module, an optical receiving module and a circuit switching module, the optical receiving module is connected to the first broadcast control module and the circuit switching module, the first broadcast control module is connected to the circuit switching module, the optical receiving module is used to connect to the sending device through optical fiber, the first broadcast control module is used to connect to the sending device through network communication, and the circuit switching module is connected to the display screen; The detecting the optical fiber receiving state and the first display state at preset intervals includes: At preset intervals, the optical receiving module detects the optical fiber receiving state based on the optical fiber connection; Reading EDID information of the display screen based on the HDMI interface through the optical receiving module to determine the detection state of the display screen; Detecting the video input state of the display screen through the connection between the circuit switching module and the display screen; When the optical fiber receiving state and the first display state meet the second preset condition, playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection includes: When the optical receiving module detects that the optical fiber receiving state is no video source input, the optical fiber connection is interrupted, or the optical attenuation value is less than a preset threshold, or when the optical receiving module detects that the first display state is an abnormal state, sending first abnormal information to the first broadcast control module through a network connection; The first broadcast control module sends a first switching signal to the circuit switching module according to the first abnormal information; The circuit switching module switches to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection according to the first switching signal.
6. The method according to claim 5, characterized in that The circuit switching module switches to playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection according to the first switching signal, including: The circuit switching module obtains the locally pre-stored audio and video data from the local storage module according to the first switching signal, and transmits the data to the display screen for playback; Alternatively, the circuit switching module obtains the audio and video data from the sending device based on the network communication connection through the first broadcast control module according to the first switching signal, and transmits the audio and video data to the display screen for playback.
7. A method for transmitting audio and video data, characterized in that: For sending equipment, including: Transmitting audio and video data to a first display device via an optical fiber connection, the first display device being used to play the audio and video data received based on the optical fiber connection at preset intervals when the optical fiber receiving state and the first display state meet a first preset condition, the first preset condition comprising that the optical fiber receiving state is a light attenuation value less than a preset threshold and the first display state is a normal state, the normal state comprising that the display screen and the video input of the display screen are detected to be normal; or, when the optical fiber receiving state and the first display state meet a second preset condition, playing the locally pre-stored audio and video data or playing the audio and video data received based on the network communication connection, the second preset condition comprising that the optical fiber receiving state is a light attenuation value greater than or equal to a preset threshold or the first display state is an abnormal state, the abnormal state comprising that the display screen cannot be detected or the video input of the display screen is abnormal; Receiving, through a network connection, a playback status reported by the first display device, wherein the playback status includes an optical fiber playback status, a local playback status, or a network communication playback status; The audio and video data are sent to the first display device via an optical fiber connection and / or a network communication connection according to the playback status.
8. An audio and video data transmission device, characterized in that: Used for a first display device, the first display device is used to perform an optical fiber connection and a network communication connection with a sending device, and the device includes: A first state detection unit, configured to receive a play instruction, and in response to the play instruction, detect an optical fiber receiving state and a first display state at preset intervals, wherein the first display state is a detection state of the display screen and a video input state of the display screen; A first playback unit, configured to play the audio and video data received based on the optical fiber connection when the optical fiber receiving state and the first display state meet a first preset condition, wherein the first preset condition includes that the optical fiber receiving state is that the light attenuation value is less than a preset threshold and the first display state is a normal state, wherein the normal state includes that the display screen and the video input of the display screen are detected to be normal; The second playback unit is used to play locally pre-stored audio and video data or play audio and video data received based on a network communication connection when the optical fiber receiving state and the first display state meet a second preset condition, and the second preset condition includes that the optical fiber receiving state has an optical attenuation value greater than or equal to a preset threshold or that the first display state is an abnormal state, and the abnormal state includes that the display screen cannot be detected or the video input of the display screen is abnormal.
9. An audio and video data transmission device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to perform the method according to any one of claims 1 to 7 when executed by a processor.