WO2025200748A1 - 显示设备及音频广播方法 - Google Patents

显示设备及音频广播方法

Info

Publication number
WO2025200748A1
WO2025200748A1 PCT/CN2025/073717 CN2025073717W WO2025200748A1 WO 2025200748 A1 WO2025200748 A1 WO 2025200748A1 CN 2025073717 W CN2025073717 W CN 2025073717W WO 2025200748 A1 WO2025200748 A1 WO 2025200748A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
data
audio track
bluetooth
track
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/073717
Other languages
English (en)
French (fr)
Inventor
邓子敬
王晓晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202410362138.XA external-priority patent/CN118741213A/zh
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202580002024.7A priority Critical patent/CN121399956A/zh
Publication of WO2025200748A1 publication Critical patent/WO2025200748A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth®, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • an embodiment of the present disclosure provides a display device, comprising: a display, a sound output device, a Bluetooth module, and a processor connected to the display, the sound output device and the Bluetooth module respectively; wherein the Bluetooth module supports a low-power audio protocol; the processor is configured to: present video data of a target resource on the display, and control the sound output device to output first audio data of the target resource; obtain audio track information of the target resource in response to a first operation; determine the number of audio tracks of the target resource based on the audio track information; when the number of audio tracks meets a first preset condition, control the display to present a multi-audio track sharing control; in response to a selection operation for the multi-audio track sharing control, control the sound output device to stop outputting the first audio data; control the Bluetooth module to send multiple Bluetooth broadcast data, the multiple Bluetooth broadcast data correspond one-to-one to the multiple audio track data of the target resource, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track data.
  • an embodiment of the present disclosure provides a display device, comprising: a display, a sound output device, a Bluetooth module, and a processor connected to the display, the sound output device and the Bluetooth module respectively; wherein the Bluetooth module supports a low-power audio protocol; the processor is configured to: present video data of a target resource on the display, and control the sound output device to output first audio data of the target resource; in response to a first operation, obtain audio track information of the target resource; determine the number of audio tracks of the target resource and the decoding type of the audio track data of the target resource based on the audio track information; when the number of audio tracks meets a first preset condition and the decoding type of the audio track data of the target resource meets a third preset condition, control the display to present a multi-audio track sharing control; in response to a selection operation for the multi-audio track sharing control, control the sound output device to stop outputting the first audio data; control the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data corresponding one-
  • an embodiment of the present disclosure provides a display device, comprising: a display, a sound output device, a Bluetooth module, and a processor connected to the display, the sound output device and the Bluetooth module respectively; wherein the Bluetooth module supports a low-power audio protocol; the processor is configured to: present video data of a target resource on the display, and control the sound output device to output first audio data of the target resource; in response to a first operation, obtain audio track information of the target resource; determine the number of audio tracks of the target resource and the decoding type of the audio track data of the target resource based on the audio track information; when the number of audio tracks meets a first preset condition and the decoding type of the audio track data of the target resource meets a third preset condition, control the display to present a multi-audio track sharing control; in response to a selection operation for the multi-audio track sharing control, control the sound output device to stop outputting the first audio data; control the Bluetooth module to send multiple Bluetooth broadcast data, the multiple Bluetooth broadcast data corresponding one-to-one to
  • an embodiment of the present disclosure provides a display device, comprising: a display, a sound output device, a Bluetooth module, and a processor connected to the display, the sound output device and the Bluetooth module respectively; wherein the Bluetooth module supports a low-power audio protocol; the processor is configured to: present video data of a target resource on the display, and control the sound output device to output first audio data of the target resource; in response to a first operation, obtain audio track information of the target resource; determine the number of audio tracks of the target resource based on the audio track information; when the number of audio tracks meets a first preset condition, control the display to present a multi-audio track sharing control, wherein the multi-audio track sharing control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, or trigger the Bluetooth module to send the multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track data of the target resource.
  • an embodiment of the present disclosure provides a display device, comprising: a display, a Bluetooth module, a sound output device, and a processor connected to the Bluetooth module; wherein the processor is configured to: obtain the audio track of the target audio and video resource; wherein there is a one-to-one correspondence between the audio track and the language, and the audio track is used to store the audio data of the language corresponding to itself; if it is determined that the number of audio tracks of the target audio and video resource is not less than a preset number threshold, then when receiving an audio track configuration operation for at least two target audio tracks in the audio tracks of the target audio and video resource, control the display to display a device management page, and display the connected LE audio device; receiving a first target audio track configured for a first LE audio device among the connected LE audio devices; wherein the first target audio track belongs to at least two target audio tracks; in response to an audio broadcast trigger operation for the at least two target audio tracks, issuing multiple Bluetooth broadcasts based on the at least two target audio tracks, and sending broadcast
  • the embodiment of the present disclosure also provides an audio broadcasting method, which is applied to the display device provided in the first aspect, and the display device includes: a display, a sound output device, a Bluetooth module and a processor, and the method includes: presenting video data of the target resource on the display, and controlling the sound output device to output the first audio data of the target resource; in response to a first operation, obtaining the audio track information of the target resource; determining the number of audio tracks of the target resource based on the audio track information; when the number of audio tracks meets the first preset condition, controlling the display to present a multi-audio track sharing control; in response to a selection operation for the multi-audio track sharing control, controlling the sound output device to stop outputting the first audio data; controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data corresponding one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data being used to broadcast audio data corresponding to one audio track data of the target resource.
  • the embodiment of the present disclosure also provides an audio broadcasting method, which is applied to the display device provided in the second aspect, and the display device includes: a display, a sound output device, a Bluetooth module and a processor, and the method includes: presenting video data of the target resource on the display, and controlling the sound output device to output the first audio data of the target resource; in response to a first operation, obtaining the audio track information of the target resource; determining the number of audio tracks of the target resource based on the audio track information; when the number of audio tracks meets the first preset condition, controlling the display to present a multi-audio track sharing control; in response to a selection operation for the multi-audio track sharing control, controlling the sound output device to stop outputting the first audio data; controlling the Bluetooth module to send multiple Bluetooth broadcast data, the multiple Bluetooth broadcast data correspond one-to-one to the multiple audio track data of the target resource, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track data.
  • the embodiment of the present disclosure also provides an audio broadcasting method, which is applied to the display device provided in the third aspect, and the display device includes: a display, a sound output device, a Bluetooth module and a processor, and the method includes: presenting video data of the target resource on the display, and controlling the sound output device to output the first audio data of the target resource; in response to a first operation, obtaining the audio track information of the target resource; determining the number of audio tracks of the target resource and the decoding type of the audio track data of the target resource based on the audio track information; when the number of audio tracks meets the first preset condition and the decoding type of the audio track data of the target resource meets the third preset condition, controlling the display to present a multi-audio track sharing control; in response to a selection operation for the multi-audio track sharing control, controlling the sound output device to stop outputting the first audio data; controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data corresponding one-to-one to the multiple Bluetooth devices, and one
  • the embodiment of the present disclosure also provides an audio broadcasting method, which is applied to the display device provided in the fifth aspect, and the display device includes: a display, a sound output device, a Bluetooth module and a processor, and the method includes: presenting video data of the target resource on the display, and controlling the sound output device to output the first audio data of the target resource; in response to a first operation, obtaining the audio track information of the target resource; determining the number of audio tracks of the target resource based on the audio track information; when the number of audio tracks meets a first preset condition, controlling the display to present a multi-audio track sharing control, wherein the multi-audio track sharing control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, or trigger the Bluetooth module to send the multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track data of the target resource.
  • the display device includes: a display, a sound output device, a Bluetooth module and
  • the embodiment of the present disclosure further provides an audio broadcasting method, which is applied to the display device provided in the sixth aspect, and the display device includes: a display, a sound output device, a Bluetooth module and a processor, and the method includes: obtaining the audio track of the target audio and video resource; wherein there is a one-to-one correspondence between the audio track and the language, and the audio track is used to store the audio data of the language corresponding to itself; if it is determined that the number of audio tracks of the target audio and video resource is not less than a preset number threshold, then when receiving the audio track configuration operation for at least two target audio tracks in the audio tracks of the target audio and video resource, controlling the display to display the device management page, and displaying A connected LE audio device; receiving a first target audio track configured for a first LE audio device among the connected LE audio devices; wherein the first target audio track belongs to at least two target audio tracks; in response to an audio broadcast trigger operation for the at least two target audio tracks, issuing multiple Bluetooth broadcasts
  • FIG2 is a schematic diagram of one-to-two audio transmission of unicast media audio in the related art according to some embodiments
  • FIG5 is a schematic diagram of continuously sending BIG in the related art according to some embodiments.
  • FIG6 is a schematic diagram of a scenario of audio broadcasting in the related art according to some embodiments.
  • FIG10 is a schematic diagram of a software system architecture of a display device according to some embodiments.
  • FIG12 is a flowchart of an audio broadcasting method according to some embodiments.
  • FIG13 is a schematic diagram of interface changes during a target resource selection process according to some embodiments.
  • FIG14 is a schematic diagram illustrating an interface change from a playback page to a multilingual sharing page according to some embodiments
  • FIG17 is a schematic diagram of interface changes for configuring a Bluetooth device according to some embodiments.
  • FIG18 is a schematic diagram of a mapping relationship between a target audio track and a BIS stream according to some embodiments
  • FIG21 is a flowchart illustrating one of interactions of an audio broadcasting method according to some embodiments.
  • FIG22 is a second interactive flow chart of the audio broadcasting method according to some embodiments.
  • FIG23 is a fifth flowchart of an audio broadcasting method according to some embodiments.
  • FIG24 is a sixth flowchart of an audio broadcasting method according to some embodiments.
  • FIG25 is a third interactive flow chart of an audio broadcasting method according to some embodiments.
  • FIG27 is a schematic diagram illustrating changes in an interface presenting a multi-track sharing control according to some embodiments.
  • FIG28 is a schematic diagram showing interface changes for entering multi-track sharing according to some embodiments.
  • FIG29 is a schematic diagram of an interface change for switching audio broadcasts according to some embodiments.
  • FIG31 is a schematic diagram illustrating a change in a device connection state according to some embodiments.
  • FIG32 is a schematic diagram of an interface change for canceling multi-track sharing according to some embodiments.
  • the Bluetooth low energy audio (LE audio) protocol is a communication protocol based on Bluetooth technology that uses low-power audio transmission to achieve broadcast signal reception.
  • the LE audio protocol has the following advantages:
  • a broadcast audio device also called an audio sending device, such as a display device
  • the LE Audio application layer specification telephony and media audio profile defines two media audio applications: unicast media audio and broadcast media audio.
  • Unicast media audio in TMAP utilizes a more advanced audio codec than the current Bluetooth Classic Advanced Audio Distribution Profile (A2DP) to provide better sound quality and offers richer control features than the Bluetooth Classic Audio/Video Remote Control Profile (AVRCP).
  • A2DP Bluetooth Classic Advanced Audio Distribution Profile
  • AVRCP Bluetooth Classic Audio/Video Remote Control Profile
  • TMAP defines two roles for unicast media audio applications: the unicast media sender (UMS) and the unicast media receiver (UMR).
  • UMS unicast media sender
  • UMR unicast media receiver
  • Unicast media audio is transmitted between the UMS and UMR using a connected isochronous stream (CIS).
  • the unicast media audio defined in TMAP is not limited to one-to-one audio transmission, but also supports a unicast media sender transmitting unicast media audio to two unicast media receivers.
  • Fig. 1 is a schematic diagram of one-to-one audio transmission of unicast media audio in the related art according to some embodiments. As shown in Fig. 1 , UMS 11 sends unicast media audio to UMR 12 .
  • Fig. 2 is a schematic diagram of one-to-two audio transmission of unicast media audio in the related art according to some embodiments.
  • UMS 21 sends unicast media audio to UMR 22 and UMR 23 respectively.
  • Broadcast media audio in TMAP is transmitted synchronously over multiple connectionless broadcast isochronous streams (BIS).
  • BIS connectionless broadcast isochronous streams
  • the broadcast synchronization channel for broadcast media audio in TMAP utilizes two concepts: the broadcast isochronous group (BIG) and the BIS.
  • An audio transmitter can simultaneously transmit multiple BIGs, each of which is composed of multiple BISs.
  • a BIG can contain up to 31 BISs.
  • Each BIS has a unique access address, generated using a unified algorithm based on the seed access address of the BIG to which it belongs.
  • Broadcast media audio can include multiple broadcasts with different access addresses, including:
  • Extended advertising An extended advertisement on the main advertising channel, using the ADV_EXT_IND packet and using time and frequency information to point to the secondary advertisement. Its access address is the main advertisement access address specified in the Bluetooth core specification: 0x8E89BED6.
  • Periodic advertising uses AUX_ADV_IND packets and points to the periodic advertising through time, frequency hopping map, and access address.
  • the periodic advertising uses AUX_SYNC_IND packets and contains BIG information (BIGinfo).
  • Broadcast Isochronous Stream A broadcast isochronous stream that periodically broadcasts digital audio using a time, frequency hopping map, access address, and BIG information (big info) pointing to the BIS, using BIS protocol data unit (PDU) packets.
  • BIS BIS protocol data unit
  • Bluetooth operates in the 2.4GHz band, which has a frequency range of 2402MHz to 2480MHz, with a channel every 2MHz, for a total of 40 channels.
  • These 40 channels include three primary broadcast channels: channel 37, channel 38, and channel 39.
  • the remaining 37 channels are secondary broadcast channels, from channel 0 to channel 36.
  • FIG3 is a schematic diagram of the relationship between extended broadcast, periodic broadcast, and BIS according to some embodiments.
  • the main broadcast channel includes channel 37, channel 38, and channel 39.
  • the secondary broadcast channel includes: channel 0 to channel 36.
  • the extended broadcast on the main broadcast channel can use the ADV_EXT_IND packet and point to the subsidiary broadcast of the secondary broadcast channel through time and frequency information.
  • the subsidiary broadcast then uses the AUX_ADV_IND packet to point to the periodic broadcast through time, frequency hopping map, and access address.
  • the periodic broadcast uses the AUX_SYNC_IND packet to point to the BIS through time, frequency hopping map, access address, and BIG information (BIGinfo).
  • the BIS uses the BIS PDU packet to broadcast digital audio.
  • FIG4 is a schematic diagram illustrating the relationship between an extended broadcast packet, an auxiliary broadcast packet, a periodic broadcast packet, and a BIS according to some embodiments.
  • an audio transmitting device transmits an extended broadcast packet (ADV_EXT_IND) on a primary broadcast channel (37, 38, 39).
  • the extended broadcast packet includes: a broadcast device address (AdvA), broadcast data information (ADI), and a pointer to an auxiliary broadcast packet (AuxPtr). AuxPtr indicates that an auxiliary broadcast will be performed on the secondary broadcast channel.
  • the auxiliary broadcast packet (AUX_ADV_IND) includes: extended broadcast data (AdvData), a Broadcast Audio Announcement Service UUID, and other service UUIDs.
  • the auxiliary broadcast packet indicates the data channel and broadcast period for the periodic broadcast.
  • a periodic announcement packet (AUX_SYNC_IND) includes additional controller advertising data (BIGinfo) and the Basic Audio Announcement Service (UUID) for the extended announcement data.
  • the periodic announcement packet contains all information about the broadcast isochronous stream (BIS). After receiving the periodic announcement packet, the broadcast receiver receives the BIS data on a specific channel at a specific time anchor based on the included data, resulting in the BIS audio stream.
  • each time a BIG is sent it can be called a BIG event, and each BIG event can include multiple BIS.
  • FIG5 is a schematic diagram of continuously sending BIG in the related art according to some embodiments.
  • the BIG anchor point shown in FIG5 indicates the start time of each BIG event, and the time interval between the two anchor points is a cycle for executing the BIG event.
  • FIG5 is illustrated by taking 3 BIG events, each of which includes 2 BIS as an example.
  • FIG5 shows the continuous execution of BIG event X, BIG event (X+1) and BIG event (X+2), wherein each BIG event includes 2 BIS streams, namely BIS1 and BIS2 shown in FIG5 .
  • the BIS stream will be broadcast during the execution of the BIG time, and in the process of broadcasting the BIS stream, the BIS stream will be broadcast once after a fixed time interval.
  • smart TVs need to be able to broadcast multilingual audio.
  • a TV is deployed in each of the four different areas of the airport: Area A, Area B, Area C, and Area D. Audio is broadcast to users in each area through the TV's speakers.
  • an embodiment of the present disclosure provides a display device, which may include a Bluetooth module that supports the low-power audio protocol (bluetooth low energy audio, LE audio). While the display of the display device presents the video data of the target resource, the Bluetooth module is controlled to send multiple Bluetooth broadcast data, wherein the multiple Bluetooth broadcast data correspond one-to-one to the multiple audio track data of the target resource, that is, one Bluetooth broadcast data is used to broadcast the audio data corresponding to one audio track data of the target resource.
  • the embodiment of the present disclosure can send Bluetooth broadcast data corresponding to different audio track data to different Bluetooth devices, so as to realize the function of synchronous playback of multiple audio track data for the same audio and video resource by using audio broadcasting, which can improve the broadcast efficiency.
  • the embodiment of the present disclosure can realize the function of synchronous playback of multiple languages for the same audio and video resource.
  • Scenario 1 In an airport scenario, in order to provide information (such as flight information, missing person notices, etc.) to users with different language backgrounds, display devices are usually arranged in different areas of the airport. Each display device can simultaneously broadcast audio data corresponding to multiple audio track data of the target resource (such as audio data in multiple languages).
  • FIG7 is a schematic diagram of an audio broadcasting scenario according to some embodiments.
  • a television is deployed in an airport hall, and an LE audio device (such as a Bluetooth speaker) is respectively arranged in different areas of the airport (such as area A, area B, area C, and area D).
  • the Bluetooth module of the television deployed in the hall can send multiple Bluetooth broadcast data, and Bluetooth broadcast data corresponding to the target audio track data can be sent to the LE audio device.
  • Bluetooth broadcast data corresponding to track data 1 is sent to LE audio devices in area A
  • Bluetooth broadcast data corresponding to track data 2 is sent to LE audio devices in area B
  • Bluetooth broadcast data corresponding to track data 3 is sent to LE audio devices in area C
  • Bluetooth broadcast data corresponding to track data 4 is sent to LE audio devices in area D.
  • LE audio devices deployed in different areas then receive the corresponding Bluetooth broadcast data and play the corresponding audio data, enabling LE audio devices in different areas to play audio data in different languages.
  • the user can also receive the TV's Bluetooth broadcast data through a Bluetooth device (such as a mobile phone or Bluetooth headset).
  • a Bluetooth device such as a mobile phone or Bluetooth headset.
  • user 1 can choose to receive Chinese audio data (i.e., audio track data 1)
  • user 2 can choose to receive English audio data (i.e., audio track data 2).
  • the audio broadcasting method provided by the embodiment of the present disclosure does not need to deploy multiple display devices in different areas to play different languages. Instead, it can use audio broadcasting to achieve the function of simultaneous playback of multiple languages for the same audio and video resources through one display device and multiple LE audio devices.
  • Scenario 2 During a multi-person meeting, the conference screen can be presented through a display device.
  • the audio data of multiple audio tracks corresponding to the conference content (such as audio data in multiple languages) can be broadcast simultaneously through the display device.
  • each participant can choose to receive a certain audio track data (i.e., audio data in a certain language) through a Bluetooth device, thereby realizing the simultaneous broadcasting of multilingual audio to meet the needs of different users.
  • the display device and audio broadcasting method provided in the embodiments of the present disclosure can also be applied to other scenarios, which is not limited in the embodiments of the present disclosure.
  • the display device provided in the embodiments of the present disclosure can support the LE audio protocol.
  • the display device can be used as an audio playback device (i.e., an audio transmitter) or a device for configuring an audio receiver.
  • the audio receiver in the embodiments of the present disclosure can also support the LE audio protocol.
  • the display device 200 generally refers to a device capable of displaying images and processing data.
  • the display device 200 includes but is not limited to smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.
  • FIG 8 is a schematic diagram of an operation scenario between a display device and a control device according to some embodiments.
  • a user can operate the display device 200 through touch operation, a mobile terminal 300, and a control device 100.
  • the control device 100 can be a remote control, a stylus, a handle, etc.
  • the mobile terminal 300 can function as a control device for performing human-computer interaction between a user and the display device 200.
  • the mobile terminal 300 can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data.
  • the mobile terminal 300 can install software applications with the display device 200, enabling connection and communication via a network communication protocol, enabling one-to-one control operations and data communication. Audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 for synchronized display.
  • the display device 200 also communicates data with the server 400 via various communication methods.
  • the display device 200 may be connected to the server 400 via a local area network (LAN), a wireless local area network (WLAN), or other networks.
  • LAN local area network
  • WLAN wireless local area network
  • FIG. 9 is a block diagram illustrating a hardware configuration of the display device 200 in FIG. 8 according to some embodiments.
  • the display 260 includes a display component for presenting images and a driver component for driving image display.
  • the display 260 is configured to receive image signals output from the processor 250 for display.
  • the display 260 can be configured to display video content, image content, menu control interface components, and user control UI interfaces.
  • the display 260 may be a liquid crystal display, an OLED display, a projection display, or a projection device and a projection screen.
  • the communicator 220 is a component for communicating with an external device or server 400 according to various communication protocol types.
  • the display device 200 may be provided with multiple communicators 220 depending on the supported communication methods. For example, if the display device 200 supports wireless network communication, the display device 200 may be provided with a communicator 220 including WiFi functionality. If the display device 200 supports Bluetooth connection communication, the display device 200 may also be provided with a communicator 220 including Bluetooth functionality.
  • the display device 200 may obtain a user instruction sent by the control device through the communicator 220, and implement the audio broadcasting method provided by the embodiment of the present disclosure according to the user instruction.
  • the Bluetooth module may be a Bluetooth module that supports the LE Audio protocol.
  • the Bluetooth module may be a Bluetooth module that supports the LE Audio protocol or a Bluetooth module that does not support the LE Audio protocol.
  • detector 230 is used to collect signals from the external environment or external interactions.
  • detector 230 may include a light receiver, such as a sensor for collecting ambient light intensity; or an image collector, such as a camera, for collecting external environmental scenes, user attributes, or user interaction gestures; or a sound collector, such as a microphone, for receiving external sounds.
  • the external device interface 240 may include, but is not limited to, any one or more of the following: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input/output interface formed by multiple of the above interfaces.
  • HDMI high-definition multimedia interface
  • CVBS composite video input interface
  • USB USB input interface
  • RGB port an RGB port
  • the processor 250 is configured to: present video data of the target resource on a display, and control the sound output device to output the first audio data of the target resource; obtain the audio track information of the target resource in response to a first operation; determine the number of audio tracks of the target resource based on the audio track information; control the display to present a multi-audio track sharing control when the number of audio tracks meets a first preset condition; control the sound output device to stop outputting the first audio data in response to a selection operation on the multi-audio track sharing control; control the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track data of the target resource.
  • the processor 250 before determining a first quantity of first audio track data from multiple audio track data of a target resource, the processor 250 is further configured to: if the number of audio tracks is greater than a second preset number, control the display to present multiple audio track identifiers, and the multiple audio track identifiers correspond one-to-one to the multiple audio track data of the target resource; wherein, when the processor 250 determines a first quantity of first audio track data from multiple audio track data of a target resource, the processor 250 is specifically configured to: in response to a selection operation for a first quantity of first audio track identifiers among the multiple audio track identifiers, determine the audio track data corresponding to each first audio track identifier as the first audio track data.
  • the multiple audio track data of the target resource include second audio track data and third audio track data; when the processor 250 controls the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, it is specifically configured to: determine the first Bluetooth device corresponding to the second audio track data based on the association relationship between the audio track index and the device identifier; control the Bluetooth module to send first Bluetooth broadcast data to the first Bluetooth device based on the first Bluetooth broadcast channel corresponding to the second audio track data, and the first Bluetooth broadcast data is used to broadcast the audio data corresponding to the second audio track data; determine the second Bluetooth device corresponding to the third audio track data based on the association relationship; control the Bluetooth module to send second Bluetooth broadcast data to the second Bluetooth device based on the second Bluetooth broadcast channel corresponding to the third audio track data, and the second Bluetooth broadcast data is used to broadcast the audio data corresponding to the third audio track data.
  • the processor 250 before controlling the Bluetooth module to send a plurality of Bluetooth broadcast data to a plurality of Bluetooth devices, the processor 250 is further configured to: control the Bluetooth module to switch to a Bluetooth broadcast channel.
  • the processor 250 before controlling the Bluetooth module to send multiple Bluetooth broadcast data, is further configured to: control the player to pause playing the video data in response to a selection operation on the multi-track sharing control; wherein, when the processor 250 controls the Bluetooth module to send multiple Bluetooth broadcast data, it is specifically configured to: when determining that the Bluetooth module switches to the Bluetooth broadcast channel, control the Bluetooth module to send multiple Bluetooth broadcasts based on multiple Bluetooth broadcast channels, and control the player to replay the video data from the start time of the video.
  • the processor 250 before controlling the Bluetooth module to send multiple Bluetooth broadcast data, is further configured to: control the player to pause playing the video data in response to a selection operation on a multi-track sharing control, and obtain the playback progress information of the video data; wherein, when controlling the Bluetooth module to send multiple Bluetooth broadcast data, the processor 250 is specifically configured to: when determining that the Bluetooth module switches to the Bluetooth broadcast channel, control the player to replay the video data according to the playback progress information, and process the audio data corresponding to the multiple audio track data of the target resource according to the playback progress information, and control the Bluetooth module to send multiple Bluetooth broadcast data based on the multiple processed audio data, wherein one Bluetooth broadcast data is used to broadcast one processed audio data.
  • FIG 10 is a schematic diagram of the software system architecture of a display device 200 according to some embodiments.
  • the software system includes at least: an application (APP) layer (referred to as the application layer), an application framework (framework) layer (referred to as the framework layer), a dynamic library (Library), a kernel layer, and a hardware layer.
  • APP application
  • framework framework
  • Library dynamic library
  • the application layer is used to deploy TV-related functions.
  • the application layer may include TV settings applications and TV services.
  • the application layer may also include a media center application (i.e., media center APP) and a Bluetooth setting application (i.e., Bluetooth setting).
  • media center APP serves as a bridge between the user and the TV media playback function, providing a user interface and interaction logic.
  • the media center APP can be used to manage and play media resources stored locally on the display device or on the network, such as audio and video resources.
  • the Bluetooth setting application can be used to turn on and off the Bluetooth connection function of the display device, as well as to manage the Bluetooth device list.
  • the Bluetooth settings application can be an Android application package (APK) belonging to the TV device application for setting up Bluetooth.
  • APIK Android application package
  • the framework layer includes components such as a media player, Bluetooth API, Bluetooth APK, and audio modules.
  • the media player is the core component that actually performs media playback, responsible for playing audio and video files in various formats. Furthermore, the media player typically has built-in or supports multiple codecs for decoding compressed media files, allowing them to play the original audio and video data on a display device.
  • Bluetooth applications may include specifications related to the Bluetooth protocol, such as one or more of the A2DP application specification, the LE Audio application specification, and the Hearing Aid application specification.
  • the A2DP (Advanced Audio Distribution Profile) application specification is a media audio application specification in classic Bluetooth
  • the LE Audio application specification is a low-power audio application specification based on Bluetooth
  • the Hearing Aid application specification is a hearing aid application specification based on Bluetooth Low Energy (BLE).
  • BLE Bluetooth Low Energy
  • a Bluetooth application may include a Bluetooth broadcast component.
  • the Bluetooth broadcast component is used to send broadcast information so that other Bluetooth devices can scan the display device.
  • the Bluetooth broadcast component can be integrated into a media center app at the application layer, allowing the media center app to perform Bluetooth-related operations, such as discovering other Bluetooth devices, establishing Bluetooth connections, and transmitting data.
  • the audio module may include one or more of an audio manager and an audio service.
  • the audio module is primarily responsible for sending audio data from Bluetooth applications to the Bluetooth protocol stack.
  • channel audio data is primarily transmitted through the audio channel between the audio module and the Bluetooth protocol stack.
  • the Bluetooth protocol stack After receiving the channel audio data, the Bluetooth protocol stack encapsulates the channel audio data into a BIS stream.
  • the dynamic library includes the Bluetooth protocol stack (BT Stack) and the Bluetooth audio hardware abstraction layer (Bluetooth Audio HAL).
  • the Bluetooth protocol stack is primarily responsible for scanning, connecting, and configuring Bluetooth devices. When establishing a Bluetooth connection with a Bluetooth device, the display device can send relevant data to the Bluetooth protocol stack through the Bluetooth application in the display device.
  • the hardware layer may include a Bluetooth module (ie, the Bluetooth module in the communicator 220 shown in FIG9 ).
  • the Bluetooth protocol stack may interact with the Bluetooth module of the hardware layer through a Bluetooth driver.
  • the Bluetooth module in the Bluetooth device can also support the LE audio protocol.
  • FIG. 9 and FIG. 10 The following embodiments of the present disclosure will take a display device having the structure shown in FIG. 9 and FIG. 10 as an example, and combine the accompanying drawings and application scenarios to specifically illustrate an audio broadcasting method provided by an embodiment of the present disclosure.
  • the video data of the target resource can be presented on a display, and the sound output device can be controlled to output the first audio data of the target resource.
  • the audio track information of the target resource can be obtained, and the number of audio tracks of the target resource can be determined based on the audio track information of the target resource.
  • it is determined whether the target resource can share multi-track data If the target resource can share multi-track data, the display is controlled to present a multi-track sharing control.
  • the Bluetooth module can be controlled to send multiple Bluetooth broadcast data to multiple Bluetooth devices, or the Bluetooth module can be directly controlled to send multiple Bluetooth broadcast data.
  • Method 1 Send Bluetooth broadcast data corresponding to different audio tracks to different Bluetooth devices
  • FIG12 is a flow chart of an audio broadcasting method according to some embodiments. As shown in FIG12 , the method may include the following steps:
  • the target resource (also referred to as the target audio and video resource) can be the audio and video resource currently to be played selected by the user, that is, the audio and video resource currently being played by the display device.
  • the target audio and video resource can also be any video resource among the audio and video resources to be played.
  • the audio and video resources include at least one or more of audio resources (i.e., audio data) and video resources (i.e., video data).
  • the audio and video resources can be pre-stored in the display device, or can be obtained by the display device according to preset conditions.
  • the target audio and video resources can be an audio resource that is downloaded from a multimedia server to the display device according to a specific address and is being played.
  • the target resource may include one or more audio track data (also referred to as audio track for short), and the audio track data is used to indicate the audio data included in the target resource, that is, different audio track data correspond to different audio data.
  • an audio track can be used to indicate the audio information included in the target audio and video resource, and different audio tracks correspond to different audio information; there is a one-to-one correspondence between the audio track and the language of the target audio and video resource, that is, different audio track data correspond to different audio data of different language types (i.e., languages), i.e., one audio track data corresponds to audio data of one language type.
  • different audio track data correspond to different audio data of different language types (i.e., languages), i.e., one audio track data corresponds to audio data of one language type.
  • the language type of the audio data corresponding to audio track data 1 is Chinese (audio track data 1 corresponds to Chinese audio data)
  • the language type of the audio data corresponding to audio track data 2 is English (audio track data 2 corresponds to English audio data)
  • the language type of the audio data corresponding to audio track data 3 is French (audio track data 2 corresponds to French audio data).
  • different audio track data correspond to different channel configuration information.
  • audio track data 1 is mono
  • audio track data 2 is stereo
  • audio track data 3 is surround sound.
  • the audio data corresponding to different audio track data may undergo different audio processing (such as equalization, compression, reverberation, etc.), and the format type of the corresponding audio data may be different.
  • one audio track data may include one or more channels, wherein a channel may be used to represent a transmission and processing channel of an audio signal in a physical or virtual environment.
  • the first audio data refers to the audio data corresponding to the audio track data output by the sound output device when the display device plays the video data of the target resource.
  • the first audio data is the audio data corresponding to the audio track data.
  • the target resource includes multiple audio track data
  • the first audio data can be the audio data corresponding to any one of the multiple audio track data. For example, taking the target resource including audio track data 1 and audio track data 2 as an example, wherein audio track data 1 corresponds to Chinese audio data and audio track data 2 corresponds to English audio data, the first audio data can be the audio data corresponding to audio track data 1, that is, Chinese audio data.
  • the user may select the target resource through a first application, which may be the media center APP in the aforementioned embodiment, or a third-party audio and video application installed on the display device.
  • a first application which may be the media center APP in the aforementioned embodiment, or a third-party audio and video application installed on the display device.
  • FIG. 13 is an interface diagram of the target resource selection process according to some embodiments.
  • the display device starts the media center APP and presents the audio and video resource interface 1301 of the media center APP on the display.
  • the audio and video resource interface 1301 includes multiple audio and video resources to be played, such as audio and video resource A, audio and video resource B, and audio and video resource C.
  • the media center APP determines audio and video resource B as the target resource and enters the playback interface 1302 of audio and video resource B shown in (b) in Figure 13.
  • the selection operation for audio and video resource B can be the operation of the user selecting audio and video resource B through the control device, or it can be a voice command input by the user to select audio and video resource B.
  • the target resource may be a local audio and video resource stored in the display device, or a network audio and video resource.
  • the embodiment of the present disclosure does not limit the specific type and acquisition method of the target resource.
  • the display device parses the video data corresponding to the target resource and the audio data of a track data in the target resource (i.e., the first audio data) according to the storage address of the target resource, and then controls the display to present the video data of the target resource, and controls the sound output device to output the first audio data.
  • the process of controlling the display to present the video data of the target resource and controlling the sound output device to output the first audio data is described.
  • the media center APP of the application layer obtains the storage address of the target resource and sends the storage address of the target resource to the player of the framework layer.
  • the player receives the storage address of the target resource sent by the media center APP, the player parses and obtains the video data of the target resource and the audio data corresponding to one of the audio track data (i.e., the first audio data) based on the storage address of the target resource.
  • the player controls the display to present the video data of the target resource through the display driver, and the player controls the sound output device to output the first audio data through the sound driver.
  • the target resource can also be decoded to obtain the audio information of the target resource (i.e., the audio track information), that is, the audio track information of the target resource is obtained.
  • obtaining the audio track information of the target resource may include: in response to a first operation (i.e., the audio track menu invoking operation), obtaining the audio track information of the target resource.
  • the first operation is the invoking operation of the audio track menu.
  • the first operation can be the user pressing the menu key of the control device.
  • the first operation can also be a voice command input by the user to invoke the audio track menu.
  • the target resource's audio track information may include index information, language type information, track type information, and track format information.
  • the index information indicates the storage location of the audio track data, specifically the storage location of the audio data corresponding to the track data.
  • the language type information indicates the language type of the audio data corresponding to the track data. For example, the voice type information for track data 1 is Chinese, the voice type information for track data 2 is English, and the voice type information for track data 3 is French.
  • the track type information is used to distinguish audio track data from subtitle data.
  • the audio track format information is used to indicate the format type of the audio data corresponding to the audio track data.
  • the format type of the audio data may include a lossy compression format, a lossless compression format, and a multi-channel audio format.
  • the lossy compression format may include, for example, the MPEG-2 audio coding format, the MPEG-4 audio coding format, the AC-3 audio coding format, and the EAC-3 audio coding format.
  • the lossless compression format may include, for example, the DTS-LBR audio coding format and the DTS-HD Master Audio audio coding format.
  • the multi-channel audio format may include, for example, the AC-4 audio coding format, the DTS-HD audio coding format, the AC-3 audio coding format, the EAC-3 audio coding format, the DTS-HD audio coding format, and the DTS audio coding format.
  • the format types of audio data may include home theater system format, DVD video format, digital video and streaming format, and high-quality audio transmission format.
  • the home theater system format may include, for example, AC-4 audio coding format, AC-3 audio coding format, EAC-3 audio coding format, DTS-HD audio coding format, and DTS-HD Master Audio audio coding format.
  • DVD video format may include, for example, MPEG-2 audio coding format and DTS audio coding format.
  • Digital video and streaming format may include, for example, MPEG-4 audio coding format.
  • High-quality audio transmission format may include, for example, DTS-LBR audio coding format.
  • the decoding types for the AC-4 audio coding format, DTS-HD audio coding format, DTS-LBR audio coding format, and DTS-True-HD audio coding format are hardware decoding types (referred to as hard decoding types).
  • the decoding types for the MPEG-2 audio coding format, MPEG-4 audio coding format, AC-3 audio coding format, EAC-3 audio coding format, and DTS audio coding format can be software decoding types (referred to as soft decoding types) or hardware decoding types.
  • the process of obtaining the audio track information of the target resource is described.
  • the player After receiving the storage address of the target resource sent by the media center APP, the player parses and obtains the audio track information of the target resource based on the storage address of the target resource.
  • the media center APP sends an audio track information acquisition instruction to the player. After receiving the audio track information acquisition instruction sent by the media center APP, the player returns the audio track information of the target resource to the media center APP.
  • the player can obtain the target resource's track information (track info) array.
  • the track information (track info) array includes the track information for each track data in at least one track data of the target resource and the subtitle information corresponding to each track data.
  • the player creates a track information (i.e., base track info) list based on the target resource's track information (track info) array.
  • the track information (i.e., base track info) list includes the track information for each track data in at least one track data.
  • the track information for each track data includes the aforementioned index information, language type information, track type information, and track format information.
  • the player then sends the track information (i.e., base track info) list to the media center app.
  • the target resource may be decoded to obtain audio information (ie, track information) of the target resource, and then the number of tracks of the target resource may be determined based on the audio information of the target resource.
  • audio information ie, track information
  • the number of audio tracks of the target resource is determined according to the length of the audio track information list.
  • the process of determining the number of audio tracks of a target resource is described by taking the first application as a media center APP as an example. After receiving the audio track information list sent by the player, the media center APP determines the number of audio tracks of the target resource based on the length of the audio track information list.
  • the track name of the target resource may also be determined based on the audio information of the target resource.
  • the track name of the target resource refers to the name (channel name) of each track data of the target resource, that is, the track identifier.
  • the length of the track information list can be used to determine whether the number of tracks of the target resource is greater than or equal to a first preset number. Specifically, after obtaining the track information list of the target resource, determine whether the length of the track information list of the target resource is greater than or equal to the preset length. If the length of the track information list of the target resource is greater than or equal to the preset length, it means that the number of tracks of the target resource is greater than or equal to the first preset number, that is, the number of tracks meets the first preset condition. At this time, the control display presents a multi-track sharing control.
  • the length of the track information list of the target resource is less than the preset length, it means that the number of tracks of the target resource is less than the first preset number, that is, the number of tracks does not meet the first preset condition. At this time, the multi-track sharing control is not displayed.
  • Figure 14 is a schematic diagram of an interface change from a playback page to a multilingual sharing page according to some embodiments.
  • the video data of the target resource is presented on the display, that is, the audio and video playback page shown in (a) in Figure 14 is displayed.
  • the audio track menu call-up operation i.e., the first operation
  • the audio track information of the target resource is obtained, and the number of audio tracks of the target resource is determined based on the audio track information, and then it is determined whether the number of audio tracks of the target resource is greater than or equal to the first preset number (such as 2).
  • S1250 In response to a selection operation on the multi-track sharing control, control the sound output device to stop outputting the first audio data.
  • the triggering operation for the multi-track sharing control may include a click operation on the multi-track sharing control, etc.
  • the first application in response to a selection operation on a multi-track sharing control, can send a pause instruction to the player, instructing the player to pause playback of the target resource's video data.
  • a pause instruction to the player, instructing the player to pause playback of the target resource's video data.
  • playback of the target resource's video data is paused, thereby avoiding affecting the user's viewing experience. Furthermore, this can prevent the multi-track data sharing from being interrupted due to the termination of playback of the target resource's video data.
  • S1260 Control the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, where the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track of the target resource;
  • the Bluetooth broadcast data may also be referred to as Bluetooth broadcast. That is, each track data (i.e., target track) corresponds to at least one Bluetooth broadcast data, and the Bluetooth broadcast data is used to broadcast the audio data of the corresponding target track.
  • the control display when the number of audio tracks of the target resource is greater than a first preset number (i.e., a preset number threshold), the control display is presented with multiple audio track identifiers, and the multiple audio track identifiers correspond one-to-one to the multiple audio track data of the target resource.
  • a first preset number i.e., a preset number threshold
  • the audio track data corresponding to each first audio track identifier is determined as the first audio track data (i.e., the target audio track), and the Bluetooth module is controlled to send Bluetooth broadcast data to a first number of Bluetooth devices, and the Bluetooth broadcast data corresponding to one Bluetooth device is used to broadcast audio data corresponding to one first audio track data among the first number of first audio track data.
  • the Bluetooth module After obtaining the audio tracks of the target resource, first determine whether the number of audio tracks of the target resource is less than the preset number threshold (that is, judge whether the number of audio tracks meets the first preset condition); if it is determined that the number of audio tracks of the target resource is not less than the preset number threshold (that is, meets the first preset condition), monitor the audio broadcast trigger operation for the audio tracks of the target resource; after receiving the audio broadcast trigger operation for at least two audio tracks of the audio tracks of the target resource (that is, audio track data), control the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices based on at least two audio track data.
  • the display device may also, when determining that the number of audio tracks of the target resource is not less than a preset number threshold, first control the display to display a multi-track sharing control, and when receiving a trigger operation for the multi-track sharing control (i.e., a selection operation for the multi-track control), determine whether the number of audio tracks of the target resource is greater than the preset number threshold, and when determining that the number of audio tracks is greater than the preset number threshold, display the identifiers of at least two audio tracks in the audio tracks of the target resource; then, receive an audio broadcast trigger operation for the at least two target audio tracks, and send a Bluetooth broadcast based on the at least two target audio tracks.
  • the trigger operation for the multi-track sharing control may include a click operation on the multi-track sharing control, etc.
  • the preset number threshold is 2, it means that the display device can support 2 audio tracks shared simultaneously.
  • the display is controlled to display a multi-audio track sharing control with the words "Bilingual Sharing".
  • the display device may first determine whether the number of audio tracks of the target resource is equal to a preset number threshold when receiving a trigger operation for the multilingual sharing control. If it is determined that the number of audio tracks of the target resource is equal to the preset number threshold, the identifier of the audio track of the target resource is displayed; and when receiving an audio broadcast trigger operation for the audio track of the target resource, multiple Bluetooth broadcast data are sent to multiple Bluetooth devices based on at least two audio track data.
  • the preset quantity threshold can be used to represent the number of audio tracks that the display device can support for simultaneous sharing, when it is determined that the number of audio tracks of the target resource is equal to the preset quantity threshold, it means that the number of audio tracks of the target resource is exactly the number of audio tracks that the display device can support for simultaneous sharing. At this time, the display device plays all the audio track contents of the target resource, thereby using audio broadcasting to achieve the function of simultaneous multi-language playback of the same audio and video resource.
  • the Bluetooth module can be controlled to send Bluetooth broadcast data to multiple Bluetooth devices.
  • the control display when the number of audio tracks of the target resource is greater than a second preset number, presents multiple audio track identifiers, and the multiple audio track identifiers correspond one-to-one to the multiple audio track data of the target resource.
  • the audio track data corresponding to each first audio track identifier is determined as the first audio track data, and the Bluetooth module is controlled to send Bluetooth broadcast data to a first number of Bluetooth devices.
  • the Bluetooth broadcast data corresponding to one Bluetooth device is used to broadcast audio data corresponding to one first audio track data among the first number of first audio track data.
  • the display In response to the selection operation for the multi-track sharing control, it is determined whether the number of tracks of the target resource is not greater than the second preset number (such as 2). If the number of tracks of the target resource is not greater than the second preset number (such as 2), the display is controlled to present the track identifiers of each track data, and according to the pre-established association relationship between the Bluetooth device and the track data, the corresponding track data is sent to each Bluetooth device.
  • the second preset number such as 2
  • taking the second preset number as 2 and the number of audio tracks of the target resource as 3 as an example see FIG15 .
  • a determination is made as to whether the number of audio tracks of the target resource is not greater than the second preset number (e.g., 2). If the number of audio tracks of the target resource is greater than the second preset number (e.g., 2), a track selection pop-up window shown in FIG15 (b) is presented on the display device.
  • the multi-language sharing page displays the track identifiers of the Chinese audio track data corresponding to the selected "Chinese” audio track option and the English audio track data corresponding to the "English” audio track option, such as “Chinese” and "English”, which means that the Chinese audio track data corresponding to the "Chinese” audio track option and the English audio track data corresponding to the "English” audio track option are determined as the audio track data to be shared by multiple audio tracks.
  • the association between a Bluetooth device and track data may be an association between a track index (i.e., the index information of the track data in the preceding text) and a device identifier.
  • a track index i.e., the index information of the track data in the preceding text
  • One track data uniquely corresponds to one track index.
  • the device identifier is used to uniquely identify the Bluetooth device.
  • the device identifier may be the MAC address of the Bluetooth device.
  • the following takes the second and third audio track data among the multiple audio track data of the target resource as an example to illustrate the process of sending the corresponding audio track data to each Bluetooth device according to the pre-established association relationship between the audio track index and the device identifier.
  • the first Bluetooth device corresponding to the second audio track data is determined; the Bluetooth module is controlled to send first Bluetooth broadcast data to the first Bluetooth device based on the first Bluetooth broadcast channel corresponding to the second audio track data, and the first Bluetooth broadcast data is used to broadcast the audio data corresponding to the second audio track data; according to the association relationship, the second Bluetooth device corresponding to the third audio track data is determined; the Bluetooth module is controlled to send second Bluetooth broadcast data to the second Bluetooth device based on the second Bluetooth broadcast channel corresponding to the third audio track data, and the second Bluetooth broadcast data is used to broadcast the audio data corresponding to the third audio track data.
  • the step of establishing an association relationship between a track index and a device identifier may include:
  • the Bluetooth device is a Bluetooth device that supports the Low Energy Audio protocol (i.e., an LE audio device).
  • the device option allows the user to select a device for Bluetooth broadcasting.
  • the display upon receiving an audio track data configuration operation, is controlled to present a list of connected Bluetooth devices, where the Bluetooth device list includes multiple device options.
  • a first track index of the track data corresponding to the first track option is obtained, and a first device identifier of the Bluetooth device corresponding to the first device option is obtained, and an association relationship is established between the first track index and the first device identifier.
  • the device identifier of each Bluetooth device is associated with the track index of the track data matching the Bluetooth device, and the association relationship between the track index and the device identifier is obtained, that is, the association relationship between the track data and the Bluetooth device is obtained.
  • the device management page is displayed, and the connected Bluetooth device (i.e., LE audio device) can be displayed on the device management page.
  • the display device responds to the device selection operation and selects the Bluetooth device 1 (i.e., the first LE audio device, i.e., LE audio device 1) for which the audio track data is to be configured from multiple Bluetooth devices.
  • the display device matches the audio track data 1 (i.e., the first target audio track) for the Bluetooth device 1 in response to the audio track configuration operation.
  • the Bluetooth broadcast data corresponding to the audio track data 1 can be sent to the Bluetooth device 1.
  • the display device controls the display to display the device management page, it can also control the Bluetooth module to perform device scanning and control the display to display the scanned LE audio devices on the device management page.
  • the display device can also control the Bluetooth module to scan for devices and control the display to display the device management page and display the connected LE audio devices on the device management page in response to the trigger operation of the device scanning control, and control the display to display the scanned LE audio devices on the device management page.
  • the LE audio device while displaying the scanned LE audio devices on the device management page, it is also possible to establish a connection with any of the scanned LE audio devices upon receiving a connection request for the LE audio device; after successfully establishing a connection with the scanned LE audio device, the LE audio device can also be displayed in the list of connected devices on the device management page.
  • broadcast information corresponding to the audio track data matched with the Bluetooth device may be sent to the Bluetooth device, so that the Bluetooth device can receive the corresponding Bluetooth broadcast data based on the broadcast information.
  • the broadcast information corresponding to the audio track data may include broadcast parameter information such as address information, device address, broadcast source address, broadcast packet cluster ID number, broadcast ID information, synchronization interval, encryption status, broadcast code, rendering delay time, SUB Group information, and Android version information.
  • a device management page is presented on the display device, and a connected Bluetooth device (LE audio device) is displayed on the device management page.
  • the track selection page shown in (b) of Figure 17 is presented on the display device.
  • the track selection page may include multiple track options, such as a "Chinese” track option and an "English” track option.
  • the Chinese track data corresponding to the "Chinese” track option is determined to be the track data matched by device A.
  • the broadcast information corresponding to the Chinese track data can be sent to device A, so that device A can receive the Bluetooth broadcast data corresponding to the Chinese track data based on the broadcast information.
  • the Bluetooth broadcast data corresponding to the Chinese track data can be sent to device A.
  • the track selection page may also include a "Continue to Select Device” control.
  • the device management page shown in Figure 17(c) is presented on the display device.
  • this page displays the prompt "Chinese Track” for device A to prompt the user that the configuration of the track data for device A has been completed.
  • the track selection page shown in Figure 17(d) is presented on the display device for matching the track data for device B.
  • the display device controls the display to present the device management page, it can also control the Bluetooth module to scan for devices and control the display to display the scanned Bluetooth devices (i.e., LE audio devices) on the device management page.
  • the Bluetooth module to scan for devices and control the display to display the scanned Bluetooth devices (i.e., LE audio devices) on the device management page.
  • the display device can also control the Bluetooth module to perform device scanning in response to the trigger operation of the device scanning control while controlling the display to display the device management page and display the connected LE audio device on the device management page, and control the display to display the scanned Bluetooth device (i.e., LE audio device) on the device management page.
  • the Bluetooth module to perform device scanning in response to the trigger operation of the device scanning control while controlling the display to display the device management page and display the connected LE audio device on the device management page, and control the display to display the scanned Bluetooth device (i.e., LE audio device) on the device management page.
  • the Bluetooth device i.e., LE audio device
  • any Bluetooth device i.e., LE audio device
  • the scanned Bluetooth devices i.e., LE audio devices
  • the Bluetooth device i.e., LE audio device
  • the display device may control the Bluetooth module to send Bluetooth broadcast data to multiple Bluetooth devices after receiving a triggering operation of Bluetooth broadcast.
  • Bluetooth broadcast channel 1 i.e., sub-group
  • the device identifier (mac address) of Bluetooth device 1 is obtained, and based on the device identifier (mac address) of Bluetooth device 1, the Bluetooth device object (BluetoothDevice object) of Bluetooth device 1 is generated.
  • the display device can also first switch the current audio channel to the Bluetooth broadcast channel when controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, and control the sound output device to mute after the switch is successful, and control the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices.
  • the second preset condition is used to determine whether to exit the sharing of multi-track data.
  • the second preset condition includes at least one of the following: receiving an instruction to exit the sharing of multi-track data; detecting that the Bluetooth module is switched to a closed state; detecting that the player is switched to background operation; or receiving an operation to stop playing the target resource.
  • the embodiment of the present disclosure can send Bluetooth broadcast data corresponding to different audio track data to different Bluetooth devices, so as to realize the function of synchronous playback of multiple audio track data for the same audio and video resource by using audio broadcasting, which can improve broadcast efficiency.
  • the embodiment of the present disclosure can realize the function of synchronous playback of multiple languages for the same audio and video resource.
  • the target resource may be an audio or video resource selected by the user and currently to be played.
  • the target resource may include one or more audio track data, and the audio track data is used to indicate the audio data included in the target resource, that is, different audio track data corresponds to different audio data.
  • the first operation is the call-up operation of the audio track menu.
  • the audio track information of the target resource may include index information, language type information, audio track type information, and audio track format information.
  • the index information is used to indicate the storage location corresponding to the audio track data, that is, the storage location of the audio data corresponding to the audio track data.
  • the language type information is used to indicate the language type of the audio data corresponding to the audio track data.
  • the voice type information of audio track data 1 is Chinese
  • the voice type information of audio track data 2 is English
  • the voice type information of audio track data 3 is French.
  • the audio track type information is used to distinguish between audio track data and subtitle data.
  • the audio track format information is used to indicate the format type of the audio data corresponding to the audio track data.
  • the audio track format information is used to indicate the format type of the audio data corresponding to the audio track data.
  • the format type of the audio data may include a lossy compression format, a lossless compression format, and a multi-channel audio format.
  • Lossy compression formats may include, for example, MPEG-2 audio coding format, MPEG-4 audio coding format, AC-3 audio coding format, and EAC-3 audio coding format.
  • Lossless compression formats may include, for example, DTS-LBR audio coding format and DTS-HD Master Audio audio coding format.
  • Multi-channel audio formats may include, for example, AC-4 audio coding format, DTS-HD audio coding format, AC-3 audio coding format, EAC-3 audio coding format, DTS-HD audio coding format, and DTS audio coding format.
  • the format types of audio data may include home theater system format, DVD video format, digital video and streaming format, and high-quality audio transmission format.
  • the home theater system format may include, for example, AC-4 audio coding format, AC-3 audio coding format, EAC-3 audio coding format, DTS-HD audio coding format, and DTS-HD Master Audio audio coding format.
  • DVD video format may include, for example, MPEG-2 audio coding format and DTS audio coding format.
  • Digital video and streaming format may include, for example, MPEG-4 audio coding format.
  • High-quality audio transmission format may include, for example, DTS-LBR audio coding format.
  • the decoding types for the AC-4 audio coding format, DTS-HD audio coding format, DTS-LBR audio coding format, and DTS-True-HD audio coding format are hardware decoding types (referred to as hard decoding types).
  • the decoding types for the MPEG-2 audio coding format, MPEG-4 audio coding format, AC-3 audio coding format, EAC-3 audio coding format, and DTS audio coding format can be software decoding types (referred to as soft decoding types) or hardware decoding types.
  • S1930 Determine the number of audio tracks of the target resource and the decoding type of the audio track data of the target resource according to the audio track information.
  • determining the decoding type of the audio track data of the target resource based on the audio track information may include: determining the decoding type corresponding to each audio track data based on the audio track format information corresponding to each audio track data in the audio track information, that is, determining the decoding type of the audio track data of the target resource.
  • the multi-track sharing control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, or to trigger the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices.
  • the multiple Bluetooth broadcast data correspond one-to-one to multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast the audio data corresponding to one track data of the target resource.
  • the first preset condition is whether the target resource meets the conditions for multi-track sharing.
  • the first preset condition can include at least one of the following: the number of tracks is greater than a first preset number (also referred to as a preset number threshold); the number of tracks is equal to the first preset number. In some embodiments, the first preset number is 2.
  • the length of the track information list can be used to determine whether the number of tracks of the target resource is greater than or equal to a first preset number. Specifically, after obtaining the track information list of the target resource, determine whether the length of the track information list of the target resource is greater than or equal to the preset length. If the length of the track information list of the target resource is greater than or equal to the preset length, it means that the number of tracks of the target resource is greater than or equal to the first preset number, that is, the number of tracks meets the first preset condition. At this time, the control display presents a multi-track sharing control.
  • the length of the track information list of the target resource is less than the preset length, it means that the number of tracks of the target resource is less than the first preset number, that is, the number of tracks does not meet the first preset condition. At this time, the multi-track sharing control is not displayed.
  • the display is controlled to present a multi-audio track sharing control.
  • the third preset condition may include that the multiple audio track data of the target resource include audio track data of at least two decoding types.
  • the decoding type may include a first decoding type, a second decoding type and a third decoding type.
  • the first decoding type indicates that the audio data corresponding to the audio track data can only be decoded by hardware, that is, a hardware decoding type.
  • the second decoding type indicates that the audio data corresponding to the audio track data can only be decoded by software, that is, a software decoding type.
  • the third decoding type indicates that the audio data corresponding to the audio track data can be decoded by software or by software, that is, a hardware-decoding type or a software-decoding type.
  • the third preset condition may be that the number of audio tracks of the target resource is not equal to the number of fourth audio track data, and the number of audio tracks is not equal to the number of fifth audio track data, wherein the decoding type of the fourth audio track data is the first decoding type (i.e., hardware decoding type), and the decoding type of the fifth audio track data is the second decoding type (i.e., software decoding type).
  • the decoding type of the fourth audio track data is the first decoding type (i.e., hardware decoding type)
  • the decoding type of the fifth audio track data is the second decoding type (i.e., software decoding type).
  • FIG20 is a flow chart of an audio broadcasting method according to some embodiments. As shown in FIG20 , the process of displaying a multi-track sharing control may include the following steps:
  • the first preset number may be, for example, 2;
  • the first preset number such as 2
  • the control display presents the multi-track sharing control.
  • the decoding type of the audio track data of the target resource is all the first decoding type (i.e., hardware decoding type), or the decoding type of the audio track data of the target resource is all the second decoding type (i.e., software decoding type).
  • the decoding type of the audio track data of the target resource does not meet the third preset condition, does not support multi-track sharing, and the multi-track sharing control is not displayed.
  • the video data of the target resource is presented on the display, that is, the playback page of the audio and video resource is displayed.
  • the audio track menu call-up operation i.e., the first operation
  • the audio track information of the target resource is obtained, and the number of audio tracks of the target resource is determined according to the audio track information, and then it is determined whether the number of audio tracks of the target resource is greater than or equal to the first preset number (such as 2).
  • the display is controlled to display the audio track menu page as shown in (b) in Figure 14.
  • multiple audio track sharing controls such as the "bilingual sharing" control, are displayed on the audio track menu page. Otherwise, multi-track sharing is not supported and the "bilingual sharing" control is not displayed.
  • the first application in response to a selection operation on a multi-track sharing control, can send a pause instruction to the player, instructing the player to pause playback of the target resource's video data.
  • a pause instruction to the player, instructing the player to pause playback of the target resource's video data.
  • playback of the target resource's video data is paused, thereby avoiding affecting the user's viewing experience. Furthermore, this can prevent the multi-track data sharing from being interrupted due to the termination of playback of the target resource's video data.
  • controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, where the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track data of a target resource.
  • controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices may include: if the number of audio tracks is not greater than a second preset number, controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices; if the number of audio tracks is greater than the second preset number, determining a first number of first audio track data from multiple audio track data of the target resource, and controlling the Bluetooth module to send Bluetooth broadcast data to the first number of Bluetooth devices, the Bluetooth broadcast data corresponding to one Bluetooth device being used to broadcast audio data corresponding to one first audio track data in the first number of first audio track data.
  • the second preset number is the number of audio track data supported by the Bluetooth module for simultaneous broadcasting.
  • the second preset number can be determined based on the performance of the hardware chip (such as the Bluetooth module) of the display device. Specifically, the second preset number can be positively correlated with the performance of the hardware chip.
  • the number of shared audio tracks that the hardware chip can support is 2 (that is, the second preset number is usually set to 2).
  • the specific numerical value of the corresponding second preset number can also be set to 3, 4, etc.
  • the embodiment of the present disclosure does not limit the specific numerical value of the second preset number.
  • the number of audio track data of the first number of first audio track data that has a first decoding type is less than or equal to a third preset number
  • the number of audio track data of the first number of first audio track data that has a second decoding type is less than or equal to a fourth preset number.
  • the first number is less than or equal to the second preset number, and the first number is greater than or equal to two.
  • the second preset number is 2, the first number is 2, the third preset number is 1, and the fourth preset number is 1. That is, the display device supports one channel of hardware decoding and one channel of software decoding simultaneously.
  • the steps of determining a first number of first audio track data from multiple audio track data of the target resource, and controlling the Bluetooth module to send Bluetooth broadcast data to a first number of Bluetooth devices may include: determining two first audio track data from multiple audio track data of the target resource, and controlling the Bluetooth module to send Bluetooth broadcast data to two Bluetooth devices, one Bluetooth broadcast data being used to broadcast audio data corresponding to one first audio track data; wherein, the decoding types of the two first audio track data are different.
  • the decoding type of one of the two first audio track data is the first decoding type (i.e., hardware decoding type), and the decoding type of the other first audio track data is the second decoding type (i.e., software decoding type).
  • the decoding type of one of the two first audio track data is the first decoding type (i.e., hardware decoding type) or the second decoding type (i.e., software decoding type), and the decoding type of the other first audio track data is the third decoding type (i.e., hardware or software decoding type).
  • the display can be controlled to present track identifiers of the multiple audio track data of the target resource, the multiple track identifiers corresponding one-to-one to the multiple audio track data of the target resource, and then the Bluetooth module can be controlled to send Bluetooth broadcast data to multiple Bluetooth devices.
  • the user can be prompted to share the multiple audio track data and to perform the sharing operation of the multiple audio track data.
  • the track identifier is used to present relevant information about track data that can be shared with multiple tracks to the user.
  • the track identifier may include the track name (CHANNEL NAME) of the track data, wherein the track name can generally be represented by the language type information of the track data, such as Chinese or English.
  • the track identifier may also be a global variable generated based on the track information of the track data, for example, English (ENG-TVAUDIOSHARE) or Chinese (CHN-TVAUDIOSHARE).
  • the display device can determine the remaining audio track data available for the user to select based on the decoding type of the selected audio track data, and present the corresponding audio track identifier on the display device to facilitate the user to select other audio track data to be shared, thereby ensuring that the selected audio track data meets the restrictions of the decoding type conditions, thereby realizing the sharing function of multiple audio track data.
  • the Bluetooth module may be controlled to send Bluetooth broadcast data corresponding to the audio track data matched therewith to the Bluetooth device.
  • the association between a Bluetooth device and track data may be an association between a track index (i.e., the index information of the track data in the preceding text) and a device identifier.
  • a track index i.e., the index information of the track data in the preceding text
  • One track data uniquely corresponds to one track index.
  • the device identifier is used to uniquely identify the Bluetooth device.
  • the device identifier may be the MAC address of the Bluetooth device.
  • the step of establishing an association relationship between an audio track index and a device identifier may include: upon receiving an audio track data configuration operation, controlling the display to present multiple device options, the multiple device options corresponding one-to-one to multiple Bluetooth devices, and the multiple Bluetooth devices being Bluetooth devices that support the low power audio protocol; in response to a selection operation for a first device option among the multiple device options, controlling the display to present multiple audio track options, the multiple audio track options corresponding one-to-one to multiple audio track data; in response to a selection operation for a first audio track option among the multiple audio track options, associating the first audio track index and the first device identifier to obtain an association relationship between the audio track index and the device identifier, wherein the first audio track index is the audio track identifier of the audio track data corresponding to the first audio track option, and the first device identifier is the device identifier of the Bluetooth device corresponding to the first device option.
  • the device identification of each Bluetooth device is associated with the track index of the track data matching the Bluetooth device to obtain the association relationship between the track index and the device identification, that is, the association relationship between the track data and the Bluetooth device is obtained.
  • the step of creating a Bluetooth broadcast channel may include: creating a first Bluetooth broadcast channel based on the track identifier and decoding type corresponding to the second audio track data; creating a second Bluetooth broadcast channel based on the track identifier and decoding type corresponding to the third audio track data.
  • the method before controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the method also includes: in response to a selection operation for a multi-track sharing control, controlling the player to pause playing the video data; wherein, controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices may include: when determining that the Bluetooth module switches to the Bluetooth broadcast channel, controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, and controlling the player to replay the video data from the start time of the video.
  • the method may further include: in response to a selection operation for a multi-track sharing control, controlling the player to pause playing video data, and obtaining playback progress information of the video data; wherein, controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices may include: when determining that the Bluetooth module switches to the Bluetooth broadcast channel, controlling the player to replay the video data according to the playback progress information, and processing the audio data corresponding to the multiple audio track data of the target resource according to the playback progress information, and controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices based on the multiple processed audio data, wherein one Bluetooth broadcast data is used to broadcast one processed audio data.
  • the method may further include: if a second preset condition is met, controlling the Bluetooth module to stop sending the multiple Bluetooth broadcast data to the multiple Bluetooth devices, controlling the player to pause playing the video data, and obtaining playback progress information of the video data; based on the playback progress information, controlling the player to replay the video data, and controlling the sound output device to output the first audio data;
  • the second preset condition includes at least one of the following: receiving an instruction to exit multi-track sharing; detecting that the Bluetooth module is switched to the off state; detecting that the player is switched to background operation; receiving an operation to stop playing the target resource.
  • the above process of the player replaying video data and exiting multi-track data sharing can be referred to the specific implementation method in the aforementioned S1260. To avoid repetition, it will not be repeated here.
  • the audio broadcasting method when the video data of the target resource is presented on the display and the sound output device is controlled to output the first audio data of the target resource, in response to a first operation, the audio track information of the target resource is obtained, and the number of audio tracks of the target resource and the decoding type of the audio track data of the target resource are determined according to the audio track information; when the number of audio tracks meets the first preset condition and the decoding type of the audio track data of the target resource meets the third preset condition, the display is controlled to present a multi-audio track sharing control; in response to a selection operation for the multi-audio track sharing control, the sound output device is controlled to stop outputting the first audio data, and the Bluetooth module is controlled to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast audio data corresponding to one audio track data of the target resource.
  • a multi-audio track sharing control can be presented.
  • the Bluetooth module is controlled to send Bluetooth broadcast data corresponding to different audio track data to different Bluetooth devices.
  • the function of synchronous playback of multiple audio track data for the same audio and video resource can be realized by audio broadcasting, which can improve the broadcast efficiency.
  • it can be applied to display devices with different hardware capabilities.
  • the embodiment of the present disclosure can realize the function of synchronous playback of multiple languages for the same audio and video resource.
  • FIG 21 is a schematic diagram of an interactive process of an audio broadcasting method according to some embodiments. As shown in Figure 21, the audio broadcasting method may include the following steps:
  • a first application at the application layer receives a selection operation for a target resource among multiple media resources.
  • the target resource includes three audio track data (that is, audio track data 1, audio track data 2 and audio track data 3)
  • the language type of the audio data corresponding to audio track data 1 is Chinese (audio track data 1 corresponds to Chinese audio data)
  • the language type of the audio data corresponding to audio track data 2 is English (audio track data 2 corresponds to English audio data)
  • the language type of the audio data corresponding to audio track data 3 is French (audio track data 2 corresponds to French audio data).
  • the first application in response to the selection operation for the target resource, sends the storage address of the target resource to the player of the framework layer.
  • the player parses the target resource's video data, the audio data corresponding to one of the audio track data (ie, the first audio data), and the audio track information of the target resource based on the storage address of the target resource.
  • the audio track information of the target resource may include index information, language type information, audio track type information, and audio track format information.
  • the index information is used to indicate the storage location corresponding to the audio track data, that is, the storage location of the audio data corresponding to the audio track data.
  • the language type information is used to indicate the language type of the audio data corresponding to the audio track data.
  • the voice type information of audio track data 1 is Chinese
  • the voice type information of audio track data 2 is English
  • the voice type information of audio track data 3 is French.
  • the audio track type information is used to distinguish between audio track data and subtitle data.
  • the audio track format information is used to indicate the format type of the audio data corresponding to the audio track data.
  • A4 The player sends the video data of the target resource to the first application.
  • the first application After receiving the video data of the target resource sent by the player, the first application presents the video data of the target resource.
  • the first application receives the first operation.
  • the first operation is a call-up operation for the track menu.
  • the first operation may be a user pressing a menu key of a control device.
  • the first operation may also be a voice command input by the user to call up the track menu.
  • the first application sends an audio track information acquisition instruction to the player.
  • the player After receiving the audio track information acquisition instruction sent by the first application, the player sends the audio track information of the target resource to the first application.
  • A12 The first application does not generate multi-track sharing controls.
  • the Bluetooth setting application matches the audio track data for the two target Bluetooth devices in response to the start instruction.
  • the target Bluetooth device is the Bluetooth device selected by the user to receive the target audio track data.
  • the Bluetooth settings application establishes an association between track indexes and device identifiers (i.e., device channel map).
  • the Bluetooth setup application determines the track identifier corresponding to track data 1 and, based on the association between the track identifier and the track index, determines the track index of track data 1.
  • the Bluetooth setup application determines the device identifier (MAC address) of Bluetooth device 1.
  • the Bluetooth setup application establishes an association between the track index of track data 1 and the device identifier of Bluetooth device 1.
  • the MAC address of the left headset is "14:0a:29:f6:38:52”
  • the MAC address of the right headset is "14:0a:29:f6:3a:4a”
  • the track index of the matched audio track data is 3.
  • HashMap ⁇ String,Integer>map new HashMap ⁇ String,Integer>()
  • the converted json object is ⁇ "14:0a:29:f6:38:52":3,"14:0a:29:f6:3a:4a":3 ⁇ .
  • the Bluetooth setting application sends the association relationship between the audio track index and the device identifier to the first application.
  • the Bluetooth settings application sends a JSON object that shows the association between the audio track index and the device identifier (i.e., device channel map) to the first application.
  • the first application sends Bluetooth broadcast information to the Bluetooth protocol stack by calling the startMultiTrackBroadcast() function.
  • the Bluetooth protocol stack sends a Bluetooth broadcast message to the Bluetooth module.
  • the first application creates a corresponding Bluetooth broadcast channel for each target audio track data according to the audio track identifier of the target audio track data, and obtains a Bluetooth broadcast channel list (ie, subgroupList).
  • the first application loop traverses the track identification list and creates a corresponding Bluetooth broadcast channel (subgroup object) for each target track data in the track identification list. Specifically, the track identification (channelname) of the target track data is written to the Bluetooth broadcast channel (subgroup object) to obtain a Bluetooth broadcast channel list (i.e., subgroupList), wherein the Bluetooth broadcast channel list includes the Bluetooth broadcast channels (subgroup objects) corresponding to each target track data.
  • the track identification (channelname) of the target track data is written to the Bluetooth broadcast channel (subgroup object) to obtain a Bluetooth broadcast channel list (i.e., subgroupList), wherein the Bluetooth broadcast channel list includes the Bluetooth broadcast channels (subgroup objects) corresponding to each target track data.
  • the subgroup object of the track data whose decoding type is the first decoding type i.e., hardware decoding type
  • the subgroup object of the track data whose decoding type is the second decoding type i.e., software decoding type
  • the first application sends a Bluetooth broadcast channel list to the Bluetooth protocol stack.
  • the first application generates a Bluetooth device object (BluetoothDevice object) corresponding to each target Bluetooth device based on the association between the audio track index and the device identifier (i.e., device channel map).
  • BluetoothDevice object a Bluetooth device object corresponding to each target Bluetooth device based on the association between the audio track index and the device identifier (i.e., device channel map).
  • the first application sends the track index of each target audio track data and the Bluetooth device object of each target Bluetooth device to the Bluetooth protocol stack.
  • the first application calls the setBuiltinModeSyncBis() function to pass the BluetoothDevice object and the audio track index to the Bluetooth protocol stack.
  • the Bluetooth protocol stack sends a Bluetooth broadcast channel list, an audio track index of each target audio track data, and a Bluetooth device object of each target Bluetooth device to the Bluetooth module to configure the audio track data for the Bluetooth module.
  • the Bluetooth setting application sends a configuration completion notification to the first application.
  • the first application After receiving the configuration completion notification, the first application sends a destroy instruction to the player.
  • the destroy instruction is used to instruct the player to destroy the original audio and video playback thread.
  • A33 After receiving the destroy instruction, the player destroys the original audio and video playback thread.
  • A34 The first application sends a restart instruction to the player.
  • the restart instruction may carry playback progress information.
  • the first application sends playback progress information of the video data of the target resource to the player.
  • the player mixes the audio data corresponding to the two target audio track data.
  • the different channel data are assembled into multi-channel (four-channel for dual-track) data, and the assembled data is written into BThal.
  • BT splits the assembled data according to the current mode (dual-track broadcasting), and then splits it into two 2ch pcm data, and sends the data through broadcasting, thus realizing the dual-track broadcasting function.
  • the BT module parses the data, it reversely parses the 2ch and mch data according to the assembly protocol, and then assembles them into the original sound sources in two independent track broadcasts, thus completing the two tracks being sent out through two broadcast sources respectively.
  • A38 The player sends the two target audio track data after mixing to the Bluetooth protocol stack.
  • the Bluetooth protocol stack after receiving the two target audio track data after mixing processing, sends the two target audio track data after mixing processing to the Bluetooth module.
  • the Bluetooth module sends the Bluetooth broadcast data corresponding to the corresponding target audio track data to the target Bluetooth device based on the Bluetooth broadcast channel list, the audio track index of each target audio track data and the Bluetooth device object of each target Bluetooth device.
  • the audio broadcasting method when the video data of the target resource is presented on the display and the sound output device is controlled to output the first audio data of the target resource, in response to the first operation, the audio track information of the target resource is obtained, and the number of audio tracks of the target resource is determined based on the audio track information; when the number of audio tracks meets the first preset condition, the display is controlled to present a multi-audio track sharing control; in response to the selection operation for the multi-audio track sharing control, the sound output device is controlled to stop outputting the first audio data, and the Bluetooth module is controlled to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast the audio data corresponding to one audio track data of the target resource.
  • the embodiment of the present disclosure can send Bluetooth broadcast data corresponding to different audio track data to different Bluetooth devices, so as to realize the function of synchronous playback of multiple audio track data for the same audio and video resource by using audio broadcasting, which can improve broadcast efficiency.
  • the embodiment of the present disclosure can realize the function of synchronous playback of multiple languages for the same audio and video resource.
  • Method 2 Directly broadcast multiple Bluetooth broadcast data
  • FIG23 is a flow chart of an audio broadcasting method according to some embodiments.
  • the method may include the following steps:
  • S2310 Present the video data of the target resource on the display, and control the sound output device to output the first audio data of the target resource.
  • the target resource (also can be called target audio and video resource) can be the audio and video resource that the user selects, is currently played, i.e. the audio and video resource that the display device is currently playing.
  • the target audio and video resource can also be any video resource in the audio and video resource to be played.
  • the first audio data refers to the audio data corresponding to the audio track data output by the sound output device when the display device plays the video data of the target resource.
  • the first audio data is the audio data corresponding to the audio track data.
  • the target resource includes multiple audio track data
  • the first audio data can be the audio data corresponding to any one of the multiple audio track data. For example, taking the example that the target resource includes audio track data 1 and audio track data 2, where audio track data 1 corresponds to Chinese audio data and audio track data 2 corresponds to English audio data, the first audio data can be the audio data corresponding to audio track data 1, that is, Chinese audio data.
  • FIG. 13 is an interface diagram of the target resource selection process according to some embodiments.
  • the display device starts the media center APP and presents the audio and video resource interface 1301 of the media center APP on the display.
  • the audio and video resource interface 1301 includes multiple audio and video resources to be played, such as audio and video resource A, audio and video resource B, and audio and video resource C.
  • the media center APP determines audio and video resource B as the target resource and enters the playback interface 1302 of audio and video resource B shown in (b) in Figure 13.
  • the selection operation for audio and video resource B can be the operation of the user selecting audio and video resource B through the control device, or it can be a voice command input by the user to select audio and video resource B.
  • users can also select target resources through other applications (such as third-party audio and video applications) in addition to the media center app on the display device.
  • third-party audio and video applications such as third-party audio and video applications
  • the user can first open the third-party audio and video application, and then select the target resource to be played from the audio and video resources provided by the third-party audio and video application.
  • the target resource may be a local audio and video resource stored in the display device, or a network audio and video resource.
  • the embodiment of the present disclosure does not limit the specific type and acquisition method of the target resource.
  • S2310 can refer to the specific implementation of S1210 mentioned above, and will not be repeated here to avoid repetition.
  • the target resource may also be decoded to obtain the audio information (i.e., the audio track information) of the target resource, i.e., obtaining the audio track information of the target resource.
  • obtaining the audio track information of the target resource may include: obtaining the audio track information of the target resource in response to a first operation (i.e., an audio track menu invocation operation).
  • the first operation is the operation of invoking the track menu.
  • the first operation can be the user pressing the menu key of the control device.
  • the first operation can also be a voice command input by the user to invoke the track menu.
  • the audio track information of the target resource may include index information, language type information, audio track type information, and audio track format information.
  • the index information is used to indicate the storage location corresponding to the audio track data, that is, the storage location of the audio data corresponding to the audio track data.
  • the language type information is used to indicate the language type of the audio data corresponding to the audio track data.
  • the voice type information of audio track data 1 is Chinese
  • the voice type information of audio track data 2 is English
  • the voice type information of audio track data 3 is French.
  • the audio track type information is used to distinguish between audio track data and subtitle data.
  • the audio track format information is used to indicate the format type of the audio data corresponding to the audio track data.
  • S2330 Determine the number of audio tracks of the target resource based on the audio track information.
  • the target resource may be decoded to obtain audio information (ie, track information) of the target resource, and then the number of tracks of the target resource may be determined based on the audio information of the target resource.
  • audio information ie, track information
  • the number of audio tracks of the target resource refers to the number of audio track data included in the target resource.
  • the multi-track sharing control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, or to trigger the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices.
  • the multiple Bluetooth broadcast data correspond one-to-one to multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast the audio data corresponding to one track data of the target resource.
  • the length of the track information list can be used to determine whether the number of tracks of the target resource is greater than or equal to a first preset number. Specifically, after obtaining the track information list of the target resource, determine whether the length of the track information list of the target resource is greater than or equal to the preset length. If the length of the track information list of the target resource is greater than or equal to the preset length, it means that the number of tracks of the target resource is greater than or equal to the first preset number, that is, the number of tracks meets the first preset condition. At this time, the control display presents a multi-track sharing control.
  • the length of the track information list of the target resource is less than the preset length, it means that the number of tracks of the target resource is less than the first preset number, that is, the number of tracks does not meet the first preset condition. At this time, the multi-track sharing control is not displayed.
  • the video data of the target resource is presented on the display, that is, the audio and video playback page shown in (a) of FIG14 is displayed.
  • the audio track menu call-up operation i.e., the first operation
  • the audio track information of the target resource is obtained, and the number of audio tracks of the target resource is determined based on the audio track information, and then it is determined whether the number of audio tracks of the target resource is greater than or equal to the first preset number (such as 2). If the number of audio tracks of the target resource is greater than or equal to the first preset number (such as 2), the display is controlled to present the audio track menu page as shown in (b) of FIG14 .
  • multi-audio track sharing controls such as the "bilingual sharing" control, are displayed on the audio track menu page. Otherwise, multi-audio track sharing is not supported, and the "bilingual sharing" control is not displayed.
  • a display may be controlled to present multiple track selection controls, each corresponding to a plurality of track data of a target resource; and in response to a selection operation on a first selection control, a sound output device may be controlled to output first audio data of the target resource, wherein the first audio data is audio data of the track data corresponding to the first selection control.
  • the first selection control may be any one of the plurality of track selection controls.
  • prompt information is displayed on each track selection control, and the prompt information is determined based on language type information of the track data corresponding to the track selection control.
  • the language type of the audio data corresponding to audio track data 1 is Chinese (audio track data 1 corresponds to Chinese audio data)
  • the language type of the audio data corresponding to audio track data 2 is English (audio track data 2 corresponds to English audio data)
  • the language type of the audio data corresponding to audio track data 3 is Japanese (audio track data 2 corresponds to French audio data).
  • the audio track menu page can also include a "Chinese” audio track selection control corresponding to audio track data 1, an "English” audio track selection control corresponding to audio track data 2, and a "Japanese” audio track selection control corresponding to audio track data 3.
  • multiple track selection controls can also be presented in the track menu page, so that users can also choose to listen to audio data corresponding to a certain track data, that is, audio data in a certain language, according to actual needs, which can meet the different needs of users.
  • S2350 can refer to the specific implementation of S1250 mentioned above, and will not be repeated here to avoid repetition.
  • each piece of audio track data corresponds to at least one piece of Bluetooth broadcast data
  • the Bluetooth broadcast data is used to broadcast the audio data of the corresponding target audio track.
  • the control display is displayed with multiple audio track identifiers, and the multiple audio track identifiers correspond one-to-one to the multiple audio track data of the target resource.
  • the audio track data corresponding to each first audio track identifier is determined as the first audio track data (i.e., the target audio track), and the Bluetooth module is controlled to send multiple Bluetooth broadcast data.
  • the Bluetooth module After obtaining the audio tracks of the target resource, first determine whether the number of audio tracks of the target resource is less than the preset number threshold (that is, judge whether the number of audio tracks meets the first preset condition); if it is determined that the number of audio tracks of the target resource is not less than the preset number threshold (that is, meets the first preset condition), monitor the audio broadcast trigger operation for the audio tracks of the target resource; after receiving the audio broadcast trigger operation for at least two audio tracks of the audio tracks of the target resource (that is, audio track data), control the Bluetooth module to send multiple Bluetooth broadcast data based on at least two audio track data.
  • the preset number threshold is 2, it means that the display device can support 2 audio tracks shared simultaneously.
  • the display is controlled to display a multi-audio track sharing control with the words "Bilingual Sharing".
  • the display device may first determine whether the number of audio tracks of the target resource is equal to a preset number threshold when receiving a trigger operation for the multi-language sharing control. If it is determined that the number of audio tracks of the target resource is equal to the preset number threshold, the identifier of the audio track of the target resource is displayed; and when an audio broadcast trigger operation for the audio track of the target resource is received, multiple Bluetooth broadcast data are sent based on at least two audio track data.
  • the preset quantity threshold can be used to represent the number of audio tracks that the display device can support for simultaneous sharing, when it is determined that the number of audio tracks of the target resource is equal to the preset quantity threshold, it means that the number of audio tracks of the target resource is exactly the number of audio tracks that the display device can support for simultaneous sharing. At this time, the display device plays all the audio track contents of the target resource, thereby using audio broadcasting to achieve the function of simultaneous multi-language playback of the same audio and video resource.
  • controlling the Bluetooth module to send multiple Bluetooth broadcast data may include: if the number of audio tracks is not greater than a second preset number, controlling the Bluetooth module to send multiple Bluetooth broadcast data; if the number of audio tracks is greater than the second preset number, determining a first number of first audio track data from the multiple audio track data, and controlling the Bluetooth module to send the first number of Bluetooth broadcast data, one Bluetooth broadcast data is used to broadcast audio data corresponding to one first audio track data in the first number of first audio track data.
  • the second preset number is the number of audio track data supported by the Bluetooth module for simultaneous broadcasting.
  • the second preset number can be determined based on the performance of the hardware chip (such as the Bluetooth module) of the display device. Specifically, the second preset number can be positively correlated with the performance of the hardware chip.
  • the number of shared audio tracks that the hardware chip can support is 2 (that is, the second preset number is usually set to 2).
  • the specific numerical value of the corresponding second preset number can also be set to 3, 4, etc.
  • the embodiment of the present disclosure does not limit the specific numerical value of the second preset number.
  • the Bluetooth module after receiving a selection operation for a multi-track sharing control, it is determined whether the number of audio tracks of the target resource is not greater than a second preset number. If the number of audio tracks of the target resource is not greater than the second preset number, it means that the number of audio tracks of the target resource does not exceed the performance of the hardware chip of the display device. Therefore, the Bluetooth module can be controlled to send multiple Bluetooth broadcast data.
  • the Bluetooth module is controlled to send multiple Bluetooth broadcast data.
  • the display can be controlled to present the track identifiers of the multiple audio track data of the target resource, and further, the Bluetooth module can be controlled to send multiple Bluetooth broadcast data.
  • the user can be prompted to share the multiple audio track data and to perform the sharing operation of the multiple audio track data.
  • audio track data 1 is Chinese 1
  • audio track data 2 is Chinese 2.
  • the bilingual sharing page shown in (c) in Figure 14 is presented on the display device.
  • the bilingual sharing page can include the track identifier "Chinese” corresponding to audio track data 1 and the track identifier "English” corresponding to audio track data 2.
  • the control display when the number of audio tracks of the target resource is greater than a second preset number, presents multiple audio track identifiers, and the multiple audio track identifiers correspond one-to-one to the multiple audio track data of the target resource.
  • the audio track data corresponding to each first audio track identifier is determined as the first audio track data, and the Bluetooth module is controlled to send a first number of Bluetooth broadcast data, where one Bluetooth broadcast data is used to broadcast audio data corresponding to one first audio track data among the first number of first audio track data.
  • the process of controlling the Bluetooth module to send a plurality of Bluetooth broadcast data is described.
  • the control display is displayed to present the track identification of each track data, and after receiving the trigger operation of multiple Bluetooth broadcast data, the control Bluetooth module is controlled to send multiple Bluetooth broadcast data based on at least two track data.
  • the control display is displayed to present the track identification of the two first track data, and after receiving the trigger operation of multiple Bluetooth broadcast data, the control Bluetooth module is controlled to send two Bluetooth broadcast data corresponding to the two first track data.
  • the second preset number such as 2
  • taking the second preset number as 2 and the number of audio tracks of the target resource as 3 as an example please refer to Figure 15.
  • the audio track selection pop-up window shown in (b) of Figure 15 is presented on the display device.
  • Audio track selection pop-up window multiple audio track options can be displayed on the audio track selection pop-up window, such as a "Chinese” audio track option, an "English” audio track option, and a “Japanese” audio track option, and the identification of each audio track option has a corresponding check box.
  • the display device presents the multilingual sharing page shown in (c) of Figure 15.
  • the multi-language sharing page displays the track identifiers of the Chinese audio track data corresponding to the selected "Chinese” audio track option and the English audio track data corresponding to the "English” audio track option, such as “Chinese” and "English”, which means that the Chinese audio track data corresponding to the "Chinese” audio track option and the English audio track data corresponding to the "English” audio track option are determined as the audio track data to be shared by multiple audio tracks.
  • controlling the Bluetooth module to send multiple Bluetooth broadcast data may include: controlling the Bluetooth module to switch to a Bluetooth broadcast channel; when determining that the Bluetooth module has switched to the Bluetooth broadcast channel, controlling the Bluetooth module to send multiple Bluetooth broadcasts based on multiple Bluetooth broadcast channels, wherein the multiple Bluetooth broadcast channels correspond one-to-one to multiple audio track data.
  • audio channels may include more traditional output channels such as a local speaker output channel, a Universal Serial Bus (USB) audio output channel, and a High Definition Multimedia Interface (HDMI) output channel. They may also include audio output channels established based on a Broadcast Media Sender (BMS).
  • BMS Broadcast Media Sender
  • the current audio channel may be any of the aforementioned audio output channels.
  • the display device can also first switch the current audio channel to the Bluetooth broadcast channel when controlling the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, and control the sound output device to mute after the switch is successful, and control the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices.
  • the method before controlling the Bluetooth module to send multiple Bluetooth broadcast data, may further include: in response to a selection operation for a multi-track sharing control, controlling the player to pause playing the video data; wherein, controlling the Bluetooth module to send multiple Bluetooth broadcast data may include: when determining that the Bluetooth module switches to a Bluetooth broadcast channel, controlling the Bluetooth module to send multiple Bluetooth broadcasts based on multiple Bluetooth broadcast channels, and controlling the player to replay the video data from the start moment of the video.
  • the method before controlling the Bluetooth module to send multiple Bluetooth broadcast data, may further include: in response to a selection operation for a multi-track sharing control, controlling the player to pause playing video data, and obtaining playback progress information of the video data; wherein, controlling the Bluetooth module to send multiple Bluetooth broadcast data may include: when determining that the Bluetooth module switches to the Bluetooth broadcast channel, controlling the player to replay the video data according to the playback progress information, and processing the audio data corresponding to the multiple audio track data of the target resource according to the playback progress information, and controlling the Bluetooth module to send multiple Bluetooth broadcast data based on the multiple processed audio data, wherein one Bluetooth broadcast data is used to broadcast one processed audio data.
  • the player when an audio broadcast trigger operation for at least two audio track data is received, the player is controlled to pause playing the target resource. Assuming that the target resource is paused at 30 seconds of playback, when it is determined that the Bluetooth broadcast switch is successful, the audio decoder is restarted and the audio decoder is controlled to start decoding the target resource from the 30th second to achieve the effect of keeping the playback progress of the audio data and the target resource consistent.
  • the second preset condition is used to determine whether to exit the sharing of multi-track data.
  • the second preset condition includes at least one of the following: receiving an instruction to exit the sharing of multi-track data; detecting that the Bluetooth module is switched to a closed state; detecting that the player is switched to background operation; or receiving an operation to stop playing the target resource.
  • the audio broadcasting method when the video data of the target resource is presented on the display and the sound output device is controlled to output the first audio data of the target resource, in response to the first operation, the audio track information of the target resource is obtained, and the number of audio tracks of the target resource is determined based on the audio track information; when the number of audio tracks meets the first preset condition, the display is controlled to present a multi-audio track sharing control; in response to the selection operation for the multi-audio track sharing control, the sound output device is controlled to stop outputting the first audio data, and the Bluetooth module is controlled to send multiple Bluetooth broadcast data, the multiple Bluetooth broadcast data correspond one-to-one to the multiple audio track data of the target resource, and one Bluetooth broadcast data is used to broadcast the audio data corresponding to one audio track data.
  • the embodiment of the present disclosure can send Bluetooth broadcast data corresponding to different audio track data, so as to realize the function of synchronous playback of multiple audio track data for the same audio and video resource by using audio broadcasting, which can improve the broadcast efficiency.
  • the embodiment of the present disclosure can realize the function of synchronous playback of multiple languages for the same audio and video resource.
  • S2410 Present the video data of the target resource on the display, and control the sound output device to output the first audio data of the target resource.
  • the first audio data refers to audio data corresponding to the audio track data output by the sound output device when the display device plays the video data of the target resource.
  • S2410 can refer to the specific implementation of S2310 mentioned above, and will not be repeated here to avoid repetition.
  • S2420 In response to the first operation, obtain audio track information of the target resource.
  • the audio track information of the target resource may include index information, language type information, audio track type information, and audio track format information.
  • the index information is used to indicate the storage location corresponding to the audio track data, that is, the storage location of the audio data corresponding to the audio track data.
  • the language type information is used to indicate the language type of the audio data corresponding to the audio track data.
  • the voice type information of audio track data 1 is Chinese
  • the voice type information of audio track data 2 is English
  • the voice type information of audio track data 3 is French.
  • the audio track type information is used to distinguish between audio track data and subtitle data.
  • the audio track format information is used to indicate the format type of the audio data corresponding to the audio track data.
  • the audio track format information is used to indicate the format type of the audio data corresponding to the audio track data.
  • the format type of the audio data may include a lossy compression format, a lossless compression format, and a multi-channel audio format.
  • Lossy compression formats may include, for example, MPEG-2 audio coding format, MPEG-4 audio coding format, AC-3 audio coding format, and EAC-3 audio coding format.
  • Lossless compression formats may include, for example, DTS-LBR audio coding format and DTS-HD Master Audio audio coding format.
  • Multi-channel audio formats may include, for example, AC-4 audio coding format, DTS-HD audio coding format, AC-3 audio coding format, EAC-3 audio coding format, DTS-HD audio coding format, and DTS audio coding format.
  • the format types of audio data may include home theater system format, DVD video format, digital video and streaming format, and high-quality audio transmission format.
  • the home theater system format may include, for example, AC-4 audio coding format, AC-3 audio coding format, EAC-3 audio coding format, DTS-HD audio coding format, and DTS-HD Master Audio audio coding format.
  • DVD video format may include, for example, MPEG-2 audio coding format and DTS audio coding format.
  • Digital video and streaming format may include, for example, MPEG-4 audio coding format.
  • High-quality audio transmission format may include, for example, DTS-LBR audio coding format.
  • the decoding types for the AC-4 audio coding format, DTS-HD audio coding format, DTS-LBR audio coding format, and DTS-True-HD audio coding format are hardware decoding types (referred to as hard decoding types).
  • the decoding types for the MPEG-2 audio coding format, MPEG-4 audio coding format, AC-3 audio coding format, EAC-3 audio coding format, and DTS audio coding format can be software decoding types (referred to as soft decoding types) or hardware decoding types.
  • S2430 Determine the number of audio tracks of the target resource and the decoding type of the audio track data of the target resource according to the audio track information.
  • determining the decoding type of the audio track data of the target resource based on the audio track information may include: determining the decoding type corresponding to each audio track data based on the audio track format information corresponding to each audio track data in the audio track information, that is, determining the decoding type of the audio track data of the target resource.
  • the specific implementation method of "determining the number of audio tracks of the target resource according to the audio track information" in S2430 can be referred to the specific implementation method of the aforementioned S2330. To avoid repetition, it will not be repeated here.
  • the first preset condition is whether the target resource meets the conditions for multi-track sharing.
  • the first preset condition can include at least one of the following: the number of tracks is greater than a first preset number (also referred to as a preset number threshold); the number of tracks is equal to the first preset number. In some embodiments, the first preset number is 2.
  • the first application sends an audio track information acquisition instruction to the player.
  • the player After receiving the audio track information acquisition instruction sent by the first application, the player sends the audio track information of the target resource to the first application.
  • the first application After receiving the audio track information of the target resource sent by the player, the first application determines the number of audio tracks of the target resource according to the audio track information of the target resource.
  • the first application In response to a selection operation on the multi-track sharing control, if the number of tracks is equal to a second preset number, the first application displays a first interface (i.e., a multilingual sharing page), which may include a first broadcast control.
  • the first broadcast control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, where each Bluetooth broadcast data corresponds to one track data among the multiple track data.
  • the first interface may include multiple track identifiers corresponding to multiple track data of the target resource.
  • the second preset number is the number of track data that the Bluetooth module supports for simultaneous broadcasting.
  • the second preset number can be determined based on the performance of the hardware chip (such as the Bluetooth module) of the display device.
  • the second preset number can be positively correlated with the performance of the hardware chip.
  • the number of shared tracks that the hardware chip can support is 2 (that is, the second preset number is usually set to 2).
  • the specific numerical value of the corresponding second preset number can also be set to 3, 4, etc.
  • the embodiment of the present disclosure does not limit the specific numerical value of the second preset number.
  • the first interface may further include a second broadcast control, wherein the second broadcast control is used to trigger the Bluetooth module to send Bluetooth broadcast data to multiple Bluetooth devices.
  • the player After receiving the pause instruction sent by the first application, the player pauses playing the video data of the target resource.
  • the audio track selection operation may be an operation of selecting two third audio track options among a plurality of third audio track options.
  • the third interface includes two track identifiers, wherein one of the two track identifiers corresponds to the track data corresponding to the selected third track option.
  • the third interface may also include a second broadcast control. The second broadcast control is used to trigger the Bluetooth module to send Bluetooth broadcast data to multiple Bluetooth devices.
  • the first application In response to the selection operation on the first broadcast control, the first application sends the audio track identifier of each target audio track data to the Bluetooth broadcast component.
  • the track identifier of the target track data can be represented by a track identifier list (channel names). That is, the first application can send a track identifier list to the Bluetooth broadcast component, and the track identifier list can include the track identifier of each target track data in the multiple target track data. It should be noted that the track identifiers of the multiple target track data can be arranged in a preset order. For example, in the track identifier list, the track identifier of the track data whose decoding type is the first decoding type (i.e., hardware decoding type) is ranked first, and the track identifier of the track data whose decoding type is the second decoding type (i.e., software decoding type) is ranked second.
  • the first decoding type i.e., hardware decoding type
  • the track identifier of the track data whose decoding type is the second decoding type i.e., software decoding type
  • the first application may also send a Bluetooth broadcast name (broadcastName) and a Bluetooth broadcast password (broadcastCode) to the Bluetooth broadcast component.
  • the Bluetooth broadcast component sends the Bluetooth broadcast channel list to the Bluetooth protocol stack.
  • the Bluetooth protocol stack controls the Bluetooth module to start through the Bluetooth driver.
  • the first application sends a restart instruction to the player, wherein the restart instruction may carry the audio track information of the target resource.
  • the first application sends playback progress information of the video data of the target resource to the player.
  • the player After receiving the playback progress information sent by the first application, the player decodes the audio and video data of the target resource based on the playback progress information to obtain the video data of the target resource and the audio data corresponding to the two target audio track data.
  • the player mixes the audio data corresponding to the two target audio track data.
  • the different channel data are assembled into multi-channel (four-channel for dual-track) data, and the assembled data is written into BThal.
  • BT splits the assembled data according to the current mode (dual-track broadcasting), and then splits it into two 2ch pcm data, and sends the data through broadcasting, thus realizing the dual-track broadcasting function.
  • the BT module parses the data, it reversely parses the 2ch and mch data according to the assembly protocol, and then assembles them into the original sound sources in two independent track broadcasts, thus completing the two tracks being sent out through two broadcast sources respectively.
  • B30 The player sends the two target audio track data after mixing to the Bluetooth protocol stack.
  • the Bluetooth protocol stack controls the Bluetooth module to send multiple Bluetooth broadcast data based on the Bluetooth broadcast channel list.
  • the embodiment of the present disclosure can send Bluetooth broadcast data corresponding to different audio track data, so as to realize the function of synchronous playback of multiple audio track data for the same audio and video resource by using audio broadcasting, which can improve the broadcast efficiency.
  • the embodiment of the present disclosure can realize the function of synchronous playback of multiple languages for the same audio and video resource.
  • FIG26 is a flow chart of an audio broadcasting method according to some embodiments. As shown in FIG26 , the method may include the following steps:
  • S2610 Present the video data of the target resource on the display, and control the sound output device to output the first audio data of the target resource.
  • S2620 In response to the first operation, obtain audio track information of the target resource.
  • S2630 Determine the number of audio tracks of the target resource according to the audio track information.
  • the control display when the number of audio tracks meets the first preset condition, presents a multi-audio track sharing control, wherein the multi-audio track sharing control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, or trigger the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one to one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast the audio data corresponding to one audio track data of the target resource.
  • the multi-audio track sharing control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, or trigger the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one to one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast the audio data corresponding to one audio track data of the target resource.
  • the video data of the target resource is presented on the display, that is, the audio and video playback page shown in (a) of Figure 27 is displayed.
  • the audio track menu call-up operation i.e., the first operation
  • the audio track information of the target resource is obtained, and the number of audio tracks of the target resource is determined based on the audio track information, and then it is determined whether the number of audio tracks of the target resource is greater than or equal to the first preset number (such as 2). If the number of audio tracks of the target resource is greater than or equal to the first preset number (such as 2), the display is controlled to present the audio track menu page shown in (b) of Figure 27.
  • multi-audio track sharing controls such as the "bilingual sharing" control, are displayed on the audio track menu page. Otherwise, multi-audio track sharing is not supported and the "bilingual sharing" control is not displayed.
  • the multi-audio track sharing control can be, for example, a "bilingual sharing” control as shown in (b) in Figure 27.
  • the first interface further includes a first broadcast control and/or a second broadcast control.
  • the first broadcast control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data, and one Bluetooth broadcast data corresponds to one track data among multiple audio track data.
  • the first broadcast control can be, for example, a “connect Bluetooth device and switch” control as shown in (b) in Figure 28.
  • the second broadcast control is used to trigger the Bluetooth module to send multiple Bluetooth broadcast data to multiple Bluetooth devices.
  • the second broadcast control can be, for example, a “switch audio broadcast only” control as shown in (b) in Figure 28.
  • the bilingual sharing page i.e., the first interface
  • the bilingual sharing page may further include a "Cancel" control (i.e., a cancel multi-track sharing control).
  • a "Cancel" control i.e., a cancel multi-track sharing control.
  • the multi-track sharing mode is exited, and the sound output device is controlled to output the first audio data of the target resource.
  • the audio track selection pop-up window may include multiple audio track options (i.e., the third audio track option), such as the "Chinese” audio track option, the "English” audio track option, and the “Japanese” audio track option, and the identification of each audio track option has a corresponding check box.
  • the audio track selection pop-up window can also display the words "Please select the shared audio track, only supports Bluetooth devices with LE audio protocol" to prompt the user to select multiple audio track data to be shared.
  • the display device after the display device presents the second interface, in response to a selection operation of a first number of third audio track options among multiple third audio track options, the display is controlled to present a third interface, and the third interface includes a first number of audio track identifiers corresponding to the first number of third audio track options.
  • the first number is less than or equal to the second preset number, and the first number is greater than or equal to two. In some embodiments, taking the second preset number as 2 as an example, the first number is 2. In some embodiments, taking the second preset number as 3 as an example, the first number can be 2 or 3.
  • the first interface is a multi-track sharing interface, such as the bilingual sharing page shown in (d) of Figure 28.
  • the third interface may also include a first broadcast control and/or a second broadcast control, wherein the first broadcast control is used to trigger the Bluetooth module to send a first amount of Bluetooth broadcast data, where each Bluetooth broadcast data corresponds to one track data in the first amount of track data; and the second broadcast control is used to trigger the Bluetooth module to send Bluetooth broadcast data to the first number of Bluetooth devices.
  • the presentation process of the third interface is described. Please continue to refer to Figure 28.
  • the Chinese track data corresponding to the "Chinese” track option and the English track data corresponding to the "English” track option are determined as the track data to be shared.
  • the track selection pop-up window may also include a "Confirm Sharing" control.
  • the track selection pop-up window jumps to the multilingual sharing page (i.e., the third interface) shown in (d) in Figure 28.
  • the multilingual sharing page displays the track identifiers of the Chinese audio track data corresponding to the selected "Chinese” audio track option and the English audio track data corresponding to the "English” audio track option, such as "Chinese” and "English.” This indicates that the Chinese audio track data corresponding to the "Chinese” audio track option and the English audio track data corresponding to the "English” audio track option are identified as the audio track data to be shared.
  • the multilingual sharing page may also display a "Switch Audio Broadcast Only" control (i.e., a first broadcast control) and a "Connect Bluetooth Device and Switch” control (i.e., a second broadcast control).
  • the display status of the remaining audio track options is dynamically adjusted according to the decoding type of the audio track data selected by the user to prompt the user which audio track data is available for selection.
  • the operation is simple and the user experience is better.
  • the control display in response to a selection operation for the seventh track option among the track options other than the fourth track option, presents a third interface, wherein the third interface includes the track identifier of the track data corresponding to the fourth track option and the track identifier of the track data corresponding to the seventh track option, and the display status of the other track options among the multiple third track options except the fourth track option and the seventh track option are all in an unselectable state.
  • the display status of the remaining audio track options is set to an unselectable state, which can prompt the user to perform subsequent multi-audio track sharing operations, making it easy to use and providing a better user experience.
  • the method may further include: in response to a selection operation on the first broadcast control, controlling the Bluetooth module to send a plurality of Bluetooth broadcast data based on different broadcast channels.
  • the first interface is presented as an example, and the process of triggering the Bluetooth module to send multiple Bluetooth broadcast data through the first broadcast control is explained.
  • Figure 29 is a schematic diagram of the interface change of an audio broadcast switching provided by an embodiment of the present disclosure.
  • the track identifiers of the audio track data to be shared can be displayed in the bilingual sharing page (i.e., the first interface), such as the track identifier "Chinese” corresponding to the audio track data 1 and the track identifier "English” corresponding to the audio track data 2.
  • the "switch audio broadcast only" control (i.e., the first broadcast control) can also be displayed in the multilingual sharing page.
  • a trigger operation for the "switch audio broadcast only” control i.e., the first broadcast control
  • the player is controlled to pause playing the target audio and video resources.
  • a pop-up window of "Bluetooth broadcast switching" as shown in (b) in Figure 29 can be displayed to remind the user that the Bluetooth broadcast channel is currently being switched.
  • the prompt "Bluetooth broadcast has been set” can also be displayed on the playback page of the target audio and video resources, as shown in (c) in Figure 29, to prompt the user that the Bluetooth broadcast switch is successful and the audio and video resources are being broadcast simultaneously in two or more languages, that is, the Bluetooth module is controlled to send two Bluetooth broadcast data (Bluetooth broadcast data corresponding to audio track data 1 and Bluetooth broadcast data corresponding to audio track data 2).
  • the embodiment of the present disclosure can also trigger the Bluetooth module to send multiple Bluetooth broadcast data through the "switch audio broadcast only" control (ie, the first broadcast control) in the third interface, which will not be repeated here.
  • the method further includes: in response to a selection operation on the second broadcast control, controlling the Bluetooth module to send multiple Bluetooth broadcast data, one Bluetooth broadcast data corresponding to one audio track data among multiple audio track data.
  • the control display in response to the selection operation for the second broadcast control, presents a fourth interface, which includes multiple device options, and the multiple device options correspond one-to-one to multiple Bluetooth devices, and the multiple Bluetooth devices are Bluetooth devices that support the low power audio protocol; in response to the selection operation for the first device option among the multiple device options, the control display presents a fifth interface, and the fourth audio track option and the seventh audio track option in the fifth interface; in response to the selection operation for the eighth audio track option, an association relationship is established between the fifth audio track identification index and the second device identification, wherein the fifth audio track identification is the audio track identification of the audio track data corresponding to the eighth audio track option, the second device identification is the device identification of the Bluetooth device corresponding to the second device option, and the eighth audio track option is the fourth audio track option or the seventh audio track option.
  • the fifth interface also includes a confirmation switch control.
  • the method After establishing an association relationship between the fifth audio track identifier and the second device identifier, the method also includes: in response to a selection operation of the confirmation switch control, controlling the Bluetooth module to send fifth Bluetooth broadcast data to the Bluetooth device corresponding to the second device option based on the association relationship between the fifth audio track identifier and the second device identifier, and the fifth Bluetooth broadcast data is used to broadcast audio data of the audio track data corresponding to the eighth audio track option.
  • Figure 30 is a schematic diagram of the interface changes of another audio broadcast switching provided by an embodiment of the present disclosure.
  • the track identifier of the audio track data to be shared can be displayed in the bilingual sharing page (i.e., the first interface), such as the track identifier "Chinese” corresponding to the audio track data 1 and the track identifier "English” corresponding to the audio track data 2.
  • the "Connect Bluetooth device and switch” control i.e., the second broadcast control
  • the device management page shown in (b) in Figure 30 is presented on the display device, and the connected LE audio device is displayed on the device management page (i.e., the fourth interface) to prompt the user to configure the corresponding LE audio device for each audio track.
  • the device management page displays connected LE audio devices (i.e., device options), such as device A and device B.
  • the track selection page i.e., the fifth interface
  • the track selection page may include at least one track option, such as a "Chinese” track option and an "English” track option.
  • the track selection page may display a prompt message stating "Please select the track to be received by Bluetooth device A" to prompt the user to select the track to be received for device A (e.g., the "Chinese” track option).
  • the Chinese track data corresponding to the "Chinese” track option is determined as the track data matched with device A.
  • broadcast information corresponding to the Chinese track data may be sent to device A, enabling device A to receive Bluetooth broadcast data corresponding to the Chinese track data based on the broadcast information.
  • the Bluetooth broadcast data corresponding to the Chinese audio track data can be sent to device A.
  • the track selection page may also include a "Continue to select device" control.
  • the device management page shown in (d) in Figure 30 is presented on the display device.
  • the page displays the prompt "Chinese track” for device A to prompt the user that the configuration of the track data of device A has been completed.
  • the track selection page shown in (d) in Figure 30 is presented on the display device, which is used to match the track data for device B.
  • the track selection page may also display a "Finish and Switch” control (i.e., a confirmation switch control).
  • a "Finish and Switch” control i.e., a confirmation switch control.
  • a pop-up window with the prompt "Bluetooth broadcast switching" as shown in (f) in Figure 30 can be displayed to remind the user that the Bluetooth broadcast channel is currently being switched.
  • the prompt "Bluetooth broadcast has been set" can also be displayed on the playback page of the target audio and video resources, as shown in (g) in Figure 30, to prompt the user that the Bluetooth broadcast switch is successful and the audio and video resources are being broadcast simultaneously in two or more languages, that is, the Bluetooth module is controlled to send Bluetooth broadcast data to device A and device B.
  • the embodiment of the present disclosure can also trigger the Bluetooth module to send Bluetooth broadcast data to multiple Bluetooth devices through the "Connect Bluetooth device and switch" control (i.e., the second broadcast control) in the third interface, which will not be repeated here.
  • the display device controls the display to display the device management page, it can also control the Bluetooth module to scan for devices and control the display to display the scanned LE audio devices on the device management page.
  • the display device can also control the Bluetooth module to scan for devices and control the display to display the device management page and display the connected LE audio devices on the device management page in response to the trigger operation of the device scanning control, and control the display to display the scanned LE audio devices on the device management page.
  • the LE audio device while displaying the scanned LE audio devices on the device management page, it is also possible to establish a connection with any of the scanned LE audio devices upon receiving a connection request for the LE audio device; after successfully establishing a connection with the scanned LE audio device, the LE audio device can also be displayed in the list of connected devices on the device management page.
  • FIG. 31 it is a schematic diagram of the change of device connection status according to some embodiments, wherein the multilingual sharing page shown in (a) of Figure 31 displays a device configuration control with the words "Connect Bluetooth device and switch".
  • the Bluetooth module is controlled to scan for LE audio devices;
  • the device display device management page shown in (b) of Figure 31 displays LE audio devices scanned by the Bluetooth module, such as device C and device D;
  • a connection request for any LE audio device (such as device D) is received, a connection is established with device D.
  • the connected device D After successfully establishing a connection with device D, the connected device D is displayed in the connected device list on the device management page, as shown in (c) in Figure 31, and device D is now in the connected device list; when a track configuration trigger operation is received for device D, a track selection page as shown in (d) in Figure 31 is displayed, wherein at least two target tracks are displayed on the page, and when a selection operation is received for a first target track (for example, Chinese) among the at least two target tracks, the broadcast information corresponding to the first target track (i.e., Chinese) is sent to device D, so that device D can receive the Bluetooth broadcast corresponding to the first target track (i.e., Chinese) based on the broadcast information.
  • a first target track for example, Chinese
  • the embodiment of the present disclosure does not limit the execution order of the above steps.
  • the step of "displaying the connected LE audio device on the device management page” can be executed first, and then the step of "controlling the display to display the scanned LE audio device on the device management page” can be executed.
  • the step of "controlling the display to display the scanned LE audio device on the device management page” can be executed first, and then the step of "displaying the connected LE audio device on the device management page” can be executed.
  • One or more steps can also be added before the above steps at the same time. For example, before the step of "displaying the connected scanned LE audio device on the device management page", the step of "establishing a connection with the scanned LE audio device” can be added.
  • the method may further include: after entering multi-track sharing, in response to a second operation, controlling the display to present a control for canceling multi-track sharing; in response to a selection operation for canceling the multi-track sharing control, exiting the multi-track sharing mode, and controlling the sound output device to output the first audio data of the target resource.
  • the second operation may be an operation of waking up and canceling the selection of the multi-track sharing control.
  • the display device after entering multi-track data sharing, the display device presents the screen shown in FIG32 (a). After receiving the second operation, the display device presents a "Cancel Sharing" control. Upon receiving a trigger operation on the "Cancel Sharing" control, multiple track selection controls and a "Bilingual Sharing” control may be displayed, allowing the user to reselect the audio output mode.
  • the audio broadcasting method when the video data of the target resource is presented on the display and the sound output device is controlled to output the first audio data of the target resource, in response to the first operation, the audio track information of the target resource is obtained, and the number of audio tracks of the target resource is determined based on the audio track information; when the number of audio tracks meets the first preset condition, the display is controlled to present a multi-audio track sharing control; in response to the selection operation for the multi-audio track sharing control, the sound output device is controlled to stop outputting the first audio data, and the Bluetooth module is controlled to send multiple Bluetooth broadcast data to multiple Bluetooth devices, the multiple Bluetooth broadcast data correspond one-to-one to the multiple Bluetooth devices, and one Bluetooth broadcast data is used to broadcast the audio data corresponding to one audio track data of the target resource.
  • the embodiment of the present disclosure can send Bluetooth broadcast data corresponding to different audio track data to different Bluetooth devices, so as to realize the function of synchronous playback of multiple audio track data for the same audio and video resource by using audio broadcasting, which can improve broadcast efficiency.
  • the embodiment of the present disclosure can realize the function of synchronous playback of multiple languages for the same audio and video resource.
  • the present disclosure provides a computer-readable storage medium storing a computer program.
  • the computer program When executed by a processor, the computer program implements the various processes of the above-described audio broadcasting method and achieves the same technical effects. To avoid repetition, the details are not described here.
  • the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • the present disclosure provides a computer program product, which includes a computer program.
  • the computer program When the computer program is run on a computer, the computer is enabled to implement the above-mentioned audio broadcasting method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开涉及一种显示设备及音频广播方法,涉及蓝牙技术领域。该显示设备包括:显示器、声音输出装置、蓝牙模块以及处理器;该处理器被配置为:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据;响应于第一操作,获取目标资源的音轨信息;根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据;控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。本公开实施例能够利用音频广播的方式实现针对同一音视频资源的多语言同时播放的功能。

Description

显示设备及音频广播方法
相关申请的交叉引用
本公开要求在2024年03月27日提交中国国家知识产权局、申请号为202410361462.X;在2024年03月27日提交中国国家知识产权局、申请号为202410362138.X;在2024年03月27日提交中国国家知识产权局、申请号为202410359462.6;在2024年03月27日提交中国国家知识产权局、申请号为202410361450.7;在2024年10月09日提交中国国家知识产权局、申请号为202411405498.X;在2024年10月09日提交中国国家知识产权局、申请号为202411405548.4;在2024年10月09日提交中国国家知识产权局、申请号为202411405814.3的中国专利申请的优先权,该申请的内容通过引用结合在本公开中。
技术领域
本公开涉及显示设备技术领域,尤其涉及一种显示设备及音频广播方法。
背景技术
随着智能电视技术的不断发展,其功能和应用场景也得到了显著地扩展,如实现多语种音频广播的功能。例如,以机场场景为例,为了满足来自不同国家和地区的旅客的需求,智能电视需要能够进行多语种音频的广播。
然而,相关技术中,智能电视在进行多语种音频广播时存在一定的局限性。通常情况下,智能电视在广播完一个语种的音频后,再切换为另一个语种的音频进行广播,这种方式意味着智能电视无法实现多语种音频的同时广播,从而无法为不同用户提供同步的多语种音频,影响用户体验。
发明内容
第一方面,本公开实施例提供一种显示设备,包括:显示器、声音输出装置、蓝牙模块,以及分别与显示器、声音输出装置和蓝牙模块连接的处理器;其中,蓝牙模块支持低功耗音频协议;该处理器,被配置为:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据;响应于第一操作,获取目标资源的音轨信息;根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据;控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
第二方面,本公开实施例提供一种显示设备,包括:显示器、声音输出装置、蓝牙模块,以及分别与显示器、声音输出装置和蓝牙模块连接的处理器;其中,蓝牙模块支持低功耗音频协议;该处理器,被配置为:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据;响应于第一操作,获取目标资源的音轨信息;根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据;控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。
第三方面,本公开实施例提供一种显示设备,包括:显示器、声音输出装置、蓝牙模块,以及分别与显示器、声音输出装置和蓝牙模块连接的处理器;其中,蓝牙模块支持低功耗音频协议;该处理器,被配置为:在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;响应于第一操作,获取所述目标资源的音轨信息;根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
第四方面,本公开实施例提供一种显示设备,包括:显示器、声音输出装置、蓝牙模块,以及分别与显示器、声音输出装置和蓝牙模块连接的处理器;其中,蓝牙模块支持低功耗音频协议;该处理器,被配置为:在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;响应于第一操作,获取所述目标资源的音轨信息;根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;控制所述蓝牙模块发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述目标资源的多个音轨数据一一对应,一个所述蓝牙广播数据用于广播一个音轨数据对应的音频数据。
第五方面,本公开实施例提供一种显示设备,包括:显示器、声音输出装置、蓝牙模块,以及分别与显示器、声音输出装置和蓝牙模块连接的处理器;其中,蓝牙模块支持低功耗音频协议;该处理器,被配置为:在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;响应于第一操作,获取所述目标资源的音轨信息;根据所述音轨信息,确定所述目标资源的音轨数量;在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件,其中,所述多音轨共享控件用于触发所述蓝牙模块发送多个蓝牙广播数据,或者,触发所述蓝牙模块向多个蓝牙设备发送所述多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
第六方面,本公开实施例提供一种显示设备,包括:显示器、蓝牙模块、声音输出装置,以及与蓝牙模块连接的处理器;其中,该处理器,被配置为:获取目标音视频资源的音轨;其中,音轨与语种之间具有一一对应关系,音轨用于存储自身对应的语种的音频数据;如果确定目标音视频资源的音轨的数量不小于预设数量阈值,则在接收到针对目标音视频资源的音轨中的至少两条目标音轨的音轨配置操作时,控制显示器显示设备管理页面,并在设备管理页面上显示已连接的LE audio设备;接收针对已连接的LE audio设备中的第一LE audio设备配置的第一目标音轨;其中,第一目标音轨属于至少两条目标音轨;响应于针对至少两条目标音轨的音频广播触发操作,基于至少两条目标音轨发出多条蓝牙广播,以及将第一目标音轨对应的广播信息发送至第一LE audio设备;其中,每条目标音轨对应于至少一条蓝牙广播,蓝牙广播用于广播对应的目标音轨的音频数据,广播信息用于接收第一目标音轨的音频数据。
第七方面,本公开实施例还提供一种音频广播方法,应用于第一方面提供的显示设备,该显示设备包括:显示器、声音输出装置、蓝牙模块和处理器,该方法包括:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据;响应于第一操作,获取目标资源的音轨信息;根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据;控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
第八方面,本公开实施例还提供一种音频广播方法,应用于第二方面提供的显示设备,该显示设备包括:显示器、声音输出装置、蓝牙模块和处理器,该方法包括:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据;响应于第一操作,获取目标资源的音轨信息;根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据;控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。
第九方面,本公开实施例还提供一种音频广播方法,应用于第三方面提供的显示设备,该显示设备包括:显示器、声音输出装置、蓝牙模块和处理器,该方法包括:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;响应于第一操作,获取所述目标资源的音轨信息;根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
第十方面,本公开实施例还提供一种音频广播方法,应用于第四方面提供的显示设备,该显示设备包括:显示器、声音输出装置、蓝牙模块和处理器,该方法包括:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;响应于第一操作,获取所述目标资源的音轨信息;根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;控制蓝牙模块发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述目标资源的多个音轨数据一一对应,一个所述蓝牙广播数据用于广播一个音轨数据对应的音频数据。
第十一方面,本公开实施例还提供一种音频广播方法,应用于第五方面提供的显示设备,该显示设备包括:显示器、声音输出装置、蓝牙模块和处理器,该方法包括:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;响应于第一操作,获取所述目标资源的音轨信息;根据所述音轨信息,确定所述目标资源的音轨数量;在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件,其中,所述多音轨共享控件用于触发蓝牙模块发送多个蓝牙广播数据,或者,触发所述蓝牙模块向多个蓝牙设备发送所述多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
第十二方面,本公开实施例还提供一种音频广播方法,应用于第六方面提供的显示设备,该显示设备包括:显示器、声音输出装置、蓝牙模块和处理器,该方法包括:获取目标音视频资源的音轨;其中,音轨与语种之间具有一一对应关系,音轨用于存储自身对应的语种的音频数据;如果确定目标音视频资源的音轨的数量不小于预设数量阈值,则在接收到针对目标音视频资源的音轨中的至少两条目标音轨的音轨配置操作时,控制显示器显示设备管理页面,并在设备管理页面上显示已连接的LE audio设备;接收针对已连接的LE audio设备中的第一LE audio设备配置的第一目标音轨;其中,第一目标音轨属于至少两条目标音轨;响应于针对至少两条目标音轨的音频广播触发操作,基于至少两条目标音轨发出多条蓝牙广播,以及将第一目标音轨对应的广播信息发送至第一LE audio设备;其中,每条目标音轨对应于至少一条蓝牙广播,蓝牙广播用于广播对应的目标音轨的音频数据,广播信息用于接收第一目标音轨的音频数据。
附图说明
图1为根据一些实施例的相关技术中单播媒体音频一对一音频传输的示意图;
图2为根据一些实施例的相关技术中单播媒体音频一对二音频传输的示意图;
图3为根据一些实施例的扩展广播、周期性广播以及BIS之间的关系示意图;
图4为根据一些实施例的扩展广播包、附属广播包、周期性广播包以及BIS之间的关系示意图;
图5为根据一些实施例的相关技术中连续发送BIG的示意图;
图6为根据一些实施例的相关技术中音频广播的场景示意图;
图7为根据一些实施例的一种音频广播的场景示意图;
图8为根据一些实施例的一种音频广播方法的实施环境的示意图;
图9为根据一些实施例的显示设备的硬件配置示意图;
图10为根据一些实施例的一种显示设备的软件系统架构示意图;
图11为根据一些实施例的一种蓝牙设备的硬件配置框图;
图12为根据一些实施例的音频广播方法的流程示意图之一;
图13为根据一些实施例的一种目标资源的选择过程的界面变化示意图;
图14为根据一些实施例的一种由播放页面切换至多语共享页面的界面变化示意图;
图15为根据一些实施例的一种选择音轨的界面变化示意图;
图16为根据一些实施例的音频广播方法的流程示意图之二;
图17为根据一些实施例的一种配置蓝牙设备的界面变化示意图;
图18为根据一些实施例的一种目标音轨与BIS流之间的映射关系示意图;
图19为根据一些实施例的音频广播方法的流程示意图之三;
图20为根据一些实施例的音频广播方法的流程示意图之四;
图21为根据一些实施例的音频广播方法的交互流程图之一;
图22为根据一些实施例的音频广播方法的交互流程图之二;
图23为根据一些实施例的音频广播方法的流程示意图之五;
图24为根据一些实施例的音频广播方法的流程示意图之六;
图25为根据一些实施例的音频广播方法的交互流程图之三;
图26为根据一些实施例的音频广播方法的流程示意图之七;
图27为根据一些实施例的一种呈现多音轨共享控件的界面变化示意图;
图28为根据一些实施例的一种进入多音轨共享的界面变化示意图;
图29为根据一些实施例的一种音频广播切换的界面变化示意图;
图30为根据一些实施例的另一种音频广播切换的界面变化示意图;
图31为根据一些实施例的一种设备连接状态的变化示意图;
图32为根据一些实施例的一种取消多音轨共享的界面变化示意图。
具体实施方式
为了更好地理解本公开实施例,以下对本公开实施例中可能涉及的术语或概念进行解释说明。
低功耗音频(bluetooth low energy audio,LE audio)协议,其是一种以蓝牙技术为基础,采用低功耗音频传输的方式实现广播信号接收的一种通信协议。
与经典蓝牙技术相比,LE audio协议具有以下优点:
1、一个音频播放设备(如显示设备)可以同时连接多个音频接收设备(如蓝牙耳机);
2、一个广播音频设备(也可以称为音频发送设备,如显示设备)可以向无限多个音频接收设备发送广播音频,支持加密广播;
3、采用最新的低复杂度通信编解码器(LC3)音频格式,音质有所提升;
4、支持网络电话及高清通话;
5、支持助听/辅听应用。
LE Audio的应用层规范电话和媒体音频配置文件(telephony and media audio profile,TMAP)中定义了两种媒体音频应用:单播媒体音频和广播媒体音频。
单播媒体音频
TMAP中的单播媒体音频相较目前经典蓝牙中的媒体音频应用规范(advanced audio distribution profile,A2DP)采用了更先进的音频编解码器以提供更好的音质、并同时提供比目前经典蓝牙媒体播放控制规范(audio/video remote control profile,AVRCP)更丰富的控制功能。TMAP针对单播媒体音频应用定义了两个角色:单播媒体发送器(unicast media sender,UMS)和单播媒体接收器(unicast media receiver,UMR)。UMS和UMR间通过连接等时流(CIS)实现单播媒体音频传输。
需要注意的是TMAP中定义的单播媒体音频并不是限定于一对一音频传输,也支持一个单播媒体发送器向两个单播媒体接收器传输单播媒体音频。
图1为根据一些实施例的相关技术中单播媒体音频一对一音频传输的示意图。如图1所示,UMS11向UMR12发送单播媒体音频。
图2为根据一些实施例的相关技术中单播媒体音频一对二音频传输的示意图。如图2所示,UMS21向UMR22和UMR23分别发送单播媒体音频。
广播媒体音频
TMAP中的广播媒体音频基于无连接的多个广播等时流(broadcast isochronous stream,BIS)同步传输。广播媒体音频最大的优势是可以将音频数据同步传输到多个音频接收设备。
TMAP中的广播媒体音频的广播同步通道有广播等时组(broadcast isochronous group,BIG)和BIS两个概念。一个音频发送设备可以同时发送多个BIG,每个BIG可以由多个BIS组成,一个BIG可包含最多31个BIS,每一个BIS有唯一的存取地址(access address),BIS的存取地址基于其所属的BIG的种子存取地址(seed access address)按统一的算法产生。
广播媒体音频中可以包括多种具有不同存取地址的广播,可以包括:
扩展广播(extended advertising):在主广播信道上的扩展广播,采用ADV_EXT_IND封包,并通过时间和频率信息指向附属广播。其存取地址采用蓝牙核心规范中规定的主广播存取地址:0x8E89BED6。
周期性广播(periodic advertising):附属广播采用AUX_ADV_IND封包,并通过时间、跳频地图和存取地址等指向该周期性广播,该周期性广播采用AUX_SYNC_IND封包,周期性广播中包含BIG信息(BIGinfo)。
广播等时流(BIS):为周期性广播通过时间、跳频地图和存取地址及BIG信息(big info)指向的BIS,采用BIS协议数据单元(protocol data unit,PDU)封包,广播等时流广播数字音频。
需要说明的是,蓝牙工作在2.4GHz频段,2.4GHz频段的频率范围为2402MHz到2480MHz之间,每2MHz一个信道,共40个信道。其中,40个信道中包括3个主广播信道,分别为信道37、信道38和信道39,剩余的37个信道为副广播信道,这37个信道分别为信道0至信道36。
图3为根据一些实施例的扩展广播、周期性广播以及BIS之间的关系示意图。如图3所示,主广播信道包括信道37、信道38和信道39。副广播信道包括:信道0至信道36。在主广播信道上的扩展广播可以采用ADV_EXT_IND封包,并通过时间和频率信息指向副广播信道的附属广播,之后附属广播采用AUX_ADV_IND封包,通过时间、跳频地图和存取地址指向的周期性广播,进一步的,该周期性广播再使用AUX_SYNC_IND封包,通过时间、跳频地图和存取地址及BIG信息(BIGinfo)指向BIS,BIS则采用BIS PDU封包,广播数字音频。
图4为根据一些实施例的扩展广播包、附属广播包、周期性广播包以及BIS之间的关系示意图。如图4所示,音频发送设备在主广播信道(37,38,39)上发送扩展广播包(ADV_EXT_IND),扩展广播包中包括:广播设备地址(AdvA)、广播数据信息(ADI)和辅助广播包的指针(auxiliary pointer,AuxPtr),其中,AuxPtr指示接下来副广播信道上进行附属广播。附属广播包(AUX_ADV_IND)中包括:扩展广播数据(AdvData),广播音频公告服务通用唯一标识符(Broadcast Audio Announcement Service UUID),其他服务通用唯一标识符(Others Service UUIDs),其中,附属广播包指示周期性广播的数据信道和广播周期。周期性广播包(AUX_SYNC_IND)包括:额外广播数据BIG信息(additional controller advertising data biginfo,ACAD BIGinfo),扩展广播数据的基本音频播报服务通用唯一标识符(AdvData Basic Audio Announcement Service UUID)。周期性广播包包含广播等时流BIS的所有信息,广播接收者接收到周期性广播包之后根据其包括的数据在特定信道以特定时间锚点接收BIS数据,得到BIS音频流。
在实际应用中,在通过BIS方式广播数字音频时,会通过连续发送BIG来实现,每发送一次BIG可以称为一个BIG事件,每个BIG事件中可以包括多个BIS。
图5为根据一些实施例的相关技术中连续发送BIG的示意图。如图5所示,连续发送BIG的过程中,周期性的连续执行BIG事件,图5中所示的BIG锚点指示每个BIG事件的开始时刻,两个锚点之间的时间间隔为执行BIG事件的一个周期。需要说明的是,图5中是以3个BIG事件,每个BIG事件中包括了2个BIS为例进行说明的,图5示出了连续执行BIG事件X、BIG事件(X+1)以及BIG事件(X+2),其中,每个BIG事件中均包括2个BIS流,分别为图5中示出的BIS1和BIS2。其中,在执行BIG时间的过程中会广播BIS流,在广播BIS流的过程中,每经过一个固定的时间间隔广播一次BIS流。
以上部分对本公开实施例中涉及的术语或概念进行了描述,下面对本公开实施例的技术方案进行说明。
随着智能电视技术的不断发展,其功能和应用场景也得到了显著地扩展,如实现多语种音频广播的功能。在一些实施例中,以机场场景为例,为了满足来自不同国家和地区的旅客的需求,智能电视需要能够进行多语种音频的广播。例如,如图6所示,在机场的4个不同区域,A区域、B区域、C区域和D区域,分别部署一个电视,通过电视的扬声器向各自区域内的用户广播音频。
然而,相关技术中,智能电视在进行多语种音频广播时存在一定的局限性。通常情况下,智能电视在广播完一个语种的音频后,再切换为另一个语种的音频进行广播,例如,在广播乘机规则时,会使用中文广播一次,然后使用英语广播一次,再使用韩语广播一次。这种方式意味着智能电视无法实现多语种音频的同时广播,从而无法为不同用户提供同步的多语种音频,广播效率较低,用户体验较差。
有鉴于此,本公开实施例提供了一种显示设备,该显示设备可以包括支持低功耗音频协议(bluetooth low energy audio,LE audio)的蓝牙模块。在显示设备的显示器呈现目标资源的视频数据的同时,控制蓝牙模块发送多个蓝牙广播数据,其中,多个蓝牙广播数据与目标资源的多个音轨(audio track)数据一一对应,即一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。这样一来,本公开实施例可以为不同的蓝牙设备发送不同的音轨数据对应的蓝牙广播数据,以利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
下面结合附图对本公开实施例提供的显示设备及音频广播方法进行说明。
首先,对本公开实施例提供的显示设备及音频广播方法的应用场景进行介绍。
场景1,在机场场景中,为了向不同语言背景的用户提供信息(如乘机信息、寻人启事等),通常会在机场的不同区域布置显示设备,每个显示设备均可以同时广播目标资源的多个音轨数据对应的音频数据(如多种语言的音频数据)。
图7为根据一些实施例的一种音频广播的场景示意图。在一些实施例中,以显示设备为电视,目标资源包括四个语种的音轨数据,如音轨数据1对应中文音频数据,音轨数据2对应英语音频数据,音轨数据3对应韩语音频数据,音轨数据4对应日语音频数据为例,如图7所示,在机场大厅中部署一台电视,并在机场的不同区域(如A区域、B区域、C区域和D区域)分别布置一个LE audio设备(如蓝牙音箱),通过大厅中部署的电视的蓝牙模块可以发送多个蓝牙广播数据,以及针对LE audio设备发送目标音轨数据对应的蓝牙广播数据。
例如,向A区域的LE audio设备发送音轨数据1对应的蓝牙广播数据,向B区域的LE audio设备发送音轨数据2对应的蓝牙广播数据,向C区域的LE audio设备发送音轨数据3对应的蓝牙广播数据,以及向D区域的LE audio设备发送音轨数据4的蓝牙广播数据。进而,由部署在不同区域的LE audio设备接收相应的蓝牙广播数据,并播放相应的音频数据,以实现不同区域的LE audio设备播放不同语种的音频数据。
同时,当用户处于电视的蓝牙广播信号的覆盖范围内时,用户也可以通过蓝牙设备(如手机或者蓝牙耳机)接收电视发送蓝牙广播数据。例如,用户1可以选择接收中文音频数据(即音轨数据1),用户2可以选择接收英语音频数据(即音轨数据2)。
也就是说,与图6示出的相关技术的音频广播方式,本公开实施例提供的音频广播方法无需在不同区域分别部署多个显示设备来播放不同语言,而是通过一个显示设备和多个LE audio设备即可利用音频广播的方式实现针对同一音视频资源的多语言同时播放的功能。
场景2,在多人会议时,通过显示设备可以呈现会议画面,同时,通过显示设备可以同时广播会议内容对应的多个音轨数据的音频数据(如多种语言的音频数据)。这样,各个参会人员可以通过蓝牙设备选择接收某一音轨数据(即某一语言的音频数据),从而实现多语种音频的同时广播,满足不同用户的需求。当然,本公开实施例提供的显示设备和音频广播方法也可以应用于其他场景,本公开实施例中对此不作限定。
需要说明的是,本公开实施例提供的显示设备可以支持LE audio协议,该显示设备可以作为音频播放设备(即音频发送设备)或者用于配置音频接收设备的设备。当然,本公开实施例中音频接收设备也可以支持LE audio协议。
下面在介绍本公开实施例提供的音频广播方法之前,先对本公开提供的音频广播方法所适用的电子设备进行说明。
本公开实施例中,显示设备200泛指具有画面显示和数据处理能力的设备。例如,显示设备200包括但不限于智能电视、移动终端、计算机、监视器、广告屏、可穿戴设备、虚拟现实设备、增强现实设备等。
图8为根据一些实施例的显示设备与控制设备之间操作场景的示意图。如图8中示出,用户可通过触控操作、移动终端300和控制设备100操作显示设备200。例如,控制设备100可以为遥控器、触控笔、手柄等。
移动终端300可以作为一种控制设备,用于执行用户与显示设备200之间的人机交互。移动终端300还可以作为一种通信设备,用于与显示设备200建立通信连接,进行数据交互。在一些实施例中,移动终端300可与显示设备200安装软件应用,通过网络通信协议实现连接通信,实现一对一控制操作和数据通信的目的。也可以将移动终端300上显示音视频内容传输到显示设备200上,实现同步显示功能。
在一些实施例中,如图8中还示出,显示设备200还可以与蓝牙设备500建立蓝牙通信连接。用户可以通过移动终端300或控制设备100控制显示设备200,以使显示设备200根据用户的指令执行本公开实施例提供的音频广播方法进行多个音轨数据的广播,从而使处于显示设备200的广播信号覆盖范围内的蓝牙设备(如蓝牙耳机)500,可以选择显示设备200广播的任一语言的音频数据进行收听。
如图8中还示出,显示设备200还与服务器400通过多种通信方式进行数据通信。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。
显示设备200可以提供广播接收电视功能,还可以附加提供计算机支持功能的智能网络电视功能,包括但不限于,网络电视、智能电视、互联网协议电视(IPTV)等。
图9为根据一些实施例的图8中显示设备200的硬件配置框图。
在一些实施例中,如图9所示,显示设备200可以包括调谐解调器210、通信器(也可以称为通信装置)220、检测器230、外部装置接口240、处理器250、显示器260、音频输出接口270、存储器、供电电源、用户接口280中的至少一种。
在一些实施例中,处理器250可以包括中央处理器、视频处理器、音频处理器、图形处理器、电源处理器中的至少一个,用于输入/输出的第一接口至第n接口,处理器250通过存储在存储器上中各种软件控制程序,来控制显示设备的工作和响应用户的操作。处理器250控制显示设备200的整体操作。
在一些实施例中,显示器260包括用于呈现画面的显示功能组件,以及驱动图像显示的驱动组件。显示器260用于接收源自处理器250输出的图像信号进行显示。例如,显示器260可以用于显示视频内容、图像内容以及菜单操控界面的组件以及用户操控UI界面等。
在一些实施例中,显示器260可为液晶显示器、OLED显示器、以及投影显示器,还可以为一种投影装置和投影屏幕。
在一些实施例中,通信器220是用于根据各种通信协议类型与外部设备或服务器400进行通信的组件。显示设备200可以根据支持的通信方式的不同,设置有多个通信器220。例如,显示设备200支持无线网络通信时,显示设备200可以设有包含WiFi功能的通信器220。显示设备200支持蓝牙连接通信时,显示设备200需要设有包含蓝牙功能的通信器220。
通信器220可以通过无线或有线连接的方式使显示设备200与外部设备或服务器400进行通信连接。其中,有线连接可以通过数据线、接口等组件将显示设备200与外部设备连接。无线连接则可以通过无线信号或无线网络将显示设备200与外部设备连接。显示设备200可以直接与外部设备建立连接关系,也可以通过网关、路由、连接设备等间接建立连接关系。
在一些实施例中,显示设备200可以通过通信器220获取控制设备发送的用户指令,根据用户指令以实现本公开实施例提供的音频广播方法。
当上述显示设备200通过自身的蓝牙模块实现音频的广播时,上述蓝牙模块可以是支持LE Audio协议的蓝牙模块。当上述显示设备200通过外接的蓝牙音箱实现音频的广播时,上述蓝牙模块可以是支持LE Audio协议的蓝牙模块或者不支持LE Audio协议的蓝牙模块。
在一些实施例中,检测器230用于采集外部环境或与外部交互的信号。例如,检测器230包括光接收器,用于采集环境光线强度的传感器;或者,检测器230包括图像采集器,如摄像头,可以用于采集外部环境场景、用户的属性或用户交互手势,再或者,检测器230包括声音采集器,如麦克风等,用于接收外部声音。
在一些实施例中,外部装置接口240可以包括但不限于如下:高清多媒体接口(HDMI)、模拟或数据高清分量输入接口(分量)、复合视频输入接口(CVBS)、USB输入接口(USB)、RGB端口等任一个或多个接口。也可以是上述多个接口形成的复合性的输入/输出接口。
在一些实施例中,处理器250和调谐解调器210可以位于不同的分体设备中,即调谐解调器210也可在处理器250所在的主体设备的外置设备中,如外置机顶盒等。
在一些实施例中,显示设备200还可以包括声音输出装置,声音输出装置包括音频输出接口270以及扬声器等。
在一些实施例中,用户可在显示器260上显示的图形用户界面(Graphical User Interface,GUI)输入用户命令,则用户接口通过图形用户界面(GUI)接收用户输入命令。
在一些实施例中,用户接口280,可用于接收来自用户输入的指令,也可用于接收控制设备(如:红外遥控器等)的控制信号。
在一些实施例中,在实现本公开实施例提供的音频广播方法时,显示设备200所执行的操作可以由处理器250实现。
在一些实施例中,处理器250,被配置为:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据;响应于第一操作,获取目标资源的音轨信息;根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据;控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
在一些实施例中,处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,具体被配置为:若音轨数量不大于第二预设数量,则控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量;若音轨数量大于第二预设数量,则从目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制蓝牙模块向第一数量的蓝牙设备发送蓝牙广播数据,一个蓝牙设备对应的蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据,其中,第一数量小于或等于第二预设数量,第一数量大于或等于两个。
在一些实施例中,处理器250在从目标资源的多个音轨数据中,确定第一数量的第一音轨数据之前,被进一步被配置为:若音轨数量大于第二预设数量,则控制显示器呈现多个音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应;其中,处理器250在从目标资源的多个音轨数据中,确定第一数量的第一音轨数据时,具体被配置为:响应于针对多个音轨标识中第一数量的第一音轨标识的选择操作,将各第一音轨标识对应的音轨数据,确定为第一音轨数据。
在一些实施例中,目标资源的多个音轨数据中包括第二音轨数据和第三音轨数据;处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,具体被配置为:根据音轨索引与设备标识之间的关联关系,确定第二音轨数据对应的第一蓝牙设备;控制蓝牙模块基于第二音轨数据对应的第一蓝牙广播通道,向第一蓝牙设备发送第一蓝牙广播数据,第一蓝牙广播数据用于广播第二音轨数据对应的音频数据;根据关联关系,确定第三音轨数据对应的第二蓝牙设备;控制蓝牙模块基于第三音轨数据对应的第二蓝牙广播通道,向第二蓝牙设备发送第二蓝牙广播数据,第二蓝牙广播数据用于广播第三音轨数据对应的音频数据。
在一些实施例中,处理器250,被进一步被配置为:根据第二音轨数据对应的音轨标识,创建第一蓝牙广播通道;根据第三音轨数据对应的音轨标识,创建第二蓝牙广播通道。
在一些实施例中,处理器250,被进一步被配置为:在接收到音轨数据配置操作的情况下,控制显示器呈现多个设备选项,多个设备选项与多个蓝牙设备一一对应,多个蓝牙设备为支持低功耗音频协议的蓝牙设备;响应于针对多个设备选项中第一设备选项的选择操作,控制显示器呈现多个音轨选项,多个音轨选项与多个音轨数据一一对应;响应于针对多个音轨选项中第一音轨选项的选择操作,将第一音轨索引和第一设备标识进行关联,得到音轨索引与设备标识之间的关联关系,其中,第一音轨索引为第一音轨选项对应的音轨数据的音轨标识,第一设备标识为第一设备选项对应的蓝牙设备的设备标识。
在一些实施例中,处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步被配置为:控制蓝牙模块切换至蓝牙广播通道。
在一些实施例中,处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步被配置为:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据;其中,处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,具体被配置为:在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,以及控制播放器从视频起始时刻重新播放视频数据。
在一些实施例中,处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步被配置为:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;其中,处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,具体被配置为:在确定蓝牙模块切换至蓝牙广播通道时,按照播放进度信息,控制播放器重新播放视频数据,以及根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行处理,以及控制蓝牙模块基于多个处理后的音频数据,向多个蓝牙设备发送多个蓝牙广播数据,其中,一个蓝牙广播数据用于广播一个处理后的音频数据。
在一些实施例中,处理器250在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之后,被进一步被配置为:在满足第二预设条件的情况下,控制蓝牙模块停止向多个蓝牙设备发送多个蓝牙广播数据,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;基于播放进度信息,控制播放器重新播放视频数据,以及声音输出装置输出第一音频数据;其中,第二预设条件包括以下至少一项:接收到退出多音轨共享的指令;检测蓝牙模块切换为关闭状态;检测到播放器切换至后台运行;接收到停止播放目标资源的操作。
在一些实施例中,处理器250,被进一步被配置为:在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据;响应于第一操作,获取目标资源的音轨信息;根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。
在一些实施例中,处理器250在控制蓝牙模块发送多个蓝牙广播数据时,具体被配置为:若音轨数量不大于第二预设数量,则控制蓝牙模块发送多个蓝牙广播数据,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量;若音轨数量大于第二预设数量,则从多个音轨数据中确定第一数量的第一音轨数据,以及控制蓝牙模块发送第一数量的蓝牙广播数据,一个蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据,其中,第一数量小于或等于第二预设数量,第一数量大于或等于两个。
在一些实施例中,处理器250在从多个音轨数据中确定第一数量的第一音轨数据之前,被进一步被配置为:若音轨数量大于第二预设数量,则控制显示器呈现多个音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应;其中,处理器250在从多个音轨数据中确定第一数量的第一音轨数据时,具体被配置为:响应于针对多个音轨标识中第一数量的第一音轨标识的选择操作,将各第一音轨标识对应的音轨数据,确定为第一音轨数据。
在一些实施例中,处理器250在控制蓝牙模块发送多个蓝牙广播数据时,具体被配置为:控制蓝牙模块切换至蓝牙广播通道;在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块基于多个蓝牙广播通道发送多个蓝牙广播,其中,多个蓝牙广播通道与多个音轨数据一一对应。
在一些实施例中,处理器250在控制蓝牙模块发送多个蓝牙广播数据之前,被进一步被配置为:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据;其中,处理器250在控制蓝牙模块发送多个蓝牙广播数据时,具体被配置为:在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块向基于多个蓝牙广播通道发送多个蓝牙广播,以及控制播放器从视频起始时刻重新播放视频数据。
在一些实施例中,处理器250在控制蓝牙模块发送多个蓝牙广播数据之前,被进一步被配置为:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;其中,处理器250在控制蓝牙模块发送多个蓝牙广播数据时,具体被配置为:在确定蓝牙模块切换至蓝牙广播通道时,按照播放进度信息,控制播放器重新播放视频数据,以及根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行处理,以及控制蓝牙模块基于多个处理后的音频数据发送多个蓝牙广播数据,其中,一个蓝牙广播数据用于广播一个处理后的音频数据。
图10为根据一些实施例的一种显示设备200的软件系统架构示意图。如图10所示,该软件系统至少包括:应用程序(application,APP)层(简称为应用层)、应用程序框架(framework)层(简称为框架层)、动态库(Library)、内核层以及硬件层。
其中,应用层用于部署电视相关的功能。例如,应用层中可以包括电视设置(TV settings)应用程序和电视服务(TV service)。
在本公开实施例中,应用层中还可以包括媒体中心应用程序(即媒体中心APP)和蓝牙设置应用(即蓝牙setting)。其中,媒体中心APP用户与电视媒体播放功能之间的桥梁,提供了用户界面和交互逻辑。媒体中心APP可以用于管理和播放存储于显示设备本地或网络上的媒体资源,如音视频资源。蓝牙设置应用可以用于开启和关闭显示设备的蓝牙连接功能,以及用于管理蓝牙设备列表。
可以理解的是,蓝牙设置应用可以是属于电视设备应用中用于设置蓝牙的安卓应用程序包(android application package,APK)。
框架层中可以包括播放器(media player)、蓝牙接口(Bluetooth API)、蓝牙应用(Bluetooth APK)以及音频(audio)模块等。其中,播放器是实际执行媒体播放任务的核心组件,其负责播放各种格式的音频和视频文件。以及,播放器通常内置或支持多种编解码器,用于解码压缩的媒体文件,以便在显示设备上播放原始音频和视频数据。
蓝牙应用中可以包括蓝牙协议相关的规范,例如可以包括:A2DP应用规范、LE Audio应用规范以及Hearing Aid应用规范中的其中一种或多种。其中,A2DP(Advanced Audio Distribution Profile)应用规范为经典蓝牙中的媒体音频应用规范,LE Audio应用规范为基于蓝牙的低功耗音频应用规范,Hearing Aid应用规范为基于低功耗(BLE)的助听器应用规范。
需要说明的是,蓝牙应用中可以包括蓝牙广播组件。蓝牙广播组件用于发送广播信息,以使其他蓝牙设备扫描到显示设备。在一些实施例中,蓝牙广播组件可以集成在应用层的媒体中心APP中,使得媒体中心APP可以执行蓝牙相关的操作,如发现其他蓝牙设备、建立蓝牙连接、传输数据等。
audio模块中可以包括音频管理器(audio Manager)和音频服务(audio Service)中的其中一种或多种,audio模块主要负责将来自蓝牙应用的音频相关数据下发至蓝牙协议栈。在本公开实施例中主要通过audio模块与蓝牙协议栈之间的音频通道传输声道的声道音频数据,蓝牙协议栈在接收到声道音频数据之后,将声道音频数据封装为BIS流。
动态库(Library)中可以包括蓝牙协议栈(即BT Stack)和蓝牙音频硬件抽象层(即蓝牙音频HAL)。其中,蓝牙协议栈主要负责对蓝牙设备进行扫描、连接和配置等。显示设备在与蓝牙设备建立蓝牙连接的过程中,可以通过显示设备中的蓝牙应用将相关数据下发蓝牙协议栈。
蓝牙协议栈中还可以包括通用音频框架(GAF);GAF还包括公共音频规范(Common Audio Profile,CAP),公共音频服务(Common Audio Service,CAS),音频流传输管理和音量控制,其中,音频流传输管理中包括基本音频配置文件(BAP)、音频能力展示服务(PACS)、音频流控制服务(ASCS)以及广播音频扫描服务(Broadcast Audio Scan Service,BASS),本公开实施例中进行广播同步时需要使用BASS。音量控制中包括:语音控制规范(Volume Control Profile,VCP),音量控制服务(Volume Control Service,VCS),语音偏移控制服务(Voice Offset Control Service,VOCS),音频输入控制服务(Audio Input Control Service,AICS)。
内核层是硬件和软件之间的层。内核层至少可以包括蓝牙驱动(bluetooth driver)。蓝牙驱动是蓝牙模块的驱动层,主要负责和硬件交互。
硬件层可以包括蓝牙模块(即图9中示出的通信器220中的蓝牙模块)。蓝牙协议栈可以通过蓝牙驱动与硬件层的蓝牙模块交互。
图11为根据一些实施例的一种蓝牙设备500的硬件配置框图。如图11所示,蓝牙设备500包括:处理器510、通信器520、用户输入/输出接口530、存储器540、供电电源550。通信器520用于和外部通信,包含WIFI芯片,蓝牙模块,NFC或可替代模块中的至少一种。用户输入/输出接口530包含扬声器,麦克风,触摸板,传感器,按键或可替代模块中的至少一种。
需要说明的是,蓝牙设备中的蓝牙模块也可以支持LE audio协议。
本公开以下实施例将以具有图9和图10所示结构的显示设备为例,结合附图和应用场景,对本公开实施例提供的一种音频广播方法进行具体阐述。
在本公开实施例中,在用户选择目标资源后,可以在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据,同时,可以获取目标资源的音轨信息,根据目标资源的音轨信息,确定目标资源的音轨数量,进而,根据目标资源的音轨数量,判断目标资源是否可以进行多音轨数据共享,如果目标资源可以进行多音轨数据共享,则控制显示器呈现多音轨共享控件。这样,响应于针对多音轨共享控件的选择操作,可以控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,也可以直接控制蓝牙模块发送多个蓝牙广播数据。
也就是说,本公开实施例中,多音轨数据共享的方式有两种,即向不同的蓝牙设备发送不同音轨数据对应的蓝牙广播数据,或者直接发送多个不同的音轨数据对应的蓝牙广播数据。以下实施例分别对这两种多音轨数据共享的方式进行详细说明。
方式1、向不同的蓝牙设备发送不同音轨数据对应的蓝牙广播数据
图12为根据一些实施例的一种音频广播方法的流程示意图。如图12所示,该方法可以包括如下步骤:
S1210,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据。
目标资源(也可以称为目标音视频资源)可以为用户选择的、当前所要播放的音视频资源,即显示设备当前正在播放的音频视频资源。目标音视频资源还可以为待播放音视频资源中的任意一个视频资源。
其中,音视频资源至少包括音频资源(即音频数据)和视频资源(即视频数据)中的其中一种或多种。实际应用中,音视频资源可以为预先存储至显示设备中的,也可以为显示设备根据预设条件获取到的,例如,目标音视频资源可以为根据特定地址从某一多媒体服务器中下载到显示设备且正在播放的音频资源。本公开实施例中,目标资源可以包括一个或多个音轨数据(也可以简称为音轨,Audio Track),音轨数据用于指示目标资源中包括的音频数据,即不同音轨数据所对应的音频数据不同。
在一些实施例中,音轨可以用于指示目标音视频资源中包括的音频信息,不同的音轨对应的音频信息不同;音轨与目标音视频资源的语种之间具有一一对应关系,也就是说,不同的音轨数据对应的音频数据的语言类型(即语种)不同,即一个音轨数据对应一个语言类型的音频数据。例如,以目标资源包括三个音轨数据(即音轨数据1、音轨数据2和音轨数据3)为例,音轨数据1对应的音频数据的语言类型为中文(音轨数据1对应中文音频数据),音轨数据2对应的音频数据的语言类型为英语(音轨数据2对应英语音频数据),音轨数据3对应的音频数据的语言类型为法语(音轨数据2对应法语音频数据)。在一些实施例中,不同的音轨数据对应的声道配置信息不同。例如,继续以目标资源包括三个音轨数据(即音轨数据1、音轨数据2和音轨数据3)为例,音轨数据1为单声道(mono),音轨数据2为立体声(stereo),音轨数据3为环绕声。在一些实施例中,不同的音轨数据对应的音频数据所经过的音频处理(如均衡化、压缩、混响等)可以不同对应的音频数据的格式类型不同。
需要说明的是,一个音轨数据可以包括一个或者多个声道(Channel),其中,声道可以用于表示音频信号在物理或虚拟环境中的传输和处理通道。
第一音频数据是指显示设备在播放目标资源的视频数据时,通过声音输出装置输出的音轨数据对应的音频数据。具体的,在目标资源包括一个音轨数据的情况下,第一音频数据为该音轨数据对应的音频数据。在目标资源包括多个音轨数据的情况下,第一音频数据可以是多个音轨数据中任一个音轨数据对应的音频数据。例如,以目标资源包括音轨数据1和音轨数据2为例,其中,音轨数据1对应中文音频数据,音轨数据2对应英语音频数据,第一音频数据可以为音轨数据1对应的音频数据,即中文音频数据。
在一些实施例中,用户可以通过第一应用选择目标资源。其中,第一应用可以是前述实施例的媒体中心APP,也可以是显示设备上安装的第三方音视频应用。
下面以第一应用为媒体中心APP为例,对用户选择目标资源的过程进行示意性说明。图13为根据一些实施例的目标资源的选择过程的界面示意图。如图13中的(a)所示,在用户打开显示设备后,显示设备启动媒体中心APP,并在显示器上呈现媒体中心APP的音视频资源界面1301,该音视频资源界面1301中包括多个待播放音视频资源,如音视频资源A、音视频资源B和音视频资源C等。响应于针对音视频资源B的选择操作,媒体中心APP将音视频资源B确定为目标资源,并进入图13中的(b)所示的音视频资源B的播放界面1302。其中,针对音视频资源B的选择操作,可以是用户通过控制设备选择音视频资源B的操作,也可以是用户输入的选择音视频资源B的语音指令。
当然,用户也可以通过显示设备中除媒体中心APP以外的其他应用(如第三方音视频应用)选择目标资源。具体的,在显示设备启动后,用户可以先打开第三方音视频应用,进而从第三方音视频应用提供的音视频资源中选择所要播放的目标资源。
可选的,目标资源可以是显示设备存储的本地音视频资源,也可以是网络音视频资源。本公开实施例对目标资源的具体类型和获取方式不作限定。
在用户选择目标资源后,显示设备根据目标资源的存储地址,解析得到目标资源对应的视频数据和目标资源中一个音轨数据的音频数据(即第一音频数据),进而控制显示器呈现目标资源的视频数据,以及控制声音输出装置输出第一音频数据。
在一些实施例中,继续以第一应用为媒体中心APP为例,对控制显示器呈现目标资源的视频数据,以及控制声音输出装置输出第一音频数据的过程进行说明。在用户选择目标资源后,应用层的媒体中心APP获取目标资源的存储地址,并向框架层的播放器发送目标资源的存储地址。播放器在接收到媒体中心APP发送的目标资源的存储地址后,播放器基于目标资源的存储地址,解析得到目标资源的视频数据和其中一个音轨数据对应的音频数据(即第一音频数据)。之后,播放器通过显示驱动,控制显示器呈现目标资源的视频数据,以及播放器通过声音驱动,控制声音输出装置输出第一音频数据。
S1220,响应于第一操作,获取目标资源的音轨信息;该音轨信息也可以称为音频信息。
在播放目标音视频资源(即目标资源)的过程中,还可以对目标资源进行解码,得到目标资源的音频信息(即音轨信息),即获取目标资源的音轨信息。在一些实施例中,获取目标资源的音轨信息,可以包括:响应于第一操作(即音轨菜单唤起操作),获取目标资源的音轨信息。其中,第一操作为音轨菜单的唤起操作。在一些实施例中,第一操作可以是用户对控制设备的菜单键的按压操作。在一些实施例中,第一操作也可以是用户输入的唤起音轨菜单的语音指令。
目标资源的音轨信息可以包括索引信息、语言类型信息、音轨类型信息和音轨格式信息。其中,索引信息用于指示音轨数据对应的存储位置,也即音轨数据对应的音频数据的存储位置。语言类型信息用于指示音轨数据对应的音频数据的语言类型。例如,音轨数据1的语音类型信息为中文,音轨数据2的语音类型信息为英语,音轨数据3的语音类型信息为法语。音轨类型信息用于区分音轨数据和字幕数据。
音轨格式信息用于指示音轨数据对应的音频数据的格式类型。其中,在一些实施例中,按照技术特点划分,音频数据的格式类型可以包括有损压缩格式、无损压缩格式和多声道音频格式。其中,有损压缩格式例如可以包括mpeg-2音频编码格式、mpeg-4音频编码格式、ac-3音频编码格式和eac-3音频编码格式。无损压缩格式例如可以包括dts-lbr音频编码格式和dts-hd master audio音频编码格式。多声道音频格式例如可以包括ac-4音频编码格式、dts-hd音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts-hd音频编码格式和dts音频编码格式。
在一些实施例中,按照应用场景划分,音频数据的格式类型可以包括家庭影院系统格式、DVD视频格式、数字视频和流媒体格式,以及高质量音频传输格式。其中,家庭影院系统格式例如可以包括ac-4音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts-hd音频编码格式和dts-hd master audio音频编码格式。DVD视频格式例如可以包括mpeg-2音频编码格式和dts音频编码格式。数字视频和流媒体格式例如可以包括mpeg-4音频编码格式。高质量音频传输格式例如可以包括dts-lbr音频编码格式。
需要说明的是,不同格式类型的音频数据所对应的解码类型不同。例如,ac-4音频编码格式、dts-hd音频编码格式、dts-lbr音频编码格式、dts-true-hd音频编码格式的解码类型仅为硬件解码类型(简称为硬解类型)。相对的,mpeg-2音频编码格式、mpeg-4音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts音频编码格式的解码类型可以是软件解码类型(简称为软解类型),也可以是硬件解码类型。
在一些实施例中,以第一应用为媒体中心APP为例,对获取目标资源的音轨信息的过程进行说明。播放器在接收到媒体中心APP发送的目标资源的存储地址后,基于目标资源的存储地址,解析得到目标资源的音轨信息。媒体中心APP响应于第一操作,向播放器发送音轨信息获取指令。播放器在接收到媒体中心APP发送的音轨信息获取指令后,向媒体中心APP返回目标资源的音轨信息。
可选的,播放器可以获取目标资源的音轨信息(track info)数组,音轨信息(track info)数组中包括目标资源的至少一个音轨数据中各音轨数据的音轨信息和各音轨数据对应的字幕信息。播放器在获取目标资源的音轨信息(track info)数组后,基于目标资源的音轨信息(track info)数组,创建音轨信息(即base track info)列表,音轨信息(即base track info)列表中包括至少一个音轨数据中各音轨数据的音轨信息,每个音轨数据的音轨信息均包括前述索引信息、语言类型信息、音轨类型信息和音轨格式信息。之后,播放器向媒体中心APP发送音轨信息(即base track info)列表。
S1230,根据音轨信息,确定目标资源的音轨数量。
在一些实施例中,在播放目标资源的过程中,还可以对目标资源进行解码,得到目标资源的音频信息(即音轨信息),进而基于目标资源的音频信息确定目标资源的音轨数量。
其中,目标资源的音轨数量是指目标资源所包括的音轨数据的数量。
在一些实施例中,在获取音轨信息,即音轨信息列表后,根据音轨信息列表的长度,确定目标资源的音轨数量。
在一些实施例中,以第一应用为媒体中心APP为例,对确定目标资源的音轨数量的过程进行说明。媒体中心APP在接收到播放器发送的音轨信息列表后,根据音轨信息列表的长度,确定目标资源的音轨数量。
在一些实施例中,也可以基于目标资源的音频信息确定基于目标资源的音轨名称等。其中,目标资源的音轨名称是指目标资源的各音轨数据的名称(channel name),也即音轨标识。
S1240,在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件。
其中,多音轨共享控件用于触发蓝牙模块发送多个蓝牙广播数据,或者,触发蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
第一预设条件为目标资源是否满足多音轨共享的条件。在一些实施例中,第一预设条件可以包括以下至少一项:音轨数量大于第一预设数量(也可以称为预设数量阈值);音轨数量等于第一预设数量。在一些实施例中,第一预设数量为2。
在一些实施例中,可以音轨信息列表的长度,判断目标资源的音轨数量是否大于或等于第一预设数量。具体的,在获取目标资源的音轨信息列表后,判断目标资源的音轨信息列表的长度是否大于等于预设长度,如果目标资源的音轨信息列表的长度大于等于预设长度,说明目标资源的音轨数量大于或等于第一预设数,即音轨数量满足第一预设条件,此时,控制显示器呈现多音轨共享控件。如果目标资源的音轨信息列表的长度小于预设长度,说明目标资源的音轨数量小于第一预设数,即音轨数量不满足第一预设条件,此时,不显示多音轨共享控件。
图14为根据一些实施例的一种由播放页面切换至多语共享页面的界面变化示意图。请参见图14,在显示器上呈现目标资源的视频数据,即显示图14中的(a)所示的音视频播放页面。响应于用户输入的音轨菜单唤起操作(即第一操作),获取目标资源的音轨信息,并根据音轨信息确定目标资源的音轨数量,进而判断目标资源的音轨数量是否大于或等于第一预设数量(如2)。如果目标资源的音轨数量大于或等于第一预设数量(如2),则控制显示器呈现如图14中的(b)所示的音轨菜单页面。其中,音轨菜单页面上显示有多音轨共享控件,如“双语共享”控件。否则,不支持多音轨共享,不显示“双语共享”控件。
在一些实施例中,还可以控制显示器呈现多个音轨选择控件,多个音轨选择控件与目标资源的多个音轨数据一一对应;响应于针对第一选择控件的选择操作,控制声音输出装置输出目标资源的第一音频数据,其中,第一音频数据为第一选择控件对应的音轨数据的音频数据。第一选择控件为多个音轨选择控件中的任一个音轨选择控件。
在一种可能的实现方式中,每个音轨选择控件上均显示提示信息,提示信息基于音轨选择控件对应的音轨数据的语言类型信息确定。
例如,以目标资源包括三个音轨数据(即音轨数据1、音轨数据2和音轨数据3)为例,音轨数据1对应的音频数据的语言类型为中文(音轨数据1对应中文音频数据),音轨数据2对应的音频数据的语言类型为英语(音轨数据2对应英语音频数据),音轨数据3对应的音频数据的语言类型为日语(音轨数据2对应法语音频数据),对此,如图14中的(b)所示,音轨菜单页面还可以包括音轨数据1对应的“中文”音轨选择控件、音轨数据2对应的“英语”音轨选择控件和音轨数据3对应的“日语”音轨选择控件。
在本实施例中,在音轨菜单页面中还可以呈现多个音轨选择控件,这样用户也可以根据实际需求,选择收听某一音轨数据对应的音频数据,即某一语种的音频数据,能够满足用户的不同需求。
S1250,响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据。
其中,针对多音轨共享控件的触发操作,可以包括作用在多音轨共享控件上的点击操作等。
在一些实施例中,响应于针对多音轨共享控件的选择操作,第一应用可以向播放器发送暂停播放指令,以指示播放器暂停播放目标资源的视频数据。这样,在用户进入多音轨共享界面后,暂停播放目标资源的视频数据,避免影响用户的观看体验。再者,可以避免因目标资源的视频数据播放结束,导致多音轨数据的共享无法正常运行。
S1260,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据;
其中,该蓝牙广播数据也可以简称为蓝牙广播。也就是说,每条音轨数据(即目标音轨)对应于至少一条蓝牙广播数据,蓝牙广播数据用于广播对应的目标音轨的音频数据。
在一些实施例中,在目标资源的音轨数量大于第一预设数量(即预设数量阈值)的情况下,控制显示器呈现多个音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应,响应于针对多个音轨标识中第一数量的第一音轨标识的选择操作,将各第一音轨标识对应的音轨数据,确定为第一音轨数据(即目标音轨),以及控制蓝牙模块向第一数量的蓝牙设备发送蓝牙广播数据,一个蓝牙设备对应的蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据。
也就是说,在获取到目标资源的音轨之后,首先确定目标资源的音轨的数量是否小于预设数量阈值(即判断音轨数量是否满足第一预设条件),如果确定目标资源的音轨的数量不小于预设数量阈值(即满足第一预设条件),则监测针对目标资源的音轨的音频广播触发操作;在接收到针对目标资源的音轨(即音轨数据)中的至少两条音轨的音频广播触发操作后,控制蓝牙模块基于至少两个音轨数据,向多个蓝牙设备发送多个蓝牙广播数据。
在一些实施例中,显示设备在获取到目标资源的音轨之后,还可以在确定目标资源的音轨的数量不小于预设数量阈值时,首先控制显示器显示多音轨共享控件,在接收到针对多音轨共享控件的触发操作(即针对多音轨控件的选择操作)时,确定目标资源的音轨的数量是否大于预设数量阈值,并在确定音轨的数量大于预设数量阈值时,显示目标资源的音轨中的至少两条音轨的标识;然后,接收针对至少两条目标音轨的音频广播触发操作,基于至少两条目标音轨发出蓝牙广播。其中,针对多音轨共享控件的触发操作,可以包括作用在多音轨共享控件上的点击操作等。
实例性的,假设预设数量阈值为2,则说明显示设备能够支持同时共享的音轨数量为2,此时如果确定目标音视频资源的音轨的数量(例如为2)不小于2,则控制显示器显示“双语共享”字样的多音轨共享控件。
在一些实施例中,显示设备控制显示器显示多语共享控件的过程中,还可以在接收到针对多语共享控件的触发操作时,首先确定目标资源的音轨的数量是否等于预设数量阈值,如果确定目标资源的音轨的数量等于预设数量阈值,则显示目标资源的音轨的标识;在接收到针对目标资源的音轨的音频广播触发操作时,基于至少两个音轨数据,向多个蓝牙设备发送多个蓝牙广播数据。
由于预设数量阈值可以用于表征显示设备能够支持同时进行共享的音轨的数量,因此在确定目标资源的音轨的数量等于预设数量阈值时,说明目标资源的音轨的数量恰好为显示设备能够支持同时进行共享的音轨数量,此时显示设备播放目标资源全部的音轨内容,从而利用音频广播的方式实现针对同一音视频资源的多语言同时播放的功能。
在一些实施例中,在获取目标资源的音轨之后,还可以确定显示设备是否为支持LE audio协议的设备,具体的,通过获取显示设备的本机配置信息,确定显示设备是否支持LE audio协议。在确定显示设备支持audio协议且当前正在播放的目标音视频资源的音轨的数量不小于第一预设阈值(即第二预设数量)时,控制显示器显示多音轨共享控件。
也就是说,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,可以包括:若音轨数量不大于第二预设数量,则控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据;若音轨数量大于第二预设数量,则从目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制蓝牙模块向第一数量的蓝牙设备发送蓝牙广播数据,一个蓝牙设备对应的蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据。
其中,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。可选的,第二预设数量可以基于显示设备的硬件芯片(如蓝牙模块)的性能确定。具体的,第二预设数量可以为与硬件芯片的性能呈正相关。目前,硬件芯片能够支持共享的音轨数量为2(即第二预设数量通常设置为2)。实际应用中,随着硬件芯片性能的提高,对应的第二预设数量的具体数值也可以设置为3、4等,本公开实施例对第二预设数量的具体数值大小不作限定。
其中,第一数量小于或等于第二预设数量,第一数量大于或等于两个。以第二预设数量为2为例,第一数量为2。以第二预设数量为3为例,第一数量可以为2,也可以为3。
在一些实施例中,在接收到针对多音轨共享控件的选择操作后,判断目标资源的音轨数量是否不大于第二预设数量,如果目标资源的音轨数量不大于第二预设数量,说明目标资源的音轨数量未超过显示设备的硬件芯片的性能,因此,可以控制蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
具体的,可以按照预先建立的蓝牙设备与音轨数据之间的关联关系,控制蓝牙模块向蓝牙设备发送与其匹配的音轨数据对应的蓝牙广播数据。
可选的,在目标资源的音轨数量等于第二预设数量时,则控制蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
另外,在目标资源的音轨数量不大于第二预设数量的情况下,可以控制显示器呈现目标资源的多个音轨数据的音轨标识,进而,可以控制蓝牙模块向多个蓝牙设备发送蓝牙广播数据。本实施例中,通过在显示器上呈现音轨数据的音轨标识,可以提示用户能够进行共享的多音轨数据,以及提示用户进行多音轨数据的共享操作。
在一些实施例中,音轨标识用于向用户呈现可进行多音轨共享的音轨数据的相关信息。音轨标识可以包括音轨数据的音轨名称(channel name),其中,通常可以采用音轨数据的语言类型信息来表示音轨名称,如中文,英文。音轨标识也可以是基于音轨数据的音轨信息,生成的全局变量。例如,英语(ENG-TVAudioShare),中文(CHN-TVAudioShare)。
需要说明是的,若两个音轨数据的语言类型相同,则可以在语言类型后增加编号,以区分不同的音轨数据。例如,音轨数据1为中文1,音轨数据2为中文2。
当然,在目标资源的音轨数量等于第二预设数量的情况下,也可以控制显示器呈现目标资源的多个音轨数据的音轨标识,进而,可以控制蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
例如,以第二预设数量为2,目标资源包括两个音轨数据(音轨数据1和音轨数据2)为例,请继续参见图14,响应于针对“双语共享”控件的选择操作,在显示设备上呈现图14中的(c)所示的双语共享页面,该双语共享页面中可以包括音轨数据1对应的音轨标识“中文”和音轨数据2对应的音轨标识“英文”。
在一些实施例中,在目标资源的音轨数量大于第二预设数量的情况下,控制显示器呈现多个音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应,响应于针对多个音轨标识中第一数量的第一音轨标识的选择操作,将各第一音轨标识对应的音轨数据,确定为第一音轨数据,以及控制蓝牙模块向第一数量的蓝牙设备发送蓝牙广播数据,一个蓝牙设备对应的蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据。
例如,以第二预设数量为2,第一数量为2为例,对控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据的过程进行说明。
响应于针对多音轨共享控件的选择操作,判断目标资源的音轨数量是否不大于第二预设数量(如2)。如果目标资源的音轨数量不大于第二预设数量(如2),则控制显示器呈现各个音轨数据的音轨标识,以及按照预先建立的蓝牙设备与音轨数据之间的关联关系,向各蓝牙设备发送相应的音轨数据。如果目标资源的音轨数量大于第二预设数量(如2),则从目标资源的多个音轨数据中,确定两个第一音轨数据,控制显示器呈现两个第一音轨数据的音轨标识,以及按照预先建立的蓝牙设备与其匹配的第一音轨数据之间的关联关系,控制蓝牙模块向蓝牙设备发送与其匹配的第一音轨数据对应的蓝牙广播数据。
在一些实施例中,以第二预设数量为2,目标资源的音轨数量为3为例,请参见图15,响应于针对图15中的(a)所示的“双语共享”控件的选择操作,判断目标资源的音轨数量是否不大于第二预设数量(如2)。如果目标资源的音轨数量大于第二预设数量(如2),则在显示设备上呈现图15中的(b)所示的音轨选择弹窗。音轨选择弹窗上可以显示多个音轨选项,如“中文”音轨选项、“英文”音轨选项和“日语”音轨选项,以及,每个音轨选项的标识分别具有对应的复选框。另外,该弹窗上还可以显示有“请选择共享的音轨,仅支持LE audio协议的蓝牙设备”的字样,以提示用户选择共享的多种语言。响应于针对“中文”音轨选项和“英文”音轨选项的选择操作,显示设备呈现图15中的(c)所示的多语共享页面。多语共享页面中显示已选的“中文”音轨选项对应的中文音轨数据和“英文”音轨选项对应的英文音轨数据的音轨标识,如“中文”、“英文”,即将“中文”音轨选项对应的中文音轨数据和“英文”音轨选项对应的英文音轨数据,确定为所要进行多音轨共享的音轨数据。
在一些实施例中,蓝牙设备与音轨数据之间的关联关系,可以是音轨索引(即前文音轨数据的索引信息)与设备标识之间的关联关系。其中,一个音轨数据唯一对应一个音轨索引。设备标识用于唯一标识蓝牙设备。在一些实施例中,设备标识可以是蓝牙设备的mac地址。
下面以目标资源的多个音轨数据中的第二音轨数据和第三音轨数据为例,对按照预先建立的音轨索引与设备标识之间的关联关系,向各蓝牙设备发送相应的音轨数据的过程进行说明。
具体的,根据音轨索引与设备标识之间的关联关系,确定第二音轨数据对应的第一蓝牙设备;控制蓝牙模块基于第二音轨数据对应的第一蓝牙广播通道,向第一蓝牙设备发送第一蓝牙广播数据,第一蓝牙广播数据用于广播第二音轨数据对应的音频数据;根据关联关系,确定第三音轨数据对应的第二蓝牙设备;控制蓝牙模块基于第三音轨数据对应的第二蓝牙广播通道,向第二蓝牙设备发送第二蓝牙广播数据,第二蓝牙广播数据用于广播第三音轨数据对应的音频数据。
在一些实施例中,如图16所示,建立音轨索引与设备标识之间的关联关系的步骤,可以包括:
S1610,在接收到音轨数据配置操作的情况下,控制显示器呈现多个设备选项,多个设备选项与多个蓝牙设备一一对应。
其中,蓝牙设备为支持低功耗音频协议的蓝牙设备(即LE audio设备)。设备选项用于供用户选择所要进行蓝牙广播的设备。在一些实施例中,在接收到音轨数据配置操作的情况下,控制显示器呈现已连接的蓝牙设备列表,蓝牙设备列表中包括多个设备选项。
S1620,响应于针对多个设备选项中第一设备选项的选择操作,控制显示器呈现多个音轨选项,多个音轨选项与多个音轨数据一一对应。
其中,第一设备选项为多个设备选项中任一设备选项。音轨选项用于供用户为所选择的第一设备选项对应的蓝牙设备匹配所要发送的音轨数据。
S1630,响应于针对多个音轨选项中第一音轨选项的选择操作,将第一音轨索引和第一设备标识进行关联,得到音轨索引与设备标识之间的关联关系,其中,第一音轨索引为第一音轨选项对应的音轨数据的音轨标识,第一设备标识为第一设备选项对应的蓝牙设备的设备标识。
在一些实施例中,获取第一音轨选项对应的音轨数据的第一音轨索引,以及获取第一设备选项对应的蓝牙设备的第一设备标识,建立第一音轨索引与第一设备标识之间的关联关系。按照上述过程,关联每一蓝牙设备的设备标识和该与该蓝牙设备匹配的音轨数据的音轨索引,得到音轨索引与设备标识之间的关联关系,即得到音轨数据与蓝牙设备之间的关联关系。
当然,在显示器呈现各个音轨数据的音轨标识后,可以先选择所要进行多音轨共享的一个已连接的蓝牙设备,并为所选择的已连接的蓝牙设备匹配音轨数据(即建立音轨索引与设备标识之间的关联关系),进而向该蓝牙设备发送相应的音轨数据。
具体的,在接收到音轨数据配置操作的情况下,显示设备管理页面,设备管理页面中可以显示已连接的蓝牙设备(即LE audio设备)。在设备管理页面上显示已连接的蓝牙设备后,显示设备响应于设备选择操作,从多个蓝牙设备中选择所要配置音轨数据的蓝牙设备1(即第一LE audio设备,也即LE audio设备1)。之后,显示设备响应于音轨配置操作,为蓝牙设备1匹配音轨数据1(即第一目标音轨)。这样,结合后续步骤,可以向蓝牙设备1发送音轨数据1对应的蓝牙广播数据。在一些实施例中,显示设备控制显示器显示设备管理页面之后,还可以控制蓝牙模块进行设备扫描,并控制显示器在设备管理页面上显示扫描到的LE audio设备。
实际应用中,显示设备还可以在控制显示器显示设备管理页面,以及在设备管理页面上显示已连接的LE audio设备的过程中,响应于针对设备扫描控件的触发操作,控制蓝牙模块进行设备扫描,并控制显示器在设备管理页面上显示扫描到的LE audio设备。
本公开实施例中,在设备管理页面上显示扫描到的LE audio设备的过程中,还可以在接收到针对扫描到的LE audio设备中的任一LE audio设备的连接请求,与该LE audio设备建立连接;在与扫描到的LE audio设备成功建立连接后,还可以在设备管理页面上的已连接的设备列表中显示该LE audio设备。
可选的,在为蓝牙设备匹配音轨数据后,可以向蓝牙设备发送与该蓝牙设备相匹配的音轨数据对应的广播信息,以使该蓝牙设备能够基于广播信息接收相应的蓝牙广播数据。其中,音轨数据对应的广播信息可以包括地址信息、设备地址、广播源地址、广播包簇ID号、广播ID信息、同步间隔、是否加密、Broadcast code、渲染延时时间、SUB Group信息、Android版本信息等广播参数信息。
在一些实施例中,如图17中的(a)所示,显示设备上呈现设备管理页面,设备管理页面上显示已连接的蓝牙设备(LE audio设备)。响应于针对设备A(即蓝牙设备1)的选择操作,显示设备上呈现图17中的(b)所示的音轨选择页面。其中,音轨选择页面中可以包括多个音轨选项,如“中文”音轨选项和“英文”音轨选项。响应于针对“中文”音轨选项的选择操作,将“中文”音轨选项对应的中文音轨数据。确定为设备A匹配的音轨数据。当然,在为设备A匹配中文音轨数据后,可以向设备A发送中文音轨数据对应的广播信息,以使设备A能够基于广播信息接收中文音轨数据对应的蓝牙广播数据。这样,结合后续步骤,可以向设备A发送中文音轨数据对应的蓝牙广播数据。
如图17中的(b)所示,音轨选择页面中还可以包括“继续选择设备”控件。响应于针对“继续选择设备”控件的选择操作,显示设备上呈现图17中的(c)所示的设备管理页面。与图17中的(a)所示的设备管理页面相比,该页面上针对设备A显示有“中文音轨”的提示字样,以提示用户已完成设备A的音轨数据的配置。响应于针对设备B的选择操作,显示设备上呈现图17中的(d)所示的音轨选择页面,用于为设备B匹配音轨数据。
在一些实施例中,显示设备控制显示器呈现设备管理页面之后,还可以控制蓝牙模块进行设备扫描,并控制显示器在设备管理页面上显示扫描到的蓝牙设备(即LE audio设备)。
实际应用中,显示设备还可以在控制显示器显示设备管理页面,以及在设备管理页面上显示已连接的LE audio设备的过程中,响应于针对设备扫描控件的触发操作,控制蓝牙模块进行设备扫描,并控制显示器在设备管理页面上显示扫描到的蓝牙设备(即LE audio设备)。
本公开实施例中,在设备管理页面上显示扫描到的LE audio设备的过程中,还可以在接收到针对扫描到的蓝牙设备(即LE audio设备)中的任一蓝牙设备(即LE audio设备)的连接请求,与该蓝牙设备(即LE audio设备)建立连接;在与扫描到的蓝牙设备(即LE audio设备)成功建立连接后,还可以在设备管理页面上的已连接的设备列表中显示该蓝牙设备(即LE audio设备)。
在一些实施例中,在为蓝牙设备匹配音轨数据之后,显示设备在接收到蓝牙广播的触发操作后,可以控制蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
在一些实施例中,以为蓝牙设备1发送中文音轨数据为例,对控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据的过程进行说明。根据中文音轨数据对应的音轨标识(如channel name),创建蓝牙广播通道1(即sub group)。从音轨索引与设备信息之间的关联关系中,获取蓝牙设备1的设备标识(mac地址),并根据蓝牙设备1的设备标识(mac地址),生成蓝牙设备1的蓝牙设备对象(BluetoothDevice对象)。向蓝牙协议栈发送蓝牙设备1的蓝牙设备对象(BluetoothDevice对象),蓝牙协议栈向蓝牙模块发送中文音轨数据对应的音轨索引和蓝牙设备1的蓝牙设备对象(BluetoothDevice对象)。蓝牙模块通过蓝牙广播通道1,基于中文音轨数据对应的音轨索引和蓝牙设备1的蓝牙设备对象(BluetoothDevice对象),向蓝牙设备1发送中文音轨数据对应的蓝牙广播数据。
本公开实施例中,在接收针对已连接的蓝牙设备(即LE audio设备)中的蓝牙设备1配置的音轨数据之后,显示设备在接收针对至少两条音轨数据的音频广播触发操作时,将配置的音轨数据1对应的广播信息发送至蓝牙设备1,进一步的,由蓝牙设备1根据配置的音轨数据1对应的广播信息接收音轨数据1的音频数据。
可以理解的是,在获取音轨索引与设备信息之间的关联关系后,根据关联关系中各蓝牙设备的设备标识(mac地址),生成各蓝牙设备对应的蓝牙设备对象(BluetoothDevice对象)。
在实际应用中,在基于至少两个音轨数据发出多个蓝牙广播数据的过程中,可能存在用户选定的音轨数据为中文音轨数据,而实际收听到的却是英文广播的情况(即用户收听到的音频数据与用户选择音轨不是同一语种),为了解决上述技术问题或者至少部分地解决上述技术问题,本公开实施例通过控制蓝牙协议栈根据预设的音轨数据与BIS流的对应关系,将至少两个音轨数据分别对应的解码后音频数据封装至对应的BIS流中,进而基于BIS流发出广播,从而能够更准确的发出蓝牙广播。
本公开实施例中,对于一个音轨对应一个声道的情况,该音轨与BIS流之间为一一对应的关系,例如,BIS1对应音轨1,BIS2对应音轨2。
对于一个音轨数据对应多个声道的情况,可以利用组或集合的方式表示音轨数据与BIS流之间的对应关系,如图18所示,为根据一些实施例的一种音轨数据与BIS流之间的映射关系示意图。其中,音轨数据1和音轨数据2分别标识解码得到的不同语种的音频数据,例如中文的音频数据和英文的音频数据,音轨数据1与subgroup0具有对应关系,音轨数据2与subgroup1具有对应关系;subgroup0和subgroup1为不同的组标识,subgroup0包括BIS0和BIS1,subgroup1包括BIS2和BIS3。
由于音轨数据1与subgroup0之间具有对应关系,且subgroup0包括BIS0和BIS1,因此,例如中文的音频数据的左声道,可以用BIS0表征音轨数据1的左声道,使用BIS1表征音轨数据1的右声道;由于音轨数据2与subgroup1之间具有对应关系,且subgroup1包括BIS2和BIS3,因此,可以使用BIS2表征音轨数据2的左声道,使用BIS3表征音轨数据2的右声道。
在一些实施例中,在接收到针对至少两个音轨数据的音频广播触发操作时,说明用户想要进行双语共享或多语共享,首先控制audio模块对目标资源进行解码,得到各个音轨数据对应的解码后音频数据,例如中文(音轨数据1)的音频数据和英文(音轨数据2)的音频数据;然后控制蓝牙协议栈根据图18所示的对应关系,将音轨数据1的左声道对应的解码后音频数据封装至BIS0,将音轨数据1的右声道对应的解码后音频数据封装至BIS1,将音轨数据2的左声道对应的解码后音频数据封装至BIS2,将音轨数据2的右声道对应的解码后音频数据封装至BIS3,并基于BIS0、BIS1、BIS2、BIS3发出多条蓝牙广播数据。
在一些实施例中,显示设备在将解码后的音频数据发送至蓝牙协议栈之前,还可以控制audio解码器为解码后的音频数据添加目标头信息,以得到携带有目标头信息的处理后音频数据,进一步的,将处理后的音频数据发送至蓝牙协议栈。
本公开实施例中,由于目标头信息中可以封装有解码后的音频数据对应的音轨数据的音频信息,因此,蓝牙协议栈在接收到处理后的音频数据后,能够根据处理后的音频数据中携带的目标头信息,自动匹配音轨数据对应的BIS流,从而较为准确地发出蓝牙广播。
在一些实施例中,假设目标资源包括中文和英文两个音轨数据,其中,中文音轨数据包括左声道和右声道,英文音轨数据包括左声道和右声道,则可以将中文音轨数据的左声道对应的BIS0、中文音轨数据的右声道对应的BIS1、英文音轨数据的左声道对应的BIS2、英文音轨数据的右声道对应的BIS3等信息封装在目标头信息中,以得到携带有目标头信息的处理后音频数据。
在另一些实施例中,在控制蓝牙模块发送多个蓝牙广播数据之前,还可以为至少两个音轨数据分别设置对应的BIS流;进一步的,在将处理后音频数据发送至蓝牙协议栈后,控制蓝牙协议栈根据接收到的处理后音频数据的目标头信息中封装的音轨信息,确定对应的BIS流,并将处理后音频数据封装至BIS流,以及基于BIS流发出蓝牙广播数据。
在一些实施例中,假设处理后音频数据的目标头信息中封装有“音轨数据1-BIS0、音轨数据2-BIS2”等音轨信息,蓝牙协议栈在接收到上述音轨信息后,会将音轨数据1的音频数据封装在BIS0中,将音轨数据2的音频数据封装在BIS1中,并基于BIS0和BIS2发出多条蓝牙广播数据。
可见,本公开实施例能够通过为解码后的音频数据添加头信息的方式,自动为音轨数据匹配对应的BIS流,从而较为准确地发出蓝牙广播数据。
在一些实施例中,显示设备在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,还可以包括:控制蓝牙模块将当前音频通道切换至蓝牙广播通道。
本公开实施例中,音频通道可以包括本机扬声器输出通道、通用串行总线(Universal Serial Bus,USB)音输出通道和高清多媒体界面(High Definition Multimedia Interface,HDMI)输出通道等较为传统的输出通道,还可以包括基于单播媒体发送器(Broadcast Media Sender,BMS)建立的音频输出通道等。当前音频通道可以为上述音频输出通道中的任意一个输出通道。
实际应用中,显示设备在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,首先控制声音输出装置静音,然后将当前音频通道切换至蓝牙广播通道,在切换成功后,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。
显示设备还可以在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,首先将当前音频通道切换至蓝牙广播通道,并在切换成功后控制声音输出装置静音,以及控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。
在一些实施例中,在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,该方法还可以包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据;其中,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,以及控制播放器从视频起始时刻重新播放视频数据。
在一些实施例中,在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,该方法还可以包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;其中,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,按照播放进度信息,控制播放器重新播放视频数据,以及根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行处理,以及控制蓝牙模块基于多个处理后的音频数据,向多个蓝牙设备发送多个蓝牙广播数据,其中,一个蓝牙广播数据用于广播一个处理后的音频数据。
在实际应用中,显示设备控制蓝牙模块将当前音频通道切换至蓝牙广播通道的过程中,可能存在音频数据与目标资源的播放进度不一致的问题。为了解决上述技术问题或者至少部分地解决上述技术问题,本公开实施例还可以在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,首先控制蓝牙模块将当前音频通道切换至蓝牙广播通道;然后控制播放器暂停播放目标音视频资源,以及获取目标资源的播放进度信息;进一步的,在确定蓝牙广播通道切换成功时,重启audio解码器和video解码器,控制audio解码器根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行解码,并将解码后的音频数据发送至蓝牙协议栈,以进而蓝牙协议栈通过蓝牙驱动调用蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。以及,控制video解码器根据播放进度信息对视频数据进行解码。
本公开实施例中,audio解码器即音频解码器,主要用于将压缩的音频数据解码为原始的数字音频信号,audio解码器对目标资源解码得到中文音频数据、英文音频数据等数据后,可以将解码后的音频数据发送给音频处理器或音频输出设备等进行播放。video解码器即视频解码器,用于将压缩的视频数据解码为原始的视频图像序列,具体的,可以解码目标音视频资源并还原图像的帧率、分辨率等视频数据,以便后续的视频处理和显示。蓝牙协议栈用于基于解码后的音频数据发出多条蓝牙广播。
本公开实施例中,目标资源的播放进度信息可以包括目标资源的当前播放时间等信息,在获取到目标资源的播放进度信息之后,可以根据播放进度信息控制audio解码器对目标资源进行解码,并将解码后的音频数据发送至蓝牙协议栈,以便蓝牙协议栈基于解码后的音频数据发出多条蓝牙广播数据,从而实现针对同一音视频资源的多音轨数据同时广播的功能。
在一些实施例中,在接收到针对至少两个音轨数据的音频广播触发操作时,控制播放器暂停播放目标资源,假设在播放到30秒时暂停目标资源,则在确定蓝牙广播切换成功时,重启audio解码器,并控制audio解码器从第30秒出开始解码目标资源,以实现音频数据和目标资源的播放进度保持一致的效果。
本公开实施例对上述步骤的执行顺序不做限制,例如可以先执行步骤“控制播放器暂停播放视频数据”,再执行步骤“控制蓝牙模块将当前音频通道切换至蓝牙广播通道”,也可以先执行步骤“控制蓝牙模块将当前音频通道切换至蓝牙广播通道”,再执行步骤“控制播放器暂停播放视频数据”,还可以同时在上述步骤之前增加一个或者多个步骤,例如在步骤“控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据”之前,增加“重启audio解码器”或“重启audio解码器和video解码器”等步骤。
在一些实施例中,在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之后,该方法还可以包括:在满足第二预设条件的情况下,控制蓝牙模块停止向多个蓝牙设备发送多个蓝牙广播数据,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;基于播放进度信息,控制播放器重新播放视频数据,以及声音输出装置输出第一音频数据。
其中,第二预设条件用于判断是否退出多音轨数据的共享。在一些实施例中,第二预设条件包括以下至少一项:接收到退出多音轨共享的指令;检测蓝牙模块切换为关闭状态;检测到播放器切换至后台运行;接收到停止播放目标资源的操作。
本公开实施例提供的音频广播方法中,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据的情况下,响应于第一操作,获取目标资源的音轨信息,根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。这样一来,本公开实施例可以为不同的蓝牙设备发送不同的音轨数据对应的蓝牙广播数据,以利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
图19为根据一些实施例的另一种音频广播方法的流程示意图。如图19所示,该音频广播方法可以包括如下步骤:
S1910,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据。
其中,目标资源可以为用户选择的、当前所要播放的音视频资源。本公开实施例中,目标资源可以包括一个或多个音轨数据,音轨数据用于指示目标资源中包括的音频数据,即不同音轨数据所对应的音频数据不同。
第一音频数据是指显示设备在播放目标资源的视频数据时,通过声音输出装置输出的音轨数据对应的音频数据S1910的具体实现方式,可以参见前述S1210的具体实现方式,此处不再赘述。
S1920,响应于第一操作,获取目标资源的音轨信息。
其中,第一操作为音轨菜单的唤起操作。
目标资源的音轨信息可以包括索引信息、语言类型信息、音轨类型信息和音轨格式信息。其中,索引信息用于指示音轨数据对应的存储位置,也即音轨数据对应的音频数据的存储位置。语言类型信息用于指示音轨数据对应的音频数据的语言类型。例如,音轨数据1的语音类型信息为中文,音轨数据2的语音类型信息为英语,音轨数据3的语音类型信息为法语。音轨类型信息用于区分音轨数据和字幕数据。音轨格式信息用于指示音轨数据对应的音频数据的格式类型。
其中,音轨格式信息用于指示音轨数据对应的音频数据的格式类型。其中,在一些实施例中,按照技术特点划分,音频数据的格式类型可以包括有损压缩格式、无损压缩格式和多声道音频格式。其中,有损压缩格式例如可以包括mpeg-2音频编码格式、mpeg-4音频编码格式、ac-3音频编码格式和eac-3音频编码格式。无损压缩格式例如可以包括dts-lbr音频编码格式和dts-hd master audio音频编码格式。多声道音频格式例如可以包括ac-4音频编码格式、dts-hd音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts-hd音频编码格式和dts音频编码格式。
在一些实施例中,按照应用场景划分,音频数据的格式类型可以包括家庭影院系统格式、DVD视频格式、数字视频和流媒体格式,以及高质量音频传输格式。其中,家庭影院系统格式例如可以包括ac-4音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts-hd音频编码格式和dts-hd master audio音频编码格式。DVD视频格式例如可以包括mpeg-2音频编码格式和dts音频编码格式。数字视频和流媒体格式例如可以包括mpeg-4音频编码格式。高质量音频传输格式例如可以包括dts-lbr音频编码格式。
需要说明的是,不同格式类型的音频数据所对应的解码类型不同。例如,ac-4音频编码格式、dts-hd音频编码格式、dts-lbr音频编码格式、dts-true-hd音频编码格式的解码类型仅为硬件解码类型(简称为硬解类型)。相对的,mpeg-2音频编码格式、mpeg-4音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts音频编码格式的解码类型可以是软件解码类型(简称为软解类型),也可以是硬件解码类型。
S1920的具体实现方式,可以参见前述S1220的具体实现方式,此处不再赘述。
S1930,根据音轨信息,确定目标资源的音轨数量和目标资源的音轨数据的解码类型。
在一些实施例中,根据音轨信息,确定目标资源的音轨数据的解码类型,可以包括:根据音轨信息中各音轨数据对应的音轨格式信息,确定各音轨数据对应的解码类型,即确定目标资源的音轨数据的解码类型。
S1930中关于“根据音轨信息,确定目标资源的音轨数量”的具体实现方式,可以参见前述S1230的具体实现方式,此处不再赘述。
S1940,在音轨数量满足第一预设条件,且目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制显示器呈现多音轨共享控件。
其中,多音轨共享控件用于触发蓝牙模块发送多个蓝牙广播数据,或者,触发蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
第一预设条件为目标资源是否满足多音轨共享的条件。在一些实施例中,第一预设条件可以包括以下至少一项:音轨数量大于第一预设数量(也可以称为预设数量阈值);音轨数量等于第一预设数量。在一些实施例中,第一预设数量为2。
在一些实施例中,可以音轨信息列表的长度,判断目标资源的音轨数量是否大于或等于第一预设数量。具体的,在获取目标资源的音轨信息列表后,判断目标资源的音轨信息列表的长度是否大于等于预设长度,如果目标资源的音轨信息列表的长度大于等于预设长度,说明目标资源的音轨数量大于或等于第一预设数,即音轨数量满足第一预设条件,此时,控制显示器呈现多音轨共享控件。如果目标资源的音轨信息列表的长度小于预设长度,说明目标资源的音轨数量小于第一预设数,即音轨数量不满足第一预设条件,此时,不显示多音轨共享控件。
在一些实施例中,在音轨数量满足第一预设条件的情况下,判断目标资源的音轨数据的解码类型是否满足第三预设条件。如果目标资源的音轨数据的解码类型满足第三预设条件,则控制显示器呈现多音轨共享控件。
其中,第三预设条件可以包括目标资源的多个音轨数据中包括至少两种解码类型的音轨数据。其中,解码类型可以包括第一解码类型、第二解码类型和第三解码类型。第一解码类型表示音轨数据对应的音频数据仅可以通过硬件方式进行解码,即硬件解码类型。第二解码类型表示音轨数据对应的音频数据仅可以通过软件方式进行解码,即软件解码类型。第三解码类型表示音轨数据对应的音频数据既可以通过软件方式进行解码,也可以通过软件方式进行解码,即可硬解可软解类型。
在一些实施例中,第三预设条件可以为目标资源的音轨数量不等于第四音轨数据的数量,且音轨数量不等于第五音轨数据的数量,其中,第四音轨数据的解码类型为第一解码类型(即硬件解码类型),第五音轨数据的解码类型为第二解码类型(即软件解码类型)。
图20为根据一些实施例的音频广播方法的流程示意图。如图20所示,显示多音轨共享控件的过程,可以包括如下步骤:
S2001,获取目标资源的音轨数量。
S2002,判断目标资源的音轨数量是否大于等于第一预设数量,如果是,执行S2003,否则,执行S2007;第一预设数量可例如2个;
S2003,确定目标资源中第四音轨数据的数量,以及确定目标资源中第五音轨数据的数量。
S2004,判断目标资源的音轨数量是否等于第四音轨数据的数量,如果是,执行S2007,否则,执行S2005。
S2005,判断目标资源的音轨数量是否等于第五音轨数据的数量,如果是,执行S2007,否则,执行S2006。
也就是说,在判断目标资源的音轨数量大于等于第一预设数量(如2)的情况下,判断目标资源的音轨数量是否等于第四音轨数据的数量,并判断目标资源的音轨数量是否等于第五音轨数据的数量,若目标资源的音轨数量不等于第四音轨数据的数量,且目标资源的音轨数量不等于第五音轨数据的数量,说明目标资源的音轨数据的解码类型不全为第一解码类型(即硬件解码类型),也不全为第二解码类型(即软件解码类型),即目标资源的音轨数据的解码类型满足第三预设条件,此时,控制显示器呈现多音轨共享控件。否则,说明目标资源的音轨数据的解码类型均为第一解码类型(即硬件解码类型),或者,目标资源的音轨数据的解码类型均为第二解码类型(即软件解码类型),此时目标资源的音轨数据的解码类型不满足第三预设条件,不支持多音轨共享,此时不显示多音轨共享控件。
S2006,控制显示器呈现多音轨显示控件。
S2007,确定不支持多音轨共享,即不显示多音轨显示控件。
请继续参见图14,如图14中的(a)所示,在显示器上呈现目标资源的视频数据,即显示音视频资源的播放页面。响应于用户输入的音轨菜单唤起操作(即第一操作),获取目标资源的音轨信息,并根据音轨信息确定目标资源的音轨数量,进而判断目标资源的音轨数量是否大于或等于第一预设数量(如2)。如果目标资源的音轨数量大于或等于第一预设数量(如2),判断目标资源的音轨数量是否等于第四音轨数据的数量,并判断目标资源的音轨数量是否等于第五音轨数据的数量,若目标资源的音轨数量不等于第四音轨数据的数量,且目标资源的音轨数量不等于第五音轨数据的数量,则控制显示器显示如图14中的(b)所示的音轨菜单页面。其中,音轨菜单页面上显示有多音轨共享控件,如“双语共享”控件。否则,不支持多音轨共享,不显示“双语共享”控件。
S1950,响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据。
在一些实施例中,响应于针对多音轨共享控件的选择操作,第一应用可以向播放器发送暂停播放指令,以指示播放器暂停播放目标资源的视频数据。这样,在用户进入多音轨共享界面后,暂停播放目标资源的视频数据,避免影响用户的观看体验。再者,可以避免因目标资源的视频数据播放结束,导致多音轨数据的共享无法正常运行。
具体的,S1950的具体实现方式,可以参见前述S1250的具体实现方式,为避免重复,这里不再赘述。
S1960,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
在一些实施例中,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,可以包括:若音轨数量不大于第二预设数量,则控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据;若音轨数量大于第二预设数量,则从目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制蓝牙模块向第一数量的蓝牙设备发送蓝牙广播数据,一个蓝牙设备对应的蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据。
其中,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。可选的,第二预设数量可以基于显示设备的硬件芯片(如蓝牙模块)的性能确定。具体的,第二预设数量可以为与硬件芯片的性能呈正相关。目前,硬件芯片能够支持共享的音轨数量为2(即第二预设数量通常设置为2)。实际应用中,随着硬件芯片性能的提高,对应的第二预设数量的具体数值也可以设置为3、4等,本公开实施例对第二预设数量的具体数值大小不作限定。
其中,第一数量的第一音轨数据中解码类型属于第一解码类型(即硬件解码类型)的音轨数据的数量小于或等于第三预设数量,且第一数量的第一音轨数据中解码类型属于第二解码类型(即软件解码类型)的音轨数据的数量小于或等于第四预设数量。以及,第一数量小于或等于第二预设数量,第一数量大于或等于两个。
可选的,第三预设数量可以基于显示设备的硬件芯片(如蓝牙模块和播放器)的性能确定。第四预设数量可以基于显示设备的硬件芯片(如蓝牙模块和播放器)的性能确定。
在一些实施例中,第二预设数量为2,第一数量为2,第三预设数量为1,第四预设数量为1。也就是说,显示设备同时支持一路硬件解码和一路软件解码。
对此,从目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制蓝牙模块向第一数量的蓝牙设备发送蓝牙广播数据的步骤,可以包括:从目标资源的多个音轨数据中,确定两个第一音轨数据,以及控制蓝牙模块向两个蓝牙设备发送蓝牙广播数据,一个蓝牙广播数据用于广播一个第一音轨数据对应的音频数据;其中,两个第一音轨数据的解码类型不同。
在一些实施例中,两个第一音轨数据中的一个第一音轨数据的解码类型为第一解码类型(即硬件解码类型),另一个第一音轨数据的解码类型为第二解码类型(即软件解码类型)。在一些实施例中,两个第一音轨数据中的一个第一音轨数据的解码类型为第一解码类型(即硬件解码类型)或者第二解码类型(即软件解码类型),另一个第一音轨数据的解码类型为第三解码类型(即可硬解可软解类型)。
另外,在目标资源的音轨数量不大于第二预设数量的情况下,可以控制显示器呈现目标资源的多个音轨数据的音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应,进而,可以控制蓝牙模块向多个蓝牙设备发送蓝牙广播数据。本实施例中,通过在显示器上呈现音轨数据的音轨标识,可以提示用户能够进行共享的多音轨数据,以及提示用户进行多音轨数据的共享操作。
在一些实施例中,音轨标识用于向用户呈现可进行多音轨共享的音轨数据的相关信息。在一些实施例中,音轨标识可以包括音轨数据的音轨名称(CHANNEL NAME),其中,通常可以采用音轨数据的语言类型信息来表示音轨名称,如中文,英文。在一些实施例中,音轨标识也可以是基于音轨数据的音轨信息,生成的全局变量。例如,英语(ENG-TVAUDIOSHARE),中文(CHN-TVAUDIOSHARE)。
更具体的,从目标资源的多个音轨数据中,确定两个第一音轨数据的步骤,可以包括:响应于针对多个音轨标识中第二音轨标识的选择操作,将第二音轨标识对应的音轨数据,确定为第一音轨数据,以及控制显示器呈现至少一个第三音轨标识,其中,第三音轨标识包括多个音轨数据中除第二音轨标识对应的音轨数据以外的音轨数据的音轨标识,且第三音轨标识对应的音轨数据的解码类型与第二音轨标识对应的音轨数据的解码类型不同;响应于针对至少一个第三音轨标识中第四音轨标识的选择操作,将第四音轨标识对应的音轨数据,确定为第一音轨数据。
也就是说,在用户选择了一个所要进行共享的音轨数据后,显示设备可以根据已选择的音轨数据的解码类型,判断其余可供用户选择的音轨数据,并在显示设备上呈现相应的音轨标识,以方便用户选择其他所要进行共享的音轨数据,进而保证所选择的音轨数据满足解码类型条件的限制,进而实现多音轨数据的共享功能。
在一些实施例中,可以按照预先建立的蓝牙设备与音轨数据之间的关联关系,控制蓝牙模块向蓝牙设备发送与其匹配的音轨数据对应的蓝牙广播数据。
在一些实施例中,蓝牙设备与音轨数据之间的关联关系,可以是音轨索引(即前文音轨数据的索引信息)与设备标识之间的关联关系。其中,一个音轨数据唯一对应一个音轨索引。设备标识用于唯一标识蓝牙设备。在一些实施例中,设备标识可以是蓝牙设备的mac地址。
下面以目标资源的多个音轨数据中的第二音轨数据和第三音轨数据为例,对按照预先建立的音轨索引与设备标识之间的关联关系,向各蓝牙设备发送相应的音轨数据的过程进行说明。
具体的,根据音轨索引与设备标识之间的关联关系,确定第二音轨数据对应的第一蓝牙设备;控制蓝牙模块基于第二音轨数据对应的第一蓝牙广播通道,向第一蓝牙设备发送第一蓝牙广播数据,第一蓝牙广播数据用于广播第二音轨数据对应的音频数据;根据关联关系,确定第三音轨数据对应的第二蓝牙设备;控制蓝牙模块基于第三音轨数据对应的第二蓝牙广播通道,向第二蓝牙设备发送第二蓝牙广播数据,第二蓝牙广播数据用于广播第三音轨数据对应的音频数据。
在一些实施例中,建立音轨索引与设备标识之间的关联关系的步骤,可以包括:在接收到音轨数据配置操作的情况下,控制显示器呈现多个设备选项,多个设备选项与多个蓝牙设备一一对应,多个蓝牙设备为支持低功耗音频协议的蓝牙设备;响应于针对多个设备选项中第一设备选项的选择操作,控制显示器呈现多个音轨选项,多个音轨选项与多个音轨数据一一对应;响应于针对多个音轨选项中第一音轨选项的选择操作,将第一音轨索引和第一设备标识进行关联,得到音轨索引与设备标识之间的关联关系,其中,第一音轨索引为第一音轨选项对应的音轨数据的音轨标识,第一设备标识为第一设备选项对应的蓝牙设备的设备标识。
按照上述过程,关联每一蓝牙设备的设备标识和该与该蓝牙设备匹配的音轨数据的音轨索引,得到音轨索引与设备标识之间的关联关系,即得到音轨数据与蓝牙设备之间的关联关系。
在一些实施例中,创建蓝牙广播通道的步骤,可以包括:根据第二音轨数据对应的音轨标识和解码类型,创建第一蓝牙广播通道;根据第三音轨数据对应的音轨标识和解码类型,创建第二蓝牙广播通道。
具体的,将第二音轨数据的音轨标识(channel name)写入蓝牙广播通道(subgroup对象),并将第三音轨数据的音轨标识(channel name)写入蓝牙广播通道(subgroup对象),得到蓝牙广播通道列表(即subgroupList)。其中,蓝牙广播通道列表中包括各个目标音轨数据对应的蓝牙广播通道(subgroup对象)。可以理解的是,在蓝牙广播通道列表中,解码类型为第一解码类型(即硬件解码类型)的音轨数据的subgroup对象排在第一位,解码类型为第二解码类型(即软件解码类型)的音轨数据的subgroup对象排在第二位。
在一些实施例中,在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,该方法还包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据;其中,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,以及控制播放器从视频起始时刻重新播放视频数据。
在一些实施例中,在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,该方法还可以包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;其中,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,按照播放进度信息,控制播放器重新播放视频数据,以及根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行处理,以及控制蓝牙模块基于多个处理后的音频数据,向多个蓝牙设备发送多个蓝牙广播数据,其中,一个蓝牙广播数据用于广播一个处理后的音频数据。
在一些实施例中,在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之后,该方法还可以包括:在满足第二预设条件的情况下,控制蓝牙模块停止向多个蓝牙设备发送多个蓝牙广播数据,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;基于播放进度信息,控制播放器重新播放视频数据,以及声音输出装置输出第一音频数据;
其中,第二预设条件包括以下至少一项:接收到退出多音轨共享的指令;检测蓝牙模块切换为关闭状态;检测到播放器切换至后台运行;接收到停止播放目标资源的操作。
具体的,上述关于播放器重新播放视频数据和退出多音轨数据共享的过程,可以参见前述S1260中的具体实现方式,为避免重复,这里不再赘述。
本公开实施例提供的音频广播方法中,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据的情况下,响应于第一操作,获取目标资源的音轨信息,根据音轨信息,确定目标资源的音轨数量和目标资源的音轨数据的解码类型;在音轨数量满足第一预设条件,且目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。这样一来,在目标资源的音轨数据的数量满足条件,且音轨数据的解码类型满足条件时,可以呈现多音轨共享控件,进而,在接收到针对多音轨共享控件的选择操作后,控制蓝牙模块向不同的蓝牙设备发送不同的音轨数据对应的蓝牙广播数据,这样能够利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。并且,能够适用于不同硬件能力的显示设备。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
下面结合图21和图22,对本公开实施例提供的音频广播方法实现过程中显示设备的各模块之间的交互过程进行说明。
图21为根据一些实施例的音频广播方法的交互流程示意图。如图21所示,该音频广播方法可以包括如下步骤:
A1,应用层的第一应用接收针对多个媒体资源中目标资源的选择操作。
第一应用可以是前述实施例的媒体中心APP,也可以是显示设备上安装的第三方音视频应用。
目标资源(也可以称为目标音视频资源)可以为用户选择的、当前所要播放的音视频资源。本公开实施例中,目标资源可以包括一个或多个音轨数据,音轨数据用于指示目标资源中包括的音频数据,即不同音轨数据所对应的音频数据不同。在一些实施例中,不同的音轨数据对应的音频数据的语言类型(即语种)不同,即一个音轨数据对应一个语言类型的音频数据。例如,以目标资源包括三个音轨数据(即音轨数据1、音轨数据2和音轨数据3)为例,音轨数据1对应的音频数据的语言类型为中文(音轨数据1对应中文音频数据),音轨数据2对应的音频数据的语言类型为英语(音轨数据2对应英语音频数据),音轨数据3对应的音频数据的语言类型为法语(音轨数据2对应法语音频数据)。A2,响应于针对目标资源的选择操作,第一应用向框架层的播放器发送目标资源的存储地址。
A3,播放器在接收到第一应用发送的目标资源的存储地址后,基于目标资源的存储地址,解析得到目标资源的视频数据、其中一个音轨数据对应的音频数据(即第一音频数据),以及目标资源的音轨信息。
第一音频数据是指显示设备在播放目标资源的视频数据时,通过声音输出装置输出的音轨数据对应的音频数据。具体的,在目标资源包括一个音轨数据的情况下,第一音频数据为该音轨数据对应的音频数据。在目标资源包括多个音轨数据的情况下,第一音频数据可以是多个音轨数据中任一个音轨数据对应的音频数据。例如,以目标资源包括音轨数据1和音轨数据2为例,其中,音轨数据1对应中文音频数据,音轨数据2对应英语音频数据,第一音频数据可以为音轨数据1对应的音频数据,即中文音频数据。
目标资源的音轨信息可以包括索引信息、语言类型信息、音轨类型信息和音轨格式信息。其中,索引信息用于指示音轨数据对应的存储位置,也即音轨数据对应的音频数据的存储位置。语言类型信息用于指示音轨数据对应的音频数据的语言类型。例如,音轨数据1的语音类型信息为中文,音轨数据2的语音类型信息为英语,音轨数据3的语音类型信息为法语。音轨类型信息用于区分音轨数据和字幕数据。音轨格式信息用于指示音轨数据对应的音频数据的格式类型。
A4,播放器向第一应用发送目标资源的视频数据。
A5,第一应用在接收到播放器发送的目标资源的视频数据后,呈现目标资源的视频数据。
A6,第一应用接收第一操作。
第一操作为音轨菜单的唤起操作。在一些实施例中,第一操作可以是用户对控制设备的菜单键的按压操作。在一些实施例中,第一操作也可以是用户输入的唤起音轨菜单的语音指令。
A7,响应于第一操作,第一应用向播放器发送音轨信息获取指令。
A8,播放器在接收到第一应用发送的音轨信息获取指令后,向第一应用发送目标资源的音轨信息。
A9,第一应用在接收到播放器发送的目标资源的音轨信息后,根据目标资源的音轨信息,确定目标资源的音轨数量。
A10,第一应用判断目标资源的音轨数量是否大于或等于第一预设数量,如果目标资源的音轨数量大于或等于第一预设数量,则执行A11,否则,执行A12。
在一些实施例中,第一预设数量为2。
A11,第一应用生成并显示多音轨共享控件。
在一些实施例中,多音轨共享控件可以是“多语共享”控件。
A12,第一应用不生成多音轨共享控件。
以上A1-A12为显示多音轨控件的过程。
A13,第一应用接收针对多音轨共享控件的选择操作。
A14,响应于针对多音轨共享控件的选择操作,若音轨数量等于第二预设数量,则第一应用显示第一界面(即多语共享页面),第一界面中可以包括第二广播控件。其中,第二广播控件用于触发蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
在接收到针对多音轨共享控件的选择操作后,判断音轨数量是否等于第二预设数量(如2)。如果音轨数量等于第二预设数量(如2),则第一应用呈现第一界面(即多语共享界面)。
第一界面中可以包括目标资源的多个音轨数据对应的多个音轨标识。第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。可选的,第二预设数量可以基于显示设备的硬件芯片(如蓝牙模块)的性能确定。具体的,第二预设数量可以为与硬件芯片的性能呈正相关。目前,硬件芯片能够支持共享的音轨数量为2(即第二预设数量通常设置为2)。实际应用中,随着硬件芯片性能的提高,对应的第二预设数量的具体数值也可以设置为3、4等,本公开实施例对第二预设数量的具体数值大小不作限定。
第一界面中还可以包括第一广播控件,其中,第一广播控件用于触发蓝牙模块发送多个蓝牙广播数据,一个蓝牙广播数据对应多个音轨数据中的一个音轨数据。
A15,第一应用向播放器发送暂停播放指令。
A16,播放器在接收到第一应用发送的暂停播放指令后,暂停播放目标资源的视频数据。
在一些实施例中,播放器可以获取目标资源的视频数据的播放进度信息。
A17,响应于针对多音轨共享控件的选择操作,若音轨数量大于第二预设数量,则第一应用显示第二界面(即音轨选择弹窗)。
在接收到针对多音轨共享控件的选择操作后,判断音轨数量是否大于第二预设数量(如2)。如果音轨数量大于第二预设数量(如2),则第一应用呈现第二界面(即音轨选择弹窗)。其中,第二界面中包括多个第三音轨选项,多个第三音轨选项与目标资源的多个音轨数据一一对应,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。
A18,响应于音轨选择操作,第一应用显示第三界面(也即多语共享页面),第三界面中可以包括第二广播控件。其中,第二广播控件用于触发蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
在一些实施例中,音轨选择操作可以是对多个第三音轨选项中两个的第三音轨选项的选择操作。
在一些实施例中,第三界面中包括两个音轨标识,其中,一个两个音轨标识对应选择的第三音轨选项对应的音轨数据。第三界面中还可以包括第一广播控件,其中,第一广播控件用于触发蓝牙模块发送第一数量的蓝牙广播数据,一个蓝牙广播数据对应第一数量的音轨数据中的一个音轨数据。
以上A1-A18是对显示多音轨共享控件和选择所要广播的音轨数据的过程的示意性说明。以下结合图22,以同步广播两个目标音轨数据为例,对为蓝牙设备匹配音轨数据,以及向蓝牙设备发送音轨数据对应的蓝牙广播数据的过程进行示意性说明。
A19,第一应用接收针对第二广播控件的选择操作。
A20,响应于针对第二广播控件的选择操作,第一应用向蓝牙设置应用发送启动指令,启动指令中包括两个目标音轨数据的音轨标识(channel name)。
其中,目标音轨数据是指音轨索引与设备标识之间的关联关系中指示的任一个音轨数据,即所要进行多音轨数据共享的音轨数据。
在一些实施例中,目标音轨数据的音轨标识可以通过音轨标识列表(channel names)的方式来表示。也就是说,蓝牙广播信息中可以包括音轨标识列表,音轨标识列表中可以包括多个目标音轨数据中各目标音轨数据的音轨标识。需要说明的是,多个目标音轨数据的音轨标识可以按照预设顺序排列。例如,在音轨标识列表中,解码类型为第一解码类型(即硬件解码类型)的音轨数据的音轨标识排在第一位,解码类型为第二解码类型(即软件解码类型)的音轨数据的音轨标识排在第二位。
A21,蓝牙设置应用响应于启动指令,为两个目标蓝牙设备匹配音轨数据。
其中,目标蓝牙设备为用户选择的,所要接收目标音轨数据的蓝牙设备。
在一些实施例中,蓝牙设置应用响应于启动指令,呈现设备管理页面,设备管理页面中包括两个设备选项。其中,两个设备选项与两个已连接的蓝牙设备一一对应,两个蓝牙设备为支持低功耗音频协议的蓝牙设备。蓝牙设置应用响应于针对蓝牙设备1的选择操作,呈现蓝牙设备1的音轨选择页面,音轨选择页面中包括至少两个第一音轨数据对应的音轨选项。响应于针对音轨数据1的选择操作,为蓝牙设备1匹配音轨数据1。重复前述过程,可以为每个目标蓝牙设备匹配相应的音轨数据。
A22、蓝牙设置应用建立音轨索引和设备标识之间的关联关系(即device channel map)。
在一些实施例中,以建立蓝牙设备1与音轨数据1之间的关联关系为例,蓝牙设置应用确定音轨数据1对应的音轨标识,并基于音轨标识和音轨索引(index)之间的关联关系,确定音轨数据1的音轨索引。蓝牙设置应用确定蓝牙设备1的设备标识(mac地址)。之后,蓝牙设置应用建立音轨数据1的音轨索引与蓝牙设备1的设备标识之间的关联关系。重复前述过程,可以建立各个目标蓝牙设备与其对应的音轨数据之间的关联关系。
具体的,以HashMap形式存储音轨索引(index)和设备标识(mac地址)之间的关联关系。例如,HashMap定义如下HashMap<String,Integer>,其中,String存储设备mac地址,Integer存储音轨index。另外,在生成HashMap后,将HashMap转换为json对象。
例如,以蓝牙设备为蓝牙耳机为例,该蓝牙耳机的左耳机的mac地址为“14:0a:29:f6:38:52”,右耳机的mac地址为“14:0a:29:f6:3a:4a”,所匹配的音轨数据的音轨索引为3。对此,所生成的HashMap信息如下:
HashMap<String,Integer>map=new HashMap<String,Integer>();
map.put(“14:0a:29:f6:38:52”,3)
map.put(“14:0a:29:f6:3a:4a”,3)
转换后的json对象为{"14:0a:29:f6:38:52":3,"14:0a:29:f6:3a:4a":3}。
A23,蓝牙设置应用向第一应用发送音轨索引和设备标识之间的关联关系。
具体的,蓝牙设置应用向第一应用发送音轨索引和设备标识之间的关联关系(即device channel map)的json对象。
A24,第一应用在接收到音轨索引和设备标识之间的关联关系(即device channel map)后,向蓝牙协议栈发送蓝牙广播信息,蓝牙广播信息中包括音轨索引与设备标识之间的关联关系,以及目标音轨数据对应的音轨标识。
在一些实施例中,蓝牙广播信息中还可以包括蓝牙广播名称(broadcastName)和蓝牙广播密码(broadcastCode)。其中,蓝牙广播名称例如可以是显示设备的设备名称,如“张三”的电视。
具体的,第一应用通过调用startMultiTrackBroadcast()函数,向蓝牙协议栈下发蓝牙广播信息。
A25,蓝牙协议栈向蓝牙模块发送蓝牙广播消息。
具体的,蓝牙协议栈通过调用蓝牙驱动与蓝牙模块交互,并向蓝牙模块发送蓝牙广播消息,以控制蓝牙模块开启。
A26,第一应用针对每个目标音轨数据,根据目标音轨数据的音轨标识,为每个目标音轨数据创建相应的蓝牙广播通道,得到蓝牙广播通道列表(即subgroupList)。
在一些实施例中,第一应用循环遍历音轨标识列表,对音轨标识列表中每个目标音轨数据创建相应的蓝牙广播通道(subgroup对象)。具体的,将目标音轨数据的音轨标识(channelname)写入蓝牙广播通道(subgroup对象),得到蓝牙广播通道列表(即subgroupList),其中,蓝牙广播通道列表中包括各个目标音轨数据对应的蓝牙广播通道(subgroup对象)。可以理解的是,在蓝牙广播通道列表中,解码类型为第一解码类型(即硬件解码类型)的音轨数据的subgroup对象排在第一位,解码类型为第二解码类型(即软件解码类型)的音轨数据的subgroup对象排在第二位。
A27,第一应用向蓝牙协议栈发送蓝牙广播通道列表。
A28,第一应用根据音轨索引和设备标识之间的关联关系(即device channel map),生成每个目标蓝牙设备对应的蓝牙设备对象(BluetoothDevice对象)。
A29,第一应用向蓝牙协议栈发送各目标音轨数据的音轨索引和各目标蓝牙设备的蓝牙设备对象。
具体的,第一应用调用setBuiltinModeSyncBis()函数,向蓝牙协议栈传入BluetoothDevice对象和音轨index。
A30,蓝牙协议栈向蓝牙模块发送蓝牙广播通道列表、各目标音轨数据的音轨索引和各目标蓝牙设备的蓝牙设备对象,以为蓝牙模块配置音轨数据。
A31,蓝牙设置应用向第一应用发送配置完成通知。
A32,第一应用在接收到配置完成通知后,向播放器发送销毁指令,销毁指令用于指示播放器销毁原音视频播放线程。
A33,播放器在接收到销毁指令后,销毁原音视频播放线程。
A34,第一应用向播放器发送重新起播指令。
在一些实施例中,重新起播指令中可以携带播放进度信息。
A35,第一应用向播放器发送目标资源的视频数据的播放进度信息。
A36,播放器在接收到第一应用发送的播放进度信息后,基于播放进度信息对目标资源的音视频数据进行解码,得到目标资源的视频数据和两个目标音轨数据对应的音频数据。
A37,播放器将两个目标音轨数据对应的音频数据进行混音处理。
在一些实施例中,为了实现双音轨广播,需要对通路中的pcm进行区分,不再进行混音,而是将不同声道数据拼装成多声道(双音轨为四声道)数据,将拼装后的数据写入BThal中。BT根据当前模式(双音轨广播),对拼装数据进行拆分,再拆分成两路2ch的pcm数据,将数据通过广播形式发送出去,即实现了双音轨广播功能。BT模块解析数据时,按照拼装协议,反向解析出2ch和mch数据,再拼装成两个独立音轨广播中的原始音源,即完成了两个音轨分别通过两个广播源发出。
A38,播放器向蓝牙协议栈发送混音处理后的两个目标音轨数据。
A39,蓝牙协议栈在接收到混音处理后的两个目标音轨数据后,向蓝牙模块发送混音处理后的两个目标音轨数据。
A40,蓝牙模块基于蓝牙广播通道列表、各目标音轨数据的音轨索引和各目标蓝牙设备的蓝牙设备对象,向目标蓝牙设备发送相应的目标音轨数据对应的蓝牙广播数据。
本公开实施例提供的音频广播方法中,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据的情况下,响应于第一操作,获取目标资源的音轨信息,根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。这样一来,本公开实施例可以为不同的蓝牙设备发送不同的音轨数据对应的蓝牙广播数据,以利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
方式2、直接广播多个蓝牙广播数据
图23为根据一些实施例的一种音频广播方法的流程示意图。在一些实施例中,如图23所示,该方法可以包括如下步骤:
S2310,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据。
其中,目标资源(也可以称为目标音视频资源)可以为用户选择的、当前所要播放的音视频资源,即显示设备当前正在播放的音频视频资源。在一些实施例中,目标音视频资源还可以为待播放音视频资源中的任意一个视频资源。
其中,音视频资源至少包括音频资源(即音频数据)和视频资源(即视频数据)中的其中一种或多种。实际应用中,音视频资源可以为预先存储至显示设备中的,也可以为显示设备根据预设条件获取到的,例如,目标音视频资源可以为根据特定地址从某一多媒体服务器中下载到显示设备且正在播放的音频资源。本公开实施例中,目标资源可以包括一个或多个音轨数据,音轨数据用于指示目标资源中包括的音频数据,即不同音轨数据所对应的音频数据不同。
第一音频数据是指显示设备在播放目标资源的视频数据时,通过声音输出装置输出的音轨数据对应的音频数据。具体的,在目标资源包括一个音轨数据的情况下,第一音频数据为该音轨数据对应的音频数据。在目标资源包括多个音轨数据的情况下,第一音频数据可以是多个音轨数据中任一个音轨数据对应的音频数据。例如,以目标资源包括音轨数据1和音轨数据2为例,其中,音轨数据1对应中文音频数据,音轨数据2对应英语音频数据,第一音频数据可以为音轨数据1对应的音频数据,即中文音频数据。
在一些实施例中,用户可以通过第一应用选择目标资源。其中,第一应用可以是前述实施例的媒体中心APP,也可以是显示设备上安装的第三方音视频应用。
下面以第一应用为媒体中心APP为例,对用户选择目标资源的过程进行示意性说明。图13为根据一些实施例的目标资源的选择过程的界面示意图。如图13中的(a)所示,在用户打开显示设备后,显示设备启动媒体中心APP,并在显示器上呈现媒体中心APP的音视频资源界面1301,该音视频资源界面1301中包括多个待播放音视频资源,如音视频资源A、音视频资源B和音视频资源C等。响应于针对音视频资源B的选择操作,媒体中心APP将音视频资源B确定为目标资源,并进入图13中的(b)所示的音视频资源B的播放界面1302。其中,针对音视频资源B的选择操作,可以是用户通过控制设备选择音视频资源B的操作,也可以是用户输入的选择音视频资源B的语音指令。
当然,用户也可以通过显示设备中除媒体中心APP以外的其他应用(如第三方音视频应用)选择目标资源。具体的,在显示设备启动后,用户可以先打开第三方音视频应用,进而从第三方音视频应用提供的音视频资源中选择所要播放的目标资源。
可选的,目标资源可以是显示设备存储的本地音视频资源,也可以是网络音视频资源。本公开实施例对目标资源的具体类型和获取方式不作限定。
具体的,S2310的具体实现方式,可以参见前述S1210的具体实现方式,为避免重复,这里不再赘述。
S2320,响应于第一操作,获取目标资源的音轨信息(也可以称为音频信息)。
在播放目标音视频资源(即目标资源)的过程中,还可以对目标资源进行解码,得到目标资源的音频信息(即音轨信息),即获取目标资源的音轨信息。在一些实施例中,获取目标资源的音轨信息,可以包括:响应于第一操作(即音轨菜单唤起操作),获取目标资源的音轨信息。
其中,第一操作为音轨菜单的唤起操作。在一些实施例中,第一操作可以是用户对控制设备的菜单键的按压操作。在一些实施例中,第一操作也可以是用户输入的唤起音轨菜单的语音指令。
目标资源的音轨信息可以包括索引信息、语言类型信息、音轨类型信息和音轨格式信息。其中,索引信息用于指示音轨数据对应的存储位置,也即音轨数据对应的音频数据的存储位置。语言类型信息用于指示音轨数据对应的音频数据的语言类型。例如,音轨数据1的语音类型信息为中文,音轨数据2的语音类型信息为英语,音轨数据3的语音类型信息为法语。音轨类型信息用于区分音轨数据和字幕数据。音轨格式信息用于指示音轨数据对应的音频数据的格式类型。
具体的,S2320的具体实现方式,可以参见前述S1220的具体实现方式,为避免重复,这里不再赘述。
S2330,根据音轨信息,确定目标资源的音轨数量。
在一些实施例中,在播放目标资源的过程中,还可以对目标资源进行解码,得到目标资源的音频信息(即音轨信息),进而基于目标资源的音频信息确定目标资源的音轨数量。
其中,目标资源的音轨数量是指目标资源所包括的音轨数据的数量。
在一些实施例中,在获取音轨信息,即音轨信息列表后,根据音轨信息列表的长度,确定目标资源的音轨数量。
在一些实施例中,也可以基于目标资源的音频信息确定基于目标资源的音轨名称等。其中,目标资源的音轨名称是指目标资源的各音轨数据的名称(channel name)。
具体的,S2330的具体实现方式,可以参见前述S1230的具体实现方式,为避免重复,这里不再赘述。
S2340,在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件。
其中,多音轨共享控件用于触发蓝牙模块发送多个蓝牙广播数据,或者,触发蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
第一预设条件为目标资源是否满足多音轨共享的条件。在一些实施例中,第一预设条件可以包括以下至少一项:音轨数量大于第一预设数量(也可以称为预设数量阈值);音轨数量等于第一预设数量。在一些实施例中,第一预设数量为2。
在一些实施例中,可以音轨信息列表的长度,判断目标资源的音轨数量是否大于或等于第一预设数量。具体的,在获取目标资源的音轨信息列表后,判断目标资源的音轨信息列表的长度是否大于等于预设长度,如果目标资源的音轨信息列表的长度大于等于预设长度,说明目标资源的音轨数量大于或等于第一预设数,即音轨数量满足第一预设条件,此时,控制显示器呈现多音轨共享控件。如果目标资源的音轨信息列表的长度小于预设长度,说明目标资源的音轨数量小于第一预设数,即音轨数量不满足第一预设条件,此时,不显示多音轨共享控件。
例如,请参见图14,在显示器上呈现目标资源的视频数据,即显示图14中的(a)所示的音视频播放页面。响应于用户输入的音轨菜单唤起操作(即第一操作),获取目标资源的音轨信息,并根据音轨信息确定目标资源的音轨数量,进而判断目标资源的音轨数量是否大于或等于第一预设数量(如2)。如果目标资源的音轨数量大于或等于第一预设数量(如2),则控制显示器呈现如图14中的(b)所示的音轨菜单页面。其中,音轨菜单页面上显示有多音轨共享控件,如“双语共享”控件。否则,不支持多音轨共享,不显示“双语共享”控件。
在一些实施例中,还可以控制显示器呈现多个音轨选择控件,多个音轨选择控件与目标资源的多个音轨数据一一对应;响应于针对第一选择控件的选择操作,控制声音输出装置输出目标资源的第一音频数据,其中,第一音频数据为第一选择控件对应的音轨数据的音频数据。第一选择控件为多个音轨选择控件中的任一个音轨选择控件。
在一种可能的实现方式中,每个音轨选择控件上均显示提示信息,提示信息基于音轨选择控件对应的音轨数据的语言类型信息确定。
例如,以目标资源包括三个音轨数据(即音轨数据1、音轨数据2和音轨数据3)为例,音轨数据1对应的音频数据的语言类型为中文(音轨数据1对应中文音频数据),音轨数据2对应的音频数据的语言类型为英语(音轨数据2对应英语音频数据),音轨数据3对应的音频数据的语言类型为日语(音轨数据2对应法语音频数据),对此,如图14中的(b)所示,音轨菜单页面还可以包括音轨数据1对应的“中文”音轨选择控件、音轨数据2对应的“英语”音轨选择控件和音轨数据3对应的“日语”音轨选择控件。
在本实施例中,在音轨菜单页面中还可以呈现多个音轨选择控件,这样用户也可以根据实际需求,选择收听某一音轨数据对应的音频数据,即某一语种的音频数据,能够满足用户的不同需求。
具体的,S2340的具体实现方式,可以参见前述S1240的具体实现方式,为避免重复,这里不再赘述。
S2350,响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据。
其中,针对多音轨共享控件的触发操作,可以包括作用在多音轨共享控件上的点击操作等。
在一些实施例中,响应于针对多音轨共享控件的选择操作,第一应用可以向播放器发送暂停播放指令,以指示播放器暂停播放目标资源的视频数据。这样,在用户进入多音轨共享界面后,暂停播放目标资源的视频数据,避免影响用户的观看体验。再者,可以避免因目标资源的视频数据播放结束,导致多音轨数据的共享无法正常运行。
具体的,S2350的具体实现方式,可以参见前述S1250的具体实现方式,为避免重复,这里不再赘述。
S2360,控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。
也就是说,每条音轨数据(即目标音轨)对应于至少一条蓝牙广播数据,蓝牙广播数据用于广播对应的目标音轨的音频数据。
在一些实施例中,在目标资源的音轨数量大于第一预设数量(即预设数量阈值)的情况下,控制显示器呈现多个音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应,响应于针对多个音轨标识中第一数量的第一音轨标识的选择操作,将各第一音轨标识对应的音轨数据,确定为第一音轨数据(即目标音轨),以及控制蓝牙模块发送多个蓝牙广播数据。
也就是说,在获取到目标资源的音轨之后,首先确定目标资源的音轨的数量是否小于预设数量阈值(即判断音轨数量是否满足第一预设条件),如果确定目标资源的音轨的数量不小于预设数量阈值(即满足第一预设条件),则监测针对目标资源的音轨的音频广播触发操作;在接收到针对目标资源的音轨(即音轨数据)中的至少两条音轨的音频广播触发操作后,控制蓝牙模块基于至少两个音轨数据,发送多个蓝牙广播数据。
在一些实施例中,显示设备在获取到目标资源的音轨之后,还可以在确定目标资源的音轨的数量不小于预设数量阈值时,首先控制显示器显示多音轨共享控件,在接收到针对多音轨共享控件的触发操作(即针对多音轨控件的选择操作)时,确定目标资源的音轨的数量是否大于预设数量阈值,并在确定音轨的数量大于预设数量阈值时,显示目标资源的音轨中的至少两条音轨的标识;然后,接收针对至少两条目标音轨的音频广播触发操作,基于至少两条目标音轨发出蓝牙广播。其中,针对多音轨共享控件的触发操作,可以包括作用在多音轨共享控件上的点击操作等。
实例性的,假设预设数量阈值为2,则说明显示设备能够支持同时共享的音轨数量为2,此时如果确定目标音视频资源的音轨的数量(例如为2)不小于2,则控制显示器显示“双语共享”字样的多音轨共享控件。
在一些实施例中,显示设备控制显示器显示多语共享控件的过程中,还可以在接收到针对多语共享控件的触发操作时,首先确定目标资源的音轨的数量是否等于预设数量阈值,如果确定目标资源的音轨的数量等于预设数量阈值,则显示目标资源的音轨的标识;在接收到针对目标资源的音轨的音频广播触发操作时,基于至少两个音轨数据,发送多个蓝牙广播数据。
由于预设数量阈值可以用于表征显示设备能够支持同时进行共享的音轨的数量,因此在确定目标资源的音轨的数量等于预设数量阈值时,说明目标资源的音轨的数量恰好为显示设备能够支持同时进行共享的音轨数量,此时显示设备播放目标资源全部的音轨内容,从而利用音频广播的方式实现针对同一音视频资源的多语言同时播放的功能。
在一些实施例中,在获取目标资源的音轨之后,还可以确定显示设备是否为支持LE audio协议的设备,具体的,通过获取显示设备的本机配置信息,确定显示设备是否支持LE audio协议。在确定显示设备支持audio协议且当前正在播放的目标音视频资源的音轨的数量不小于第一预设阈值(即第二预设数量)时,控制显示器显示多音轨共享控件。
在一些实施例中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:若音轨数量不大于第二预设数量,则控制蓝牙模块发送多个蓝牙广播数据;若音轨数量大于第二预设数量,则从多个音轨数据中确定第一数量的第一音轨数据,以及控制蓝牙模块发送第一数量的蓝牙广播数据,一个蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据。
其中,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。可选的,第二预设数量可以基于显示设备的硬件芯片(如蓝牙模块)的性能确定。具体的,第二预设数量可以为与硬件芯片的性能呈正相关。目前,硬件芯片能够支持共享的音轨数量为2(即第二预设数量通常设置为2)。实际应用中,随着硬件芯片性能的提高,对应的第二预设数量的具体数值也可以设置为3、4等,本公开实施例对第二预设数量的具体数值大小不作限定。
其中,第一数量小于或等于第二预设数量,第一数量大于或等于两个。在一些实施例中,以第二预设数量为2为例,第一数量为2。在一些实施例中,以第二预设数量为3为例,第一数量可以为2,也可以为3。
在一些实施例中,在接收到针对多音轨共享控件的选择操作后,判断目标资源的音轨数量是否不大于第二预设数量,如果目标资源的音轨数量不大于第二预设数量,说明目标资源的音轨数量未超过显示设备的硬件芯片的性能,因此,可以控制蓝牙模块发送多个蓝牙广播数据。
可选的,在目标资源的音轨数量等于第二预设数量时,则控制蓝牙模块发送多个蓝牙广播数据。
另外,在目标资源的音轨数量不大于第二预设数量的情况下,可以控制显示器呈现目标资源的多个音轨数据的音轨标识,进而,可以控制蓝牙模块发送多个蓝牙广播数据。本实施例中,通过在显示器上呈现音轨数据的音轨标识,可以提示用户能够进行共享的多音轨数据,以及提示用户进行多音轨数据的共享操作。
在一些实施例中,音轨标识用于向用户呈现可进行多音轨共享的音轨数据的相关信息。在一些实施例中,音轨标识可以包括音轨数据的音轨名称(channel name),其中,通常可以采用音轨数据的语言类型信息来表示音轨名称,如中文,英文。在一些实施例中,音轨标识也可以是基于音轨数据的音轨信息,生成的全局变量。例如,英语(ENG-TVAudioShare),中文(CHN-TVAudioShare)。
需要说明是的,若两个音轨数据的语言类型相同,则可以在语言类型后增加编号,以区分不同的音轨数据。例如,音轨数据1为中文1,音轨数据2为中文2。
当然,在目标资源的音轨数量等于第二预设数量的情况下,也可以控制显示器呈现目标资源的多个音轨数据的音轨标识,进而,可以控制蓝牙模块发送多个蓝牙广播数据。
例如,以第二预设数量为2,目标资源包括两个音轨数据(音轨数据1和音轨数据2)为例,请继续参见图14,响应于针对“双语共享”控件的选择操作,在显示设备上呈现图14中的(c)所示的双语共享页面,该双语共享页面中可以包括音轨数据1对应的音轨标识“中文”和音轨数据2对应的音轨标识“英文”。
在一些实施例中,在目标资源的音轨数量大于第二预设数量的情况下,控制显示器呈现多个音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应,响应于针对多个音轨标识中第一数量的第一音轨标识的选择操作,将各第一音轨标识对应的音轨数据,确定为第一音轨数据,以及控制蓝牙模块发送第一数量的蓝牙广播数据,一个蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据。
例如,以第二预设数量为2,第一数量为2为例,对控制蓝牙模块发送多个蓝牙广播数据的过程进行说明。
响应于针对多音轨共享控件的选择操作,判断目标资源的音轨数量是否不大于第二预设数量(如2)。如果目标资源的音轨数量不大于第二预设数量(如2),则控制显示器呈现各个音轨数据的音轨标识,以及在接收到多个蓝牙广播数据的触发操作后,控制蓝牙模块基于至少两个音轨数据,发送多个蓝牙广播数据。如果目标资源的音轨数量大于第二预设数量(如2),则从目标资源的多个音轨数据中,确定两个第一音轨数据,控制显示器呈现两个第一音轨数据的音轨标识,以及在接收到多个蓝牙广播数据的触发操作后,控制蓝牙模块发送与这两个第一音轨数据相对应的两个蓝牙广播数据。
在一些实施例中,以第二预设数量为2,目标资源的音轨数量为3为例,请参见图15,响应于针对图15中的(a)所示的“双语共享”控件的选择操作,判断目标资源的音轨数量是否不大于第二预设数量(如2)。如果目标资源的音轨数量大于第二预设数量(如2),则在显示设备上呈现图15中的(b)所示的音轨选择弹窗。音轨选择弹窗上可以显示多个音轨选项,如“中文”音轨选项、“英文”音轨选项和“日语”音轨选项,以及,每个音轨选项的标识分别具有对应的复选框。响应于针对“中文”音轨选项和“英文”音轨选项的选择操作,显示设备呈现图15中的(c)所示的多语共享页面。多语共享页面中显示已选的“中文”音轨选项对应的中文音轨数据和“英文”音轨选项对应的英文音轨数据的音轨标识,如“中文”、“英文”,即将“中文”音轨选项对应的中文音轨数据和“英文”音轨选项对应的英文音轨数据,确定为所要进行多音轨共享的音轨数据。
在一些实施例中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:控制蓝牙模块切换至蓝牙广播通道;在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块基于多个蓝牙广播通道发送多个蓝牙广播,其中,多个蓝牙广播通道与多个音轨数据一一对应。
本公开实施例中,音频通道可以包括本机扬声器输出通道、通用串行总线(Universal Serial Bus,USB)音输出通道和高清多媒体界面(High Definition Multimedia Interface,HDMI)输出通道等较为传统的输出通道,还可以包括基于单播媒体发送器(Broadcast Media Sender,BMS)建立的音频输出通道等。当前音频通道可以为上述音频输出通道中的任意一个输出通道。
实际应用中,显示设备在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,首先控制声音输出装置静音,然后将当前音频通道切换至蓝牙广播通道,在切换成功后,控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。
显示设备还可以在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,首先将当前音频通道切换至蓝牙广播通道,并在切换成功后控制声音输出装置静音,以及控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。
在一些实施例中,在控制蓝牙模块发送多个蓝牙广播数据之前,该方法还可以包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据;其中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块向基于多个蓝牙广播通道发送多个蓝牙广播,以及控制播放器从视频起始时刻重新播放视频数据。
在一些实施例中,在控制蓝牙模块发送多个蓝牙广播数据之前,该方法还可以包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;其中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,按照播放进度信息,控制播放器重新播放视频数据,以及根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行处理,以及控制蓝牙模块基于多个处理后的音频数据发送多个蓝牙广播数据,其中,一个蓝牙广播数据用于广播一个处理后的音频数据。
在实际应用中,显示设备控制蓝牙模块将当前音频通道切换至蓝牙广播通道的过程中,可能存在音频数据与目标资源的播放进度不一致的问题。为了解决上述技术问题或者至少部分地解决上述技术问题,本公开实施例还可以在控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据时,首先控制蓝牙模块将当前音频通道切换至蓝牙广播通道;然后控制播放器暂停播放目标音视频资源,以及获取目标资源的播放进度信息;进一步的,在确定蓝牙广播通道切换成功时,重启audio解码器和video解码器,控制audio解码器根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行解码,并将解码后的音频数据发送至蓝牙协议栈,以进而蓝牙协议栈通过蓝牙驱动调用蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。以及,控制video解码器根据播放进度信息对视频数据进行解码。
本公开实施例中,audio解码器即音频解码器,主要用于将压缩的音频数据解码为原始的数字音频信号,audio解码器对目标资源解码得到中文音频数据、英文音频数据等数据后,可以将解码后的音频数据发送给音频处理器或音频输出设备等进行播放。video解码器即视频解码器,用于将压缩的视频数据解码为原始的视频图像序列,具体的,可以解码目标音视频资源并还原图像的帧率、分辨率等视频数据,以便后续的视频处理和显示。蓝牙协议栈用于基于解码后的音频数据发出多条蓝牙广播。
本公开实施例中,目标资源的播放进度信息可以包括目标资源的当前播放时间等信息,在获取到目标资源的播放进度信息之后,可以根据播放进度信息控制audio解码器对目标资源进行解码,并将解码后的音频数据发送至蓝牙协议栈,以便蓝牙协议栈基于解码后的音频数据发出多条蓝牙广播数据,从而实现针对同一音视频资源的多音轨数据同时广播的功能。
在一些实施例中,在接收到针对至少两个音轨数据的音频广播触发操作时,控制播放器暂停播放目标资源,假设在播放到30秒时暂停目标资源,则在确定蓝牙广播切换成功时,重启audio解码器,并控制audio解码器从第30秒出开始解码目标资源,以实现音频数据和目标资源的播放进度保持一致的效果。
在一些实施例中,在控制蓝牙模块发送多个蓝牙广播数据之后,该方法还可以包括:在满足第二预设条件的情况下,控制蓝牙模块停止发送多个蓝牙广播数据,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;基于播放进度信息,控制播放器重新播放视频数据,以及声音输出装置输出第一音频数据;
其中,第二预设条件用于判断是否退出多音轨数据的共享。在一些实施例中,第二预设条件包括以下至少一项:接收到退出多音轨共享的指令;检测蓝牙模块切换为关闭状态;检测到播放器切换至后台运行;接收到停止播放目标资源的操作。
本公开实施例提供的音频广播方法中,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据的情况下,响应于第一操作,获取目标资源的音轨信息,根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。这样一来,本公开实施例可以发送不同的音轨数据对应的蓝牙广播数据,以利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
图24为根据一些实施例的另一种音频广播方法的流程示意图。如图24所示,该方法可以包括如下步骤:
S2410,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据。
其中,目标资源可以为用户选择的、当前所要播放的音视频资源。本公开实施例中,目标资源可以包括一个或多个音轨数据,音轨数据用于指示目标资源中包括的音频数据,即不同音轨数据所对应的音频数据不同。
第一音频数据是指显示设备在播放目标资源的视频数据时,通过声音输出装置输出的音轨数据对应的音频数据。
具体的,S2410的具体实现方式,可以参见前述S2310的具体实现方式,为避免重复,这里不再赘述。
S2420,响应于第一操作,获取目标资源的音轨信息。
其中,第一操作为音轨菜单的唤起操作。
目标资源的音轨信息可以包括索引信息、语言类型信息、音轨类型信息和音轨格式信息。其中,索引信息用于指示音轨数据对应的存储位置,也即音轨数据对应的音频数据的存储位置。语言类型信息用于指示音轨数据对应的音频数据的语言类型。例如,音轨数据1的语音类型信息为中文,音轨数据2的语音类型信息为英语,音轨数据3的语音类型信息为法语。音轨类型信息用于区分音轨数据和字幕数据。音轨格式信息用于指示音轨数据对应的音频数据的格式类型。
其中,音轨格式信息用于指示音轨数据对应的音频数据的格式类型。其中,在一些实施例中,按照技术特点划分,音频数据的格式类型可以包括有损压缩格式、无损压缩格式和多声道音频格式。其中,有损压缩格式例如可以包括mpeg-2音频编码格式、mpeg-4音频编码格式、ac-3音频编码格式和eac-3音频编码格式。无损压缩格式例如可以包括dts-lbr音频编码格式和dts-hd master audio音频编码格式。多声道音频格式例如可以包括ac-4音频编码格式、dts-hd音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts-hd音频编码格式和dts音频编码格式。
在一些实施例中,按照应用场景划分,音频数据的格式类型可以包括家庭影院系统格式、DVD视频格式、数字视频和流媒体格式,以及高质量音频传输格式。其中,家庭影院系统格式例如可以包括ac-4音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts-hd音频编码格式和dts-hd master audio音频编码格式。DVD视频格式例如可以包括mpeg-2音频编码格式和dts音频编码格式。数字视频和流媒体格式例如可以包括mpeg-4音频编码格式。高质量音频传输格式例如可以包括dts-lbr音频编码格式。
需要说明的是,不同格式类型的音频数据所对应的解码类型不同。例如,ac-4音频编码格式、dts-hd音频编码格式、dts-lbr音频编码格式、dts-true-hd音频编码格式的解码类型仅为硬件解码类型(简称为硬解类型)。相对的,mpeg-2音频编码格式、mpeg-4音频编码格式、ac-3音频编码格式、eac-3音频编码格式、dts音频编码格式的解码类型可以是软件解码类型(简称为软解类型),也可以是硬件解码类型。
具体的,S2420的具体实现方式,可以参见前述S2320的具体实现方式,为避免重复,这里不再赘述。
S2430,根据音轨信息,确定目标资源的音轨数量和目标资源的音轨数据的解码类型。
在一些实施例中,根据音轨信息,确定目标资源的音轨数据的解码类型,可以包括:根据音轨信息中各音轨数据对应的音轨格式信息,确定各音轨数据对应的解码类型,即确定目标资源的音轨数据的解码类型。
具体的,S2430中关于“根据音轨信息,确定目标资源的音轨数量”的具体实现方式,可以参见前述S2330的具体实现方式,为避免重复,这里不再赘述。
S2440,在音轨数量满足第一预设条件,且目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制显示器呈现多音轨共享控件。
其中,多音轨共享控件用于触发蓝牙模块发送多个蓝牙广播数据,或者,触发蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
第一预设条件为目标资源是否满足多音轨共享的条件。在一些实施例中,第一预设条件可以包括以下至少一项:音轨数量大于第一预设数量(也可以称为预设数量阈值);音轨数量等于第一预设数量。在一些实施例中,第一预设数量为2。
在一些实施例中,可以音轨信息列表的长度,判断目标资源的音轨数量是否大于或等于第一预设数量。具体的,在获取目标资源的音轨信息列表后,判断目标资源的音轨信息列表的长度是否大于等于预设长度,如果目标资源的音轨信息列表的长度大于等于预设长度,说明目标资源的音轨数量大于或等于第一预设数,即音轨数量满足第一预设条件,此时,控制显示器呈现多音轨共享控件。如果目标资源的音轨信息列表的长度小于预设长度,说明目标资源的音轨数量小于第一预设数,即音轨数量不满足第一预设条件,此时,不显示多音轨共享控件。
在一些实施例中,在音轨数量满足第一预设条件的情况下,判断目标资源的音轨数据的解码类型是否满足第三预设条件。如果目标资源的音轨数据的解码类型满足第三预设条件,则控制显示器呈现多音轨共享控件。
其中,第三预设条件可以包括目标资源的多个音轨数据中包括至少两种解码类型的音轨数据。其中,解码类型可以包括第一解码类型、第二解码类型和第三解码类型。第一解码类型表示音轨数据对应的音频数据仅可以通过硬件方式进行解码,即硬件解码类型。第二解码类型表示音轨数据对应的音频数据仅可以通过软件方式进行解码,即软件解码类型。第三解码类型表示音轨数据对应的音频数据既可以通过软件方式进行解码,也可以通过软件方式进行解码,即可硬解可软解类型。
在一些实施例中,第三预设条件可以为目标资源的音轨数量不等于第四音轨数据的数量,且音轨数量不等于第五音轨数据的数量,其中,第四音轨数据的解码类型为第一解码类型(即硬件解码类型),第五音轨数据的解码类型为第二解码类型(即软件解码类型)。
具体的,S2440的具体实现方式,可以参见前述S1940的具体实现方式,为避免重复,这里不再赘述。
S2450,响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据。
在一些实施例中,响应于针对多音轨共享控件的选择操作,第一应用可以向播放器发送暂停播放指令,以指示播放器暂停播放目标资源的视频数据。这样,在用户进入多音轨共享界面后,暂停播放目标资源的视频数据,避免影响用户的观看体验。再者,可以避免因目标资源的视频数据播放结束,导致多音轨数据的共享无法正常运行。
具体的,S2450的具体实现方式,可以参见前述S2350的具体实现方式,为避免重复,这里不再赘述。
S2460,控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。
在一些实施例中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:若音轨数量不大于第二预设数量,则控制蓝牙模块发送多个蓝牙广播数;若音轨数量大于第二预设数量,则从目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制蓝牙模块发送第一数量的蓝牙广播数据,一个蓝牙广播数据用于广播第一数量的第一音轨数据中一个第一音轨数据对应的音频数据。
其中,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。可选的,第二预设数量可以基于显示设备的硬件芯片(如蓝牙模块)的性能确定。具体的,第二预设数量可以为与硬件芯片的性能呈正相关。目前,硬件芯片能够支持共享的音轨数量为2(即第二预设数量通常设置为2)。实际应用中,随着硬件芯片性能的提高,对应的第二预设数量的具体数值也可以设置为3、4等,本公开实施例对第二预设数量的具体数值大小不作限定。
其中,第一数量的第一音轨数据中解码类型属于第一解码类型(即硬件解码类型)的音轨数据的数量小于或等于第三预设数量,且第一数量的第一音轨数据中解码类型属于第二解码类型(即软件解码类型)的音轨数据的数量小于或等于第四预设数量。以及,第一数量小于或等于第二预设数量,第一数量大于或等于两个。
可选的,第三预设数量可以基于显示设备的硬件芯片(如蓝牙模块和播放器)的性能确定。第四预设数量可以基于显示设备的硬件芯片(如蓝牙模块和播放器)的性能确定。
在一些实施例中,第二预设数量为2,第一数量为2,第三预设数量为1,第四预设数量为1。也就是说,显示设备同时支持一路硬件解码和一路软件解码。
对此,从目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制蓝牙模块发送第一数量的蓝牙广播数据的步骤,可以包括:从多个音轨数据中确定两个第一音轨数据,以及控制蓝牙模块发送两个蓝牙广播数据;其中,两个第一音轨数据的解码类型不同。
在一些实施例中,两个第一音轨数据中的一个第一音轨数据的解码类型为第一解码类型(即硬件解码类型),另一个第一音轨数据的解码类型为第二解码类型(即软件解码类型)。在一些实施例中,两个第一音轨数据中的一个第一音轨数据的解码类型为第一解码类型(即硬件解码类型)或者第二解码类型(即软件解码类型),另一个第一音轨数据的解码类型为第三解码类型(即可硬解可软解类型)。
另外,在目标资源的音轨数量不大于第二预设数量的情况下,可以控制显示器呈现目标资源的多个音轨数据的音轨标识,多个音轨标识与目标资源的多个音轨数据一一对应,进而,可以控制蓝牙模块发送多个蓝牙广播数据。本实施例中,通过在显示器上呈现音轨数据的音轨标识,可以提示用户能够进行共享的多音轨数据,以及提示用户进行多音轨数据的共享操作。
在一些实施例中,音轨标识用于向用户呈现可进行多音轨共享的音轨数据的相关信息。在一些实施例中,音轨标识可以包括音轨数据的音轨名称(CHANNEL NAME),其中,通常可以采用音轨数据的语言类型信息来表示音轨名称,如中文,英文。在一些实施例中,音轨标识也可以是基于音轨数据的音轨信息,生成的全局变量。例如,英语(ENG-TVAUDIOSHARE),中文(CHN-TVAUDIOSHARE)。
更具体的,从目标资源的多个音轨数据中,确定两个第一音轨数据的步骤,可以包括:响应于针对多个音轨标识中第二音轨标识的选择操作,将第二音轨标识对应的音轨数据,确定为第一音轨数据,以及控制显示器呈现至少一个第三音轨标识,其中,第三音轨标识包括多个音轨数据中除第二音轨标识对应的音轨数据以外的音轨数据的音轨标识,且第三音轨标识对应的音轨数据的解码类型与第二音轨标识对应的音轨数据的解码类型不同;响应于针对至少一个第三音轨标识中第四音轨标识的选择操作,将第四音轨标识对应的音轨数据,确定为第一音轨数据。
也就是说,在用户选择了一个所要进行共享的音轨数据后,显示设备可以根据已选择的音轨数据的解码类型,判断其余可供用户选择的音轨数据,并在显示设备上呈现相应的音轨标识,以方便用户选择其他所要进行共享的音轨数据,进而保证所选择的音轨数据满足解码类型条件的限制,进而实现多音轨数据的共享功能。
在一些实施例中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:控制蓝牙模块切换至蓝牙广播通道;在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块基于多个蓝牙广播通道发送多个蓝牙广播,其中,多个蓝牙广播通道与多个音轨数据一一对应。
在一些实施例中,在控制蓝牙模块发送多个蓝牙广播数据之前,该方法还可以包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据;其中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,控制蓝牙模块向基于多个蓝牙广播通道发送多个蓝牙广播,以及控制播放器从视频起始时刻重新播放视频数据。
在一些实施例中,在控制蓝牙模块发送多个蓝牙广播数据之前,该方法还可以包括:响应于针对多音轨共享控件的选择操作,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;其中,控制蓝牙模块发送多个蓝牙广播数据,可以包括:在确定蓝牙模块切换至蓝牙广播通道时,按照播放进度信息,控制播放器重新播放视频数据,以及根据播放进度信息,对目标资源的多个音轨数据对应的音频数据进行处理,以及控制蓝牙模块基于多个处理后的音频数据发送多个蓝牙广播数据,其中,一个蓝牙广播数据用于广播一个处理后的音频数据。
在一些实施例中,在控制蓝牙模块发送多个蓝牙广播数据之后,该方法还可以包括:在满足第二预设条件的情况下,控制蓝牙模块停止发送多个蓝牙广播数据,控制播放器暂停播放视频数据,以及获取视频数据的播放进度信息;基于播放进度信息,控制播放器重新播放视频数据,以及声音输出装置输出第一音频数据;
其中,第二预设条件包括以下至少一项:接收到退出多音轨共享的指令;检测蓝牙模块切换为关闭状态;检测到播放器切换至后台运行;接收到停止播放目标资源的操作。
具体的,上述关于播放器重新播放视频数据和退出多音轨数据共享的过程,可以参见前述S1260中的具体实现方式,为避免重复,这里不再赘述。
本公开实施例提供的音频广播方法中,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据的情况下,响应于第一操作,获取目标资源的音轨信息,根据音轨信息,确定目标资源的音轨数量和目标资源的音轨数据的解码类型;在音轨数量满足第一预设条件,且目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。这样一来,在目标资源的音轨数据的数量满足条件,且音轨数据的解码类型满足条件时,可以呈现多音轨共享控件,进而,在接收到针对多音轨共享控件的选择操作后,控制蓝牙模块发送不同的音轨数据对应的蓝牙广播数据,这样能够利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。并且,能够适用于不同硬件能力的显示设备。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
下面结合图25,对本公开实施例提供的音频广播方法实现过程中显示设备的各模块之间的交互过程进行说明。
图25为根据一些实施例的音频广播方法的交互流程示意图。如图25所示,该音频广播方法,可以包括如下步骤:
B1,应用层的第一应用接收针对多个媒体资源中目标资源的选择操作。
B2,响应于针对目标资源的选择操作,第一应用向框架层的播放器发送目标资源的存储地址。
B3,播放器在接收到第一应用发送的目标资源的存储地址后,基于目标资源的存储地址,解析得到目标资源的视频数据、其中一个音轨数据对应的音频数据(即第一音频数据),以及目标资源的音轨信息。
B4,播放器向第一应用发送目标资源的视频数据。
B5,第一应用在接收到播放器发送的目标资源的视频数据后,呈现目标资源的视频数据。
B6,第一应用接收第一操作。
第一操作为音轨菜单的唤起操作。在一些实施例中,第一操作可以是用户对控制设备的菜单键的按压操作。第一操作也可以是用户输入的唤起音轨菜单的语音指令。
B7,响应于第一操作,第一应用向播放器发送音轨信息获取指令。
B8,播放器在接收到第一应用发送的音轨信息获取指令后,向第一应用发送目标资源的音轨信息。
B9,第一应用在接收到播放器发送的目标资源的音轨信息后,根据目标资源的音轨信息,确定目标资源的音轨数量。
B10,第一应用判断目标资源的音轨数量是否大于或等于第一预设数量,如果目标资源的音轨数量大于或等于第一预设数量,则执行B11,否则,执行B12。
在一些实施例中,第一预设数量为2。
B11,第一应用生成并显示多音轨共享控件。
在一些实施例中,多音轨共享控件可以是“多语共享”控件。
B12,第一应用不生成多音轨共享控件。
以上B1-B12为显示多音轨控件的过程。
B13,第一应用接收针对多音轨共享控件的选择操作。
B14,响应于针对多音轨共享控件的选择操作,若音轨数量等于第二预设数量,则第一应用显示第一界面(即多语共享页面),第一界面中可以包括第一广播控件。其中,第一广播控件用于触发蓝牙模块发送多个蓝牙广播数据,一个蓝牙广播数据对应多个音轨数据中的一个音轨数据。
在接收到针对多音轨共享控件的选择操作后,判断音轨数量是否等于第二预设数量(如2)。如果音轨数量等于第二预设数量(如2),则第一应用呈现第一界面(即多语共享界面)。
第一界面中可以包括目标资源的多个音轨数据对应的多个音轨标识。第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。可选的,第二预设数量可以基于显示设备的硬件芯片(如蓝牙模块)的性能确定。具体的,第二预设数量可以为与硬件芯片的性能呈正相关。目前,硬件芯片能够支持共享的音轨数量为2(即第二预设数量通常设置为2)。实际应用中,随着硬件芯片性能的提高,对应的第二预设数量的具体数值也可以设置为3、4等,本公开实施例对第二预设数量的具体数值大小不作限定。
第一界面中还可以包括第二广播控件。其中,第二广播控件用于触发蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
B15,第一应用向播放器发送暂停播放指令。
B16,播放器在接收到第一应用发送的暂停播放指令后,暂停播放目标资源的视频数据。
在一些实施例中,播放器可以获取目标资源的视频数据的播放进度信息。
B17,响应于针对多音轨共享控件的选择操作,若音轨数量大于第二预设数量,则第一应用显示第二界面(即音轨选择弹窗)。
在接收到针对多音轨共享控件的选择操作后,判断音轨数量是否大于第二预设数量(如2)。如果音轨数量大于第二预设数量(如2),则第一应用呈现第二界面(即音轨选择弹窗)。其中,第二界面中包括多个第三音轨选项,多个第三音轨选项与目标资源的多个音轨数据一一对应,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。
B18,响应于音轨选择操作,第一应用显示第三界面(也即多语共享页面),第三界面中可以包括第一广播控件,其中,第一广播控件用于触发蓝牙模块发送第一数量的蓝牙广播数据,一个蓝牙广播数据对应第一数量的音轨数据中的一个音轨数据。
在一些实施例中,音轨选择操作可以是对多个第三音轨选项中两个的第三音轨选项的选择操作。
在一些实施例中,第三界面中包括两个音轨标识,其中,一个两个音轨标识对应选择的第三音轨选项对应的音轨数据。第三界面中还可以包括第二广播控件。其中,第二广播控件用于触发蓝牙模块向多个蓝牙设备发送蓝牙广播数据。
B19,第一应用接收针对第一广播控件的选择操作。
B20,响应于针对第一广播控件的选择操作,第一应用向蓝牙广播组件发送各目标音轨数据的音轨标识。
在一些实施例中,目标音轨数据的音轨标识可以通过音轨标识列表(channel names)的方式来表示。也就是说,第一应用可以向蓝牙广播组件发送音轨标识列表,音轨标识列表中可以包括多个目标音轨数据中各目标音轨数据的音轨标识。需要说明的是,多个目标音轨数据的音轨标识可以按照预设顺序排列。例如,在音轨标识列表中,解码类型为第一解码类型(即硬件解码类型)的音轨数据的音轨标识排在第一位,解码类型为第二解码类型(即软件解码类型)的音轨数据的音轨标识排在第二位。
在一些实施例中,第一应用还可以向蓝牙广播组件发送蓝牙广播名称(broadcastName)和蓝牙广播密码(broadcastCode)。
B21,蓝牙广播组件在接收到目标音轨数据的音轨标识后,针对每个目标音轨数据,根据目标音轨数据的音轨标识,为每个目标音轨数据创建相应的蓝牙广播通道,得到蓝牙广播通道列表(即subgroupList)。
在一些实施例中,蓝牙广播组件循环遍历音轨标识列表,对音轨标识列表中每个目标音轨数据创建相应的蓝牙广播通道(subgroup对象)。具体的,将目标音轨数据的音轨标识(channelname)写入蓝牙广播通道(subgroup对象),得到蓝牙广播通道列表(即subgroupList),其中,蓝牙广播通道列表中包括各个目标音轨数据对应的蓝牙广播通道(subgroup对象)。可以理解的是,在蓝牙广播通道列表中,解码类型为第一解码类型(即硬件解码类型)的音轨数据的subgroup对象排在第一位,解码类型为第二解码类型(即软件解码类型)的音轨数据的subgroup对象排在第二位。
B22,蓝牙广播组件向蓝牙协议栈发送蓝牙广播通道列表。
在一些实施例中,蓝牙协议栈在接收到蓝牙广播组件发送蓝牙广播通道列表后,通过蓝牙驱动,控制蓝牙模块启动。
B23,蓝牙广播组件向第一应用发送蓝牙开启通知。其中,蓝牙开启通知用于指示显示设备的蓝牙模块已开启。
在一些实施例中,蓝牙广播组件也可以集成在第一应用(如媒体中心APP)中。也就是说,响应于针对第一广播控件的选择操作,第一应用针对每个目标音轨数据,根据目标音轨数据的音轨标识,为每个目标音轨数据创建相应的蓝牙广播通道,得到蓝牙广播通道列表,并向蓝牙协议栈发送蓝牙广播通道列表。
B24,第一应用在接收到蓝牙广播组件发送的蓝牙开启通知后,向播放器发送销毁指令,销毁指令用于指示播放器销毁原音视频播放线程。
B25,播放器在接收到销毁指令后,销毁原音视频播放线程。
B26,第一应用向播放器发送重新起播指令。其中,重新起播指令中可以携带目标资源的音轨信息。
B27,第一应用向播放器发送目标资源的视频数据的播放进度信息。
B28,播放器在接收到第一应用发送的播放进度信息后,基于播放进度信息对目标资源的音视频数据进行解码,得到目标资源的视频数据和两个目标音轨数据对应的音频数据。
B29,播放器将两个目标音轨数据对应的音频数据进行混音处理。
在一些实施例中,为了实现双音轨广播,需要对通路中的pcm进行区分,不再进行混音,而是将不同声道数据拼装成多声道(双音轨为四声道)数据,将拼装后的数据写入BThal中。BT根据当前模式(双音轨广播),对拼装数据进行拆分,再拆分成两路2ch的pcm数据,将数据通过广播形式发送出去,即实现了双音轨广播功能。BT模块解析数据时,按照拼装协议,反向解析出2ch和mch数据,再拼装成两个独立音轨广播中的原始音源,即完成了两个音轨分别通过两个广播源发出。
B30,播放器向蓝牙协议栈发送混音处理后的两个目标音轨数据。
B31,蓝牙协议栈在接收到混音处理后的两个目标音轨数据后,基于蓝牙广播通道列表,控制蓝牙模块发送多个蓝牙广播数据。
本公开实施例提供的音频广播方法中,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据的情况下,响应于第一操作,获取目标资源的音轨信息,根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块发送多个蓝牙广播数据,多个蓝牙广播数据与目标资源的多个音轨数据一一对应,一个蓝牙广播数据用于广播一个音轨数据对应的音频数据。这样一来,本公开实施例可以发送不同的音轨数据对应的蓝牙广播数据,以利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
图26为根据一些实施例的一种音频广播方法的流程示意图。如图26所示,该方法可以包括如下步骤:
S2610,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据。
S2620,响应于第一操作,获取目标资源的音轨信息。
S2630,根据音轨信息,确定目标资源的音轨数量。
S2640,在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件,其中,多音轨共享控件用于触发蓝牙模块发送多个蓝牙广播数据,或者,触发蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。
在一些实施例中,请参见图27,在显示器上呈现目标资源的视频数据,即显示图27中的(a)所示的音视频播放页面。响应于用户输入的音轨菜单唤起操作(即第一操作),获取目标资源的音轨信息,并根据音轨信息确定目标资源的音轨数量,进而判断目标资源的音轨数量是否大于或等于第一预设数量(如2)。如果目标资源的音轨数量大于或等于第一预设数量(如2),则控制显示器呈现如图27中的(b)所示的音轨菜单页面。其中,音轨菜单页面上显示有多音轨共享控件,如“双语共享”控件。否则,不支持多音轨共享,不显示“双语共享”控件。
其中,多音轨共享控件例如可以是如图27中的(b)中所示的“双语共享”控件。
在一些实施例中,音轨信息包括目标资源中音轨数据的语言类型信息;控制声音输出装置输出目标资源的第一音频数据,可以包括:响应于第一操作,控制显示器呈现多个音轨选择控件,多个音轨选择控件与目标资源的多个音轨数据一一对应;响应于针对第一选择控件的选择操作,控制声音输出装置输出目标资源的第一音频数据,第一选择控件为多个音轨选择控件中的任一个音轨选择控件,第一音频数据为第一选择控件对应的音轨数据的音频数据。
在一些实施例中,多个音轨选择控件中每个音轨选择控件上均显示提示信息,提示信息基于音轨选择控件对应的音轨数据的语言类型信息确定。
例如,以目标资源包括三个音轨数据(即音轨数据1、音轨数据2和音轨数据3)为例,音轨数据1对应的音频数据的语言类型为中文(音轨数据1对应中文音频数据),音轨数据2对应的音频数据的语言类型为英语(音轨数据2对应英语音频数据),音轨数据3对应的音频数据的语言类型为日语(音轨数据2对应法语音频数据),对此,如图27中的(b)所示,音轨菜单页面还可以包括音轨数据1对应的“中文”音轨选择控件、音轨数据2对应的“英语”音轨选择控件和音轨数据3对应的“日语”音轨选择控件。
在本实施例中,在音轨菜单页面中还可以呈现多个音轨选择控件,这样用户也可以根据实际需求,选择收听某一音轨数据对应的音频数据,即某一语种的音频数据,能够满足用户的不同需求。
其中,第一预设条件为目标资源是否满足多音轨共享的条件。在一些实施例中,第一预设条件可以包括以下至少一项:音轨数量大于第一预设数量(也可以称为预设数量阈值);音轨数量等于第一预设数量。在一些实施例中,第一预设数量为2。
在一些实施例中,在音轨数量满足第一预设条件的情况下,判断目标资源的音轨数据的解码类型是否满足第三预设条件。如果目标资源的音轨数据的解码类型满足第三预设条件,则控制显示器呈现多音轨共享控件。
其中,第三预设条件可以包括目标资源的多个音轨数据中包括至少两种解码类型的音轨数据。其中,解码类型可以包括第一解码类型、第二解码类型和第三解码类型。第一解码类型表示音轨数据对应的音频数据仅可以通过硬件方式进行解码,即硬件解码类型。第二解码类型表示音轨数据对应的音频数据仅可以通过软件方式进行解码,即软件解码类型。第三解码类型表示音轨数据对应的音频数据既可以通过软件方式进行解码,也可以通过软件方式进行解码,即可硬解可软解类型。
在一些实施例中,第三预设条件可以为目标资源的音轨数量不等于第四音轨数据的数量,且音轨数量不等于第五音轨数据的数量,其中,第四音轨数据的解码类型为第一解码类型(即硬件解码类型),第五音轨数据的解码类型为第二解码类型(即软件解码类型)。
在一些实施例中,在控制显示器呈现多音轨共享控件之后,该方法还可以包括:响应于对多音轨共享控件的选择操作,若音轨数量不大于第二预设数量,则控制显示器呈现第一界面,第一界面中包括目标资源的多个音轨数据对应的多个音轨标识。其中,第一界面为多音轨共享界面,如图28中的(b)所示的双语共享页面。
其中,第二预设数量为蓝牙模块支持同时广播的音轨数据的数量。可选的,第二预设数量可以基于显示设备的硬件芯片(如蓝牙模块)的性能确定。具体的,第二预设数量可以为与硬件芯片的性能呈正相关。目前,硬件芯片能够支持共享的音轨数量为2(即第二预设数量通常设置为2)。实际应用中,随着硬件芯片性能的提高,对应的第二预设数量的具体数值也可以设置为3、4等,本公开实施例对第二预设数量的具体数值大小不作限定。
在一些实施例中,第一界面中还包括第一广播控件和/或第二广播控件。其中,第一广播控件用于触发蓝牙模块发送多个蓝牙广播数据,一个蓝牙广播数据对应多个音轨数据中的一个音轨数据。在一些实施例中,第一广播控件例如可以是如图28中的(b)所示的“连接蓝牙设备并切换”控件。第二广播控件用于触发蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据。在一些实施例中,第二广播控件例如可以是如图28中的(b)所示的“仅切换音频广播”控件。
可选的,响应于对多音轨共享控件的选择操作,若音轨数量等于第二预设数量,则控制显示器呈现第一界面,第一界面中包括目标资源的多个音轨数据对应的多个音轨标识。
在一些实施例中,以第二预设数量为2,在目标资源的音轨数量等于第二预设数量时,呈现第一界面为例,对第一界面的呈现过程进行说明。请参见图28,在显示设备上呈现图28中的(a)所示的音视频播放页面,并在音视频播放页面中显示音轨菜单页面。其中,音轨菜单页面上显示有多音轨共享控件,如“双语共享”控件。响应于针对“双语共享”控件的选择操作,若目标资源的音轨数量等于2,则在显示设备上呈现图28中的(b)所示的双语共享页面(即第一界面)。其中,该双语共享页面中可以包括音轨数据1对应的音轨标识“中文”和音轨数据2对应的音轨标识“英文”。在该多语共享页面中还可以显示“仅切换音频广播”控件(即第一广播控件)和“连接蓝牙设备并切换”控件(即第二广播控件)。
在一些实施例中,第一界面中还包括取消多音轨共享控件;该方法还可以包括:响应于针对取消多音轨共享控件的选择操作,退出多音轨共享模式,以及控制声音输出装置输出目标资源的第一音频数据。
在一些实施例中,如图28中的(b)所示,双语共享页面(即第一界面)中还可以包括“取消”控件(即取消多音轨共享控件)。响应于针对“取消”控件的选择操作,退出多音轨共享模式,以及控制声音输出装置输出目标资源的第一音频数据。
在一些实施例中,在控制显示器呈现多音轨共享控件之后,该方法还可以包括:响应于对多音轨共享控件的选择操作,若音轨数量大于第二预设数量,则控制显示器呈现第二界面。其中,第二界面为选择所要共享的音轨数据的界面,如图28中(c)所示的音轨选择弹窗。在一些实施例中,第二界面中可以包括多个第三音轨选项,多个第三音轨选项与目标资源的多个音轨数据一一对应。其中,第三音轨选项用于供用户选择所要进行共享的音轨数据。
在一些实施例中,以第二预设数量为2,在目标资源的音轨数量大于第二预设数量时,呈现第二界面为例,对第二界面的呈现过程进行说明。请继续参见图28,响应于针对“双语共享”控件的选择操作,若目标资源的音轨数量大于2,则在显示设备上呈现图28中的(c)所示的音轨选择弹窗(即第二界面)。其中,该音轨选择弹窗中可以包括多个音轨选项(即第三音轨选项),如“中文”音轨选项、“英文”音轨选项和“日语”音轨选项,以及,每个音轨选项的标识分别具有对应的复选框。另外,该音轨选择弹窗上还可以显示“请选择共享的音轨,仅支持LE audio协议的蓝牙设备”的字样,以提示用户选择共享的多种音轨数据。
在一些实施例中,在显示设备呈现第二界面后,响应于对多个第三音轨选项中第一数量的第三音轨选项的选择操作,控制显示器呈现第三界面,第三界面中包括与第一数量的第三音轨选项对应的第一数量的音轨标识。
其中,第一数量小于或等于第二预设数量,第一数量大于或等于两个。在一些实施例中,以第二预设数量为2为例,第一数量为2。在一些实施例中,以第二预设数量为3为例,第一数量可以为2,也可以为3。
第一界面为多音轨共享界面,如图28中的(d)所示的双语共享页面。第三界面中也可以包括第一广播控件和/或第二广播控件,其中,第一广播控件用于触发蓝牙模块发送第一数量的蓝牙广播数据,一个蓝牙广播数据对应第一数量的音轨数据中的一个音轨数据;第二广播控件用于触发蓝牙模块向第一数量的蓝牙设备发送蓝牙广播数据。
在一些实施例中,以第二预设数量为2,第一数量为2为例,对第三界面的呈现过程进行说明。请继续参见图28,在接收到针对图28中的(c)所示的音轨选择弹窗中“中文”音轨选项和“英文”音轨选项的选择操作后,将“中文”音轨选项对应的中文音轨数据和“英文”音轨选项对应的英文音轨数据,确定为所要进行共享的音轨数据。另外,如图28中的(c)所示,音轨选择弹窗中还可以包括“确定共享”控件。在接收到针对“确认共享”控件的触发操作之后,由音轨选择弹窗跳转至图28中的(d)所示的多语共享页面(即第三界面)。多语共享页面中显示已选的“中文”音轨选项对应的中文音轨数据和“英文”音轨选项对应的英文音轨数据的音轨标识,如“中文”、“英文”,即将“中文”音轨选项对应的中文音轨数据和“英文”音轨选项对应的英文音轨数据,确定为所要进行多音轨共享的音轨数据。如图28中的(d)所示,在该多语共享页面中还可以显示“仅切换音频广播”控件(即第一广播控件)和“连接蓝牙设备并切换”控件(即第二广播控件)。
在一些实施例中,第二界面中还包括取消多音轨共享控件;该方法还包括:响应于针对取消多音轨共享控件的选择操作,退出多音轨共享模式,以及控制声音输出装置输出目标资源的第一音频数据。
例如,如图28中的(c)所示,音轨选择弹窗中也可以包括“取消”控件(即取消多音轨共享控件)。响应于针对“取消”控件的选择操作,退出多音轨共享模式,以及控制声音输出装置输出目标资源的第一音频数据。
同样的,如图28中的(d)所示,双语共享页面(即第三界面)中还可以包括“取消”控件(即取消多音轨共享控件)。响应于针对“取消”控件的选择操作,退出多音轨共享模式,以及控制声音输出装置输出目标资源的第一音频数据。
在一些实施例中,在选择的第一数量的第三音轨选项对应的第一数量的音轨数据中,解码类型属于第一解码类型的音轨数据的数量小于或等于第三预设数量,且解码类型属于第二解码类型的音轨数据的数量小于或等于第四预设数量;第一数量小于或等于第二预设数量,第一数量大于或等于两个。
在一些实施例中,第二预设数量为两个,第一数量为两个,第三预设数量为一个,第四预设数量为一个;第三音轨选项的显示状态包括可选状态和不可选状态,可选状态包括选中状态,在控制显示器呈现第二界面时,第二界面中呈现的多个第三音轨选项的显示状态均为可选状态;其中,响应于对多个第三音轨选项中第一数量的第三音轨选项的选择操作,控制显示器呈现第三界面,可以包括:响应于针对多个第三音轨选项中第四音轨选项的选择操作,第四音轨选项的显示状态更新为选中状态,多个第三音轨选项中第五音轨选项的显示状态更新为不可选状态,以及多个第三音轨选项中第六音轨选项的显示状态保持为可选状态。
其中,第四音轨选项对应的音轨数据的解码类型为第一解码类型或者第二解码类型,第五音轨选项对应的音轨数据与第四音轨选项对应的音轨数据的解码类型相同,第六音轨选项对应的音轨数据与第四音轨选项对应的音轨数据的解码类型不同。
例如,第四音轨选项对应的音轨数据的解码类型为硬件解码类型,则在选择第四音轨选项后,其余仅支持硬件解码的音轨数据对应的音轨选项(即第五音轨选项)均更新为不可选状态,而支持软件解码和可软解也可硬件的音轨数据对应的音轨选项(即第六音轨选项)保持为可选状态。
本公开实施例中,在用户选择所要进行共享的音轨数据时,根据用户选择的音轨数据的解码类型,动态调整其余音轨选项的显示状态,以提示用户哪一些音轨数据是可供选择的,操作简单,用户体验更好。
之后,响应于针对至少一个第六音轨选项中第七音轨选项的选择操作,控制显示器呈现第三界面,其中,第三界面中包括第四音轨选项对应的音轨数据的音轨标识和第七音轨选项对应的音轨数据的音轨标识,以及多个第三音轨选项中除第四音轨选项和第七音轨选项以外的其他音轨选项的显示状态均为不可选状态。
本公开实施例中,在用户选择的音轨数据的数量达到所支持的同时广播的音轨数据的数量上限时,将其余音轨选项的显示状态置为不可选状态,可以提示用户进行后续多音轨共享的操作,使用便捷,用户体验更好。
在一些实施例中,处理器在第四音轨选项的显示状态更新为选中状态,多个第三音轨选项中第五音轨选项的显示状态更新为不可选状态,以及多个第三音轨选项中第六音轨选项的显示状态保持为可选状态之后,该方法还可以包括:响应于对第四音轨选项的取消选择操作,第五音轨选项显示的状态由不可选状态更新为可选状态。
也就是说,在用户取消已选择的音轨选项时,与该音轨选项的解码类型相同的其余音轨选项的显示状态由不可选变为可选状态,这样可以提示用户选择所要进行共享的音轨数据。
在一些实施例中,第二预设数量为两个,第一数量为两个,第三预设数量为一个,第四预设数量为一个;第三音轨选项的显示状态包括可选状态和不可选状态,可选状态包括选中状态,在控制显示器呈现第二界面时,第二界面中呈现的多个第三音轨选项的显示状态均为可选状态;其中,响应于对多个第三音轨选项中第一数量的第三音轨选项的选择操作,控制显示器呈现第三界面,可以包括:响应于针对多个第三音轨选项中第四音轨选项的选择操作,第四音轨选项的显示状态更新为选中状态,多个第三音轨选项中除第四音轨选项以外的音轨选项的显示状态保持为可选状态,其中,第四音轨选项对应的音轨数据的解码类型为第三解码类型,第三解码类型为同时可支持硬件解码和软件解码的解码类型。
本公开实施例中,在用户选择所要进行共享的音轨数据时,根据用户选择的音轨数据的解码类型,动态调整其余音轨选项的显示状态,以提示用户哪一些音轨数据是可供选择的,操作简单,用户体验更好。
之后,响应于针对除第四音轨选项以外的音轨选项中第七音轨选项的选择操作,控制显示器呈现第三界面,其中,第三界面中包括第四音轨选项对应的音轨数据的音轨标识和第七音轨选项对应的音轨数据的音轨标识,以及多个第三音轨选项中除第四音轨选项和第七音轨选项以外的其他音轨选项的显示状态均为不可选状态。
本公开实施例中,在用户选择的音轨数据的数量达到所支持的同时广播的音轨数据的数量上限时,将其余音轨选项的显示状态置为不可选状态,可以提示用户进行后续多音轨共享的操作,使用便捷,用户体验更好。
在一些实施例中,该方法还可以包括:响应于对第一广播控件的选择操作,控制蓝牙模块基于不同的广播通道发送多个蓝牙广播数据。
下面对通过第一广播控件触发蓝牙模块发送多个蓝牙广播数据的过程进行示意性说明。
在一些实施例中,在控制显示器呈现第一界面之后,响应于针对第一广播控件的选择操作,控制蓝牙模块发送多个蓝牙广播数据,一个蓝牙广播数据对应多个音轨数据中的一个音轨数据。
以第二预设数量为2,在目标资源的音轨数量等于第二预设数量时,呈现第一界面为例,对通过第一广播控件触发蓝牙模块发送多个蓝牙广播数据的过程进行说明。请参见图29,其为本公开实施例提供的一种音频广播切换的界面变化示意图。如图29中的(a)所示,双语共享页面(即第一界面)中可以显示所要进行共享的音轨数据的音轨标识,如音轨数据1对应的音轨标识“中文”和音轨数据2对应的音轨标识“英文”。在该多语共享页面中还可以显示“仅切换音频广播”控件(即第一广播控件)。在接收到针对“仅切换音频广播”控件(即第一广播控件)的触发操作时,控制播放器暂停播放目标音视频资源。
实际应用中,为了提升用户的体验,使得用户对切换至蓝牙广播通道的过程有一定的预期,还可以在控制播放器暂停播放目标音视频资源时,显示图29中的(b)所示的“蓝牙广播切换中”的提示弹窗,以提示用户当前正在切换至蓝牙广播通道。
在确定蓝牙广播通道切换成功,继续播放目标音视频资源时,还可以在目标音视频资源的播放页面上显示“蓝牙广播已设置”的提示字样,如图29中的(c)所示,以提示用户蓝牙广播切换成功,正在利用两种语言或多种语言对音视频资源同时进行广播,即控制蓝牙模块发送两个蓝牙广播数据(音轨数据1对应的蓝牙广播数据和音轨数据2对应的蓝牙广播数据)。
当然,本公开实施例也可以在呈现第三界面之后,通过第三界面中的“仅切换音频广播”控件(即第一广播控件)触发蓝牙模块发送多个蓝牙广播数据,这里不再赘述。
下面对通过第二广播控件触发蓝牙模块向多个蓝牙设备发送蓝牙广播数据的过程进行示意性说明。
在一些实施例中,在控制显示器呈现第一界面之后,该方法还包括:响应于针对第二广播控件的选择操作,控制蓝牙模块发送多个蓝牙广播数据,一个蓝牙广播数据对应多个音轨数据中的一个音轨数据。
具体的,响应于针对第二广播控件的选择操作,控制显示器呈现第四界面,第四界面中包括多个设备选项,多个设备选项与多个蓝牙设备一一对应,多个蓝牙设备为支持低功耗音频协议的蓝牙设备;响应于针对多个设备选项中第一设备选项的选择操作,控制显示器呈现第五界面,第五界面中第四音轨选项和第七音轨选项;响应于针对第八音轨选项的选择操作,建立第五音轨标识索引和第二设备标识之间的关联关系,其中,第五音轨标识为第八音轨选项对应的音轨数据的音轨标识,第二设备标识为第二设备选项对应的蓝牙设备的设备标识,第八音轨选项为第四音轨选项或者第七音轨选项。
在一些实施例中,第五界面中还包括确认切换控件,在建立第五音轨标识和第二设备标识之间的关联关系之后,该方法还包括:响应于对确认切换控件的选择操作,控制蓝牙模块基于第五音轨标识和第二设备标识之间的关联关系,向第二设备选项对应的蓝牙设备发送第五蓝牙广播数据,第五蓝牙广播数据用于广播第八音轨选项对应的音轨数据的音频数据。
在一些实施例中,请参见图30,其为本公开实施例提供的另一种音频广播切换的界面变化示意图。如图30中的(a)所示,双语共享页面(即第一界面)中可以显示所要进行共享的音轨数据的音轨标识,如音轨数据1对应的音轨标识“中文”和音轨数据2对应的音轨标识“英文”。在该多语共享页面中还可以显示“连接蓝牙设备并切换”控件(即第二广播控件)。在接收到针对“连接蓝牙设备并切换”控件(即第二广播控件)的触发操作时,显示设备上呈现图30中的(b)所示的设备管理页面,并在设备管理页面(即第四界面)上显示已连接的LE audio设备,以提示用户为各个音轨分别配置对应的LE audio设备。
如图30中的(b)所示,该设备管理页面上显示有已连接的LE audio设备(即设备选项),例如设备A和设备B。响应于针对设备A(即第一设备选项对应的LE audio设备)的选择操作,显示设备上呈现图30中的(c)所示的音轨选择页面(即第五界面)。其中,音轨选择页面中可以包括至少一个音轨选项,如“中文”音轨选项和“英文”音轨选项。另外,音轨选择页面中还可以显示“请选择蓝牙设备A要接收的音轨”的提示信息,以提示用户为设备A选择要接收的音轨(如“中文”音轨选项)。响应于针对“中文”音轨选项的选择操作,将“中文”音轨选项对应的中文音轨数据。确定为设备A匹配的音轨数据。当然,在为设备A匹配中文音轨数据后,可以向设备A发送中文音轨数据对应的广播信息,以使设备A能够基于广播信息接收中文音轨数据对应的蓝牙广播数据。这样,结合后续步骤,可以向设备A发送中文音轨数据对应的蓝牙广播数据。
如图30中的(c)所示,音轨选择页面中还可以包括“继续选择设备”控件。响应于针对“继续选择设备”控件的选择操作,显示设备上呈现图30中的(d)所示的设备管理页面。与图30中的(a)所示的设备管理页面相比,该页面上针对设备A显示有“中文音轨”的提示字样,以提示用户已完成设备A的音轨数据的配置。响应于针对设备B的选择操作,显示设备上呈现图30中的(d)所示的音轨选择页面,用于为设备B匹配音轨数据。在接收到针对设备B的音轨配置触发操作时,由当前页面跳转至图30中的(e)所示的音轨选择页面,并在该页面上实现针对设备B的音轨配置。
如图30中的(e)所示,该音轨选择页面中还可以显示“完成并切换”控件(即确认切换控件)。在接收到针对“完成并切换”控件的触发操作后,控制播放器暂停播放目标音视频资源。
实际应用中,为了提升用户的体验,使得用户对切换至蓝牙广播通道的过程有一定的预期,还可以在控制播放器暂停播放目标音视频资源时,显示如图30中的(f)所示的“蓝牙广播切换中”的提示弹窗,以提示用户当前正在切换至蓝牙广播通道。
在确定蓝牙广播通道切换成功,继续播放目标音视频资源时,还可以在目标音视频资源的播放页面上显示“蓝牙广播已设置”的提示字样,如图30中的(g)所示,以提示用户蓝牙广播切换成功,正在利用两种语言或多种语言对音视频资源同时进行广播,即控制蓝牙模块向设备A和设备B发送蓝牙广播数据。
当然,本公开实施例也可以在呈现第三界面之后,通过第三界面中的“连接蓝牙设备并切换”控件(即第二广播控件)触发蓝牙模块向多个蓝牙设备发送蓝牙广播数据,这里不再赘述。
在一些实施例中,显示设备控制显示器显示设备管理页面之后,还可以控制蓝牙模块进行设备扫描,并控制显示器在设备管理页面上显示扫描到的LE audio设备。
实际应用中,显示设备还可以在控制显示器显示设备管理页面,以及在设备管理页面上显示已连接的LE audio设备的过程中,响应于针对设备扫描控件的触发操作,控制蓝牙模块进行设备扫描,并控制显示器在设备管理页面上显示扫描到的LE audio设备。
本公开实施例中,在设备管理页面上显示扫描到的LE audio设备的过程中,还可以在接收到针对扫描到的LE audio设备中的任一LE audio设备的连接请求,与该LE audio设备建立连接;在与扫描到的LE audio设备成功建立连接后,还可以在设备管理页面上的已连接的设备列表中显示该LE audio设备。
如图31所示,为根据一些实施例的一种设备连接状态的变化示意图,其中,图31中的(a)所示的多语共享页面上显示有“连接蓝牙设备并切换”字样的设备配置控件,在接收到针对该控件的触发操作时,控制蓝牙模块扫描LE audio设备;图31中的(b)所示的设备显示设备管理页面上显示有蓝牙模块扫描到的LE audio设备,例如设备C和设备D;在接收到针对任一LE audio设备(例如设备D)的连接请求时,与设备D建立连接。在与设备D成功建立连接后,在设备管理页面上的已连接设备列表中显示已连接的设备D,如图31中的(c)所示,设备D此时处于已连接的设备列表中;在接收到针对设备D的音轨配置触发操作时,显示如图31中的(d)所示的音轨选择页面,其中,该页面上显示有至少两条目标音轨,在接收到针对至少两条目标音轨中的第一目标音轨(例如中文)的选定操作时,将该第一目标音轨(即中文)对应的广播信息发送至设备D,以使设备D能够基于广播信息接收第一目标音轨(即中文)对应的蓝牙广播。
本公开实施例对上述步骤的执行顺序不做限制,例如可以先执行步骤“在所述设备管理页面上显示已连接的LE audio设备”,再执行步骤“控制所述显示器在所述设备管理页面上显示扫描到的LE audio设备”,也可以先执行步骤“控制所述显示器在所述设备管理页面上显示扫描到的LE audio设备”,再执行步骤“在所述设备管理页面上显示已连接的LE audio设备”,还可以同时在上述步骤之前增加一个或者多个步骤,例如在步骤“在所述设备管理页面上显示已连接的扫描到的LE audio设备”之前,增加“与所述扫描到的LE audio设备建立连接”等步骤。
在一些实施例中,该方法还可以包括:在进入多音轨共享后,响应于第二操作,控制显示器呈现取消多音轨共享控件;响应于针对取消多音轨共享控件的选择操作,退出多音轨共享模式,以及控制声音输出装置输出目标资源的第一音频数据。
其中,第二操作可以是唤醒取消多音轨共享控件的选择操作。
在一些实施例中,如图32所示,在进入多音轨数据共享后,显示设备呈现图32中的(a)所示的画面。在接收到第二操作后,显示设备呈现“取消共享”控件。在接收到对“取消共享”控件的触发操作,可以显示多个音轨选择控件,以及“双语共享”控件,这样用户可以重新选择音频输出方式。
本公开实施例提供的音频广播方法中,在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出目标资源的第一音频数据的情况下,响应于第一操作,获取目标资源的音轨信息,根据音轨信息,确定目标资源的音轨数量;在音轨数量满足第一预设条件的情况下,控制显示器呈现多音轨共享控件;响应于针对多音轨共享控件的选择操作,控制声音输出装置停止输出第一音频数据,以及控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,多个蓝牙广播数据与多个蓝牙设备一一对应,一个蓝牙广播数据用于广播目标资源的一个音轨数据对应的音频数据。这样一来,本公开实施例可以为不同的蓝牙设备发送不同的音轨数据对应的蓝牙广播数据,以利用音频广播的方式实现针对同一音视频资源的多音轨数据同步播放的功能,能够提高广播效率。另外,本公开实施例能够实现针对同一音视频资源的多语言同步播放的功能。
本公开实施例提供一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述音频广播方法执行的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质可以为只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本公开提供一种计算机程序产品,该计算机程序产品中包括计算机程序,当该计算机程序在计算机上运行时,使得所述计算机实现上述的音频广播方法。
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述在一些实施例中讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理以及实际的应用,从而使得本领域技术人员更好的使用实施方式以及适于具体使用考虑的各种不同的变形的实施方式。

Claims (73)

  1. 一种显示设备,包括:
    显示器;
    声音输出装置;
    蓝牙模块,所述蓝牙模块支持低功耗音频协议;
    分别与所述显示器、所述声音输出装置和所述蓝牙模块连接的处理器;所述处理器,被配置为:
    在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量;
    在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;
    控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
  2. 根据权利要求1所述的显示设备,所述第一预设条件包括以下至少一项:
    所述音轨数量大于第一预设数量;
    所述音轨数量等于所述第一预设数量。
  3. 根据权利要求1所述的显示设备,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    若所述音轨数量不大于第二预设数量,则控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述第二预设数量为所述蓝牙模块支持同时广播的音轨数据的数量;
    若所述音轨数量大于所述第二预设数量,则从所述目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制所述蓝牙模块向所述第一数量的蓝牙设备发送蓝牙广播数据,一个所述蓝牙设备对应的蓝牙广播数据用于广播所述第一数量的第一音轨数据中一个第一音轨数据对应的音频数据,其中,所述第一数量小于或等于所述第二预设数量,所述第一数量大于或等于两个。
  4. 根据权利要求3所述的显示设备,所述处理器执行所述从所述目标资源的多个音轨数据中,确定第一数量的第一音轨数据之前,被进一步被配置为:
    若所述音轨数量大于所述第二预设数量,则控制所述显示器呈现多个音轨标识,所述多个音轨标识与所述目标资源的多个音轨数据一一对应;
    所述处理器执行所述从所述目标资源的多个音轨数据中,确定第一数量的第一音轨数据,具体被配置为:响应于针对所述多个音轨标识中所述第一数量的第一音轨标识的选择操作,将各所述第一音轨标识对应的音轨数据,确定为所述第一音轨数据。
  5. 根据权利要求1所述的显示设备,所述目标资源的多个音轨数据中包括第二音轨数据和第三音轨数据,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    根据音轨索引与设备标识之间的关联关系,确定所述第二音轨数据对应的第一蓝牙设备;
    控制所述蓝牙模块基于所述第二音轨数据对应的第一蓝牙广播通道,向所述第一蓝牙设备发送第一蓝牙广播数据,所述第一蓝牙广播数据用于广播所述第二音轨数据对应的音频数据;
    根据所述关联关系,确定所述第三音轨数据对应的第二蓝牙设备;
    控制所述蓝牙模块基于所述第三音轨数据对应的第二蓝牙广播通道,向所述第二蓝牙设备发送第二蓝牙广播数据,所述第二蓝牙广播数据用于广播所述第三音轨数据对应的音频数据。
  6. 根据权利要求5所述的显示设备,所述处理器被进一步被配置为:
    根据所述第二音轨数据对应的音轨标识,创建所述第一蓝牙广播通道;
    根据所述第三音轨数据对应的音轨标识,创建所述第二蓝牙广播通道。
  7. 根据权利要求5所述的显示设备,所述处理器被进一步被配置为:
    在接收到音轨数据配置操作的情况下,控制所述显示器呈现多个设备选项,所述多个设备选项与所述多个蓝牙设备一一对应,所述多个蓝牙设备为支持低功耗音频协议的蓝牙设备;
    响应于针对所述多个设备选项中第一设备选项的选择操作,控制所述显示器呈现所述多个音轨选项,所述多个音轨选项与所述多个音轨数据一一对应;
    响应于针对所述多个音轨选项中第一音轨选项的选择操作,将第一音轨索引和第一设备标识进行关联,得到音轨索引与设备标识之间的关联关系,其中,所述第一音轨索引为所述第一音轨选项对应的音轨数据的音轨标识,所述第一设备标识为所述第一设备选项对应的蓝牙设备的设备标识。
  8. 根据权利要求1-7中任一项所述的显示设备,所述处理器在控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步被配置为:
    控制所述蓝牙模块切换至蓝牙广播通道。
  9. 根据权利要求8所述的显示设备,所述处理器在控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步被配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据;
    所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    在确定所述蓝牙模块切换至所述蓝牙广播通道时,控制所述蓝牙模块向所述多个蓝牙设备发送所述多个蓝牙广播数据,以及控制所述播放器从视频起始时刻重新播放所述视频数据。
  10. 根据权利要求8所述的显示设备,所述处理器在控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步被配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    在确定所述蓝牙模块切换至所述蓝牙广播通道时,按照所述播放进度信息,控制所述播放器重新播放所述视频数据,以及根据所述播放进度信息,对所述目标资源的多个音轨数据对应的音频数据进行处理,以及控制所述蓝牙模块基于多个处理后的音频数据,向所述多个蓝牙设备发送所述多个蓝牙广播数据,其中,一个所述蓝牙广播数据用于广播一个处理后的音频数据。
  11. 根据权利要求1-7中任一项所述的显示设备,所述处理器在控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之后,被进一步被配置为:
    在满足第二预设条件的情况下,控制所述蓝牙模块停止向多个蓝牙设备发送多个蓝牙广播数据,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    基于所述播放进度信息,控制所述播放器重新播放所述视频数据,以及所述声音输出装置输出所述第一音频数据;
    其中,所述第二预设条件包括以下至少一项:
    接收到退出多音轨共享的指令;
    检测所述蓝牙模块切换为关闭状态;
    检测到所述播放器切换至后台运行;
    接收到停止播放所述目标资源的操作。
  12. 一种显示设备,包括:
    显示器;
    声音输出装置;
    蓝牙模块,所述蓝牙模块支持低功耗音频协议;
    分别与所述显示器、所述声音输出装置和所述蓝牙模块连接的处理器;所述处理器,被配置为:
    在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量;
    在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;
    控制所述蓝牙模块发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述目标资源的多个音轨数据一一对应,一个所述蓝牙广播数据用于广播一个音轨数据对应的音频数据。
  13. 根据权利要求12所述的显示设备,所述第一预设条件包括以下至少一项:
    所述音轨数量大于第一预设数量;
    所述音轨数量等于所述第一预设数量。
  14. 根据权利要求12所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:
    若所述音轨数量不大于第二预设数量,则控制所述蓝牙模块发送所述多个蓝牙广播数据,所述第二预设数量为所述蓝牙模块支持同时广播的音轨数据的数量;
    若所述音轨数量大于所述第二预设数量,则从所述多个音轨数据中确定第一数量的第一音轨数据,以及控制所述蓝牙模块发送所述第一数量的蓝牙广播数据,一个所述蓝牙广播数据用于广播所述第一数量的第一音轨数据中一个第一音轨数据对应的音频数据,其中,所述第一数量小于或等于所述第二预设数量,所述第一数量大于或等于两个。
  15. 根据权利要求14所述的显示设备,所述处理器在从所述多个音轨数据中确定第一数量的第一音轨数据之前,被进一步被配置为:
    若所述音轨数量大于所述第二预设数量,则控制所述显示器呈现多个音轨标识,所述多个音轨标识与所述目标资源的多个音轨数据一一对应;
    所述处理器执行所述从所述多个音轨数据中确定第一数量的第一音轨数据,具体被配置为:
    响应于针对所述多个音轨标识中所述第一数量的第一音轨标识的选择操作,将各所述第一音轨标识对应的音轨数据,确定为所述第一音轨数据。
  16. 根据权利要求12-15中任一项所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:
    控制所述蓝牙模块切换至蓝牙广播通道;
    在确定所述蓝牙模块切换至蓝牙广播通道时,控制所述蓝牙模块基于多个蓝牙广播通道发送所述多个蓝牙广播,其中,所述多个蓝牙广播通道与所述多个音轨数据一一对应。
  17. 根据权利要求16所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据之前,被进一步被配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据;
    所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:
    在确定所述蓝牙模块切换至蓝牙广播通道时,控制所述蓝牙模块向基于多个蓝牙广播通道发送所述多个蓝牙广播,以及控制所述播放器从视频起始时刻重新播放所述视频数据。
  18. 根据权利要求16所述的显示设备,所述处理器在控制所述蓝牙模块发送多个蓝牙广播数据之前,被进一步被配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:
    在确定所述蓝牙模块切换至所述蓝牙广播通道时,按照所述播放进度信息,控制所述播放器重新播放所述视频数据,以及根据所述播放进度信息,对所述目标资源的多个音轨数据对应的音频数据进行处理,以及控制所述蓝牙模块基于多个处理后的音频数据发送所述多个蓝牙广播数据,其中,一个所述蓝牙广播数据用于广播一个处理后的音频数据。
  19. 根据权利要求12-15中任一项所述的显示设备,所述处理器在控制所述蓝牙模块发送多个蓝牙广播数据之后,被进一步被配置为:
    在满足第二预设条件的情况下,控制所述蓝牙模块停止发送多个蓝牙广播数据,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    基于所述播放进度信息,控制所述播放器重新播放所述视频数据,以及所述声音输出装置输出所述第一音频数据;
    其中,所述第二预设条件包括以下至少一项:
    接收到退出多音轨共享的指令;
    检测所述蓝牙模块切换为关闭状态;
    检测到所述播放器切换至后台运行;
    接收到停止播放所述目标资源的操作。
  20. 一种显示设备,包括:
    显示器;
    声音输出装置;
    蓝牙模块,所述蓝牙模块支持低功耗音频协议;
    分别与所述显示器、所述声音输出装置和所述蓝牙模块连接的处理器,所述处理器,被配置为:
    在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;
    在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;
    控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
  21. 根据权利要求20所述的显示设备,所述第一预设条件包括以下至少一项:
    所述音轨数量大于第一预设数量;
    所述音轨数量等于所述第一预设数量。
  22. 根据权利要求20所述的显示设备,所述第三预设条件包括:所述目标资源的多个音轨数据中包括至少两种解码类型的音轨数据。
  23. 根据权利要求22所述的显示设备,所述至少两种解码类型包括第一解码类型和第二解码类型;所述第三预设条件还包括:所述音轨数量不等于第四音轨数据的数量,且所述音轨数量不等于第五音轨数据的数量,其中,所述第四音轨数据的解码类型为所述第一解码类型,所述第五音轨数据的解码类型为所述第二解码类型。
  24. 根据权利要求23所述的显示设备,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    若所述音轨数量不大于第二预设数量,则控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述第二预设数量为所述蓝牙模块支持同时广播的音轨数据的数量;
    若所述音轨数量大于所述第二预设数量,则从所述目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制所述蓝牙模块向所述第一数量的蓝牙设备发送蓝牙广播数据,一个所述蓝牙设备对应的蓝牙广播数据用于广播所述第一数量的第一音轨数据中一个第一音轨数据对应的音频数据;
    其中,所述第一数量的第一音轨数据中解码类型属于所述第一解码类型的音轨数据的数量小于或等于第三预设数量,且所述第一数量的第一音轨数据中解码类型属于所述第二解码类型的音轨数据的数量小于或等于第四预设数量;所述第一数量小于或等于所述第二预设数量,所述第一数量大于或等于两个。
  25. 根据权利要求24所述的显示设备,所述第一数量为两个,所述第三预设数量为一个,所述第四预设数量为一个;所述处理器执行所述从所述目标资源的多个音轨数据中,确定第一数量的第一音轨数据,以及控制所述蓝牙模块向所述第一数量的蓝牙设备发送蓝牙广播数据,具体被配置为:
    从所述目标资源的多个音轨数据中,确定两个第一音轨数据,以及控制所述蓝牙模块向两个蓝牙设备发送蓝牙广播数据,一个蓝牙广播数据用于广播一个所述第一音轨数据对应的音频数据;其中,所述两个第一音轨数据的解码类型不同。
  26. 根据权利要求25所述的显示设备,所述处理器执行所述从所述目标资源的多个音轨数据中,确定两个第一音轨数据之前,被进一步配置为:
    若所述音轨数量大于所述第二预设数量,则控制所述显示器呈现多个音轨标识,所述多个音轨标识与所述目标资源的多个音轨数据一一对应;
    所述处理器执行所述从所述目标资源的多个音轨数据中,确定两个第一音轨数据,具体被配置为:响应于针对所述多个音轨标识中第二音轨标识的选择操作,将所述第二音轨标识对应的音轨数据,确定为所述第一音轨数据,以及控制所述显示器呈现至少一个第三音轨标识,其中,所述第三音轨标识包括所述多个音轨数据中除所述第二音轨标识对应的音轨数据以外的音轨数据的音轨标识,且所述第三音轨标识对应的音轨数据的解码类型与所述第二音轨标识对应的音轨数据的解码类型不同;
    响应于针对所述至少一个第三音轨标识中第四音轨标识的选择操作,将所述第四音轨标识对应的音轨数据,确定为所述第一音轨数据。
  27. 根据权利要求20所述的显示设备,所述音轨信息包括所述目标资源中音轨数据的格式信息;所述处理器执行所述根据所述音轨信息,确定所述目标资源的音轨数据的解码类型,具体被配置为:
    根据第六音轨数据的格式信息,确定所述第六音轨数据的解码类型,其中,所述第六音轨数据为所述目标资源的多个音轨数据中的任一个音轨数据。
  28. 根据权利要求20所述的显示设备,所述目标资源的多个音轨数据中包括第二音轨数据和第三音轨数据,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    根据音轨索引与设备标识之间的关联关系,确定所述第二音轨数据对应的第一蓝牙设备;
    控制所述蓝牙模块基于所述第二音轨数据对应的第一蓝牙广播通道,向所述第一蓝牙设备发送第一蓝牙广播数据,所述第一蓝牙广播数据用于广播所述第二音轨数据对应的音频数据;
    根据所述关联关系,确定所述第三音轨数据对应的第二蓝牙设备;
    控制所述蓝牙模块基于所述第三音轨数据对应的第二蓝牙广播通道,向所述第二蓝牙设备发送第二蓝牙广播数据,所述第二蓝牙广播数据用于广播所述第三音轨数据对应的音频数据。
  29. 根据权利要求28所述的显示设备,所述处理器被进一步配置为:
    根据所述第二音轨数据对应的音轨标识和解码类型,创建所述第一蓝牙广播通道;
    根据所述第三音轨数据对应的音轨标识和解码类型,创建所述第二蓝牙广播通道。
  30. 根据权利要求28所述的显示设备,所述处理器被进一步配置为:
    在接收到音轨数据配置操作的情况下,控制所述显示器呈现多个设备选项,所述多个设备选项与所述多个蓝牙设备一一对应,所述多个蓝牙设备为支持低功耗音频协议的蓝牙设备;
    响应于针对所述多个设备选项中第一设备选项的选择操作,控制所述显示器呈现所述多个音轨选项,所述多个音轨选项与所述多个音轨数据一一对应;
    响应于针对所述多个音轨选项中第一音轨选项的选择操作,将第一音轨索引和第一设备标识进行关联,得到音轨索引与设备标识之间的关联关系,其中,所述第一音轨索引为所述第一音轨选项对应的音轨数据的音轨标识,所述第一设备标识为所述第一设备选项对应的蓝牙设备的设备标识。
  31. 根据权利要求20-30中任一项所述的显示设备,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步配置为:
    控制所述蓝牙模块切换至蓝牙广播通道。
  32. 根据权利要求31所述的显示设备,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据;
    所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    在确定所述蓝牙模块切换至所述蓝牙广播通道时,控制所述蓝牙模块向所述多个蓝牙设备发送所述多个蓝牙广播数据,以及控制所述播放器从视频起始时刻重新播放所述视频数据。
  33. 根据权利要求31所述的显示设备,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之前,被进一步配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,具体被配置为:
    在确定所述蓝牙模块切换至所述蓝牙广播通道时,按照所述播放进度信息,控制所述播放器重新播放所述视频数据,以及根据所述播放进度信息,对所述目标资源的多个音轨数据对应的音频数据进行处理,以及控制所述蓝牙模块基于多个处理后的音频数据,向所述多个蓝牙设备发送所述多个蓝牙广播数据,其中,一个所述蓝牙广播数据用于广播一个处理后的音频数据。
  34. 根据权利要求20-30中任一项所述的显示设备,所述处理器执行所述控制所述蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据之后,被进一步配置为:
    在满足第二预设条件的情况下,控制所述蓝牙模块停止向多个蓝牙设备发送多个蓝牙广播数据,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    基于所述播放进度信息,控制所述播放器重新播放所述视频数据,以及所述声音输出装置输出所述第一音频数据;
    其中,所述第二预设条件包括以下至少一项:
    接收到退出多音轨共享的指令;
    检测所述蓝牙模块切换为关闭状态;
    检测到所述播放器切换至后台运行;
    接收到停止播放所述目标资源的操作。
  35. 一种显示设备,包括:
    显示器;
    声音输出装置;
    蓝牙模块,所述蓝牙模块支持低功耗音频协议;
    分别与所述显示器、所述声音输出装置和所述蓝牙模块连接的处理器,所述处理器,被配置为:
    在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;
    在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;
    控制所述蓝牙模块发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述目标资源的多个音轨数据一一对应,一个所述蓝牙广播数据用于广播一个音轨数据对应的音频数据。
  36. 根据权利要求35所述的显示设备,所述第一预设条件包括以下至少一项:
    所述音轨数量大于第一预设数量;
    所述音轨数量等于所述第一预设数量。
  37. 根据权利要求35所述的显示设备,所述第三预设条件包括:所述目标资源的多个音轨数据中包括至少两种解码类型的音轨数据。
  38. 根据权利要求37所述的显示设备,所述至少两种解码类型包括第一解码类型和第二解码类型;所述第三预设条件还包括:所述音轨数量不等于第四音轨数据的数量,且所述音轨数量不等于第五音轨数据的数量,其中,所述第四音轨数据的解码类型为所述第一解码类型,所述第五音轨数据的解码类型为所述第二解码类型。
  39. 根据权利要求38所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:
    若所述音轨数量不大于第二预设数量,则控制所述蓝牙模块发送多个蓝牙广播数据,所述第二预设数量为所述蓝牙模块支持同时广播的音轨数据的数量;
    若所述音轨数量大于所述第二预设数量,则从所述多个音轨数据中确定第一数量的第一音轨数据,以及控制所述蓝牙模块发送所述第一数量的蓝牙广播数据,一个所述蓝牙广播数据用于广播所述第一数量的第一音轨数据中一个第一音轨数据对应的音频数据;
    其中,所述第一数量的第一音轨数据中解码类型属于所述第一解码类型的音轨数据的数量小于或等于第三预设数量,且所述第一数量的第一音轨数据中解码类型属于所述第二解码类型的音轨数据的数量小于或等于第四预设数量;所述第一数量小于或等于所述第二预设数量,所述第一数量大于或等于两个。
  40. 根据权利要求39所述的显示设备,所述第一数量为两个,所述第三预设数量为一个,所述第四预设数量为一个;所述处理器执行所述从所述多个音轨数据中确定第一数量的第一音轨数据,以及控制所述蓝牙模块发送所述第一数量的蓝牙广播数据,具体被配置为:
    从所述多个音轨数据中确定两个第一音轨数据,以及控制所述蓝牙模块发送两个蓝牙广播数据;其中,所述两个第一音轨数据的解码类型不同。
  41. 根据权利要求40所述的显示设备,所述处理器执行所述从所述多个音轨数据中确定两个第一音轨数据之前,被进一步配置为:
    若所述音轨数量大于所述第二预设数量,则控制所述显示器呈现多个音轨标识,所述多个音轨标识与所述多个音轨数据一一对应;
    所述处理器执行所述从所述多个音轨数据中确定两个第一音轨数据,具体被配置为:
    响应于针对所述多个音轨标识中第二音轨标识的选择操作,将所述第二音轨标识对应的音轨数据,确定为所述第一音轨数据,以及控制所述显示器呈现至少一个第三音轨标识,其中,所述第三音轨标识包括所述多个音轨数据中除所述第二音轨标识对应的音轨数据以外的音轨数据的音轨标识,且所述第三音轨标识对应的音轨数据的解码类型与所述第二音轨标识对应的音轨数据的解码类型不同;
    响应于针对所述至少一个第三音轨标识中第四音轨标识的选择操作,将所述第四音轨标识对应的音轨数据,确定为所述第一音轨数据。
  42. 根据权利要求35所述的显示设备,所述音轨信息包括所述目标资源中音轨数据的格式信息;所述处理器执行所述根据所述音轨信息,确定所述目标资源的音轨数据的解码类型,具体被配置为:
    根据第六音轨数据的格式信息,确定所述第六音轨数据的解码类型,其中,所述第六音轨数据为所述目标资源的多个音轨数据中的任一个音轨数据。
  43. 根据权利要求35-42中任一项所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:
    控制所述蓝牙模块切换至蓝牙广播通道;
    在确定所述蓝牙模块切换至蓝牙广播通道时,控制所述蓝牙模块基于多个蓝牙广播通道发送所述多个蓝牙广播,其中,所述多个蓝牙广播通道与所述多个音轨数据一一对应。
  44. 根据权利要求43所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据之前,被进一步配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据;
    所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:
    在确定所述蓝牙模块切换至蓝牙广播通道时,控制所述蓝牙模块向基于多个蓝牙广播通道发送所述多个蓝牙广播,以及控制所述播放器从视频起始时刻重新播放所述视频数据。
  45. 根据权利要求43所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据之前,被进一步配置为:
    响应于针对所述多音轨共享控件的选择操作,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据,具体被配置为:在确定所述蓝牙模块切换至所述蓝牙广播通道时,按照所述播放进度信息,控制所述播放器重新播放所述视频数据,以及根据所述播放进度信息,对所述目标资源的多个音轨数据对应的音频数据进行处理,以及控制所述蓝牙模块基于多个处理后的音频数据发送所述多个蓝牙广播数据,其中,一个所述蓝牙广播数据用于广播一个处理后的音频数据。
  46. 根据权利要求35-42中任一项所述的显示设备,所述处理器执行所述控制所述蓝牙模块发送多个蓝牙广播数据之后,被进一步配置为:
    在满足第二预设条件的情况下,控制所述蓝牙模块停止发送多个蓝牙广播数据,控制播放器暂停播放所述视频数据,以及获取所述视频数据的播放进度信息;
    基于所述播放进度信息,控制所述播放器重新播放所述视频数据,以及所述声音输出装置输出所述第一音频数据;
    其中,所述第二预设条件包括以下至少一项:
    接收到退出多音轨共享的指令;
    检测所述蓝牙模块切换为关闭状态;
    检测到所述播放器切换至后台运行;
    接收到停止播放所述目标资源的操作。
  47. 一种显示设备,包括:
    显示器;
    声音输出装置;
    蓝牙模块,所述蓝牙模块支持低功耗音频协议;
    分别与所述显示器、所述声音输出装置和所述蓝牙模块连接的处理器,所述处理器,被配置为:
    在所述显示器上呈现目标资源的视频数据,以及控制所述声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量;
    在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件,其中,所述多音轨共享控件用于触发所述蓝牙模块发送多个蓝牙广播数据,或者,触发所述蓝牙模块向多个蓝牙设备发送所述多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
  48. 根据权利要求47所述的显示设备,所述处理器执行所述控制所述显示器呈现多音轨共享控件之后,被进一步配置为:
    响应于对所述多音轨共享控件的选择操作,若所述音轨数量不大于第二预设数量,则控制所述显示器呈现第一界面,所述第一界面中包括所述目标资源的多个音轨数据对应的多个音轨标识,所述第二预设数量为所述蓝牙模块支持同时广播的音轨数据的数量;
    所述第一界面中还包括第一广播控件和/或第二广播控件,其中,所述第一广播控件用于触发所述蓝牙模块发送多个蓝牙广播数据,一个所述蓝牙广播数据对应所述多个音轨数据中的一个音轨数据;所述第二广播控件用于触发所述蓝牙模块向多个蓝牙设备发送所述多个蓝牙广播数据。
  49. 根据权利要求48所述的显示设备,所述目标资源的多个音轨数据中解码类型属于第一解码类型的音轨数据的数量小于或等于第三预设数量,且所述目标资源的多个音轨数据中解码类型属于第二解码类型的音轨数据的数量小于或等于第四预设数量。
  50. 根据权利要求48所述的显示设备,所述多个音轨数据中包括第二音轨数据和第三音轨数据,所述处理器被进一步配置为:
    响应于对所述第二广播控件的选择操作,根据音轨标识与设备标识之间的关联关系,确定所述第二音轨数据对应的第一蓝牙设备;
    控制所述蓝牙模块基于所述第二音轨数据对应的第一蓝牙广播通道,向所述第一蓝牙设备发送第一蓝牙广播数据,所述第一蓝牙广播数据用于广播所述第二音轨数据对应的音频数据;
    根据音轨标识与设备标识之间的关联关系,确定所述第三音轨数据对应的第二蓝牙设备;
    控制所述蓝牙模块基于所述第三音轨数据对应的第二蓝牙广播通道,向所述第二蓝牙设备发送第二蓝牙广播数据,所述第二蓝牙广播数据用于广播所述第三音轨数据对应的音频数据。
  51. 根据权利要求48所述的显示设备,所述处理器被进一步配置为:
    响应于对所述第一广播控件的选择操作,控制所述蓝牙模块基于不同的广播通道发送所述多个蓝牙广播数据。
  52. 根据权利要求48所述的显示设备,所述第一界面中还包括取消多音轨共享控件;所述处理器被进一步配置为:
    响应于针对所述取消多音轨共享控件的选择操作,退出多音轨共享模式,以及控制所述声音输出装置输出所述目标资源的第一音频数据。
  53. 根据权利要求47所述的显示设备,所述处理器执行所述控制所述显示器呈现多音轨共享控件之后,被进一步配置为:
    响应于对所述多音轨共享控件的选择操作,若所述音轨数量大于第二预设数量,则控制所述显示器呈现第二界面,所述第二界面中包括多个第三音轨选项,所述多个第三音轨选项与所述目标资源的多个音轨数据一一对应,所述第二预设数量为所述蓝牙模块支持同时广播的音轨数据的数量;
    响应于对所述多个第三音轨选项中第一数量的第三音轨选项的选择操作,控制所述显示器呈现第三界面,所述第三界面中包括与所述第一数量的第三音轨选项对应的所述第一数量的音轨标识,所述第一数量小于或等于所述第二预设数量,所述第一数量大于或等于两个;
    所述第三界面中还包括第一广播控件和/或第二广播控件,其中,所述第一广播控件用于触发所述蓝牙模块发送所述第一数量的蓝牙广播数据,一个所述蓝牙广播数据对应所述第一数量的音轨数据中的一个音轨数据;所述第二广播控件用于触发所述蓝牙模块向所述第一数量的蓝牙设备发送蓝牙广播数据。
  54. 根据权利要求53所述的显示设备,所述第一数量的第三音轨选项对应的所述第一数量的音轨数据中,解码类型属于第一解码类型的音轨数据的数量小于或等于第三预设数量,且解码类型属于第二解码类型的音轨数据的数量小于或等于第四预设数量;所述第一数量小于或等于所述第二预设数量,所述第一数量大于或等于两个。
  55. 根据权利要求54所述的显示设备,所述第二预设数量为两个,所述第一数量为两个,所述第三预设数量为一个,所述第四预设数量为一个;所述第三音轨选项的显示状态包括可选状态和不可选状态,所述可选状态包括选中状态,在控制所述显示器呈现第二界面时,所述第二界面中呈现的所述多个第三音轨选项的显示状态均为所述可选状态;
    所述处理器执行所述响应于对所述多个第三音轨选项中第一数量的第三音轨选项的选择操作,控制所述显示器呈现第三界面,具体被配置为:
    响应于针对所述多个第三音轨选项中第四音轨选项的选择操作,所述第四音轨选项的显示状态更新为所述选中状态,所述多个第三音轨选项中第五音轨选项的显示状态更新为所述不可选状态,以及所述多个第三音轨选项中第六音轨选项的显示状态保持为所述可选状态,其中,所述第四音轨选项对应的音轨数据的解码类型为第一解码类型或者第二解码类型,所述第五音轨选项对应的音轨数据与所述第四音轨选项对应的音轨数据的解码类型相同,所述第六音轨选项对应的音轨数据与所述第四音轨选项对应的音轨数据的解码类型不同;
    响应于针对至少一个所述第六音轨选项中第七音轨选项的选择操作,控制所述显示器呈现所述第三界面,其中,所述第三界面中包括所述第四音轨选项对应的音轨数据的音轨标识和所述第七音轨选项对应的音轨数据的音轨标识,以及所述多个第三音轨选项中除所述第四音轨选项和第七音轨选项以外的其他音轨选项的显示状态均为所述不可选状态。
  56. 根据权利要求55所述的显示设备,所述处理器被进一步配置为:
    在所述第四音轨选项的显示状态更新为所述选中状态,所述多个第三音轨选项中第五音轨选项的显示状态更新为所述不可选状态,以及所述多个第三音轨选项中第六音轨选项的显示状态保持为所述可选状态之后,响应于对所述第四音轨选项的取消选择操作,所述第五音轨选项显示的状态由所述不可选状态更新为所述可选状态。
  57. 根据权利要求54所述的显示设备,所述第二预设数量为两个,所述第一数量为两个,所述第三预设数量为一个,所述第四预设数量为一个;所述第三音轨选项的显示状态包括可选状态和不可选状态,所述可选状态包括选中状态,在控制所述显示器呈现第二界面时,所述第二界面中呈现的所述多个第三音轨选项的显示状态均为所述可选状态;
    所述处理器执行所述响应于对所述多个第三音轨选项中第一数量的第三音轨选项的选择操作,控制所述显示器呈现第三界面,具体被配置为:响应于针对所述多个第三音轨选项中第四音轨选项的选择操作,所述第四音轨选项的显示状态更新为所述选中状态,所述多个第三音轨选项中除所述第四音轨选项以外的音轨选项的显示状态保持为所述可选状态,其中,所述第四音轨选项对应的音轨数据的解码类型为第三解码类型,所述第三解码类型为同时可支持硬件解码和软件解码的解码类型;
    响应于针对除所述第四音轨选项以外的音轨选项中第七音轨选项的选择操作,控制所述显示器呈现所述第三界面,其中,所述第三界面中包括所述第四音轨选项对应的音轨数据的音轨标识和所述第七音轨选项对应的音轨数据的音轨标识,以及所述多个第三音轨选项中除所述第四音轨选项和第七音轨选项以外的其他音轨选项的显示状态均为所述不可选状态。
  58. 根据权利要求57所述的显示设备,所述第三界面还包括确认共享控件;所述处理器执行所述控制所述显示器呈现所述第三界面之后,被进一步配置为:
    响应于针对所述确认共享控件的选择操作,控制所述显示器呈现第四界面,所述第四界面中包括多个设备选项,所述多个设备选项与所述多个蓝牙设备一一对应,所述多个蓝牙设备为支持低功耗音频协议的蓝牙设备;
    响应于针对所述多个设备选项中第一设备选项的选择操作,控制所述显示器呈现第五界面,所述第五界面中所述第四音轨选项和所述第七音轨选项;
    响应于针对第八音轨选项的选择操作,建立第五音轨索引和第二设备标识之间的关联关系,其中,所述第五音轨标识为所述第八音轨选项对应的音轨数据的音轨标识,所述第二设备标识为所述第二设备选项对应的蓝牙设备的设备标识,所述第八音轨选项为所述第四音轨选项或者所述第七音轨选项。
  59. 根据权利要求58所述的显示设备,所述第五界面中还包括确认切换控件,所述处理器被进一步配置为:
    在建立第五音轨标识和第二设备标识之间的关联关系之后,响应于对所述确认切换控件的选择操作,控制所述蓝牙模块基于第五音轨标识和第二设备标识之间的关联关系,向所述第二设备选项对应的蓝牙设备发送第五蓝牙广播数据,所述第五蓝牙广播数据用于广播所述第八音轨选项对应的音轨数据的音频数据。
  60. 根据权利要求53所述的显示设备,所述第二界面中还包括取消多音轨共享控件;所述处理器被进一步配置为:
    响应于针对所述取消多音轨共享控件的选择操作,退出多音轨共享模式,以及控制所述声音输出装置输出所述目标资源的第一音频数据。
  61. 根据权利要求47所述的显示设备,所述处理器被进一步配置为:
    在进入多音轨共享后,响应于第二操作,控制所述显示器呈现取消多音轨共享控件;
    响应于针对所述取消多音轨共享控件的选择操作,退出多音轨共享模式,以及控制所述声音输出装置输出所述目标资源的第一音频数据。
  62. 根据权利要求47所述的显示设备,所述音轨信息包括所述目标资源中音轨数据的语言类型信息;所述处理器执行所述控制所述声音输出装置输出所述目标资源的第一音频数据,具体被配置为:
    响应于所述第一操作,控制所述显示器呈现多个音轨选择控件,所述多个音轨选择控件与所述目标资源的多个音轨数据一一对应;
    响应于针对第一选择控件的选择操作,控制所述声音输出装置输出所述目标资源的第一音频数据,所述第一选择控件为所述多个音轨选择控件中的任一个音轨选择控件,所述第一音频数据为所述第一选择控件对应的音轨数据的音频数据。
  63. 根据权利要求62所述的显示设备,所述音轨信息包括所述目标资源中音轨数据的语言类型信息;
    所述多个音轨选择控件中每个音轨选择控件上均显示提示信息,所述提示信息基于所述音轨选择控件对应的音轨数据的语言类型信息确定。
  64. 根据权利要求47-63中任一项所述的显示设备,所述处理器在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件时,具体被配置为:
    在所述音轨数量满足第一预设条件的情况下,则根据所述音轨信息,确定所述目标资源中多个音轨数据的解码类型;
    若所述多个音轨数据的解码类型满足第三预设条件,则控制所述显示器呈现所述多音轨共享控件。
  65. 根据权利要求64所述的显示设备,所述第三预设条件包括:所述多个音轨数据中包括至少两种解码类型的音轨数据。
  66. 根据权利要求65所述的显示设备,所述至少两种解码类型包括第一解码类型和第二解码类型;所述第三预设条件还包括:所述音轨数量不等于第四音轨数据的数量,且所述音轨数量不等于第五音轨数据的数量,其中,所述第四音轨数据的解码类型为所述第一解码类型,所述第五音轨数据的解码类型为所述第二解码类型。
  67. 根据权利要求66所述的显示设备,所述音轨信息包括所述目标资源中音轨数据的格式信息;所述处理器执行所述根据所述音轨信息,确定所述目标资源中多个音轨数据的解码类型,具体被配置为:
    根据第六音轨数据的格式信息,确定所述第六音轨数据的解码类型,其中,所述第六音轨数据为所述目标资源的多个音轨数据中的任一个音轨数据。
  68. 根据权利要求47-63中任一项所述的显示设备,所述第一预设条件包括以下至少一项:
    所述音轨数量大于第一预设数量;
    所述音轨数量等于所述第一预设数量。
  69. 一种音频广播方法,包括:
    在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量;
    在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据,以及控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
  70. 一种音频广播方法,包括:
    在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量;
    在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据,以及控制蓝牙模块发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述目标资源的多个音轨数据一一对应,一个所述蓝牙广播数据用于广播一个音轨数据对应的音频数据。
  71. 一种音频广播方法,包括:
    在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;
    在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;
    控制蓝牙模块向多个蓝牙设备发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
  72. 一种音频广播方法,包括:
    在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量和所述目标资源的音轨数据的解码类型;
    在所述音轨数量满足第一预设条件,且所述目标资源的音轨数据的解码类型满足第三预设条件的情况下,控制所述显示器呈现多音轨共享控件;
    响应于针对所述多音轨共享控件的选择操作,控制所述声音输出装置停止输出所述第一音频数据;
    控制蓝牙模块发送多个蓝牙广播数据,所述多个蓝牙广播数据与所述目标资源的多个音轨数据一一对应,一个所述蓝牙广播数据用于广播一个音轨数据对应的音频数据。
  73. 一种音频广播方法,包括:
    在显示器上呈现目标资源的视频数据,以及控制声音输出装置输出所述目标资源的第一音频数据;
    响应于第一操作,获取所述目标资源的音轨信息;
    根据所述音轨信息,确定所述目标资源的音轨数量;
    在所述音轨数量满足第一预设条件的情况下,控制所述显示器呈现多音轨共享控件,其中,所述多音轨共享控件用于触发蓝牙模块发送多个蓝牙广播数据,或者,触发所述蓝牙模块向多个蓝牙设备发送所述多个蓝牙广播数据,所述多个蓝牙广播数据与所述多个蓝牙设备一一对应,一个所述蓝牙广播数据用于广播所述目标资源的一个音轨数据对应的音频数据。
PCT/CN2025/073717 2024-03-27 2025-01-21 显示设备及音频广播方法 Pending WO2025200748A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202580002024.7A CN121399956A (zh) 2024-03-27 2025-01-21 显示设备及音频广播方法

Applications Claiming Priority (14)

Application Number Priority Date Filing Date Title
CN202410362138.XA CN118741213A (zh) 2023-03-30 2024-03-27 显示设备及音频广播方法
CN202410362138.X 2024-03-27
CN202410359462.6A CN118741210A (zh) 2023-03-30 2024-03-27 显示设备及音频广播方法
CN202410361450.7 2024-03-27
CN202410361462.X 2024-03-27
CN202410361462.XA CN118741212A (zh) 2023-03-30 2024-03-27 显示设备及音频广播方法
CN202410361450.7A CN118741211A (zh) 2023-03-30 2024-03-27 显示设备及音频广播方法
CN202410359462.6 2024-03-27
CN202411405498.X 2024-10-09
CN202411405548.4A CN119545072A (zh) 2023-03-30 2024-10-09 显示设备及音频广播方法
CN202411405548.4 2024-10-09
CN202411405498.XA CN119583872A (zh) 2023-03-30 2024-10-09 显示设备及音频广播方法
CN202411405814.3 2024-10-09
CN202411405814.3A CN119629408A (zh) 2024-10-09 2024-10-09 显示设备及音频广播方法

Publications (1)

Publication Number Publication Date
WO2025200748A1 true WO2025200748A1 (zh) 2025-10-02

Family

ID=94897031

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/073717 Pending WO2025200748A1 (zh) 2024-03-27 2025-01-21 显示设备及音频广播方法

Country Status (2)

Country Link
CN (2) CN119629408A (zh)
WO (1) WO2025200748A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080319734A1 (en) * 2007-06-19 2008-12-25 Mi-Sun Kim Terminal and method for supporting multi-language
TW201015997A (en) * 2008-10-03 2010-04-16 Aonvision Technology Corp System for listening multiple sound tracks
CN103916692A (zh) * 2014-03-25 2014-07-09 小米科技有限责任公司 视频播放方法、装置及播放终端
WO2019227308A1 (zh) * 2018-05-29 2019-12-05 华为技术有限公司 一种从音视频文件中选择音轨的方法及装置
CN115550705A (zh) * 2021-06-30 2022-12-30 海信视像科技股份有限公司 一种音频播放方法及装置
CN116828241A (zh) * 2023-03-30 2023-09-29 海信视像科技股份有限公司 显示设备

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080319734A1 (en) * 2007-06-19 2008-12-25 Mi-Sun Kim Terminal and method for supporting multi-language
TW201015997A (en) * 2008-10-03 2010-04-16 Aonvision Technology Corp System for listening multiple sound tracks
CN103916692A (zh) * 2014-03-25 2014-07-09 小米科技有限责任公司 视频播放方法、装置及播放终端
WO2019227308A1 (zh) * 2018-05-29 2019-12-05 华为技术有限公司 一种从音视频文件中选择音轨的方法及装置
CN115550705A (zh) * 2021-06-30 2022-12-30 海信视像科技股份有限公司 一种音频播放方法及装置
CN116828241A (zh) * 2023-03-30 2023-09-29 海信视像科技股份有限公司 显示设备
CN118741213A (zh) * 2023-03-30 2024-10-01 海信视像科技股份有限公司 显示设备及音频广播方法
CN118741211A (zh) * 2023-03-30 2024-10-01 海信视像科技股份有限公司 显示设备及音频广播方法
CN118741212A (zh) * 2023-03-30 2024-10-01 海信视像科技股份有限公司 显示设备及音频广播方法
CN118741210A (zh) * 2023-03-30 2024-10-01 海信视像科技股份有限公司 显示设备及音频广播方法

Also Published As

Publication number Publication date
CN121399956A (zh) 2026-01-23
CN119629408A (zh) 2025-03-14

Similar Documents

Publication Publication Date Title
US20260023525A1 (en) Display apparatus and method therefor
CN119583872A (zh) 显示设备及音频广播方法
JP2026034572A (ja) 表示装置、表示装置連携システム、及び音声再生方法
WO2022088899A1 (zh) 显示设备、显示设备与外接音响的通信方法及外接音响音频输出方法
CN119629408A (zh) 显示设备及音频广播方法
US20040133430A1 (en) Sound apparatus, and audio information acquisition method in sound apparatus
CN120980490A (zh) 显示设备及音量调节方法
CN120980489A (zh) 显示设备及音量调节方法
JP7810612B2 (ja) 放送システム、受信機、受信方法、及びプログラム
WO2026000999A1 (zh) 显示设备及声道配置方法
CN118872280A (zh) 显示设备、蓝牙设备和数据处理方法
CN120353421A (zh) 显示设备及音频控制方法
CN116939270A (zh) 一种显示设备及播放参数的设置方法
CN120353423A (zh) 显示设备及多窗口控制方法

Legal Events

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

Ref document number: 25776242

Country of ref document: EP

Kind code of ref document: A1