WO2022022652A1 - Media content sharing method and apparatus - Google Patents

Media content sharing method and apparatus Download PDF

Info

Publication number
WO2022022652A1
WO2022022652A1 PCT/CN2021/109368 CN2021109368W WO2022022652A1 WO 2022022652 A1 WO2022022652 A1 WO 2022022652A1 CN 2021109368 W CN2021109368 W CN 2021109368W WO 2022022652 A1 WO2022022652 A1 WO 2022022652A1
Authority
WO
WIPO (PCT)
Prior art keywords
media content
source
destination device
source device
message
Prior art date
Application number
PCT/CN2021/109368
Other languages
French (fr)
Chinese (zh)
Inventor
杨毅轩
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022022652A1 publication Critical patent/WO2022022652A1/en

Links

Images

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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • H04N21/23895Multiplex stream processing, e.g. multiplex stream encrypting involving multiplex stream encryption
    • 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/41Structure of client; Structure of client peripherals
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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
    • 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 or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • 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 or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43632Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • H04N21/43635HDMI
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • H04N21/43853Multiplex stream processing, e.g. multiplex stream decrypting involving multiplex stream decryption
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/632Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices

Definitions

  • the present application relates to the field of communications, and in particular, to a method and apparatus for sharing media content.
  • a set-top box is a device installed on a TV to extend the functions of the TV.
  • a set-top box can receive signals (analog and/or digital) from cable, satellite dishes, broadband networks, and terrestrial broadcasts.
  • the set-top box processes the signal and sends it to the TV, and the TV can display the program content.
  • one set-top box can be used by one TV. If users want to watch the content in the set-top box on other devices (for example, another TV), they need to use a one-to-two screen splitter to achieve simultaneous playback of different TVs.
  • Embodiments of the present application provide a method and apparatus for sharing media content, which enables a user to watch media content from a source device (eg, a TV set) on a destination device (eg, a mobile phone, a tablet, a speaker with a screen, etc.).
  • a source device eg, a TV set
  • a destination device eg, a mobile phone, a tablet, a speaker with a screen, etc.
  • an embodiment of the present application provides a media content sharing method, including: a destination device displays a first media content source and a second media content source; the first media content source and the second media content source are associated with the first source device ; The destination device sends the first message to the first source device in response to the user's operation of selecting the source of the first media content; the first source device, in response to receiving the first message, sends to the destination device the data received from the first input port from the first source device.
  • the first media content of an electronic device receives the first media content and plays the first media content; the destination device sends a second message to the first source device in response to the user's operation of selecting the source of the second media content; the first In response to receiving the second message, the source device sends the second media content from the second electronic device received from the second input port to the destination device; the destination device receives the second media content and plays the second media content.
  • the user can watch the electronic device (the first electronic device or the second electronic device, the first electronic device) connected to the first source device (eg, TV) on the destination device (eg, mobile phone, tablet, speaker with screen, etc.).
  • the second electronic device may be, for example, the media content in a set-top box, and the user can switch between different media content sources, which can improve user experience.
  • the first message includes the identifier of the first input port
  • the second message includes the identifier of the second input port.
  • the first input port or the second input port may be an HDMI port
  • the identifier of the first input port may be, for example, HDMI-1
  • the identifier of the second input port may be, for example, HDMI-2.
  • the user can watch the HDMI-1 media content of the first source device (ie the first media content) or the HDMI-2 media content of the first source device (ie the second media content) on the destination device, and the user can Switching between different media content sources can improve user experience.
  • the source of the first media content includes an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or the first media content At least one of the program information of the second media content;
  • the source of the second media content includes the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the second media content at least one of the program information.
  • the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc.
  • the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV”). 025"), etc.
  • the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
  • the method before the destination device displays the first media content source and the second media content source, the method further includes: in response to the user's operation of opening the first application, the destination device sends a third message; the first source device sends the first media content source and the second media content source to the destination device in response to receiving the third message.
  • the destination device may receive and display the first media content source and the second media content source for the user to select.
  • the method further includes: establishing a peer-to-peer (P2P) connection between the destination device and the first source device, Or the destination device and the first source device are connected to the same local area network.
  • P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on.
  • the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network and display the media content for viewing by the user.
  • the first input port or the second input port is a high-definition multimedia interface HDMI port, an audio and video AV port, a wireless fidelity (wireless fidelity, WIFI) port or a wired network card.
  • the destination device displaying the first media content source and the second media content source includes: the destination device displaying the first media content source, the second media content source and the third media content source; the third media content source
  • the source is associated with the second source device; the destination device sends a fourth message to the second source device in response to the user's operation of selecting the third media content source; the second source device, in response to receiving the fourth message, sends a message from the second source device to the destination device.
  • the third media content from the third electronic device is received by the three input ports; the destination device receives the third media content and plays the third media content.
  • the destination device can establish connections with multiple source devices (for example, a first source device and a second source device), and display media content sources from multiple source devices (the first media content source from the first source device). and a second source of media content, and a third source of media content from the second source device).
  • multiple source devices for example, a first source device and a second source device
  • the user can select and play the media content source he is interested in from multiple media content sources from multiple source devices, which can improve user experience.
  • the method further includes: the destination device, in response to the user's operation of selecting the first channel, sends a fifth message to the second source device; and the second source device, in response to receiving the fifth message, sends to the switch
  • the device sends a sixth message;
  • the switching device sends a seventh message to the third electronic device in response to receiving the sixth message;
  • the third electronic device obtains the media content of the first channel in response to receiving the seventh message, and sends the first
  • the media content of the channel is sent to the second source device;
  • the second source device sends the media content of the first channel to the destination device;
  • the destination device receives the media content of the first channel and plays the media content of the first channel.
  • the user can switch the channel (channel change) on the destination device without the user interacting with the source device (eg, the second source device) to change the channel (eg, go to the room where the source device is located to perform the channel change operation), which can improve the user experience.
  • the source device eg, the second source device
  • the switching device sending the seventh message to the second electronic device in response to receiving the sixth message includes: the switching device sending the seventh message to the second electronic device through an infrared or Bluetooth connection.
  • the method further includes: the first source device receives the first message from the first electronic device. a media content. That is, after receiving the first message, the first source device may receive the first media content from the first electronic device. Alternatively, before the first source device receives the first message, it can receive the first media content from the first electronic device and buffer the first media content, and after receiving the first message, it can send the first media content to the destination device.
  • the first source device includes a first source manager, a first SoC, and a first transmission module
  • the first source device receiving the first media content from the first electronic device includes: a first source manager Read the first media content of the first electronic device from the first input port, and send the first media content to the first SoC; the first SoC compresses the first media content, and sends the compressed first media content to The first transmission module, the first transmission module sends the compressed first media content to the destination device.
  • the 4k media content can be compressed into 1080p or 960p through the first SoC and sent to the destination device, without the destination device performing compression processing, which can save the processing power consumption of the destination device.
  • the method further includes: the first SoC decrypts the first media content based on a high-bandwidth digital content protection technology (high-bandwidth digital content protection, HDCP); the first transmission module compresses the first media content based on HDCP After the first media content is encrypted. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
  • HDCP high-bandwidth digital content protection
  • the first source device includes a first source manager and a first transmission module
  • the first source device receiving the first media content from the first electronic device includes: the first source manager receives the first input from the first source device.
  • the port reads the first media content of the first electronic device, and sends the first media content to the first transmission module, and the first transmission module sends the first media content to the destination device. That is, the first source device can directly send the first media content of the first electronic device to the destination device without performing encryption, decryption or compression processing, which can improve transmission efficiency.
  • the first source device further includes a first display module and a first speaker
  • the method further includes: after the first SoC receives the first media content, decoding the first media content, and decoding the decoded
  • the video content in the processed first media content is sent to the first display module, and the audio content in the decoded and processed first media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content.
  • both the first source device and the destination device can play the first media content. For example, when the user watches the live program of the set-top box through the TV in the living room, if the user moves to the kitchen or bedroom, the user can play the first media content through other devices (for example, a mobile phone or a tablet). ) to continue watching live programs, which can improve user experience.
  • the first source device further includes a first display module and a first speaker
  • the method further includes: the first source manager, the first display module and the first speaker are in a sleep state.
  • the destination device can obtain the first media content through the first source device and play the first media content, and the first source device can turn off the screen or stand by (that is, the first source manager, the first display module and the first speaker are in a dormant state). ) can save the power consumption of the first source device.
  • the first source device includes a first connection management module
  • the destination device includes a second connection management module
  • the method further includes: the first connection management module and the second connection management module transmit a heartbeat based on a preset period information.
  • the "heartbeat" can be used to ensure that the first connection management module is in a running state, and when the first connection management module receives a specific message (for example, the first message) sent by the second connection management module
  • the destination device can still interact with the first source device without actively turning on the first source device (for example, the user can Actively wake up the first source device), which can improve the user experience.
  • the first source device further includes a first display module and a first speaker
  • the method further includes: the first SoC receives the fourth media content, performs decoding processing on the fourth media content, and performs decoding processing on the fourth media content.
  • the video content in the fourth media content is sent to the first display module, and the audio content in the decoded fourth media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content .
  • the first source device can play the fourth media content
  • the fourth media content can come from other input ports (for example, the fourth input port) or a router
  • the destination device can obtain the first media content through the first source device and play the first media content.
  • the media content, that is, the destination device and the first source device can play different media content respectively, which improves the utilization rate of the destination device and the first source device.
  • the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker, and the destination device receives the first media content and plays the first media content, including: a second transmission module Receives the first media content from the first transmission module, sends the first media content to the second SoC, and the second SoC decompresses and decodes the first media content; the second SoC decompresses and decodes the first media content.
  • the video content in the media content is sent to the second display module, and the decompressed and decoded audio content in the first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content.
  • the destination device can perform decompression processing on the compressed first media content before playing. In this way, the user can watch the first media content sent by the first source device on the destination device.
  • the method further includes: the second transmission module decrypts the first media content based on the high-bandwidth digital content protection technology HDCP. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
  • the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker
  • the destination device receives the first media content and plays the first media content, including: a second transmission module Receive the first media content from the first transmission module, send the first media content to the second SoC, and the second SoC decodes the first media content; the second SoC decodes the video content in the first media content It is sent to the second display module, and the audio content in the decoded first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content.
  • the user can watch the first media content sent by the first source device on the destination device.
  • an embodiment of the present application provides a media content sharing method, including: a destination device displays a first media content source and a second media content source; the first media content source and the second media content source are associated with the first source device ; the destination device sends a first message to the first source device in response to the user's operation of selecting the source of the first media content, and the first message is used to indicate the first input port of the first source device; the destination device receives the first message from the first source device a media content, and play the first media content; the destination device responds to the user's operation of selecting the source of the second media content, and sends a second message to the first source device, where the second message is used to indicate the second input port of the first source device ; The destination device receives the second media content and plays the second media content.
  • the first message includes the identifier of the first input port
  • the second message includes the identifier of the second input port.
  • the first input port or the second input port may be an HDMI port
  • the identifier of the first input port may be, for example, HDMI-1
  • the identifier of the second input port may be, for example, HDMI-2.
  • the source of the first media content includes an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or the first media content At least one of the program information of the second media content;
  • the source of the second media content includes the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the second media content at least one of the program information.
  • the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc.
  • the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV”). 025"), etc.
  • the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
  • the method further includes: in response to the user's operation of opening the first application, the destination device sends a third The third message is used to request the media content source of the first source device, and the media content source of the first source device includes the first media content source and the second media content source.
  • the method further includes: establishing a peer-to-peer (P2P) connection between the destination device and the first source device, Or the destination device and the first source device are connected to the same local area network.
  • P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on.
  • the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network.
  • the first input port or the second input port is a high-definition multimedia interface HDMI port, an audio and video AV port, a wireless fidelity (wireless fidelity, WIFI) port or a wired network card.
  • the destination device displaying the first media content source and the second media content source includes: the destination device displaying the first media content source, the second media content source and the third media content source; the third media content source The source is associated with the second source device; the destination device sends a fourth message to the second source device in response to the user's operation of selecting the source of the third media content, the fourth message is used to indicate the third input port, and the destination device from the second source device
  • the third media content is received and the third media content is played. That is, the destination device can establish connections with multiple source devices (for example, a first source device and a second source device), and display media content sources from multiple source devices (the first media content source from the first source device). and a second source of media content, and a third source of media content from the second source device). In this way, the user can select and play the media content source he is interested in from multiple media content sources from multiple source devices, which can improve user experience.
  • the method further includes: in response to the user's operation of selecting the first channel, the destination device sends a fifth message to the second source device; the fifth message is used to request the media content of the first channel, and the purpose The device receives the media content of the first channel from the second source device, and plays the media content of the first channel.
  • the user can switch the channel (channel change) on the destination device without the user interacting with the source device (eg, the second source device) to change the channel (eg, go to the room where the source device is located to perform the channel change operation), which can improve the user experience.
  • the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker, and the destination device receives the first media content and plays the first media content, including: a second transmission module Receives the first media content from the first transmission module, sends the first media content to the second SoC, and the second SoC decompresses and decodes the first media content; the second SoC decompresses and decodes the first media content.
  • the video content in the media content is sent to the second display module, and the decompressed and decoded audio content in the first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content.
  • the destination device can perform decompression processing on the compressed first media content before playing. In this way, the user can watch the first media content sent by the first source device on the destination device.
  • the method further includes: the second transmission module decrypts the first media content based on the high-bandwidth digital content protection technology HDCP. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
  • the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker
  • the destination device receives the first media content and plays the first media content, including: a second transmission module Receive the first media content from the first transmission module, send the first media content to the second SoC, and the second SoC decodes the first media content; the second SoC decodes the video content in the first media content It is sent to the second display module, and the audio content in the decoded first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content.
  • the user can watch the first media content sent by the first source device on the destination device.
  • an embodiment of the present application provides a method for sharing media content, including: a first source device, in response to receiving a first message from a destination device, sends a message received from a first input port from a first electronic device to the destination device the first media content; the first source device, in response to receiving the second message from the destination device, sends the second media content from the second electronic device received from the second input port to the destination device.
  • the first message includes the identifier of the first input port
  • the second message includes the identifier of the second input port.
  • the first input port or the second input port may be an HDMI port
  • the identifier of the first input port may be, for example, HDMI-1
  • the identifier of the second input port may be, for example, HDMI-2.
  • the method further includes: in response to receiving the third message, the first source device sends the first media content source and the second media content source to the destination device.
  • the source of the first media content includes an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or the first media content At least one of the program information of the second media content;
  • the source of the second media content includes the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the second media content at least one of the program information.
  • the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc.
  • the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV”). 025"), etc.
  • the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
  • the method further includes: establishing a peer-to-peer (P2P) connection between the first source device and the destination device, or the first source device and the destination device are connected to the same local area network.
  • P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on.
  • the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network.
  • the first input port or the second input port is a high-definition multimedia interface HDMI port, an audio and video AV port, a wireless fidelity (wireless fidelity, WIFI) port or a wired network card.
  • the method further includes: the first source device receiving the first media content from the first electronic device. That is, after receiving the first message, the first source device may receive the first media content from the first electronic device. Alternatively, before the first source device receives the first message, it may receive the first media content from the first electronic device, cache the first media content, and after receiving the first message, may send the first media content to the destination device.
  • the first source device includes a first source manager, a first SoC, and a first transmission module
  • the first source device receiving the first media content from the first electronic device includes: a first source manager Read the first media content of the first electronic device from the first input port, and send the first media content to the first SoC; the first SoC compresses the first media content, and sends the compressed first media content to The first transmission module, the first transmission module sends the compressed first media content to the destination device.
  • the 4k media content can be compressed into 1080p or 960p through the first SoC and sent to the destination device, without the destination device performing compression processing, which can save the processing power consumption of the destination device.
  • the method further includes: the first SoC decrypts the first media content based on a high-bandwidth digital content protection technology (high-bandwidth digital content protection, HDCP); the first transmission module compresses the first media content based on HDCP After the first media content is encrypted. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
  • HDCP high-bandwidth digital content protection
  • the first source device includes a first source manager and a first transmission module
  • the first source device receiving the first media content from the first electronic device includes: the first source manager receives the first input from the first source device.
  • the port reads the first media content of the first electronic device, and sends the first media content to the first transmission module, and the first transmission module sends the first media content to the destination device. That is, the first source device can directly send the first media content of the first electronic device to the destination device.
  • the first source device further includes a first display module and a first speaker
  • the method further includes: after the first SoC receives the first media content, decoding the first media content, and decoding the decoded
  • the video content in the processed first media content is sent to the first display module, and the audio content in the decoded and processed first media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content.
  • both the first source device and the destination device can play the first media content. For example, when the user watches the live program of the set-top box through the TV in the living room, if the user moves to the kitchen or bedroom, the user can play the first media content through other devices (for example, a mobile phone or a tablet). ) to continue watching live programs, which can improve user experience.
  • the first source device further includes a first display module and a first speaker
  • the method further includes: the first source manager, the first display module and the first speaker are in a sleep state.
  • the destination device can obtain the first media content through the first source device and play the first media content, and the first source device can turn off the screen or stand by (that is, the first source manager, the first display module and the first speaker are in a dormant state). ) can save the power consumption of the first source device.
  • the first source device includes a first connection management module
  • the destination device includes a second connection management module
  • the method further includes: the first connection management module and the second connection management module transmit a heartbeat based on a preset period information.
  • the "heartbeat" can be used to ensure that the first connection management module is in a running state, and when the first connection management module receives a specific message (for example, the first message) sent by the second connection management module
  • the destination device can still interact with the first source device without actively turning on the first source device (for example, the user can Actively wake up the first source device), which can improve the user experience.
  • the first source device further includes a first display module and a first speaker
  • the method further includes: the first SoC receives the fourth media content, performs decoding processing on the fourth media content, and performs decoding processing on the fourth media content.
  • the video content in the fourth media content is sent to the first display module, and the audio content in the decoded fourth media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content .
  • the first source device can play the fourth media content
  • the fourth media content can come from other input ports (for example, the fourth input port) or a router
  • the destination device can obtain the first media content through the first source device and play the first media content.
  • the media content, that is, the destination device and the first source device can play different media content respectively.
  • the present application provides a chip system including one or more interface circuits and one or more processors.
  • the interface circuit and the processor are interconnected by wires.
  • the above chip system can be applied to a destination device including a communication module and a memory.
  • the interface circuit is configured to receive signals from the memory of the electronic device and send the received signals to the processor, the signals including computer instructions stored in the memory.
  • the destination device can execute the method described in the first aspect or the second aspect and any possible design manners thereof.
  • the above chip system may be applied to a first source device including a communication module and a memory.
  • the interface circuit is configured to receive signals from the memory of the home appliance and send the received signals to the processor, the signals including computer instructions stored in the memory.
  • the processor executes the computer instructions, the first source device may perform the method as described in the first aspect or the third aspect and any possible designs thereof.
  • the present application provides a computer-readable storage medium comprising computer instructions.
  • the target device is caused to perform the method described in the first aspect, the second aspect and any possible design manners thereof.
  • the computer instructions are executed on the first source device, the first source device is caused to perform the method described in the first aspect, the third aspect and any possible design manners thereof.
  • the present application provides a computer program product that, when the computer program product is run on a computer, causes the computer to perform the first aspect, the second aspect or the third aspect and any possible designs thereof method described.
  • the present application provides a media content sharing system, including a destination device and a first source device, wherein the destination device can execute the method described in the first aspect or the second aspect and any possible design manners thereof , the first source device may execute the method described in the first aspect or the third aspect and any possible design manners thereof.
  • the above-mentioned media content sharing system may further include a second source device, a switching device, and an electronic device.
  • a method involving a source device, a switching device and an electronic device (a first electronic device, a second electronic device or a third electronic device).
  • FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a hardware structure of a device 110 according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of another device 110 provided by an embodiment of the present application.
  • 4A is a schematic diagram of signal interaction applicable to a media content sharing method provided by an embodiment of the present application.
  • 4B is a schematic diagram of signal interaction applicable to a media content sharing method provided by an embodiment of the present application.
  • 5A is a schematic diagram of another signal interaction suitable for a media content sharing method provided by an embodiment of the present application.
  • 5B is a schematic diagram of another signal interaction suitable for a media content sharing method provided by an embodiment of the present application.
  • FIG. 6 is a schematic display diagram of a destination device and a source device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application.
  • FIG. 8 is a schematic display diagram of another destination device and a source device provided by an embodiment of the present application.
  • FIG. 9 is another schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application.
  • FIG. 10 is a schematic display diagram of yet another destination device and source device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of signal interaction between a destination device 100, a source device 200, and a source device 500 according to an embodiment of the application;
  • FIG. 12 is a schematic display diagram of yet another destination device and source device provided by an embodiment of the present application.
  • FIG. 13 is another schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application;
  • FIG. 14A is a schematic display diagram of yet another destination device and source device provided by an embodiment of the present application.
  • FIG. 14B is another schematic diagram of signal interaction between the destination device 100 and the source device 200 according to an embodiment of the present application.
  • 15 is a schematic display diagram of yet another destination device and a source device provided by an embodiment of the present application.
  • FIG. 16 is another schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • one set-top box can be used by one TV. If users want to watch the content in the set-top box on other devices (for example, another TV), they need to use a one-to-two screen splitter to achieve simultaneous playback of different TVs. This requires HDMI cables that meet the length requirements for wiring, which is difficult to operate. Moreover, if the user wants to watch the content in the set-top box on a device such as a mobile phone or a tablet, since these devices do not have an HDMI port, the content sharing of the set-top box cannot be achieved through a screen splitter.
  • An embodiment of the present application provides a media content sharing method, where a destination device can display a first media content source and a second media content source; the first media content source and the second media content source are associated with the first source device; the destination device responds to The operation of the user selecting the source of the first media content sends the first message to the first source device; the first source device, in response to receiving the first message, sends the first message received from the first input port from the first electronic device to the destination device.
  • the destination device receives the first media content and plays the first media content; the destination device sends a second message to the first source device in response to the user's operation of selecting the source of the second media content; the first source device responds to receiving To the second message, send the second media content from the second electronic device received from the second input port to the destination device; the destination device receives the second media content and plays the second media content.
  • the media content source (the first media content source or the second media content source) may include the identification of the input port, the identification of the source device, the application program corresponding to the media content, the channel information of the media content or the program information of the media content. at least one.
  • Media content sources may also be referred to as data sources.
  • Media content sources may include external media content sources (which may also be referred to as external data sources).
  • media content sources may include external media content sources and native media content sources (also referred to as native data sources).
  • the source of external media content comes from the source device (eg, the first source device, the second source device), and the source of local media content comes from the destination device itself or an electronic device directly connected to the destination device (eg, through HDMI or AV cable) connected set-top box).
  • the user can watch the media content from the first source device (eg, TV set) on the destination device (eg, mobile phone, tablet, speaker with screen, etc.), and the user can switch different media content sources to watch different media content sources.
  • Media content that can improve the user experience.
  • the user can watch the media in the electronic device connected to the first source device on the destination device without the need for an HDMI cable and a screen splitter, and without the need for user operation and arrangement. content, which can reduce user costs and improve user experience.
  • the system may include: one or more source devices (eg, source device 1 (first source device) to source device n (eg, second source device), where n is an integer greater than 1), One or more electronic devices (eg, set-top box 1 (first electronic device) to set-top box n (eg, second electronic device, third electronic device, etc.), where n is an integer greater than 1), one or more destination devices ( For example, destination device 1, destination device 2 to destination device m, where m is an integer greater than 1). There can be a P2P connection or a WiFi direct connection between each source device and each destination device.
  • source devices eg, source device 1 (first source device) to source device n (eg, second source device), where n is an integer greater than 1
  • One or more electronic devices eg, set-top box 1 (first electronic device) to set-top box n (eg, second electronic device, third electronic device, etc.
  • destination devices For example, destination device 1, destination device 2 to destination device m, where m is
  • the system may also include a router.
  • the n source devices and m destination devices can be connected to the same local area network based on routers.
  • each source device can be connected to one or more set-top boxes, and the source device and the set-top box can be connected through an HDMI cable/audio and video (audio and video, AV) cable.
  • the AV port may also be called a composite video connector.
  • the above system may further include a switching device (not shown), and the switching device may be used to switch the channel of the electronic device.
  • the source device or the destination device can be a smart screen/TV, mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, and Cell phones, personal digital assistants (personal digital assistants, PDAs), augmented reality (augmented reality, AR) ⁇ virtual reality (virtual reality, VR) devices, etc., the embodiments of the present application do not limit the specific form of the user equipment.
  • the electronic device may be a set-top box, and the set-top box may be a digital TV set-top box or a network TV set-top box.
  • the digital TV set-top box may include a digital set-top box for receiving cable TV, a digital set-top box for receiving satellite TV, and a digital set-top box for receiving terrestrial broadcast TV.
  • the digital set-top box may be, for example, an Internet Protocol television (Internet Protocol television, IPTV) set-top box.
  • IPTV Internet Protocol television
  • the set-top box can send the received media content (audio content, video content, channel information, program information, etc.) to the source device through an HDMI cable or an AV cable.
  • the media content may also be referred to as multimedia content, which is not limited in this application.
  • the media content remains unchanged, and the media data corresponding to the media content may be based on different The processing process changes, that is, the media content can correspond to different media data at different stages.
  • the destination device, the source device (eg, the first source device or the second source device), the electronic device (eg, the first electronic device, the second electronic device or the third electronic device) in the above communication system architecture ) or the switching device may be the device 110, and the device 110 may include: a processor 111, a memory 112, a wireless communication processing module 113, a power switch 114, a wired LAN communication processing module 115, an HDMI communication processing module 116, a universal serial bus (universal serial bus) serial bus, USB) communication processing module 117, display screen 118, audio module 119, speaker 119A, microphone 119B, and so on. in:
  • the processor 111 may be used to read and execute computer readable instructions.
  • the processor 111 may mainly include a controller, an arithmetic unit, and a register.
  • the controller is mainly responsible for instruction decoding, and sends out control signals for the operations corresponding to the instructions.
  • the arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of the instruction.
  • the hardware architecture of the processor 111 may be an application specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, an NP architecture, or the like.
  • ASIC application specific integrated circuit
  • the processor 111 may be used to parse the signals received by the wireless communication processing module 113 and/or the wired LAN communication processing module 115 .
  • the processor 111 can be used to perform corresponding processing operations according to the analysis result of the signal, such as responding to a data request, or controlling the display of the display screen 118 and/or the output of the audio module 119 according to the control request, and so on.
  • the processor 111 may also be configured to generate signals sent out by the wireless communication processing module 113 and/or the wired LAN communication processing module 115, such as Bluetooth broadcast signals, beacon signals, and the like.
  • Memory 112 is coupled to processor 111 for storing various software programs and/or sets of instructions.
  • memory 112 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 112 may store operating systems, such as embedded operating systems such as uCOS, VxWorks, RTLinux, and the like.
  • Memory 112 may also store communication programs that may be used to communicate with other devices.
  • the wireless communication processing module 113 may include a Bluetooth (BT) communication processing module 113A and a WLAN communication processing module 113B.
  • BT Bluetooth
  • one or more of the Bluetooth (BT) communication processing module 113A and the WLAN communication processing module 113B can listen to signals transmitted by other devices, such as probe requests, scan signals, etc., and can send response signals , such as a probe response, a scan response, etc., so that other devices can discover the device 110, establish a wireless communication connection with other devices, and communicate with other devices through one or more wireless communication technologies in Bluetooth or WLAN.
  • the WLAN communication processing module 113B may include one or more solutions for WLAN communication among Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.
  • one or more of the Bluetooth (BT) communication processing module 113A and the WLAN communication processing module 113B may also transmit signals, such as broadcasting Bluetooth signals, beacon signals, so that other devices can discover the device 110, And establish a wireless communication connection with other devices, and communicate with other devices through one or more wireless communication technologies in Bluetooth or WLAN.
  • signals such as broadcasting Bluetooth signals, beacon signals, so that other devices can discover the device 110, And establish a wireless communication connection with other devices, and communicate with other devices through one or more wireless communication technologies in Bluetooth or WLAN.
  • the device 110 may be connected to the Internet through a WLAN wireless communication technology, thereby establishing a communication connection with a server on the Internet (eg, a channel identification server, an on-demand resource server, etc.).
  • a server on the Internet eg, a channel identification server, an on-demand resource server, etc.
  • the wireless communication processing module 113 may also include an infrared communication processing module 113C.
  • the infrared communication processing module 113C can communicate with other devices (eg, remote controllers) through infrared remote control technology.
  • the power switch 114 may be used to control the supply of power to the display 118 from the power source.
  • the wired LAN communication processing module 115 can be used to communicate with other devices in the same LAN through the wired LAN, and can also be used to connect to the WAN through the wired LAN, and can communicate with the devices in the WAN.
  • the HDMI communication processing module 116 can be used to communicate with devices such as a set-top box through an HDMI port.
  • the HDMI communication processing module 116 may receive media content sent by a set-top box through an HDMI port, and so on.
  • the USB communication processing module 117 can be used to communicate with other devices through the USB interface.
  • Display screen 118 may be used to display images, video, and the like.
  • the display screen 118 can be a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED) display, an active-matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED) Display, flexible light-emitting diode (flexible light-emitting diode, FLED) display, quantum dot light-emitting diode (quantum dot emitting diodes, QLED) display and so on.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active-matrix organic light emitting diode
  • flexible light-emitting diode flexible light-emitting diode
  • FLED flexible light-emitting diode
  • QLED quantum dot light-emitting diode
  • the audio module 119 can be used to convert digital audio signal to analog audio signal output, and can also be used to convert analog audio input to digital audio signal. Audio module 119 may also be used to encode and decode audio signals. In some embodiments, the audio module 119 may be arranged in the processor 111 , or some functional modules of the audio module 119 may be arranged in the processor 111 . The audio module 119 can transmit audio signals to the wireless communication module 113 through a bus interface (such as a UART interface, etc.), so as to realize the function of playing audio signals through a Bluetooth speaker.
  • a bus interface such as a UART interface, etc.
  • the speaker 119A may be used to convert the audio signal transmitted by the audio module 119 into a sound signal.
  • the device 110 may also include a microphone 119B, also referred to as “microphone”, “microphone” for converting the acoustic signal into an electrical signal.
  • a microphone 119B also referred to as "microphone”, “microphone” for converting the acoustic signal into an electrical signal.
  • the device 110 described above may have more or fewer components than those shown in FIG. 2 , may combine two or more components, or may have different component configurations.
  • the various components shown in Figure 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
  • the device 110 may include: a television (television, TV) player (player), a speaker (speaker), and a TV application programming interface (API) , system on a chip (SoC), TV service (service), transmission module, connection management module, hardware input port and switching service API, etc.
  • a television television
  • TV television
  • speaker speaker
  • API TV application programming interface
  • SoC system on a chip
  • TV service service
  • transmission module connection management module
  • connection management module hardware input port and switching service API, etc.
  • the TV API is used to provide the service interface required for TV playback, and is also used to process the adaptation between the device 110 and other devices (remote devices).
  • the TV API can include far-end adaptation modules and near-end adaptation modules.
  • the remote adaptation module is used to process corresponding operations on the set-top box connected to the remote device (including switching HDMI ports, switching programs (switching live programs (ie, switching TV stations/channels), or switching on-demand programs), etc.).
  • the near-end adaptation module is used to process the corresponding operations on the set-top box connected to the device 110 (near-end device, that is, the machine) (including switching HDMI ports, switching programs (switching live programs (ie, switching TV stations/channels), or switching on-demand programs). )Wait).
  • Hardware input ports include tuner, HDMI port and AV port.
  • the TV service is used to manage the hardware input ports connected to the device 110, and can switch input ports (different input ports are connected to different set-top boxes, the set-top boxes provide external media content sources, and switching input ports is equivalent to switching set-top boxes or switching external media content sources) , data reading, etc., to support TV broadcasting services.
  • TV services may include Source Manager, DTV Player, and HDMI Player.
  • SourceManager can be responsible for managing/switching external media content sources and reading signals from external media content sources.
  • the HDMI player is used to detect whether there is a signal on the HDMI port. If there is a signal, it can read the media content from the HDMI port and transmit the media content to the SoC.
  • HDMI-1 when the user selects HDMI-1, an HDMI player can be started, the HDMI player can monitor the information of HDMI-1, complete the verification with the peer device, and then start to read the data of HDMI-1 (media content ).
  • the terrestrial digital television broadcast (DTV) player is used to detect whether there is a signal on the AV port, if there is a signal, it can read the media content from the DTV interface and transmit the media content to the SoC.
  • DTV digital television broadcast
  • the SoC can be responsible for data encryption and decryption processing and codec processing.
  • SoC refers to the integration of microprocessor, analog IP core, digital IP core and memory (or off-chip memory control interface) on a single chip.
  • the SoC may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, and a memory , video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU), etc.
  • different processing units may be independent devices, or may be integrated in the same processor.
  • the display module of the TV player can receive and display the video content sent by the SoC, and the speaker can receive and play the audio content sent by the SoC.
  • connection management module is used to provide connection management and command interaction across devices (device 110 and other devices).
  • the transport module is used to provide cross-device transport of media content.
  • the transmission module may package the media content into a series of data blocks, and the size of each data block may be the same or different, which is not limited in this application.
  • the switching service API is used to handle the adaptation of the device 110 with other devices (eg, a switching device, which may be an infrared control device for switching channels).
  • a switching device which may be an infrared control device for switching channels.
  • each module included in the first source device may be referred to as the first speaker, the first TV API, the first SoC, the first TV service, the first transmission module, The first connection management module, the first hardware input port, the first switching service API, etc.; the modules included in the destination device are referred to as the second speaker, the second TV API, the second SoC, the second TV service, the second transmission module, a second connection management module, a second hardware input port, a second switching service API, and so on. Exemplarily, as shown in FIG.
  • the first source device may be the source device 200, and the source device 200 may include a first application (for example, TV player 201), a first TV API (for example, TV API 202), a first A TV service (eg, TV service 203 ), a first connection management module (eg, connection management module 204 ), a first switching service API (eg, switching service API 205 ), a first transmission module (eg, transmission module 206 ) , a first SoC (eg, SoC 207), a first speaker (eg, speaker 208), a first hardware input port (eg, hardware input port 209), and the like.
  • a first application for example, TV player 201
  • a first TV API for example, TV API 202
  • a first A TV service eg, TV service 203
  • a first connection management module eg, connection management module 204
  • a first switching service API eg, switching service API 205
  • a first transmission module eg, transmission module 206
  • SoC
  • the destination device may be the destination device 100, and the destination device 100 may include a first application (eg, TV player 101 ), a second TV API (eg, TV API 102 ), a second TV service (eg, TV service 103 ), a second TV service (eg, TV service 103 ), a second TV API (eg, TV API 102 ), Two connection management modules (for example, connection management module 104), a second handover service API (for example, handover service API 105), a second transmission module (for example, transmission module 106), a second SoC (for example, SoC 107), a second Two speakers (eg, speaker 108), a second hardware input port (eg, hardware input port 109), and so on.
  • each module may also include corresponding sub-modules.
  • each module may also include corresponding sub-modules. For the functions of the above modules, reference may be made to the related descriptions below, which will not be repeated here.
  • an embodiment of the present application provides a method for sharing media content, including:
  • a P2P connection is established between the destination device and the first source device, or the destination device and the first source device are connected to the same local area network.
  • the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network.
  • the P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on.
  • the destination device In response to the user's operation of opening the first application, the destination device sends a third message to the first source device.
  • the first source device sends the first media content source and the second media content source to the destination device.
  • the destination device displays the first media content source and the second media content source; the first media content source and the second media content source are associated with the first source device.
  • the source of the first media content may include at least one of an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or program information of the first media content One;
  • the source of the second media content includes at least one of the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the program information of the second media content A sort of.
  • the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc.
  • the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV”). 025"), etc.
  • the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
  • the destination device sends a first message to the first source device in response to the user's operation of selecting the source of the first media content.
  • the first message may include the identifier of the first input port.
  • the first input port may be an HDMI port, an audio/video AV port, a WIFI port or a wired network card.
  • the first input port may be an HDMI port
  • the identifier of the first input port may be, for example, HDMI-1.
  • the first source device sends the first media content from the first electronic device received through the first input port to the destination device.
  • the first source device receives the first media content from the first electronic device in response to receiving the first message. In another possible design, the first source device receives the first media content from the first electronic device before receiving the first message.
  • the destination device receives the first media content, and plays the first media content.
  • the destination device sends a second message to the first source device in response to the user's operation of selecting the source of the second media content.
  • the second message may include the identifier of the second input port.
  • the second input port can be an HDMI port, an audio and video AV port, a WIFI port or a wired network card.
  • the second input port may be an HDMI port
  • the identifier of the second input port may be, for example, HDMI-2.
  • the first source device sends the second media content from the second electronic device received through the second input port to the destination device.
  • the destination device receives the second media content, and plays the second media content.
  • the above steps 401 to 410 are described by taking the first application as a TV player, the first media content as HDMI-1, and the second media content as HDMI-2 as an example.
  • the destination device can also establish a connection with the second source device (establish a P2P connection or connect to the same local area network), and obtain a third media content source from the second source device, so that the destination device displays the first A media content source, a second media content source, and a third media content source; the third media content source is associated with the second source device.
  • the above-mentioned media content sharing method may further include the following steps:
  • the destination device sends a fourth message to the second source device in response to the user's operation of selecting the third media content source.
  • the second source device sends the third media content from the third electronic device received from the third input port to the destination device.
  • the destination device receives the third media content, and plays the third media content.
  • the destination device In response to the user's operation of selecting the first channel, the destination device sends a fifth message to the second source device.
  • the fifth message may include information of the first channel, and the information of the first channel may be a previous channel, a next channel, or an identifier of a channel (eg, channel 024).
  • the second source device In response to receiving the fifth message, the second source device sends a sixth message to the switching device.
  • the switching device In response to receiving the sixth message, the switching device sends a seventh message to the third electronic device.
  • the switching device may send the seventh message to the second electronic device through an infrared or Bluetooth connection.
  • the third electronic device acquires the media content of the first channel, and sends the media content of the first channel to the second source device.
  • the second source device sends the media content of the first channel to the destination device.
  • the destination device receives the media content of the first channel, and plays the media content of the first channel.
  • the above steps 411 a to 418 are described by taking the third media content source as HDMI-3 and the fifth message-seventh message including the identifier of the first channel as an example.
  • a destination device eg, device 602
  • a first source device eg, device 601
  • the first source device is connected to a first electronic device (eg, a set-top box) through a first input port (eg, HDMI-1) 603) as an example, the process of selecting the media content source and playing the media content is described:
  • the device 601 may be a source device (eg, a TV), and the device 601 can currently display an interface 6011 of a live program, and the channel identifier 6012 of the live program may be CCTV1.
  • the device 603 is a set-top box connected to the device 601 , and the media content of the live program is sent by the device 603 to the device 601 .
  • the device 602 may be a destination device (for example, a tablet computer), and the main interface 6021 of the tablet computer may include icons of multiple applications, such as the icon of “today”, The icon of "Living Room TV", the icon of "Live TV” 6022, the icon of "Video”, etc.
  • the main interface 6021 may also include search controls, login controls, etc., which are not limited in this application.
  • the device 602 may receive an operation of the user clicking on the first application (eg, "Live TV” 6022 ), and in response to the operation, the device 602 may display an interface 6024 as shown in (c) of FIG. 6 .
  • the interface 6024 can display a live program, the channel ID 6023 of the live program is CCTV1, and the video content and audio content of the live program are received by the device 602 from the device 601.
  • the interface 6024 may further include a label 6025, and the content of the label 6025 may be, for example, "device 601, HDMI-1", which is used to prompt the user that the media content of the current live program is received from the HDMI-1 interface of the device 601.
  • the label 6025 can be displayed on the interface 6024 for a short period of time (eg, 1 s or 2 s), and then disappear to avoid affecting the user's viewing of the live program. After the user exits "live TV", the device 602 can be used to surf the Internet, play games, listen to songs, etc., which is not limited in this application.
  • the device 601 when the device 601 sends media content to the device 602, it can perform processing such as compression, encryption, and block transfer encoding, so that the live program displayed on the interface 6024 of the device 602 may slightly lag behind the interface 6011 of the device 601 Show the live program.
  • processing such as compression, encryption, and block transfer encoding
  • the device 601 may cache the media content of the live program for a specific time, the specific time is determined according to the transmission delay time between the device 601 and the device 602, and the live program is played after a specific time, so as to It is ensured that the device 601 and the device 602 can play the live program synchronously.
  • FIG. 7 a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided.
  • the source device 200 is connected to the set-top box 300
  • the set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092 .
  • the destination device 100 receives the user's operation of opening the TV player 101 (for example, the TV player 101 may be a "live TV" application), and starts the TV player.
  • the TV player sends a first message to the TV API 102.
  • the first message may include a device identity (ID) (eg, source device 200) and a port ID (eg, HDMI-1).
  • ID device identity
  • the TV player 101 calls the remote adaptation module 1021 of the TV API 102.
  • the remote adaptation module 1021 may send the first message to the connection management module 104 .
  • the connection management module 104 can manage the connection between the destination device 100 and the source device 200 , and can perform instruction interaction with the source device 200 .
  • the connection management module may remove the device identification from the first message and only send the port ID to the connection management module 204 of the source device 200, or the connection management module 104 may directly send the port ID (eg, HDMI-1) to the source device 200
  • the connection management module 204 may send the port ID to the source manager 2031 of the TV service 203 .
  • the source manager 2031 determines that the media content needs to be read from HDMI-1 according to the port ID, and can call the HDMI player 2033 to read the media content (first media content) from HDMI-1, and send the media content through the HDMI player 2033 to SoC 207.
  • the SoC 207 sends the media content to the transport module 206.
  • the transmission module 206 may transmit the media content to the transmission module 106 of the destination device 100 .
  • the transport module 106 may transmit the media content to the SoC 107 . SoC 107.
  • the SoC 107 can decode the video content in the media content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content in the media content, and send the decoded video content to the display module 1011 of the TV player 101.
  • the decoded audio content is sent to the speaker 108 , so that the destination device 100 can play the program of the set-top box 300 .
  • the SoC 207 can also send the video content to the display module 2011 of the TV player 201, and send the audio content to the speaker 208, so that the source device 200 can play the program of the set-top box 300.
  • multiple devices (destination device and source device) in the family can share one set-top box, that is, one set-top box can satisfy the needs of two devices (for example, two TV sets) to watch programs at the same time, which can reduce the cost of users .
  • sharing a set-top box by multiple devices refers to sharing all programs in the set-top box, including live programs (such as Spring Festival Gala live broadcast, military parade live broadcast, World Cup live broadcast, TV drama premiere, variety show live broadcast, etc.) and on-demand programs (for example, movies, reruns of TV shows, variety shows, etc.).
  • live programs such as Spring Festival Gala live broadcast, military parade live broadcast, World Cup live broadcast, TV drama premiere, variety show live broadcast, etc.
  • on-demand programs for example, movies, reruns of TV shows, variety shows, etc.
  • digital cable TV has advantages in program sources, for example, digital cable TV has the exclusive copyrights of cctv3, cctv5, cctv6 and cctv8, users can only watch these live programs through the set-top box, which is generally placed in a fixed location ( For example, the living room), when users are watching live programs, they are easy to miss wonderful moments due to temporary things (such as going to the toilet, cooking). Therefore, users often have a desire to move to the kitchen and bedroom to continue watching. Based on the method provided by the embodiment of the present application, the user can continue to watch the live program through other devices (eg, mobile phone or tablet), which can improve the user experience.
  • other devices eg, mobile phone or tablet
  • the SoC 207 can decrypt the media content and then compress it, for example, compress the 4k media content into 1080p or 960p, and then send the compressed media content to the transmission module 106 through the transmission module 206 .
  • the transmission module 206 can encrypt the media content based on HDCP, and then transmit the encrypted media content to the transmission module 106.
  • the transmission module 106 decrypts the media content based on HDCP, and then uploads the decrypted media content to the SoC 107, and the SoC 107 can encrypt the media content. Perform decompression and decoding processing. In this way, it can be ensured that the media content can be safely shared.
  • a destination device eg, device 602 is used to establish a connection with a first source device (eg, device 601), and the first source device is connected to a first electronic device (eg, Set-top box 603), take the scenario of connecting a second electronic device (for example, set-top box 604) through a second input port (for example, HDMI-2) as an example, and describe the process of selecting a media content source and playing media content:
  • the device 601 may be a source device (eg, a TV), and the device 601 can currently display an interface 6011 of a live program, and the channel identifier 6012 of the live program may be CCTV8.
  • Device 603 and device 604 are set-top boxes connected to device 601 .
  • Device 603 can be connected to device 601 through an HDMI-1 port, and device 604 can be connected to device 601 through an HDMI-2 port.
  • the media content of the live program displayed in the interface 6011 may be received by the device 601 from the device 604 through the HDMI-2 port.
  • FIG. 8 the device 601 may be a source device (eg, a TV), and the device 601 can currently display an interface 6011 of a live program, and the channel identifier 6012 of the live program may be CCTV8.
  • Device 603 and device 604 are set-top boxes connected to device 601 .
  • Device 603 can be connected to device 601 through an HDMI-1 port
  • device 604 can be connected to device 601 through an HDMI
  • the device 602 may be a destination device (for example, a tablet computer), and the main interface 6021 of the tablet computer may include icons of multiple applications, such as a picture of the “Today” APP. , the icon of "Living Room TV", the icon of "Live TV” 6022, the icon of "Video”, etc.
  • the main interface 6021 may also include search controls, login controls, etc., which are not limited in this application.
  • the device 602 may receive an operation of the user clicking on “Live TV” 6022, and in response to the operation, the device 602 may display an interface 6024 as shown in (c) in FIG. 8 , the interface 6024 includes a preview interface 6026 and a media content source list 6027 .
  • the list of media content sources 6027 may include external media content sources and native media content sources.
  • the external media content sources may include, for example, the HDMI-1 of the living room TV (ie, device 601 ) and the HDMI-2 of the living room TV, and the local media content sources may include, for example, the local AV interface.
  • the identifiers (device identifiers and port identifiers) of external media content sources may be acquired during the process of establishing a connection between the device 602 and the device 601 . Exemplarily, as shown in (d) of FIG.
  • the device 602 may display a prompt box 6025 to prompt access to the HDMI-2 interface of the living room TV, and may The video content from the HDMI-2 interface is displayed in the preview interface 6026, and the speakers of the device 602 can play the audio content from the HDMI-2 interface.
  • the prompt text "connected” may be displayed after the identification of the selected media content source (for example, HDMI-2), and the prompt text "not connected” may be displayed after the identification of other unselected media content sources. .
  • the user can switch different external media content sources on the destination device, so as to be able to access different external media content from different external media content sources. source to watch the show.
  • the destination device is a touch device such as a mobile phone or tablet
  • the user can switch the source of the external media content through a touch operation. For example, as shown in (d) in Figure 8, when (living room TV) HDMI-2 is selected, the user can click HDMI-1 (living room TV) again to switch from (living room TV) HDMI-2 to (living room TV) HDMI-2 TV) HDMI-1.
  • the user can switch the source of the external media content through voice or a remote control device (eg, a remote control).
  • a remote control device eg, a remote control
  • users can also switch from external media content sources to native media content sources (for example, from HDMI-2 (living room TV) to AV interface), or from native media content sources to external media content sources (for example, Switching from the AV interface to HDMI-2 (living room TV)) is not limited in this application.
  • the "Live TV” application can save the media content source information (for example, HDMI-2 (living room TV)) selected by the user last time, and when the user opens the live broadcast application next time, By default, the media content source information selected by the user last time is selected.
  • media content source information for example, HDMI-2 (living room TV)
  • FIG. 9 a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided.
  • a P2P connection may be established between the destination device 100 and the source device 200, or the destination device 100 and the source device 200 may be connected to the same local area network.
  • the source device 200 is connected to two set-top boxes, which are the set-top box 300 and the set-top box 400 respectively.
  • the set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092
  • the set-top box 400 is connected to the source device 200 through HDMI-2 (port) 2094 .
  • the destination device 100 may receive the user's operation of opening the TV player 101 (for example, the TV player 101 may be a "live TV" application), and start the TV player.
  • the TV player 101 may send a second message to the TV API 102 in response to the user's operation to select HDMI-2 (living room TV, i.e. source device 200) from the TV player 101's list of media content sources.
  • the second message may include the device identification (ie source device 200) and the port identification (ie HDMI-2).
  • the TV player 101 can send the second message to the connection management module 104 through the remote adaptation module 1021 of the TV API 102.
  • the connection management module 104 can manage the connection between the destination device 100 and the source device 200 , and can perform instruction interaction with the source device 200 .
  • the connection management module may remove the device identification from the second message and only send the port ID to the connection management module 204 of the source device 200, or the connection management module 104 may directly send the port ID (eg, HDMI-2) to the source device 200
  • the connection management module 204 After receiving the port ID, the connection management module 204 calls the source manager 2031 of the TV service 203 .
  • the source manager 2031 calls the HDMI player 2033 to read the media content from the HDMI-2, and sends the media content to the SoC 207 through the HDMI player 2033.
  • the SoC 207 sends the media content to the transport module 206.
  • the transmission module 206 may transmit the media content to the transmission module 106 of the destination device 100 .
  • the transport module 106 may transmit the media content to the SoC 107 .
  • the SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 400 .
  • the source manager 2031 of the source device 200 reads the media content from the HDMI-2, it can send the media content to the SoC 207 at the same time, and the SoC 207 can send the video content to the display module 2011 of the TV player 201, and the audio The content is sent to the speakers 208 so that the source device 200 can play the set-top box 400 programming.
  • multiple devices (destination device and source device) in the family can share one set-top box, that is, one set-top box can satisfy the demands of two devices (eg, two TV sets) for watching programs at the same time, which can reduce user costs.
  • a connection is established between the destination device (for example, device 602) and two source devices (including a first source device and a second source device, the first source device may be device 601, for example, and the second source device may be device 605, for example),
  • the first source device connects to a first electronic device (eg, set-top box 603 ) through a first input port (eg, HDMI-1), and connects to a second electronic device (eg, set-top box 604 ) through a second input port (eg, HDMI-2) ), the second source device is connected to the third electronic device (for example, the set-top box 606) through the third input port (for example, HDMI-3) as an example, the process of selecting the media content source and playing the media content is described:
  • the device 601 can be, for example, a TV, and the device 601 can currently display an interface 6011 of a live program, and the channel identifier 6012 of the live program can be CCTV8.
  • Device 603 and device 604 may be set-top boxes connected to device 601 , and the media content of the live program may be received by device 601 from device 603 or device 604 .
  • the device 605 may be a source device (eg, a TV), and the device 605 can currently display an interface 6051 of a live program, and the channel identifier 6052 of the live program may be Hunan Satellite TV.
  • the device 603 and the device 604 may be set-top boxes connected to the device 605 , and the media content of the live program may be received by the device 605 from the device 606 .
  • the device 602 may be a destination device (for example, a tablet computer), and the device 602 may display an interface 6024 as shown in (c) in FIG. 10 , the interface 6024 includes a preview interface 6026 and a list of media content sources 6027.
  • the media content source list 6027 may include external media content sources and local media content sources.
  • External media content sources may include, for example, HDMI-1 for the living room TV (ie, device 601 ), HDMI-2 for the living room TV, and HDMI-3 for the bedroom TV (ie, device 605 ), and local media content sources may include, for example, AV interfaces.
  • the source of the external media content may be obtained during the process of establishing a connection between the device 602 and other devices (ie, the device 601 and the device 605).
  • a prompt box 6028 may be displayed to prompt the device 601 to read the HDMI-3 interface of the bedroom TV, and the preview interface 6026 may display the data from the HDMI-3 interface.
  • the speaker of the device 602 can play audio content from the HDMI-3 interface.
  • the media content source list 6027 displays all media content sources of other devices (eg, device 601) connected to the device 602, the media content sources of the connected set-top box (eg, HDMI-3 (bedroom TV))
  • the prompt text "Accessed” is displayed after the logo of the device
  • the prompt text "Not Accessed” is displayed after the logo of the media content source that is not connected to the set-top box.
  • Users can see the availability of the media content sources of other devices at a glance, and users can download Select a media content source from the "Accessed” media content source, so that you can watch the program of the media content source.
  • FIG. 11 a schematic diagram of signal transmission between a destination device 100 and a source device 200 (a first source device) and a destination device 100 and a source device 500 (a second source device) provided by an embodiment of the present application.
  • a P2P connection may be established between the destination device 100 and the source device 200 and the source device 500, or the destination device 100, the source device 200 and the source device 500 may be connected to the same local area network.
  • the source device 200 is connected to two set-top boxes, which are the set-top box 300 and the set-top box 400 respectively.
  • the set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092
  • the set-top box 400 is connected to the source device 200 through HDMI-2 (port) 2094 .
  • the source device 500 is connected to the set-top box 600 , and the set-top box 600 is connected to the source device 500 through HDMI-3 (port) 5092 .
  • the TV player 101 sends a fourth message to the TV API 102.
  • the fourth message may include the device identification (ie source device 500) and the port identification (ie HDMI-3).
  • the TV API 102 sends the fourth message to the connection management module 104 through the remote adaptation module 1021.
  • the connection management module 104 can manage the connection between the destination device 100 and different source devices (the source device 200 and the source device 500), and can perform instruction interaction with different source devices.
  • the connection management module may remove the device identification from the fourth message and send only the port ID (eg, HDMI-3) to the connection management module 204 of the source device 200, or the connection management module 104 may directly send the port ID (eg, HDMI-3) to the connection management module 204 of the source device 200. 3) Sent to the connection management module 204 of the source device 200 .
  • the connection management module 504 calls the source manager 5031 of the TV service 503 .
  • the source manager 5031 obtains the media content from the HDMI-3 port 5094 through the HDMI player 5033, and sends the media content to the SoC 507 through the HDMI player 5033. SoC 507 sends the media content to transport module 506.
  • the transmission module 506 transmits the media content to the transmission module 106, and the transmission module 106 can send the received media content to the SoC 107.
  • the SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 600 .
  • the source manager 5031 of the source device 500 can send the media content to the SoC 507 at the same time, and the SoC 507 can send the video content to the display module 5011 of the TV player 501 and the audio content to the speaker 508 , so that the source device 500 can play the program of the set-top box 600 .
  • the destination device 100 can share the set-top box 600 with the source device 500, that is, one set-top box can satisfy the demands of two devices to watch TV at the same time, which can reduce the cost of the user.
  • connection management module 104 of the destination device 100 can maintain a connection with the connection management module 204 of the source device 200. If the user needs to switch the source of the media content, for example, switch from the HDMI-3 interface of the source device 500 to the source device 200.
  • the connection management module 104 can send a corresponding message to the connection management module 504 of the source device 500 based on the connection between the destination device 100 and the source device 200 to obtain the corresponding media content.
  • a destination device eg, device 602
  • a first source device eg, device 601
  • the first source device is connected to a first electronic device (eg, a set-top box) through a first input port (eg, HDMI-1) 603) as an example, the process of selecting a channel (switching a channel) is described:
  • the device 601 may be a source device (for example, a TV), the interface 6011 currently displayed by the device 601 may display a live program, and the channel identifier 6012 of the live program may be Hunan Satellite TV’s Station logo.
  • Device 603 is a set-top box connected to device 601 , and the media content of the live program of Hunan Satellite TV is sent by device 603 to device 601 .
  • the device 602 can watch the live program of Hunan Satellite TV through the device 601. When the user needs to change the channel, he can call up the program list 6100 through voice or touch operation.
  • the program list 6100 includes multiple Each entry corresponds to the name and channel of a television station (satellite TV), for example, entry 6101 means that the channel of Hunan Satellite TV is 023.
  • entry 6101 means that the channel of Hunan Satellite TV is 023.
  • the device 602 can send a channel switching (channel switching) instruction to the device 601, and the device 601 performs corresponding processing according to the channel switching instruction, and can convert the media content after the channel switching. Sent to device 602 .
  • the device 602 can be switched from the interface 6021 to the interface 6029, that is, from Hunan Satellite TV to Zhejiang Satellite TV.
  • the device 601 can be switched from the interface 6011 to the interface 6013, that is, from Hunan Satellite TV to Zhejiang Satellite TV.
  • the live program of Zhejiang Satellite TV can be displayed, and the channel identifier 6014 of the live program can be the logo of Zhejiang Satellite TV.
  • the user can switch the channel (channel change) on the destination device without the user interacting with the source device to change the channel (for example, go to the room where the source device is located to perform the channel change operation), which can improve the user experience.
  • FIG. 13 a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided.
  • a P2P connection is established between the destination device 100 and the source device 200, or the destination device 100 and the source device 200 may be connected to the same local area network.
  • the source device 200 is connected to the set-top box 300, and the set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092.
  • the transmission module 106 of the destination device 100 may receive the media content of HDMI-1 (port) 2092 from the transmission module 206 of the source device 200, and send the received media content to the SoC 107.
  • the SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 300 .
  • the TV player may send a fifth message to the TV API 102, and the fifth message may include information of the channel to be switched (the information of the channel to be switched may be Identification of the previous, next, or channel (eg, channel 024, etc.).
  • the TV player 101 calls the remote adaptation module 1021 of the TV API 102.
  • the remote adaptation module 1021 may send the fifth message to the connection management module 104 .
  • the connection management module 104 can manage the connection between the destination device 100 and the source device 200 , and can perform instruction interaction with the source device 200 .
  • the connection management module sends the information of the channel to be switched to the connection management module 204 of the source device 200 .
  • the connection management module 204 can determine the port DI corresponding to the channel to be switched, and can send the port ID and the information of the channel to be switched to the switching service API 205.
  • the switching service API 205 can send the sixth message to the switching device 700 through the Bluetooth connection, the sixth message can include the port ID and the information of the channel to be switched, the switching device 700 sends the seventh message to the set-top box 300, and the switching device can be connected through infrared or Bluetooth.
  • a seventh message is sent to the set-top box 300 .
  • the seventh message may include information of the channel to be switched, and the set-top box 300 may switch the channel in response to receiving the seventh message.
  • the source manager 2031 obtains the media content from the HDMI-1 (port) 2094 through the HDMI player 2033, and sends the media content to the SoC 207 through the HDMI player 2033.
  • the SoC 207 sends the media content to the transport module 206.
  • the transmission module 206 transmits the media content to the transmission module 106, and the transmission module 106 can send the received media content to the SoC 107.
  • the SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108, so that the destination device 100 can play the program switched by the set-top box 300.
  • the SoC 207 can send the video content to the display module 2011 of the TV player 201, and send the audio content to the speaker 208, so that the source The device 200 can play the program switched by the set-top box 300 .
  • the device 601 may be a source device (for example, a television), and the device 601 is in a screen-off state.
  • the connection management module 204 can be guaranteed to be in a running state through “heartbeat”, and other modules except the connection management module 204 can sleep (for example, the source manager 2031, the display module 2011 and the speaker 208 and the AP in the SoC 207, etc.).
  • the “heartbeat” refers to the interaction between the connection management module 204 and the connection management module 104 according to a preset period (eg, 30s) of heartbeat messages.
  • Device 603 is a set-top box connected to device 601 .
  • the device 602 can watch the live program of Hunan Satellite TV through the device 601 .
  • the device 602 can send a channel change command to the device 601
  • the device 601 can forward the channel change command to the switching device through the Bluetooth connection, and the switching device switches the set-top box 603 through the infrared signal. channel.
  • the device 601 can receive the media content after the channel change from the device 603 , and the device 601 can send the media content after the channel change to the device 602 .
  • the program list 6100 can be called up through voice or touch operation, and the program list 6100 includes multiple items.
  • the device 602 can be switched from the interface 6021 to the interface 6029, that is, from Hunan Satellite TV to Zhejiang Satellite TV.
  • the SoC 207 does not send the video content to the display module 2011 of the TV player 201 , and the audio content is not sent to the speaker 208), that is, the source device 200 does not play the program of the set-top box 300, and is in a screen-off state.
  • the TV service 203 of the source device 200 may receive unencrypted media from the set-top box 300 (digital TV set-top box) from HDMI-1 (port) 2092 through the HDMI player 2033 content, the HDMI player 2033 may send the unencrypted media content to the transmission module 206 so that the transmission module 206 sends the media content to the destination device 100 (the transmission module 106 of the).
  • a destination device eg, device 602 is used to establish a connection with a first source device (eg, device 601), and the first source device is connected to a first electronic device (eg, Set-top box 603), the scenario of connecting a second electronic device (for example, set-top box 604) through a second input port (for example, HDMI-2) is taken as an example, to illustrate the process of selecting a channel (switching a channel):
  • the device 601 may be a source device (eg, may be a television), and the devices 603 and 604 are set-top boxes connected to the device 601 .
  • Device 603 can be connected to device 601 through an HDMI-1 port
  • device 604 can be connected to device 601 through an HDMI-2 port.
  • the device 601 can currently display the interface 6011, and the program content of the interface 6011 can be obtained by the device 601 from the device 604 through the HDMI-2 port, or the program content of the interface 6011 can be obtained from the network (Huawei video server).
  • the network Huawei video server
  • the device 602 can watch the live program through the HDMI-1 port of the device 601 , and the media content of the live program comes from the device 603 .
  • the device 602 can send a channel switching (channel switching) instruction to the device 601, and the device 601 performs corresponding processing according to the channel switching instruction, and can convert the media content after the channel switching.
  • Sent to device 602 .
  • the program list 6100 can be called up through voice or touch operation.
  • the program list 6100 includes multiple items, and each item corresponds to the name and channel of a satellite TV.
  • item 6101 refers to Hunan Satellite TV's channel is 023.
  • the device 602 can switch from the interface 6021 to the interface 6029, that is, from Hunan Satellite TV to Zhejiang Satellite TV. Meanwhile, as shown in (d) of FIG. 15 , the program currently played by the device 601 remains unchanged, that is, the program content from the device 604 is still displayed in the interface 6011 .
  • FIG. 16 a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided.
  • a P2P connection may be established between the destination device 100 and the source device 200, or the destination device 100 and the source device 200 may be connected to the same local area network.
  • the source device 200 is connected to two set-top boxes, which are the set-top box 300 and the set-top box 400 respectively.
  • the set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092
  • the set-top box 400 is connected to the source device 200 through HDMI-2 (port) 2094 .
  • the transmission module 106 of the destination device 100 may receive the media content of HDMI-2 (port) 2094 from the transmission module 206 of the source device 200, and send the received media content to the SoC 107.
  • the SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 400 .
  • the TV player 101 may send a fifth message to the TV API 102, and the fifth message may include information of the first channel (the information of the first channel may is the previous channel, the next channel, or the identification of the channel (eg, channel 024, etc.).
  • the TV player 101 calls the remote adaptation module 1021 of the TV API 102.
  • the remote adaptation module 1021 may send the fifth message to the connection management module 104 .
  • the connection management module 104 can manage the connection between the destination device 100 and the source device 200, and can perform instruction interaction with the source device 200.
  • the connection management module may send the information of the first channel to the connection management module 204 of the source device 200 .
  • the connection management module 204 can determine the port ID (for example, HDMI-2) corresponding to the first channel, and can send the port ID and the information of the first channel to the switching service API 205.
  • the switching service API 205 can send the port ID and the information of the first channel to the switching device 700 through the Bluetooth connection, and the switching device 700 sends an infrared signal to the set-top box 400 to control the set-top box 400 to switch channels.
  • the switching device 700 is an infrared control device paired with the set-top box 400.
  • the source device 200 can establish a Bluetooth connection with the switching device 700, and perform signaling interaction with the switching device 700 based on the Bluetooth connection, so that the switching device 700 controls the set-top box 400 to switch channels.
  • the source manager 2031 obtains the media content of the set-top box 400 from the HDMI-1 (port) 2094 through the HDMI player 2033, and sends the media content to the SoC 207 through the HDMI player 2033.
  • the SoC 207 sends the media content to the transport module 206.
  • the transmission module 206 transmits the media content to the transmission module 106, and the transmission module 106 can send the received media content to the SoC 107.
  • the SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108, so that the destination device 100 can play the program switched by the set-top box 400.
  • the source manager 2031 of the source device 200 can obtain the media content of the set-top box 300 from the HDMI-1 (port) 2092 through the HDMI player 2034, and send the media content to the SoC 207, and the SoC 207 can send the video content to the TV player 201 of the display module 201, and send the audio content to the speaker 208, so that the source device 200 can play the program of the set-top box 300.
  • the source device 200 can play the program (the fourth media content) of the set-top box 300
  • the destination device 100 can watch the program (the first media content) of the set-top box 400 through the source device 200 .
  • the source device 200 can obtain the media content (the fourth media content) from the network based on the Huawei video module 210, and send the media content to the SoC 207, and the SoC 207 can send the video content to the display module 2011 of the TV player 201, and The audio content is sent to speakers 208 .
  • the source device 200 can play the program in the Huawei video server
  • the destination device 100 can watch the program of the set-top box 400 through the source device 200
  • the user can watch different programs on the source device 200 and the destination device 100
  • the user can watch the program on the destination device Switching channels (switching programs) can improve user experience.
  • the chip system includes at least one processor 1701 and at least one interface circuit 1702 .
  • the processor 1701 and the interface circuit 1702 may be interconnected by wires.
  • the interface circuit 1702 may be used to transfer data from other devices (eg, the memory of the destination device, the memory of the first source device, the memory of the second source device, the memory of the switching device, or the electronic device (eg, the first electronic device, the second electronic device) device or a memory of a third electronic device) to receive the signal.
  • the interface circuit 1702 may be used to send signals to other devices (eg, the processor 1701).
  • the interface circuit 1702 may read instructions stored in memory in the electronic device and send the instructions to the processor 1701 .
  • the destination device or the first source device (the electronic device 110 shown in FIG. 2 ) can be made to execute the various steps in the above embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
  • Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium includes computer instructions, when the computer instructions are executed on a target device (the device 110 shown in FIG. 2 ), the device 110 is made to execute Various functions or steps performed by the destination device (eg, device 602 or destination device 100 ) or the first source device (eg, device 601 or source device 200 ) in the foregoing method embodiments.
  • a target device the device 110 shown in FIG. 2
  • the device 110 is made to execute Various functions or steps performed by the destination device (eg, device 602 or destination device 100 ) or the first source device (eg, device 601 or source device 200 ) in the foregoing method embodiments.
  • the embodiments of the present application further provide a computer program product, when the computer program product runs on a computer, the computer is made to execute the destination device (for example, the device 602 or the destination device 100 ) or the first source in the foregoing method embodiments.
  • the destination device for example, the device 602 or the destination device 100
  • the first source for example, the device 602 or the destination device 100
  • Various functions or steps performed by a device eg, device 601 or source device 200).
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Abstract

Embodiments of present application relate to the field of communications and provide a media content sharing method and apparatus, capable of enabling a user to watch media content from a source device (such as a television) on a destination device (such as a mobile phone, a tablet, and a speaker having a screen). The method comprises: a destination device displays a first media content source and a second media content source; the destination device sends a first message to a first source device in response to an operation that a user selects the first media content source; the first source device sends, to the destination device, first media content which is received at a first input port and comes from a first electronic device; the destination device receives and plays the first media content; the destination device sends a second message to the first source device in response to an operation that the user selects the second media content source; in response to the reception of the second message, the first source device sends, to the destination device, second media content which is received at a second input port and comes from a second electronic device; the destination device receives and plays the second media content.

Description

一种媒体内容共享方法和装置Method and device for sharing media content
本申请要求于2020年07月29日提交国家知识产权局、申请号为202010746420.X、申请名称为“一种媒体内容共享方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010746420.X and the application title "A method and device for sharing media content", which was submitted to the State Intellectual Property Office on July 29, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及通信领域,尤其涉及一种媒体内容共享方法和装置。The present application relates to the field of communications, and in particular, to a method and apparatus for sharing media content.
背景技术Background technique
机顶盒是加装在电视机上的一个设备,用于扩展电视机的功能。机顶盒可以接收信号(模拟信号和/或数字信号),信号可以来自有线电缆、卫星天线、宽带网络以及地面广播。机顶盒对信号进行相应的处理后发送给电视机,电视机可以显示节目内容。A set-top box is a device installed on a TV to extend the functions of the TV. A set-top box can receive signals (analog and/or digital) from cable, satellite dishes, broadband networks, and terrestrial broadcasts. The set-top box processes the signal and sends it to the TV, and the TV can display the program content.
目前,一台机顶盒可以供一台电视使用,若用户希望在其他设备(例如,另一部电视)上收看机顶盒中的内容,需要使用一分二的分屏器来实现不同电视的同时播放,这需要满足长度要求的高清多媒体接口(high definition multimedia interface,HDMI)线缆进行布线,操作比较困难。At present, one set-top box can be used by one TV. If users want to watch the content in the set-top box on other devices (for example, another TV), they need to use a one-to-two screen splitter to achieve simultaneous playback of different TVs. This requires a high definition multimedia interface (high definition multimedia interface, HDMI) cable that meets the length requirements for wiring, which is difficult to operate.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种媒体内容共享方法和装置,能够使用户在目的设备(例如,手机、平板、带屏音箱等)上观看来自源设备(例如,电视机)的媒体内容。Embodiments of the present application provide a method and apparatus for sharing media content, which enables a user to watch media content from a source device (eg, a TV set) on a destination device (eg, a mobile phone, a tablet, a speaker with a screen, etc.).
第一方面,本申请实施例提供一种媒体内容共享方法,包括:目的设备显示第一媒体内容来源和第二媒体内容来源;第一媒体内容来源和第二媒体内容来源与第一源设备关联;目的设备响应于用户选择第一媒体内容来源的操作,向第一源设备发送第一消息;第一源设备响应于接收到第一消息,向目的设备发送从第一输入端口接收的来自第一电子设备的第一媒体内容;目的设备接收第一媒体内容,并播放第一媒体内容;目的设备响应于用户选择第二媒体内容来源的操作,向第一源设备发送第二消息;第一源设备响应于接收到第二消息,向目的设备发送从第二输入端口接收的来自第二电子设备的第二媒体内容;目的设备接收第二媒体内容,并播放第二媒体内容。这样,用户能够在目的设备(例如,手机、平板、带屏音箱等)上观看第一源设备(例如,电视机)连接的电子设备(第一电子设备或第二电子设备,第一电子设备或第二电子设备例如可以为机顶盒)中的媒体内容,且用户能够切换不同的媒体内容来源,可以提高用户体验。In a first aspect, an embodiment of the present application provides a media content sharing method, including: a destination device displays a first media content source and a second media content source; the first media content source and the second media content source are associated with the first source device ; The destination device sends the first message to the first source device in response to the user's operation of selecting the source of the first media content; the first source device, in response to receiving the first message, sends to the destination device the data received from the first input port from the first source device. The first media content of an electronic device; the destination device receives the first media content and plays the first media content; the destination device sends a second message to the first source device in response to the user's operation of selecting the source of the second media content; the first In response to receiving the second message, the source device sends the second media content from the second electronic device received from the second input port to the destination device; the destination device receives the second media content and plays the second media content. In this way, the user can watch the electronic device (the first electronic device or the second electronic device, the first electronic device) connected to the first source device (eg, TV) on the destination device (eg, mobile phone, tablet, speaker with screen, etc.). Or the second electronic device may be, for example, the media content in a set-top box, and the user can switch between different media content sources, which can improve user experience.
在一种可能的实现方式中,第一消息包括第一输入端口的标识,第二消息包括第二输入端口的标识。示例性的,第一输入端口或第二输入端口可以为HDMI端口,第一输入端口的标识例如可以是HDMI-1,第二输入端口的标识例如可以是HDMI-2。这样,用户能够在目的设备上观看第一源设备的HDMI-1的媒体内容(即第一媒体内容)或者第一源设备的HDMI-2的媒体内容(即第二媒体内容),且用户能够切换不同的媒体内容来源,可以提高用户体验。In a possible implementation manner, the first message includes the identifier of the first input port, and the second message includes the identifier of the second input port. Exemplarily, the first input port or the second input port may be an HDMI port, the identifier of the first input port may be, for example, HDMI-1, and the identifier of the second input port may be, for example, HDMI-2. In this way, the user can watch the HDMI-1 media content of the first source device (ie the first media content) or the HDMI-2 media content of the first source device (ie the second media content) on the destination device, and the user can Switching between different media content sources can improve user experience.
在一种可能的实现方式中,第一媒体内容来源包括第一输入端口的标识、第一源设备的标识、第一媒体内容对应的应用程序、第一媒体内容的频道信息或第一媒体内容的节目 信息中的至少一种;第二媒体内容来源包括第二输入端口的标识、第一源设备的标识或第二媒体内容对应的应用程序、第二媒体内容的频道信息或第二媒体内容的节目信息中的至少一种。示例性的,第一媒体内容对应的应用程序例如可以是视频APP或TV播放器等,第一媒体内容的频道信息例如可以是电视台/卫视名称(例如,“湖南卫视”)或频道号(“025”)等,第一媒体内容的节目信息例如可以是电视剧名称、综艺节目名称、电影名称等等。In a possible implementation manner, the source of the first media content includes an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or the first media content At least one of the program information of the second media content; the source of the second media content includes the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the second media content at least one of the program information. Exemplarily, the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc., and the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV"). 025"), etc., the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
在一种可能的实现方式中,目的设备显示第一媒体内容来源和第二媒体内容来源之前,该方法还包括:目的设备响应于用户打开第一应用的操作,向第一源设备发送第三消息;第一源设备响应于接收到第三消息,向目的设备发送第一媒体内容来源和第二媒体内容来源。目的设备可以接收并显示第一媒体内容来源和第二媒体内容来源,以供用户进行选择。In a possible implementation manner, before the destination device displays the first media content source and the second media content source, the method further includes: in response to the user's operation of opening the first application, the destination device sends a third message; the first source device sends the first media content source and the second media content source to the destination device in response to receiving the third message. The destination device may receive and display the first media content source and the second media content source for the user to select.
在一种可能的实现方式中,目的设备显示第一媒体内容来源和第二媒体内容来源之前,该方法还包括:目的设备和第一源设备之间建立点对点(peer to peer,P2P)连接,或者目的设备和第一源设备连接到同一局域网。其中,P2P连接可以是WIFI直连,蓝牙连接等等。这样,目的设备可以基于P2P连接或局域网从第一源设备接收媒体内容(例如,第一媒体内容或第二媒体内容)并显示媒体内容,以供用户观看。In a possible implementation manner, before the destination device displays the first media content source and the second media content source, the method further includes: establishing a peer-to-peer (P2P) connection between the destination device and the first source device, Or the destination device and the first source device are connected to the same local area network. Among them, the P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on. In this way, the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network and display the media content for viewing by the user.
在一种可能的实现方式中,第一输入端口或第二输入端口为高清多媒体接口HDMI端口、音视频AV端口、无线保真(wireless fidelity,WIFI)端口或有线网卡。In a possible implementation manner, the first input port or the second input port is a high-definition multimedia interface HDMI port, an audio and video AV port, a wireless fidelity (wireless fidelity, WIFI) port or a wired network card.
在一种可能的实现方式中,目的设备显示第一媒体内容来源和第二媒体内容来源包括:目的设备显示第一媒体内容来源、第二媒体内容来源和第三媒体内容来源;第三媒体内容来源与第二源设备关联;目的设备响应于用户选择第三媒体内容来源的操作,向第二源设备发送第四消息;第二源设备响应于接收到第四消息,向目的设备发送从第三输入端口接收的来自第三电子设备的第三媒体内容;目的设备接收第三媒体内容,并播放第三媒体内容。也就是说,目的设备可以和多个源设备(例如,第一源设备和第二源设备)建立连接,显示来自多个源设备的媒体内容来源(来自第一源设备的第一媒体内容来源和第二媒体内容来源,以及来自第二源设备的第三媒体内容来源)。这样,用户可以从来自多个源设备的多个媒体内容来源中选择自己感兴趣的媒体内容来源并播放,可以提高用户体验。In a possible implementation manner, the destination device displaying the first media content source and the second media content source includes: the destination device displaying the first media content source, the second media content source and the third media content source; the third media content source The source is associated with the second source device; the destination device sends a fourth message to the second source device in response to the user's operation of selecting the third media content source; the second source device, in response to receiving the fourth message, sends a message from the second source device to the destination device. The third media content from the third electronic device is received by the three input ports; the destination device receives the third media content and plays the third media content. That is, the destination device can establish connections with multiple source devices (for example, a first source device and a second source device), and display media content sources from multiple source devices (the first media content source from the first source device). and a second source of media content, and a third source of media content from the second source device). In this way, the user can select and play the media content source he is interested in from multiple media content sources from multiple source devices, which can improve user experience.
在一种可能的实现方式中,该方法还包括:目的设备响应于用户选择第一频道的操作,向第二源设备发送第五消息;第二源设备响应于接收到第五消息,向切换设备发送第六消息;切换设备响应于接收到第六消息,向第三电子设备发送第七消息;第三电子设备响应于接收到第七消息,获取第一频道的媒体内容,并将第一频道的媒体内容发送给第二源设备;第二源设备向目的设备发送第一频道的媒体内容;目的设备接收第一频道的媒体内容,并播放第一频道的媒体内容。这样,用户可以在目的设备上切换频道(换台),无需用户与源设备(例如,第二源设备)进行交互来换台(例如,去源设备所在的房间进行换台操作),可以提高用户体验。In a possible implementation manner, the method further includes: the destination device, in response to the user's operation of selecting the first channel, sends a fifth message to the second source device; and the second source device, in response to receiving the fifth message, sends to the switch The device sends a sixth message; the switching device sends a seventh message to the third electronic device in response to receiving the sixth message; the third electronic device obtains the media content of the first channel in response to receiving the seventh message, and sends the first The media content of the channel is sent to the second source device; the second source device sends the media content of the first channel to the destination device; the destination device receives the media content of the first channel and plays the media content of the first channel. In this way, the user can switch the channel (channel change) on the destination device without the user interacting with the source device (eg, the second source device) to change the channel (eg, go to the room where the source device is located to perform the channel change operation), which can improve the user experience.
在一种可能的实现方式中,切换设备响应于接收到第六消息,向第二电子设备发送第七消息包括:切换设备通过红外线或蓝牙连接向第二电子设备发送第七消息。In a possible implementation manner, the switching device sending the seventh message to the second electronic device in response to receiving the sixth message includes: the switching device sending the seventh message to the second electronic device through an infrared or Bluetooth connection.
在一种可能的实现方式中,目的设备响应于用户选择第一媒体内容来源的操作,向第一源设备发送第一消息之后,该方法还包括:第一源设备从第一电子设备接收第一媒体内容。也就是说,第一源设备接收第一消息之后,可以从第一电子设备接收第一媒体内容。或者,第一源设备接收第一消息之前,就可以从第一电子设备接收第一媒体内容,并缓存 第一媒体内容,待接收到第一消息之后,可以向目的设备发送第一媒体内容。In a possible implementation manner, after the destination device sends the first message to the first source device in response to the user's operation of selecting the source of the first media content, the method further includes: the first source device receives the first message from the first electronic device. a media content. That is, after receiving the first message, the first source device may receive the first media content from the first electronic device. Alternatively, before the first source device receives the first message, it can receive the first media content from the first electronic device and buffer the first media content, and after receiving the first message, it can send the first media content to the destination device.
在一种可能的实现方式中,第一源设备包括第一源管理器、第一SoC和第一传输模块,第一源设备从第一电子设备接收第一媒体内容包括:第一源管理器从第一输入端口读取第一电子设备的第一媒体内容,并将第一媒体内容发送至第一SoC;第一SoC对第一媒体内容进行压缩,将压缩后的第一媒体内容发送给第一传输模块,第一传输模块将压缩后的第一媒体内容发送至目的设备。例如,可以通过第一SoC将4k的媒体内容压缩为1080p或960p后发送给目的设备,无需目的设备进行压缩处理,可以节省目的设备的处理功耗。In a possible implementation manner, the first source device includes a first source manager, a first SoC, and a first transmission module, and the first source device receiving the first media content from the first electronic device includes: a first source manager Read the first media content of the first electronic device from the first input port, and send the first media content to the first SoC; the first SoC compresses the first media content, and sends the compressed first media content to The first transmission module, the first transmission module sends the compressed first media content to the destination device. For example, the 4k media content can be compressed into 1080p or 960p through the first SoC and sent to the destination device, without the destination device performing compression processing, which can save the processing power consumption of the destination device.
在一种可能的实现方式中,该方法还包括:第一SoC基于高带宽数字内容保护技术(high-bandwidth digital content protection,HDCP)对第一媒体内容进行解密;第一传输模块基于HDCP对压缩后的第一媒体内容进行加密。这样,可以保证媒体内容能够安全分享,有效保护有版权的媒体内容。In a possible implementation manner, the method further includes: the first SoC decrypts the first media content based on a high-bandwidth digital content protection technology (high-bandwidth digital content protection, HDCP); the first transmission module compresses the first media content based on HDCP After the first media content is encrypted. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
在一种可能的实现方式中,第一源设备包括第一源管理器和第一传输模块,第一源设备从第一电子设备接收第一媒体内容包括:第一源管理器从第一输入端口读取第一电子设备的第一媒体内容,并将第一媒体内容发送至第一传输模块,第一传输模块将第一媒体内容发送至目的设备。即第一源设备可以直接将第一电子设备的第一媒体内容发送至目的设备,无需进行加解密或压缩处理,可以提高传输效率。In a possible implementation manner, the first source device includes a first source manager and a first transmission module, and the first source device receiving the first media content from the first electronic device includes: the first source manager receives the first input from the first source device. The port reads the first media content of the first electronic device, and sends the first media content to the first transmission module, and the first transmission module sends the first media content to the destination device. That is, the first source device can directly send the first media content of the first electronic device to the destination device without performing encryption, decryption or compression processing, which can improve transmission efficiency.
在一种可能的实现方式中,第一源设备还包括第一显示模块和第一扬声器,该方法还包括:第一SoC接收第一媒体内容后,对第一媒体内容进行解码处理,将解码处理后的第一媒体内容中的视频内容发送给第一显示模块,将解码处理后的第一媒体内容中的音频内容发送给第一扬声器;第一显示模块播放视频内容,第一扬声器播放音频内容。这样,第一源设备和目的设备都可以播放第一媒体内容,比如,当用户通过客厅电视观看机顶盒的直播节目时,若用户移步到厨房或卧室,可以通过其他设备(例如,手机或平板)继续收看直播节目,可以提高用户体验。In a possible implementation manner, the first source device further includes a first display module and a first speaker, and the method further includes: after the first SoC receives the first media content, decoding the first media content, and decoding the decoded The video content in the processed first media content is sent to the first display module, and the audio content in the decoded and processed first media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content. In this way, both the first source device and the destination device can play the first media content. For example, when the user watches the live program of the set-top box through the TV in the living room, if the user moves to the kitchen or bedroom, the user can play the first media content through other devices (for example, a mobile phone or a tablet). ) to continue watching live programs, which can improve user experience.
在一种可能的实现方式中,第一源设备还包括第一显示模块和第一扬声器,该方法还包括:第一源管理器、第一显示模块和第一扬声器处于休眠状态。这样,目的设备可以通第一源设备获取第一媒体内容并播放第一媒体内容,第一源设备可以熄屏或待机(即第一源管理器、第一显示模块和第一扬声器处于休眠状态)可以节省第一源设备的耗电。In a possible implementation manner, the first source device further includes a first display module and a first speaker, and the method further includes: the first source manager, the first display module and the first speaker are in a sleep state. In this way, the destination device can obtain the first media content through the first source device and play the first media content, and the first source device can turn off the screen or stand by (that is, the first source manager, the first display module and the first speaker are in a dormant state). ) can save the power consumption of the first source device.
在一种可能的实现方式中,第一源设备包括第一连接管理模块,目的设备包括第二连接管理模块,方法还包括:第一连接管理模块和第二连接管理模块基于预设周期传输心跳消息。这样,当第一源设备熄屏时,可以通过“心跳”保证第一连接管理模块处于运行状态,当第一连接管理模块接收到第二连接管理模块发送的特定消息(例如,第一消息)时,可以唤醒进入休眠的第一源管理器,即在第一源设备熄屏或待机时,目的设备仍可以与第一源设备进行交互,无需主动开启第一源设备(例如,用户通过遥控主动唤醒第一源设备),可以提高用户体验。In a possible implementation manner, the first source device includes a first connection management module, the destination device includes a second connection management module, and the method further includes: the first connection management module and the second connection management module transmit a heartbeat based on a preset period information. In this way, when the screen of the first source device is turned off, the "heartbeat" can be used to ensure that the first connection management module is in a running state, and when the first connection management module receives a specific message (for example, the first message) sent by the second connection management module When the first source manager is turned off, the destination device can still interact with the first source device without actively turning on the first source device (for example, the user can Actively wake up the first source device), which can improve the user experience.
在一种可能的实现方式中,第一源设备还包括第一显示模块和第一扬声器,该方法还包括:第一SoC接收第四媒体内容,对第四媒体内容进行解码处理,将解码处理后的第四媒体内容中的视频内容发送给第一显示模块,将解码处理后的第四媒体内容中的音频内容发送给第一扬声器;第一显示模块播放视频内容,第一扬声器播放音频内容。这样,第一源设备可以播放第四媒体内容,第四媒体内容可以来自其他输入端口(例如,第四输入端 口)或者路由器,目的设备可以通第一源设备获取第一媒体内容并播放第一媒体内容,即目的设备和第一源设备可以分别播放不同的媒体内容,提高了目的设备和第一源设备的利用率。In a possible implementation manner, the first source device further includes a first display module and a first speaker, and the method further includes: the first SoC receives the fourth media content, performs decoding processing on the fourth media content, and performs decoding processing on the fourth media content. The video content in the fourth media content is sent to the first display module, and the audio content in the decoded fourth media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content . In this way, the first source device can play the fourth media content, the fourth media content can come from other input ports (for example, the fourth input port) or a router, and the destination device can obtain the first media content through the first source device and play the first media content. The media content, that is, the destination device and the first source device can play different media content respectively, which improves the utilization rate of the destination device and the first source device.
在一种可能的实现方式中,目的设备包括第二传输模块、第二SoC、第二显示模块和第二扬声器,目的设备接收第一媒体内容,并播放第一媒体内容包括:第二传输模块从第一传输模块接收第一媒体内容,将第一媒体内容发送给第二SoC,第二SoC对第一媒体内容进行解压缩和解码处理;第二SoC将解压缩和解码处理后的第一媒体内容中的视频内容发送给第二显示模块,将解压缩和解码处理后的第一媒体内容中的音频内容发送给扬声器,第二显示模块播放视频内容,第二扬声器播放音频内容。这样,目的设备可以对压缩后的第一媒体内容进行解压缩处理后播放。这样,用户能够在目的设备上观看第一源设备发送的第一媒体内容。In a possible implementation manner, the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker, and the destination device receives the first media content and plays the first media content, including: a second transmission module Receives the first media content from the first transmission module, sends the first media content to the second SoC, and the second SoC decompresses and decodes the first media content; the second SoC decompresses and decodes the first media content. The video content in the media content is sent to the second display module, and the decompressed and decoded audio content in the first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content. In this way, the destination device can perform decompression processing on the compressed first media content before playing. In this way, the user can watch the first media content sent by the first source device on the destination device.
在一种可能的实现方式中,该方法还包括:第二传输模块基于高带宽数字内容保护技术HDCP对第一媒体内容进行解密。这样,可以保证媒体内容能够安全分享,有效保护有版权的媒体内容。In a possible implementation manner, the method further includes: the second transmission module decrypts the first media content based on the high-bandwidth digital content protection technology HDCP. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
在一种可能的实现方式中,目的设备包括第二传输模块、第二SoC、第二显示模块和第二扬声器,目的设备接收第一媒体内容,并播放第一媒体内容包括:第二传输模块从第一传输模块接收第一媒体内容,将第一媒体内容发送给第二SoC,第二SoC对第一媒体内容进行解码处理;第二SoC将解码处理后的第一媒体内容中的视频内容发送给第二显示模块,将解码处理后的第一媒体内容中的音频内容发送给扬声器,第二显示模块播放视频内容,第二扬声器播放音频内容。这样,用户能够在目的设备上观看第一源设备发送的第一媒体内容。In a possible implementation manner, the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker, and the destination device receives the first media content and plays the first media content, including: a second transmission module Receive the first media content from the first transmission module, send the first media content to the second SoC, and the second SoC decodes the first media content; the second SoC decodes the video content in the first media content It is sent to the second display module, and the audio content in the decoded first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content. In this way, the user can watch the first media content sent by the first source device on the destination device.
第二方面,本申请实施例提供一种媒体内容共享方法,包括:目的设备显示第一媒体内容来源和第二媒体内容来源;第一媒体内容来源和第二媒体内容来源与第一源设备关联;目的设备响应于用户选择第一媒体内容来源的操作,向第一源设备发送第一消息,第一消息用于指示第一源设备的第一输入端口;目的设备从第一源设备接收第一媒体内容,并播放第一媒体内容;目的设备响应于用户选择第二媒体内容来源的操作,向第一源设备发送第二消息,第二消息用于指示第一源设备的第二输入端口;目的设备接收第二媒体内容,并播放第二媒体内容。In a second aspect, an embodiment of the present application provides a media content sharing method, including: a destination device displays a first media content source and a second media content source; the first media content source and the second media content source are associated with the first source device ; the destination device sends a first message to the first source device in response to the user's operation of selecting the source of the first media content, and the first message is used to indicate the first input port of the first source device; the destination device receives the first message from the first source device a media content, and play the first media content; the destination device responds to the user's operation of selecting the source of the second media content, and sends a second message to the first source device, where the second message is used to indicate the second input port of the first source device ; The destination device receives the second media content and plays the second media content.
在一种可能的实现方式中,第一消息包括第一输入端口的标识,第二消息包括第二输入端口的标识。示例性的,第一输入端口或第二输入端口可以为HDMI端口,第一输入端口的标识例如可以是HDMI-1,第二输入端口的标识例如可以是HDMI-2。In a possible implementation manner, the first message includes the identifier of the first input port, and the second message includes the identifier of the second input port. Exemplarily, the first input port or the second input port may be an HDMI port, the identifier of the first input port may be, for example, HDMI-1, and the identifier of the second input port may be, for example, HDMI-2.
在一种可能的实现方式中,第一媒体内容来源包括第一输入端口的标识、第一源设备的标识、第一媒体内容对应的应用程序、第一媒体内容的频道信息或第一媒体内容的节目信息中的至少一种;第二媒体内容来源包括第二输入端口的标识、第一源设备的标识或第二媒体内容对应的应用程序、第二媒体内容的频道信息或第二媒体内容的节目信息中的至少一种。示例性的,第一媒体内容对应的应用程序例如可以是视频APP或TV播放器等,第一媒体内容的频道信息例如可以是电视台/卫视名称(例如,“湖南卫视”)或频道号(“025”)等,第一媒体内容的节目信息例如可以是电视剧名称、综艺节目名称、电影名称等等。In a possible implementation manner, the source of the first media content includes an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or the first media content At least one of the program information of the second media content; the source of the second media content includes the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the second media content at least one of the program information. Exemplarily, the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc., and the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV"). 025"), etc., the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
在一种可能的实现方式中,目的设备显示第一媒体内容来源和第二媒体内容来源之前, 该方法还包括:目的设备响应于用户打开第一应用的操作,向第一源设备发送第三消息,第三消息用于请求第一源设备的媒体内容来源,第一源设备的媒体内容来源包括第一媒体内容来源和第二媒体内容来源。In a possible implementation manner, before the destination device displays the first media content source and the second media content source, the method further includes: in response to the user's operation of opening the first application, the destination device sends a third The third message is used to request the media content source of the first source device, and the media content source of the first source device includes the first media content source and the second media content source.
在一种可能的实现方式中,目的设备显示第一媒体内容来源和第二媒体内容来源之前,该方法还包括:目的设备和第一源设备之间建立点对点(peer to peer,P2P)连接,或者目的设备和第一源设备连接到同一局域网。其中,P2P连接可以是WIFI直连,蓝牙连接等等。这样,目的设备可以基于P2P连接或局域网从第一源设备接收媒体内容(例如,第一媒体内容或第二媒体内容)。In a possible implementation manner, before the destination device displays the first media content source and the second media content source, the method further includes: establishing a peer-to-peer (P2P) connection between the destination device and the first source device, Or the destination device and the first source device are connected to the same local area network. Among them, the P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on. In this way, the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network.
在一种可能的实现方式中,第一输入端口或第二输入端口为高清多媒体接口HDMI端口、音视频AV端口、无线保真(wireless fidelity,WIFI)端口或有线网卡。In a possible implementation manner, the first input port or the second input port is a high-definition multimedia interface HDMI port, an audio and video AV port, a wireless fidelity (wireless fidelity, WIFI) port or a wired network card.
在一种可能的实现方式中,目的设备显示第一媒体内容来源和第二媒体内容来源包括:目的设备显示第一媒体内容来源、第二媒体内容来源和第三媒体内容来源;第三媒体内容来源与第二源设备关联;目的设备响应于用户选择第三媒体内容来源的操作,向第二源设备发送第四消息,第四消息用于指示第三输入端口,目的设备从第二源设备接收第三媒体内容,并播放第三媒体内容。也就是说,目的设备可以和多个源设备(例如,第一源设备和第二源设备)建立连接,显示来自多个源设备的媒体内容来源(来自第一源设备的第一媒体内容来源和第二媒体内容来源,以及来自第二源设备的第三媒体内容来源)。这样,用户可以从来自多个源设备的多个媒体内容来源中选择自己感兴趣的媒体内容来源并播放,可以提高用户体验。In a possible implementation manner, the destination device displaying the first media content source and the second media content source includes: the destination device displaying the first media content source, the second media content source and the third media content source; the third media content source The source is associated with the second source device; the destination device sends a fourth message to the second source device in response to the user's operation of selecting the source of the third media content, the fourth message is used to indicate the third input port, and the destination device from the second source device The third media content is received and the third media content is played. That is, the destination device can establish connections with multiple source devices (for example, a first source device and a second source device), and display media content sources from multiple source devices (the first media content source from the first source device). and a second source of media content, and a third source of media content from the second source device). In this way, the user can select and play the media content source he is interested in from multiple media content sources from multiple source devices, which can improve user experience.
在一种可能的实现方式中,该方法还包括:目的设备响应于用户选择第一频道的操作,向第二源设备发送第五消息;第五消息用于请求第一频道的媒体内容,目的设备从第二源设备接收第一频道的媒体内容,并播放第一频道的媒体内容。这样,用户可以在目的设备上切换频道(换台),无需用户与源设备(例如,第二源设备)进行交互来换台(例如,去源设备所在的房间进行换台操作),可以提高用户体验。In a possible implementation manner, the method further includes: in response to the user's operation of selecting the first channel, the destination device sends a fifth message to the second source device; the fifth message is used to request the media content of the first channel, and the purpose The device receives the media content of the first channel from the second source device, and plays the media content of the first channel. In this way, the user can switch the channel (channel change) on the destination device without the user interacting with the source device (eg, the second source device) to change the channel (eg, go to the room where the source device is located to perform the channel change operation), which can improve the user experience.
在一种可能的实现方式中,目的设备包括第二传输模块、第二SoC、第二显示模块和第二扬声器,目的设备接收第一媒体内容,并播放第一媒体内容包括:第二传输模块从第一传输模块接收第一媒体内容,将第一媒体内容发送给第二SoC,第二SoC对第一媒体内容进行解压缩和解码处理;第二SoC将解压缩和解码处理后的第一媒体内容中的视频内容发送给第二显示模块,将解压缩和解码处理后的第一媒体内容中的音频内容发送给扬声器,第二显示模块播放视频内容,第二扬声器播放音频内容。这样,目的设备可以对压缩后的第一媒体内容进行解压缩处理后播放。这样,用户能够在目的设备上观看第一源设备发送的第一媒体内容。In a possible implementation manner, the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker, and the destination device receives the first media content and plays the first media content, including: a second transmission module Receives the first media content from the first transmission module, sends the first media content to the second SoC, and the second SoC decompresses and decodes the first media content; the second SoC decompresses and decodes the first media content. The video content in the media content is sent to the second display module, and the decompressed and decoded audio content in the first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content. In this way, the destination device can perform decompression processing on the compressed first media content before playing. In this way, the user can watch the first media content sent by the first source device on the destination device.
在一种可能的实现方式中,该方法还包括:第二传输模块基于高带宽数字内容保护技术HDCP对第一媒体内容进行解密。这样,可以保证媒体内容能够安全分享,有效保护有版权的媒体内容。In a possible implementation manner, the method further includes: the second transmission module decrypts the first media content based on the high-bandwidth digital content protection technology HDCP. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
在一种可能的实现方式中,目的设备包括第二传输模块、第二SoC、第二显示模块和第二扬声器,目的设备接收第一媒体内容,并播放第一媒体内容包括:第二传输模块从第一传输模块接收第一媒体内容,将第一媒体内容发送给第二SoC,第二SoC对第一媒体内容进行解码处理;第二SoC将解码处理后的第一媒体内容中的视频内容发送给第二显示模 块,将解码处理后的第一媒体内容中的音频内容发送给扬声器,第二显示模块播放视频内容,第二扬声器播放音频内容。这样,用户能够在目的设备上观看第一源设备发送的第一媒体内容。In a possible implementation manner, the destination device includes a second transmission module, a second SoC, a second display module, and a second speaker, and the destination device receives the first media content and plays the first media content, including: a second transmission module Receive the first media content from the first transmission module, send the first media content to the second SoC, and the second SoC decodes the first media content; the second SoC decodes the video content in the first media content It is sent to the second display module, and the audio content in the decoded first media content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content. In this way, the user can watch the first media content sent by the first source device on the destination device.
第三方面,本申请实施例提供一种媒体内容共享方法,包括:第一源设备响应于从目的设备接收到第一消息,向目的设备发送从第一输入端口接收的来自第一电子设备的第一媒体内容;第一源设备响应于从目的设备接收到第二消息,向目的设备发送从第二输入端口接收的来自第二电子设备的第二媒体内容。In a third aspect, an embodiment of the present application provides a method for sharing media content, including: a first source device, in response to receiving a first message from a destination device, sends a message received from a first input port from a first electronic device to the destination device the first media content; the first source device, in response to receiving the second message from the destination device, sends the second media content from the second electronic device received from the second input port to the destination device.
在一种可能的实现方式中,第一消息包括第一输入端口的标识,第二消息包括第二输入端口的标识。示例性的,第一输入端口或第二输入端口可以为HDMI端口,第一输入端口的标识例如可以是HDMI-1,第二输入端口的标识例如可以是HDMI-2。In a possible implementation manner, the first message includes the identifier of the first input port, and the second message includes the identifier of the second input port. Exemplarily, the first input port or the second input port may be an HDMI port, the identifier of the first input port may be, for example, HDMI-1, and the identifier of the second input port may be, for example, HDMI-2.
在一种可能的实现方式中,该方法还包括:第一源设备响应于接收到第三消息,向目的设备发送第一媒体内容来源和第二媒体内容来源。In a possible implementation manner, the method further includes: in response to receiving the third message, the first source device sends the first media content source and the second media content source to the destination device.
在一种可能的实现方式中,第一媒体内容来源包括第一输入端口的标识、第一源设备的标识、第一媒体内容对应的应用程序、第一媒体内容的频道信息或第一媒体内容的节目信息中的至少一种;第二媒体内容来源包括第二输入端口的标识、第一源设备的标识或第二媒体内容对应的应用程序、第二媒体内容的频道信息或第二媒体内容的节目信息中的至少一种。示例性的,第一媒体内容对应的应用程序例如可以是视频APP或TV播放器等,第一媒体内容的频道信息例如可以是电视台/卫视名称(例如,“湖南卫视”)或频道号(“025”)等,第一媒体内容的节目信息例如可以是电视剧名称、综艺节目名称、电影名称等等。In a possible implementation manner, the source of the first media content includes an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or the first media content At least one of the program information of the second media content; the source of the second media content includes the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the second media content at least one of the program information. Exemplarily, the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc., and the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV"). 025"), etc., the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
在一种可能的实现方式中,该方法还包括:第一源设备和目的设备之间建立点对点(peer to peer,P2P)连接,或者第一源设备和目的设备连接到同一局域网。其中,P2P连接可以是WIFI直连,蓝牙连接等等。这样,目的设备可以基于P2P连接或局域网从第一源设备接收媒体内容(例如,第一媒体内容或第二媒体内容)。In a possible implementation manner, the method further includes: establishing a peer-to-peer (P2P) connection between the first source device and the destination device, or the first source device and the destination device are connected to the same local area network. Among them, the P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on. In this way, the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network.
在一种可能的实现方式中,第一输入端口或第二输入端口为高清多媒体接口HDMI端口、音视频AV端口、无线保真(wireless fidelity,WIFI)端口或有线网卡。In a possible implementation manner, the first input port or the second input port is a high-definition multimedia interface HDMI port, an audio and video AV port, a wireless fidelity (wireless fidelity, WIFI) port or a wired network card.
在一种可能的实现方式中,该方法还包括:第一源设备从第一电子设备接收第一媒体内容。也就是说,第一源设备接收第一消息之后,可以从第一电子设备接收第一媒体内容。或者,第一源设备接收第一消息之前,就可以从第一电子设备接收第一媒体内容,并缓存第一媒体内容,待接收到第一消息之后,可以向目的设备发送第一媒体内容。In a possible implementation manner, the method further includes: the first source device receiving the first media content from the first electronic device. That is, after receiving the first message, the first source device may receive the first media content from the first electronic device. Alternatively, before the first source device receives the first message, it may receive the first media content from the first electronic device, cache the first media content, and after receiving the first message, may send the first media content to the destination device.
在一种可能的实现方式中,第一源设备包括第一源管理器、第一SoC和第一传输模块,第一源设备从第一电子设备接收第一媒体内容包括:第一源管理器从第一输入端口读取第一电子设备的第一媒体内容,并将第一媒体内容发送至第一SoC;第一SoC对第一媒体内容进行压缩,将压缩后的第一媒体内容发送给第一传输模块,第一传输模块将压缩后的第一媒体内容发送至目的设备。例如,可以通过第一SoC将4k的媒体内容压缩为1080p或960p后发送给目的设备,无需目的设备进行压缩处理,可以节省目的设备的处理功耗。In a possible implementation manner, the first source device includes a first source manager, a first SoC, and a first transmission module, and the first source device receiving the first media content from the first electronic device includes: a first source manager Read the first media content of the first electronic device from the first input port, and send the first media content to the first SoC; the first SoC compresses the first media content, and sends the compressed first media content to The first transmission module, the first transmission module sends the compressed first media content to the destination device. For example, the 4k media content can be compressed into 1080p or 960p through the first SoC and sent to the destination device, without the destination device performing compression processing, which can save the processing power consumption of the destination device.
在一种可能的实现方式中,该方法还包括:第一SoC基于高带宽数字内容保护技术(high-bandwidth digital content protection,HDCP)对第一媒体内容进行解密;第一传输模块基于HDCP对压缩后的第一媒体内容进行加密。这样,可以保证媒体内容能够安全分享,有效保护有版权的媒体内容。In a possible implementation manner, the method further includes: the first SoC decrypts the first media content based on a high-bandwidth digital content protection technology (high-bandwidth digital content protection, HDCP); the first transmission module compresses the first media content based on HDCP After the first media content is encrypted. In this way, it can be ensured that the media content can be safely shared, and the copyrighted media content can be effectively protected.
在一种可能的实现方式中,第一源设备包括第一源管理器和第一传输模块,第一源设备从第一电子设备接收第一媒体内容包括:第一源管理器从第一输入端口读取第一电子设备的第一媒体内容,并将第一媒体内容发送至第一传输模块,第一传输模块将第一媒体内容发送至目的设备。即第一源设备可以直接将第一电子设备的第一媒体内容发送至目的设备。In a possible implementation manner, the first source device includes a first source manager and a first transmission module, and the first source device receiving the first media content from the first electronic device includes: the first source manager receives the first input from the first source device. The port reads the first media content of the first electronic device, and sends the first media content to the first transmission module, and the first transmission module sends the first media content to the destination device. That is, the first source device can directly send the first media content of the first electronic device to the destination device.
在一种可能的实现方式中,第一源设备还包括第一显示模块和第一扬声器,该方法还包括:第一SoC接收第一媒体内容后,对第一媒体内容进行解码处理,将解码处理后的第一媒体内容中的视频内容发送给第一显示模块,将解码处理后的第一媒体内容中的音频内容发送给第一扬声器;第一显示模块播放视频内容,第一扬声器播放音频内容。这样,第一源设备和目的设备都可以播放第一媒体内容,比如,当用户通过客厅电视观看机顶盒的直播节目时,若用户移步到厨房或卧室,可以通过其他设备(例如,手机或平板)继续收看直播节目,可以提高用户体验。In a possible implementation manner, the first source device further includes a first display module and a first speaker, and the method further includes: after the first SoC receives the first media content, decoding the first media content, and decoding the decoded The video content in the processed first media content is sent to the first display module, and the audio content in the decoded and processed first media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content. In this way, both the first source device and the destination device can play the first media content. For example, when the user watches the live program of the set-top box through the TV in the living room, if the user moves to the kitchen or bedroom, the user can play the first media content through other devices (for example, a mobile phone or a tablet). ) to continue watching live programs, which can improve user experience.
在一种可能的实现方式中,第一源设备还包括第一显示模块和第一扬声器,该方法还包括:第一源管理器、第一显示模块和第一扬声器处于休眠状态。这样,目的设备可以通第一源设备获取第一媒体内容并播放第一媒体内容,第一源设备可以熄屏或待机(即第一源管理器、第一显示模块和第一扬声器处于休眠状态)可以节省第一源设备的耗电。In a possible implementation manner, the first source device further includes a first display module and a first speaker, and the method further includes: the first source manager, the first display module and the first speaker are in a sleep state. In this way, the destination device can obtain the first media content through the first source device and play the first media content, and the first source device can turn off the screen or stand by (that is, the first source manager, the first display module and the first speaker are in a dormant state). ) can save the power consumption of the first source device.
在一种可能的实现方式中,第一源设备包括第一连接管理模块,目的设备包括第二连接管理模块,方法还包括:第一连接管理模块和第二连接管理模块基于预设周期传输心跳消息。这样,当第一源设备熄屏时,可以通过“心跳”保证第一连接管理模块处于运行状态,当第一连接管理模块接收到第二连接管理模块发送的特定消息(例如,第一消息)时,可以唤醒进入休眠的第一源管理器,即在第一源设备熄屏或待机时,目的设备仍可以与第一源设备进行交互,无需主动开启第一源设备(例如,用户通过遥控主动唤醒第一源设备),可以提高用户体验。In a possible implementation manner, the first source device includes a first connection management module, the destination device includes a second connection management module, and the method further includes: the first connection management module and the second connection management module transmit a heartbeat based on a preset period information. In this way, when the screen of the first source device is turned off, the "heartbeat" can be used to ensure that the first connection management module is in a running state, and when the first connection management module receives a specific message (for example, the first message) sent by the second connection management module When the first source manager is turned off, the destination device can still interact with the first source device without actively turning on the first source device (for example, the user can Actively wake up the first source device), which can improve the user experience.
在一种可能的实现方式中,第一源设备还包括第一显示模块和第一扬声器,该方法还包括:第一SoC接收第四媒体内容,对第四媒体内容进行解码处理,将解码处理后的第四媒体内容中的视频内容发送给第一显示模块,将解码处理后的第四媒体内容中的音频内容发送给第一扬声器;第一显示模块播放视频内容,第一扬声器播放音频内容。这样,第一源设备可以播放第四媒体内容,第四媒体内容可以来自其他输入端口(例如,第四输入端口)或者路由器,目的设备可以通第一源设备获取第一媒体内容并播放第一媒体内容,即目的设备和第一源设备可以分别播放不同的媒体内容。In a possible implementation manner, the first source device further includes a first display module and a first speaker, and the method further includes: the first SoC receives the fourth media content, performs decoding processing on the fourth media content, and performs decoding processing on the fourth media content. The video content in the fourth media content is sent to the first display module, and the audio content in the decoded fourth media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content . In this way, the first source device can play the fourth media content, the fourth media content can come from other input ports (for example, the fourth input port) or a router, and the destination device can obtain the first media content through the first source device and play the first media content. The media content, that is, the destination device and the first source device can play different media content respectively.
第四方面,本申请提供一种芯片系统,该芯片系统包括一个或多个接口电路和一个或多个处理器。该接口电路和处理器通过线路互联。In a fourth aspect, the present application provides a chip system including one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by wires.
上述芯片系统可以应用于包括通信模块和存储器的目的设备。该接口电路用于从电子设备的存储器接收信号,并向处理器发送接收到的信号,该信号包括存储器中存储的计算机指令。当处理器执行该计算机指令时,目的设备可以执行如第一方面或第二方面及其任一种可能的设计方式所述的方法。The above chip system can be applied to a destination device including a communication module and a memory. The interface circuit is configured to receive signals from the memory of the electronic device and send the received signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the destination device can execute the method described in the first aspect or the second aspect and any possible design manners thereof.
或者,上述芯片系统可以应用于包括通信模块和存储器的第一源设备。该接口电路用于从家居设备的存储器接收信号,并向处理器发送接收到的信号,该信号包括存储器中存储的计算机指令。当处理器执行该计算机指令时,第一源设备可以执行如第一方面或第三 方面及其任一种可能的设计方式所述的方法。Alternatively, the above chip system may be applied to a first source device including a communication module and a memory. The interface circuit is configured to receive signals from the memory of the home appliance and send the received signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the first source device may perform the method as described in the first aspect or the third aspect and any possible designs thereof.
第五方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令。当计算机指令在目的设备上运行时,使得该目的设备执行如第一方面、第二方面及其任一种可能的设计方式所述的方法。当计算机指令在第一源设备上运行时,使得该第一源设备执行如第一方面、第三方面及其任一种可能的设计方式所述的方法。In a fifth aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on the target device, the target device is caused to perform the method described in the first aspect, the second aspect and any possible design manners thereof. When the computer instructions are executed on the first source device, the first source device is caused to perform the method described in the first aspect, the third aspect and any possible design manners thereof.
第六方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面、第二方面或第三方面及其任一种可能的设计方式所述的方法。In a sixth aspect, the present application provides a computer program product that, when the computer program product is run on a computer, causes the computer to perform the first aspect, the second aspect or the third aspect and any possible designs thereof method described.
可以理解地,上述提供的第四方面所述的芯片系统,第五方面所述的计算机可读存储介质,第六方面所述的计算机程序产品所能达到的有益效果,可参考如第一方面、第二方面或第三方面及其任一种可能的设计方式中的有益效果,此处不再赘述。It can be understood that, for the beneficial effects that can be achieved by the chip system described in the fourth aspect, the computer-readable storage medium described in the fifth aspect, and the computer program product described in the sixth aspect, please refer to the first aspect. , the second aspect or the third aspect and the beneficial effects in any possible design manners thereof, which will not be repeated here.
第七方面,本申请提供一种媒体内容共享系统,包括目的设备和第一源设备,其中,目的设备可以执行如第一方面或第二方面及其任一种可能的设计方式所述的方法,第一源设备可以执行如第一方面或第三方面及其任一种可能的设计方式所述的方法。In a seventh aspect, the present application provides a media content sharing system, including a destination device and a first source device, wherein the destination device can execute the method described in the first aspect or the second aspect and any possible design manners thereof , the first source device may execute the method described in the first aspect or the third aspect and any possible design manners thereof.
可选的,上述媒体内容共享系统还可以包括第二源设备、切换设备和电子设备,第二源设备、切换设备和电子设备可以执行第一方面及其任一种可能的设计方式中第二源设备、切换设备和电子设备(第一电子设备、第二电子设备或第三电子设备)所涉及的方法。Optionally, the above-mentioned media content sharing system may further include a second source device, a switching device, and an electronic device. A method involving a source device, a switching device and an electronic device (a first electronic device, a second electronic device or a third electronic device).
附图说明Description of drawings
图1为本申请实施例提供的一种系统架构示意图;FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图2为本申请实施例提供的一种设备110的硬件结构示意图;FIG. 2 is a schematic diagram of a hardware structure of a device 110 according to an embodiment of the present application;
图3为本申请实施例提供的又一种设备110的结构示意图;FIG. 3 is a schematic structural diagram of another device 110 provided by an embodiment of the present application;
图4A为本申请实施例提供的一种适用于媒体内容分享方法的信号交互示意图;4A is a schematic diagram of signal interaction applicable to a media content sharing method provided by an embodiment of the present application;
图4B为本申请实施例提供的一种适用于媒体内容分享方法的信号交互示意图;4B is a schematic diagram of signal interaction applicable to a media content sharing method provided by an embodiment of the present application;
图5A为本申请实施例提供的又一种适用于媒体内容分享方法的信号交互示意图;5A is a schematic diagram of another signal interaction suitable for a media content sharing method provided by an embodiment of the present application;
图5B为本申请实施例提供的又一种适用于媒体内容分享方法的信号交互示意图;5B is a schematic diagram of another signal interaction suitable for a media content sharing method provided by an embodiment of the present application;
图6为本申请实施例提供的一种目的设备和源设备的显示示意图;FIG. 6 is a schematic display diagram of a destination device and a source device according to an embodiment of the present application;
图7为本申请实施例提供的一种目的设备100与源设备200的信号交互示意图;FIG. 7 is a schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application;
图8为本申请实施例提供的又一种目的设备和源设备的显示示意图;FIG. 8 is a schematic display diagram of another destination device and a source device provided by an embodiment of the present application;
图9为本申请实施例提供的又一种目的设备100与源设备200的信号交互示意图;FIG. 9 is another schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application;
图10为本申请实施例提供的又一种目的设备和源设备的显示示意图;FIG. 10 is a schematic display diagram of yet another destination device and source device provided by an embodiment of the present application;
图11为本申请实施例提供的一种目的设备100与源设备200、源设备500的信号交互示意图;11 is a schematic diagram of signal interaction between a destination device 100, a source device 200, and a source device 500 according to an embodiment of the application;
图12为本申请实施例提供的又一种目的设备和源设备的显示示意图;FIG. 12 is a schematic display diagram of yet another destination device and source device provided by an embodiment of the present application;
图13为本申请实施例提供的又一种目的设备100与源设备200的信号交互示意图;FIG. 13 is another schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application;
图14A为本申请实施例提供的又一种目的设备和源设备的显示示意图;14A is a schematic display diagram of yet another destination device and source device provided by an embodiment of the present application;
图14B为本申请实施例提供的又一种目的设备100与源设备200的信号交互示意图;FIG. 14B is another schematic diagram of signal interaction between the destination device 100 and the source device 200 according to an embodiment of the present application;
图15为本申请实施例提供的又一种目的设备和源设备的显示示意图;15 is a schematic display diagram of yet another destination device and a source device provided by an embodiment of the present application;
图16为本申请实施例提供的又一种目的设备100与源设备200的信号交互示意图;FIG. 16 is another schematic diagram of signal interaction between a destination device 100 and a source device 200 according to an embodiment of the present application;
图17为本申请实施例提供的一种芯片系统的结构示意图。FIG. 17 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“至少一个”是指一个或多个,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the present application, unless otherwise specified, "at least one" refers to one or more, and "a plurality" refers to two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different.
目前,一台机顶盒可以供一台电视使用,若用户希望在其他设备(例如,另一部电视)上收看机顶盒中的内容,需要使用一分二的分屏器来实现不同电视的同时播放,这需要满足长度要求的HDMI线缆进行布线,操作比较困难。并且,若用户希望在手机或平板等设备观看机顶盒中的内容,由于这些设备没有HDMI端口,无法通过分屏器实现机顶盒的内容共享。At present, one set-top box can be used by one TV. If users want to watch the content in the set-top box on other devices (for example, another TV), they need to use a one-to-two screen splitter to achieve simultaneous playback of different TVs. This requires HDMI cables that meet the length requirements for wiring, which is difficult to operate. Moreover, if the user wants to watch the content in the set-top box on a device such as a mobile phone or a tablet, since these devices do not have an HDMI port, the content sharing of the set-top box cannot be achieved through a screen splitter.
本申请实施例提供一种媒体内容共享方法,目的设备可以显示第一媒体内容来源和第二媒体内容来源;第一媒体内容来源和第二媒体内容来源与第一源设备关联;目的设备响应于用户选择第一媒体内容来源的操作,向第一源设备发送第一消息;第一源设备响应于接收到第一消息,向目的设备发送从第一输入端口接收的来自第一电子设备的第一媒体内容;目的设备接收第一媒体内容,并播放第一媒体内容;目的设备响应于用户选择第二媒体内容来源的操作,向第一源设备发送第二消息;第一源设备响应于接收到第二消息,向目的设备发送从第二输入端口接收的来自第二电子设备的第二媒体内容;目的设备接收第二媒体内容,并播放第二媒体内容。An embodiment of the present application provides a media content sharing method, where a destination device can display a first media content source and a second media content source; the first media content source and the second media content source are associated with the first source device; the destination device responds to The operation of the user selecting the source of the first media content sends the first message to the first source device; the first source device, in response to receiving the first message, sends the first message received from the first input port from the first electronic device to the destination device. a media content; the destination device receives the first media content and plays the first media content; the destination device sends a second message to the first source device in response to the user's operation of selecting the source of the second media content; the first source device responds to receiving To the second message, send the second media content from the second electronic device received from the second input port to the destination device; the destination device receives the second media content and plays the second media content.
其中,媒体内容来源(第一媒体内容来源或第二媒体内容来源)可以包括输入端口的标识、源设备的标识、媒体内容对应的应用程序、媒体内容的频道信息或媒体内容的节目信息中的至少一种。媒体内容来源也可以称为数据源。媒体内容来源可以包括外部媒体内容来源(也可以称为外部数据源)。或者媒体内容来源可以包括外部媒体内容来源和本机媒体内容来源(也可以称为本机数据源)。其中,外部媒体内容来源来自源设备(例如,第一源设备,第二源设备),本机媒体内容来源来自目的设备自身或者与目的设备直接连接的电子设备(例如,通过HDMI或AV线缆连接的机顶盒)。Wherein, the media content source (the first media content source or the second media content source) may include the identification of the input port, the identification of the source device, the application program corresponding to the media content, the channel information of the media content or the program information of the media content. at least one. Media content sources may also be referred to as data sources. Media content sources may include external media content sources (which may also be referred to as external data sources). Or media content sources may include external media content sources and native media content sources (also referred to as native data sources). The source of external media content comes from the source device (eg, the first source device, the second source device), and the source of local media content comes from the destination device itself or an electronic device directly connected to the destination device (eg, through HDMI or AV cable) connected set-top box).
这样,用户能够在目的设备(例如,手机、平板、带屏音箱等)上观看来自第一源设备(例如,电视机)的媒体内容,且用户能够切换不同的媒体内容来源,以观看不同的媒体内容,可以提高用户体验。In this way, the user can watch the media content from the first source device (eg, TV set) on the destination device (eg, mobile phone, tablet, speaker with screen, etc.), and the user can switch different media content sources to watch different media content sources. Media content that can improve the user experience.
相比现有技术,基于本申请实施例提供的方法,无需HDMI线缆和分屏器,无需用户操作布置,即可使用户能够在目的设备上观看第一源设备连接的电子设备中的媒体内容,可以降低用户成本且提高用户体验。Compared with the prior art, based on the method provided by the embodiments of the present application, the user can watch the media in the electronic device connected to the first source device on the destination device without the need for an HDMI cable and a screen splitter, and without the need for user operation and arrangement. content, which can reduce user costs and improve user experience.
下面介绍本申请实施例提供的一种系统。The following introduces a system provided by an embodiment of the present application.
如图1所示,为本申请实施例提供的一种系统的架构示意图。如图1所示,该系统可以包括:一个或多个源设备(例如,源设备1(第一源设备)至源设备n(例如,第二源设备),n为大于1的整数),一个或多个电子设备(例如,机顶盒1(第一电子设备)至机顶盒n(例如,第二电子设备、第三电子设备等),n为大于1的整数)、一个或多个目的设备(例如,目的设备1、目的设备2至目的设备m,m为大于1的整数)。每个源设备 和每个目的设备之间可以是P2P连接或WiFi直连连接。可选的,该系统还可以包括路由器。n个源设备和m个目的设备之间可以基于路由器连接到同一个局域网。其中,每个源设备可以连接一个或多个机顶盒,源设备与机顶盒之间可以通过HDMI线/音视频(audio and video,AV)线连接。AV端口也可以称为复合端口(composite video connector)。可选的,上述系统还可以包括切换设备(未示出),切换设备可以用于切换电子设备的频道。As shown in FIG. 1 , it is a schematic structural diagram of a system provided by an embodiment of the present application. As shown in FIG. 1 , the system may include: one or more source devices (eg, source device 1 (first source device) to source device n (eg, second source device), where n is an integer greater than 1), One or more electronic devices (eg, set-top box 1 (first electronic device) to set-top box n (eg, second electronic device, third electronic device, etc.), where n is an integer greater than 1), one or more destination devices ( For example, destination device 1, destination device 2 to destination device m, where m is an integer greater than 1). There can be a P2P connection or a WiFi direct connection between each source device and each destination device. Optionally, the system may also include a router. The n source devices and m destination devices can be connected to the same local area network based on routers. Wherein, each source device can be connected to one or more set-top boxes, and the source device and the set-top box can be connected through an HDMI cable/audio and video (audio and video, AV) cable. The AV port may also be called a composite video connector. Optionally, the above system may further include a switching device (not shown), and the switching device may be used to switch the channel of the electronic device.
其中,源设备或目的设备可以是智慧屏/电视机、手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本申请实施例对用户设备的具体形态不作特殊限制。Wherein, the source device or the destination device can be a smart screen/TV, mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, and Cell phones, personal digital assistants (personal digital assistants, PDAs), augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) devices, etc., the embodiments of the present application do not limit the specific form of the user equipment.
电子设备可以是机顶盒,机顶盒可以是数字电视机顶盒或网络电视机顶盒。其中,数字电视机顶盒可以包括接收有线电视的数字机顶盒、接收卫星电视的数字机顶盒和接收地面广播电视的数字机顶盒。数字机顶盒例如可以是网际互连协议电视(Internet Protocol television,IPTV)机顶盒。机顶盒可以将接收到的媒体内容(音频内容、视频内容、频道信息、节目信息)等)通过HDMI线或AV线发送给源设备。其中,媒体内容也可以称为多媒体内容,本申请不做限定。需要说明的是,一份媒体内容经过加密、解密、编码、解码,压缩,解压缩中一项或多项处理过程后,媒体内容是不变的,该媒体内容对应的媒体数据可以基于不同的处理过程而改变,即媒体内容在不同阶段可以对应不同的媒体数据。The electronic device may be a set-top box, and the set-top box may be a digital TV set-top box or a network TV set-top box. The digital TV set-top box may include a digital set-top box for receiving cable TV, a digital set-top box for receiving satellite TV, and a digital set-top box for receiving terrestrial broadcast TV. The digital set-top box may be, for example, an Internet Protocol television (Internet Protocol television, IPTV) set-top box. The set-top box can send the received media content (audio content, video content, channel information, program information, etc.) to the source device through an HDMI cable or an AV cable. The media content may also be referred to as multimedia content, which is not limited in this application. It should be noted that, after a piece of media content has undergone one or more processing processes of encryption, decryption, encoding, decoding, compression, and decompression, the media content remains unchanged, and the media data corresponding to the media content may be based on different The processing process changes, that is, the media content can correspond to different media data at different stages.
如图2所示,上述通信系统架构中的目的设备、源设备(例如,第一源设备或第二源设备)、电子设备(例如,第一电子设备、第二电子设备或第三电子设备)或切换设备可以为设备110,设备110可以包括:处理器111,存储器112,无线通信处理模块113,电源开关114,有线LAN通信处理模块115,HDMI通信处理模块116,通用串行总线(universal serial bus,USB)通信处理模块117,显示屏118,音频模块119,扬声器119A,麦克风119B,等等。其中:As shown in FIG. 2 , the destination device, the source device (eg, the first source device or the second source device), the electronic device (eg, the first electronic device, the second electronic device or the third electronic device) in the above communication system architecture ) or the switching device may be the device 110, and the device 110 may include: a processor 111, a memory 112, a wireless communication processing module 113, a power switch 114, a wired LAN communication processing module 115, an HDMI communication processing module 116, a universal serial bus (universal serial bus) serial bus, USB) communication processing module 117, display screen 118, audio module 119, speaker 119A, microphone 119B, and so on. in:
处理器111可用于读取和执行计算机可读指令。具体实现中,处理器111可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器111的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等等。The processor 111 may be used to read and execute computer readable instructions. In a specific implementation, the processor 111 may mainly include a controller, an arithmetic unit, and a register. Among them, the controller is mainly responsible for instruction decoding, and sends out control signals for the operations corresponding to the instructions. The arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of the instruction. In a specific implementation, the hardware architecture of the processor 111 may be an application specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, an NP architecture, or the like.
在一些实施例中,处理器111可以用于解析无线通信处理模块113和/有线LAN通信处理模块115接收到的信号。处理器111可以用于根据信号的解析结果进行相应的处理操作,如响应数据请求,又如根据该控制请求,控制显示屏118的显示和/或控制音频模块119的输出,等等。In some embodiments, the processor 111 may be used to parse the signals received by the wireless communication processing module 113 and/or the wired LAN communication processing module 115 . The processor 111 can be used to perform corresponding processing operations according to the analysis result of the signal, such as responding to a data request, or controlling the display of the display screen 118 and/or the output of the audio module 119 according to the control request, and so on.
在一些实施例中,处理器111还可用于生成无线通信处理模块113和/有线LAN通信处理模块115向外发送的信号,如蓝牙广播信号、信标信号等等。In some embodiments, the processor 111 may also be configured to generate signals sent out by the wireless communication processing module 113 and/or the wired LAN communication processing module 115, such as Bluetooth broadcast signals, beacon signals, and the like.
存储器112与处理器111耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器112可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器112可以存储操作系统,例如uCOS、VxWorks、RTLinux等嵌入式操作系统。存储器112还可以存储通信程序,该 通信程序可用于与其他设备进行通信。Memory 112 is coupled to processor 111 for storing various software programs and/or sets of instructions. In particular implementations, memory 112 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 112 may store operating systems, such as embedded operating systems such as uCOS, VxWorks, RTLinux, and the like. Memory 112 may also store communication programs that may be used to communicate with other devices.
无线通信处理模块113可以包括蓝牙(BT)通信处理模块113A、WLAN通信处理模块113B。The wireless communication processing module 113 may include a Bluetooth (BT) communication processing module 113A and a WLAN communication processing module 113B.
在一些实施例中,蓝牙(BT)通信处理模块113A、WLAN通信处理模块113B中的一项或多项可以监听到其他设备发射的信号,如探测请求、扫描信号等等,并可以发送响应信号,如探测响应、扫描响应等,使得其他设备可以发现设备110,并与其他设备建立无线通信连接,通过蓝牙或WLAN中的一种或多种无线通信技术与其他设备进行通信。WLAN通信处理模块113B可以包括Wi-Fi direct、Wi-Fi LAN或Wi-Fi softAP中一项或多项WLAN通信的解决方案。In some embodiments, one or more of the Bluetooth (BT) communication processing module 113A and the WLAN communication processing module 113B can listen to signals transmitted by other devices, such as probe requests, scan signals, etc., and can send response signals , such as a probe response, a scan response, etc., so that other devices can discover the device 110, establish a wireless communication connection with other devices, and communicate with other devices through one or more wireless communication technologies in Bluetooth or WLAN. The WLAN communication processing module 113B may include one or more solutions for WLAN communication among Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.
在另一些实施例中,蓝牙(BT)通信处理模块113A、WLAN通信处理模块113B中的一项或多项也可以发射信号,如广播蓝牙信号、信标信号,使得其他设备可以发现设备110,并与其他设备建立无线通信连接,通过蓝牙或WLAN中的一种或多种无线通信技术与其他设备进行通信。In other embodiments, one or more of the Bluetooth (BT) communication processing module 113A and the WLAN communication processing module 113B may also transmit signals, such as broadcasting Bluetooth signals, beacon signals, so that other devices can discover the device 110, And establish a wireless communication connection with other devices, and communicate with other devices through one or more wireless communication technologies in Bluetooth or WLAN.
在一些实施例中,设备110可以通过WLAN无线通信技术连接上Internet,从而与Internet上的服务器(例如频道识别服务器,点播资源服务器,等等)建立通信连接。In some embodiments, the device 110 may be connected to the Internet through a WLAN wireless communication technology, thereby establishing a communication connection with a server on the Internet (eg, a channel identification server, an on-demand resource server, etc.).
无线通信处理模块113还可以包括红外线通信处理模块113C。红外线通信处理模块113C可以通过红外遥控技术与其他设备(如遥控器)进行通信。The wireless communication processing module 113 may also include an infrared communication processing module 113C. The infrared communication processing module 113C can communicate with other devices (eg, remote controllers) through infrared remote control technology.
电源开关114可用于控制电源向显示器118的供电。The power switch 114 may be used to control the supply of power to the display 118 from the power source.
有线LAN通信处理模块115可用于通过有线LAN和同一个LAN中的其他设备进行通信,还可用于通过有线LAN连接到WAN,可与WAN中的设备通信。The wired LAN communication processing module 115 can be used to communicate with other devices in the same LAN through the wired LAN, and can also be used to connect to the WAN through the wired LAN, and can communicate with the devices in the WAN.
HDMI通信处理模块116可用于通过HDMI端口与机顶盒等设备进行通信。例如,HDMI通信处理模块116可以通过HDMI端口接收机顶盒发送的媒体内容,等等。The HDMI communication processing module 116 can be used to communicate with devices such as a set-top box through an HDMI port. For example, the HDMI communication processing module 116 may receive media content sent by a set-top box through an HDMI port, and so on.
USB通信处理模块117可用于通过USB接口与其他设备进行通信。The USB communication processing module 117 can be used to communicate with other devices through the USB interface.
显示屏118可用于显示图像,视频等。显示屏118可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED)显示屏,有源矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)显示屏,柔性发光二极管(flexible light-emitting diode,FLED)显示屏,量子点发光二极管(quantum dot emitting diodes,QLED)显示屏等等。 Display screen 118 may be used to display images, video, and the like. The display screen 118 can be a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED) display, an active-matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED) Display, flexible light-emitting diode (flexible light-emitting diode, FLED) display, quantum dot light-emitting diode (quantum dot emitting diodes, QLED) display and so on.
音频模块119可用于将数字音频信号转换成模拟音频信号输出,也可用于将模拟音频输入转换为数字音频信号。音频模块119还可以用于对音频信号编码和解码。在一些实施例中,音频模块119可以设置与处理器111中,或将音频模块119的部分功能模块设置与处理器111中。音频模块119可以通过总线接口(例如UART接口,等等)向无线通信模块113传递音频信号,实现通过蓝牙音箱播放音频信号的功能。The audio module 119 can be used to convert digital audio signal to analog audio signal output, and can also be used to convert analog audio input to digital audio signal. Audio module 119 may also be used to encode and decode audio signals. In some embodiments, the audio module 119 may be arranged in the processor 111 , or some functional modules of the audio module 119 may be arranged in the processor 111 . The audio module 119 can transmit audio signals to the wireless communication module 113 through a bus interface (such as a UART interface, etc.), so as to realize the function of playing audio signals through a Bluetooth speaker.
扬声器119A可以用于将音频模块119的发送的音频信号转换为声音信号。The speaker 119A may be used to convert the audio signal transmitted by the audio module 119 into a sound signal.
在一些实施例中,设备110还可以包括有麦克风119B,也称“话筒”,“传声器”,用于将将声音信号转换为电信号。当发送语音控制指令时,用户可以通过人嘴发声,将声音信号输入到麦克风119B。In some embodiments, the device 110 may also include a microphone 119B, also referred to as "microphone", "microphone" for converting the acoustic signal into an electrical signal. When sending the voice control command, the user can make a sound through the human mouth, and input the sound signal to the microphone 119B.
可以理解的是,上述设备110可以具有比图2中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图2中所示出的各种部件可以 在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It will be appreciated that the device 110 described above may have more or fewer components than those shown in FIG. 2 , may combine two or more components, or may have different component configurations. The various components shown in Figure 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
如图3所示,示出了设备110的一种软件架构,设备110可以包括:电视(television,TV)播放器(player)、扬声器(speaker)、TV应用程序接口(application programming interface,API)、芯片级系统(system on a chip,SoC)、TV服务(service)、传输模块、连接管理模块、硬件输入端口以及切换服务API等等。As shown in FIG. 3 , a software architecture of the device 110 is shown. The device 110 may include: a television (television, TV) player (player), a speaker (speaker), and a TV application programming interface (API) , system on a chip (SoC), TV service (service), transmission module, connection management module, hardware input port and switching service API, etc.
其中,TV API用于提供TV播放所需要的业务接口,还用于处理设备110与其他设备(远端设备)的适配。TV API可以包括远端适配模块和近端适配模块。其中,远端适配模块用于处理对远端设备连接的机顶盒的相应操作(包括切换HDMI端口、切换节目(切换直播节目(即切换电视台/频道),或者切换点播节目)等)。近端适配模块用于处理对设备110(近端设备,即本机)连接的机顶盒的相应操作(包括切换HDMI端口、切换节目(切换直播节目(即切换电视台/频道),或者切换点播节目)等)。Among them, the TV API is used to provide the service interface required for TV playback, and is also used to process the adaptation between the device 110 and other devices (remote devices). The TV API can include far-end adaptation modules and near-end adaptation modules. The remote adaptation module is used to process corresponding operations on the set-top box connected to the remote device (including switching HDMI ports, switching programs (switching live programs (ie, switching TV stations/channels), or switching on-demand programs), etc.). The near-end adaptation module is used to process the corresponding operations on the set-top box connected to the device 110 (near-end device, that is, the machine) (including switching HDMI ports, switching programs (switching live programs (ie, switching TV stations/channels), or switching on-demand programs). )Wait).
硬件输入端口包括调谐器、HDMI端口和AV端口。Hardware input ports include tuner, HDMI port and AV port.
TV服务用于管理设备110连接的硬件输入端口,可以进行输入端口的切换(不同的输入端口连接不同的机顶盒,机顶盒提供外部媒体内容来源,切换输入端口相当于切换机顶盒或者切换外部媒体内容来源)、数据读取等,以支持TV播放业务。TV服务可以包括源管理器(SourceManager)、DTV播放器和HDMI播放器。其中,SourceManager可以负责管理/切换外部媒体内容来源、从外部媒体内容来源读取信号。HDMI播放器用于检测HDMI端口是否有信号,若有信号可以从HDMI端口读取媒体内容,并将媒体内容传输给SoC。例如,当用户选择HDMI-1时,可以启动一个HDMI播放器,该HDMI播放器可以监听HDMI-1的信息,完成与对端设备的校验,然后开始读取HDMI-1的数据(媒体内容)。地面数字电视广播(DTV)播放器用于检测AV端口是否有信号,若有信号可以从DTV接口读取媒体内容,并将媒体内容传输给SoC。The TV service is used to manage the hardware input ports connected to the device 110, and can switch input ports (different input ports are connected to different set-top boxes, the set-top boxes provide external media content sources, and switching input ports is equivalent to switching set-top boxes or switching external media content sources) , data reading, etc., to support TV broadcasting services. TV services may include Source Manager, DTV Player, and HDMI Player. Among them, SourceManager can be responsible for managing/switching external media content sources and reading signals from external media content sources. The HDMI player is used to detect whether there is a signal on the HDMI port. If there is a signal, it can read the media content from the HDMI port and transmit the media content to the SoC. For example, when the user selects HDMI-1, an HDMI player can be started, the HDMI player can monitor the information of HDMI-1, complete the verification with the peer device, and then start to read the data of HDMI-1 (media content ). The terrestrial digital television broadcast (DTV) player is used to detect whether there is a signal on the AV port, if there is a signal, it can read the media content from the DTV interface and transmit the media content to the SoC.
SoC可以负责数据的加解密处理和编解码处理。SoC是指将微处理器、模拟IP核、数字IP核和存储器(或片外存储控制接口)集成在单一芯片上。示例性的,SoC可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以是集成在同一个处理器中。The SoC can be responsible for data encryption and decryption processing and codec processing. SoC refers to the integration of microprocessor, analog IP core, digital IP core and memory (or off-chip memory control interface) on a single chip. Exemplarily, the SoC may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, and a memory , video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in the same processor.
TV播放器的显示模块可以接收SoC发送的视频内容并进行显示,扬声器可以接收SoC发送的音频内容并进行播放。The display module of the TV player can receive and display the video content sent by the SoC, and the speaker can receive and play the audio content sent by the SoC.
连接管理模块用于提供跨设备(设备110与其他设备)的连接管理和指令交互。The connection management module is used to provide connection management and command interaction across devices (device 110 and other devices).
传输模块用于提供媒体内容的跨设备传输。在传输过程中,传输模块可以将媒体内容打包成一系列数据块,每个数据块的大小可以相同或不同,本申请不做限定。The transport module is used to provide cross-device transport of media content. During the transmission process, the transmission module may package the media content into a series of data blocks, and the size of each data block may be the same or different, which is not limited in this application.
切换服务API用于处理设备110与其他设备(例如,切换设备,切换设备可以是用于切换频道的红外控制设备)的适配。The switching service API is used to handle the adaptation of the device 110 with other devices (eg, a switching device, which may be an infrared control device for switching channels).
需要注意的是,为了区分目的设备和第一源设备,可以将第一源设备包括的各个模块称为第一扬声器、第一TV API、第一SoC、第一TV服务、第一传输模块、第一连接管理 模块、第一硬件输入端口以及第一切换服务API等等;将目的设备包括的各个模块称为第二扬声器、第二TV API、第二SoC、第二TV服务、第二传输模块、第二连接管理模块、第二硬件输入端口以及第二切换服务API等等。示例性的,如图7所示,第一源设备可以为源设备200,源设备200可以包括第一应用(例如,TV播放器201)、第一TV API(例如,TV API 202)、第一TV服务(例如,TV服务203)、第一连接管理模块(例如,连接管理模块204)、第一切换服务API(例如,切换服务API 205)、第一传输模块(例如,传输模块206)、第一SoC(例如,SoC 207)、第一扬声器(例如,扬声器208)、第一硬件输入端口(例如,硬件输入端口209)等等。目的设备可以为目的设备100,目的设备100可以包括第一应用(例如,TV播放器101)、第二TV API(例如,TV API 102)、第二TV服务(例如,TV服务103)、第二连接管理模块(例如,连接管理模块104)、第二切换服务API(例如,切换服务API 105)、第二传输模块(例如,传输模块106)、第二SoC(例如,SoC 107)、第二扬声器(例如,扬声器108)、第二硬件输入端口(例如,硬件输入端口109)等等。其中,各个模块还可以包括相应的子模块。上述各个模块的功能可以参考下文的相关描述,在此不做赘述。It should be noted that, in order to distinguish the destination device from the first source device, each module included in the first source device may be referred to as the first speaker, the first TV API, the first SoC, the first TV service, the first transmission module, The first connection management module, the first hardware input port, the first switching service API, etc.; the modules included in the destination device are referred to as the second speaker, the second TV API, the second SoC, the second TV service, the second transmission module, a second connection management module, a second hardware input port, a second switching service API, and so on. Exemplarily, as shown in FIG. 7 , the first source device may be the source device 200, and the source device 200 may include a first application (for example, TV player 201), a first TV API (for example, TV API 202), a first A TV service (eg, TV service 203 ), a first connection management module (eg, connection management module 204 ), a first switching service API (eg, switching service API 205 ), a first transmission module (eg, transmission module 206 ) , a first SoC (eg, SoC 207), a first speaker (eg, speaker 208), a first hardware input port (eg, hardware input port 209), and the like. The destination device may be the destination device 100, and the destination device 100 may include a first application (eg, TV player 101 ), a second TV API (eg, TV API 102 ), a second TV service (eg, TV service 103 ), a second TV service (eg, TV service 103 ), a second TV API (eg, TV API 102 ), Two connection management modules (for example, connection management module 104), a second handover service API (for example, handover service API 105), a second transmission module (for example, transmission module 106), a second SoC (for example, SoC 107), a second Two speakers (eg, speaker 108), a second hardware input port (eg, hardware input port 109), and so on. Wherein, each module may also include corresponding sub-modules. For the functions of the above modules, reference may be made to the related descriptions below, which will not be repeated here.
如图4A所示,本申请实施例提供一种媒体内容共享方法,包括:As shown in FIG. 4A , an embodiment of the present application provides a method for sharing media content, including:
401、目的设备和第一源设备之间建立P2P连接,或者目的设备和第一源设备连接到同一局域网。401. A P2P connection is established between the destination device and the first source device, or the destination device and the first source device are connected to the same local area network.
这样,目的设备可以基于P2P连接或局域网从第一源设备接收媒体内容(例如,第一媒体内容或第二媒体内容)。其中,P2P连接可以是WIFI直连,蓝牙连接等等。In this way, the destination device may receive media content (eg, the first media content or the second media content) from the first source device based on the P2P connection or the local area network. Among them, the P2P connection may be a WIFI direct connection, a Bluetooth connection, and so on.
402、目的设备响应于用户打开第一应用的操作,向第一源设备发送第三消息。402. In response to the user's operation of opening the first application, the destination device sends a third message to the first source device.
403、第一源设备响应于接收到第三消息,向目的设备发送第一媒体内容来源和第二媒体内容来源。403. In response to receiving the third message, the first source device sends the first media content source and the second media content source to the destination device.
404、目的设备显示第一媒体内容来源和第二媒体内容来源;第一媒体内容来源和第二媒体内容来源与第一源设备关联。404. The destination device displays the first media content source and the second media content source; the first media content source and the second media content source are associated with the first source device.
其中,第一媒体内容来源可以包括第一输入端口的标识、第一源设备的标识、第一媒体内容对应的应用程序、第一媒体内容的频道信息或第一媒体内容的节目信息中的至少一种;第二媒体内容来源包括第二输入端口的标识、第一源设备的标识或第二媒体内容对应的应用程序、第二媒体内容的频道信息或第二媒体内容的节目信息中的至少一种。示例性的,第一媒体内容对应的应用程序例如可以是视频APP或TV播放器等,第一媒体内容的频道信息例如可以是电视台/卫视名称(例如,“湖南卫视”)或频道号(“025”)等,第一媒体内容的节目信息例如可以是电视剧名称、综艺节目名称、电影名称等等。The source of the first media content may include at least one of an identifier of the first input port, an identifier of the first source device, an application program corresponding to the first media content, channel information of the first media content, or program information of the first media content One; the source of the second media content includes at least one of the identification of the second input port, the identification of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the program information of the second media content A sort of. Exemplarily, the application program corresponding to the first media content may be, for example, a video APP or a TV player, etc., and the channel information of the first media content may be, for example, the name of a TV station/satellite TV (for example, "Hunan Satellite TV") or a channel number ("Hunan Satellite TV"). 025"), etc., the program information of the first media content may be, for example, the title of a TV series, a variety show, a movie, and the like.
405、目的设备响应于用户选择第一媒体内容来源的操作,向第一源设备发送第一消息。405. The destination device sends a first message to the first source device in response to the user's operation of selecting the source of the first media content.
其中,第一消息可以包括第一输入端口的标识。第一输入端口可以为HDMI端口、音视频AV端口、WIFI端口或有线网卡。示例性的,第一输入端口可以为HDMI端口,第一输入端口的标识例如可以是HDMI-1。Wherein, the first message may include the identifier of the first input port. The first input port may be an HDMI port, an audio/video AV port, a WIFI port or a wired network card. Exemplarily, the first input port may be an HDMI port, and the identifier of the first input port may be, for example, HDMI-1.
406、第一源设备响应于接收到第一消息,向目的设备发送从第一输入端口接收的来自第一电子设备的第一媒体内容。406. In response to receiving the first message, the first source device sends the first media content from the first electronic device received through the first input port to the destination device.
在一种可能的设计中,第一源设备响应于接收到第一消息,从第一电子设备接收第一 媒体内容。在另一种可能的设计中,第一源设备在接收到第一消息之前,从第一电子设备接收第一媒体内容。In one possible design, the first source device receives the first media content from the first electronic device in response to receiving the first message. In another possible design, the first source device receives the first media content from the first electronic device before receiving the first message.
407、目的设备接收第一媒体内容,并播放第一媒体内容。407. The destination device receives the first media content, and plays the first media content.
408、目的设备响应于用户选择第二媒体内容来源的操作,向第一源设备发送第二消息。408. The destination device sends a second message to the first source device in response to the user's operation of selecting the source of the second media content.
其中,第二消息可以包括第二输入端口的标识。第二输入端口可以为HDMI端口、音视频AV端口、WIFI端口或有线网卡。示例性的,第二输入端口可以为HDMI端口,第二输入端口的标识例如可以是HDMI-2。Wherein, the second message may include the identifier of the second input port. The second input port can be an HDMI port, an audio and video AV port, a WIFI port or a wired network card. Exemplarily, the second input port may be an HDMI port, and the identifier of the second input port may be, for example, HDMI-2.
409、第一源设备响应于接收到第二消息,向目的设备发送从第二输入端口接收的来自第二电子设备的第二媒体内容。409. In response to receiving the second message, the first source device sends the second media content from the second electronic device received through the second input port to the destination device.
410、目的设备接收第二媒体内容,并播放第二媒体内容。410. The destination device receives the second media content, and plays the second media content.
示例性的,如图4B所示,以第一应用为TV播放器、第一媒体内容为HDMI-1,第二媒体内容为HDMI-2为例对上述步骤401-步骤410进行了说明。Exemplarily, as shown in FIG. 4B , the above steps 401 to 410 are described by taking the first application as a TV player, the first media content as HDMI-1, and the second media content as HDMI-2 as an example.
在一种可能的设计中,目的设备还可以与第二源设备建立连接(建立P2P连接或连接到同一个局域网),并从第二源设备获取第三媒体内容来源,这样,目的设备显示第一媒体内容来源、第二媒体内容来源和第三媒体内容来源;第三媒体内容来源与第二源设备关联。如图5A所示,上述媒体内容共享方法还可以包括如下步骤:In a possible design, the destination device can also establish a connection with the second source device (establish a P2P connection or connect to the same local area network), and obtain a third media content source from the second source device, so that the destination device displays the first A media content source, a second media content source, and a third media content source; the third media content source is associated with the second source device. As shown in Figure 5A, the above-mentioned media content sharing method may further include the following steps:
411a、目的设备响应于用户选择第三媒体内容来源的操作,向第二源设备发送第四消息。411a. The destination device sends a fourth message to the second source device in response to the user's operation of selecting the third media content source.
411b、第二源设备响应于接收到第四消息,向目的设备发送从第三输入端口接收的来自第三电子设备的第三媒体内容。411b. In response to receiving the fourth message, the second source device sends the third media content from the third electronic device received from the third input port to the destination device.
412、目的设备接收第三媒体内容,并播放第三媒体内容。412. The destination device receives the third media content, and plays the third media content.
413、目的设备响应于用户选择第一频道的操作,向第二源设备发送第五消息。413. In response to the user's operation of selecting the first channel, the destination device sends a fifth message to the second source device.
其中,第五消息可以包括第一频道的信息,第一频道的信息可以是上一个频道、下一个频道或频道的标识(例如,频道024)。Wherein, the fifth message may include information of the first channel, and the information of the first channel may be a previous channel, a next channel, or an identifier of a channel (eg, channel 024).
414、第二源设备响应于接收到第五消息,向切换设备发送第六消息。414. In response to receiving the fifth message, the second source device sends a sixth message to the switching device.
415、切换设备响应于接收到第六消息,向第三电子设备发送第七消息。415. In response to receiving the sixth message, the switching device sends a seventh message to the third electronic device.
切换设备可以通过红外线或蓝牙连接向第二电子设备发送第七消息。The switching device may send the seventh message to the second electronic device through an infrared or Bluetooth connection.
416、第三电子设备响应于接收到第七消息,获取第一频道的媒体内容,并将第一频道的媒体内容发送给第二源设备。416. In response to receiving the seventh message, the third electronic device acquires the media content of the first channel, and sends the media content of the first channel to the second source device.
417、第二源设备向目的设备发送第一频道的媒体内容。417. The second source device sends the media content of the first channel to the destination device.
418、目的设备接收第一频道的媒体内容,并播放第一频道的媒体内容。418. The destination device receives the media content of the first channel, and plays the media content of the first channel.
示例性的,如图5B所示,以第三媒体内容来源为HDMI-3,第五消息-第七消息包括第一频道的标识为例对上述步骤411a-步骤418进行了说明。Exemplarily, as shown in FIG. 5B , the above steps 411 a to 418 are described by taking the third media content source as HDMI-3 and the fifth message-seventh message including the identifier of the first channel as an example.
下面以目的设备(例如,设备602)与第一源设备(例如,设备601)建立连接,且第一源设备通过第一输入端口(例如,HDMI-1)连接第一电子设备(例如,机顶盒603)的场景为例,对选择媒体内容来源和播放媒体内容的过程进行说明:Next, a destination device (eg, device 602 ) is used to establish a connection with a first source device (eg, device 601 ), and the first source device is connected to a first electronic device (eg, a set-top box) through a first input port (eg, HDMI-1) 603) as an example, the process of selecting the media content source and playing the media content is described:
如图6中的(a)所示,设备601可以是源设备(例如,可以为电视机),设备601当前可以显示直播节目的界面6011,该直播节目的频道标识6012可以是CCTV1。设备603 是与设备601连接的机顶盒,直播节目的媒体内容是设备603发送给设备601的。如图6中的(b)所示,设备602可以是目的设备(例如,可以为平板电脑),平板电脑的主界面6021中可以包括多个应用的图标,例如可以包括“今天”的图标、“客厅电视”的图标、“电视直播”6022的图标,“视频”的图标等。主界面6021中还可以包括搜索控件和登录控件等,本申请不做限定。设备602可以接收用户点击第一应用(例如,“电视直播”6022)的操作,响应于该操作,设备602可以显示如图6中的(c)所示的界面6024。界面6024可以显示直播节目,该直播节目的频道标识6023为CCTV1,该直播节目的视频内容、音频内容是设备602从设备601接收到的。界面6024还可以包括标签6025,标签6025的内容例如可以为“设备601,HDMI-1”,用于提示用户当前直播节目的媒体内容是从设备601的HDMI-1接口接收到的。标签6025可以在短时间(例如,1s或2s)内显示在界面6024上,而后隐去,避免影响用户观看直播节目。用户退出“电视直播”后,可以用设备602上网、玩游戏、听歌等,本申请不做限定。As shown in (a) of FIG. 6 , the device 601 may be a source device (eg, a TV), and the device 601 can currently display an interface 6011 of a live program, and the channel identifier 6012 of the live program may be CCTV1. The device 603 is a set-top box connected to the device 601 , and the media content of the live program is sent by the device 603 to the device 601 . As shown in (b) of FIG. 6 , the device 602 may be a destination device (for example, a tablet computer), and the main interface 6021 of the tablet computer may include icons of multiple applications, such as the icon of “today”, The icon of "Living Room TV", the icon of "Live TV" 6022, the icon of "Video", etc. The main interface 6021 may also include search controls, login controls, etc., which are not limited in this application. The device 602 may receive an operation of the user clicking on the first application (eg, "Live TV" 6022 ), and in response to the operation, the device 602 may display an interface 6024 as shown in (c) of FIG. 6 . The interface 6024 can display a live program, the channel ID 6023 of the live program is CCTV1, and the video content and audio content of the live program are received by the device 602 from the device 601. The interface 6024 may further include a label 6025, and the content of the label 6025 may be, for example, "device 601, HDMI-1", which is used to prompt the user that the media content of the current live program is received from the HDMI-1 interface of the device 601. The label 6025 can be displayed on the interface 6024 for a short period of time (eg, 1 s or 2 s), and then disappear to avoid affecting the user's viewing of the live program. After the user exits "live TV", the device 602 can be used to surf the Internet, play games, listen to songs, etc., which is not limited in this application.
在一种可能的设计中,设备601向设备602发送媒体内容时,可以进行压缩、加密和分块传输编码等处理,这样设备602的界面6024显示的直播节目可能稍滞后于设备601的界面6011显示的直播节目。In a possible design, when the device 601 sends media content to the device 602, it can perform processing such as compression, encryption, and block transfer encoding, so that the live program displayed on the interface 6024 of the device 602 may slightly lag behind the interface 6011 of the device 601 Show the live program.
在另一种可能的设计中,设备601可以将直播节目的媒体内容缓存特定时间,该特定时间是根据设备601与设备602之间的传输延迟时间确定的,待特定时间后播放直播节目,以保证设备601和设备602可以同步播放直播节目。In another possible design, the device 601 may cache the media content of the live program for a specific time, the specific time is determined according to the transmission delay time between the device 601 and the device 602, and the live program is played after a specific time, so as to It is ensured that the device 601 and the device 602 can play the live program synchronously.
如图7所示,为本申请实施例提供的一种目的设备100和源设备200之间的信号传输示意图。源设备200连接机顶盒300,机顶盒300通过HDMI-1(端口)2092与源设备200连接。目的设备100接收用户打开TV播放器101(TV播放器101例如可以为“电视直播”应用)的操作,启动TV播放器。TV播放器向TV API 102发送第一消息。第一消息可以包括设备标识(identity,ID)(例如,源设备200)和端口ID(例如,HDMI-1)。TV播放器101调用TV API 102的远端适配模块1021。远端适配模块1021可以将第一消息发送给连接管理模块104。连接管理模块104可以管理目的设备100与源设备200的连接,并能够与源设备200进行指令交互。连接管理模块可以从第一消息中删除设备标识,仅将端口ID发送至源设备200的连接管理模块204,或者连接管理模块104可以直接将端口ID(例如,HDMI-1)发送至源设备200的连接管理模块204。连接管理模块204可以将端口ID发送给TV服务203的源管理器2031。源管理器2031根据端口ID确定需要从HDMI-1读取媒体内容,则可以调用HDMI播放器2033从HDMI-1读取媒体内容(第一媒体内容),并通过HDMI播放器2033将媒体内容发送至SoC 207。SoC 207将媒体内容发送至传输模块206。传输模块206可以将媒体内容传输至目的设备100的传输模块106。传输模块106可以将媒体内容发送至SoC 107。SoC 107。SoC 107可以对媒体内容中的视频内容进行解码处理,并将解码处理后的视频内容发送至TV播放器101的显示模块1011;同时SoC 107可以对媒体内容中的音频内容进行解码处理,并将解码处理后的音频内容发送至扬声器108,从而目的设备100可以播放机顶盒300的节目。另外,SoC 207也可以将视频内容发送至TV播放器201的显示模块2011,并将音频内容发送至扬声器208,从而源设备200可以播放机顶盒300的节目。这样,家庭中的多台设备(目的设备和源设备)可以共享一台机顶盒,即通过一台机顶盒可以同时满足两个设备(例如,两台电视机)观看节目的需 求,能够降低用户的成本。As shown in FIG. 7 , a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided. The source device 200 is connected to the set-top box 300 , and the set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092 . The destination device 100 receives the user's operation of opening the TV player 101 (for example, the TV player 101 may be a "live TV" application), and starts the TV player. The TV player sends a first message to the TV API 102. The first message may include a device identity (ID) (eg, source device 200) and a port ID (eg, HDMI-1). The TV player 101 calls the remote adaptation module 1021 of the TV API 102. The remote adaptation module 1021 may send the first message to the connection management module 104 . The connection management module 104 can manage the connection between the destination device 100 and the source device 200 , and can perform instruction interaction with the source device 200 . The connection management module may remove the device identification from the first message and only send the port ID to the connection management module 204 of the source device 200, or the connection management module 104 may directly send the port ID (eg, HDMI-1) to the source device 200 The connection management module 204. The connection management module 204 may send the port ID to the source manager 2031 of the TV service 203 . The source manager 2031 determines that the media content needs to be read from HDMI-1 according to the port ID, and can call the HDMI player 2033 to read the media content (first media content) from HDMI-1, and send the media content through the HDMI player 2033 to SoC 207. The SoC 207 sends the media content to the transport module 206. The transmission module 206 may transmit the media content to the transmission module 106 of the destination device 100 . The transport module 106 may transmit the media content to the SoC 107 . SoC 107. The SoC 107 can decode the video content in the media content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content in the media content, and send the decoded video content to the display module 1011 of the TV player 101. The decoded audio content is sent to the speaker 108 , so that the destination device 100 can play the program of the set-top box 300 . In addition, the SoC 207 can also send the video content to the display module 2011 of the TV player 201, and send the audio content to the speaker 208, so that the source device 200 can play the program of the set-top box 300. In this way, multiple devices (destination device and source device) in the family can share one set-top box, that is, one set-top box can satisfy the needs of two devices (for example, two TV sets) to watch programs at the same time, which can reduce the cost of users .
需要说明的是,多台设备共享一台机顶盒是指对机顶盒中的全部节目进行共享,包括直播节目(如春晚直播、阅兵直播、世界杯直播,电视剧首播、综艺直播等)和点播节目(例如,电影、重播的电视剧、综艺等等)。对于直播节目,由于有线数字电视在节目源等方面具有优势,比如有线数字电视拥有cctv3、cctv5、cctv6和cctv8的独家版权等,用户只能通过机顶盒收看这些直播节目,机顶盒一般放置在固定位置(例如,客厅),用户在观看直播节目时,由于临时有事(比如上厕所、做饭),很容易错过精彩瞬间。因此用户往往有移步到厨房和卧室继续观看的诉求。基于本申请实施例提供的方法,用户可以通过其他设备(例如,手机或平板)继续收看直播节目,可以提高用户体验。It should be noted that sharing a set-top box by multiple devices refers to sharing all programs in the set-top box, including live programs (such as Spring Festival Gala live broadcast, military parade live broadcast, World Cup live broadcast, TV drama premiere, variety show live broadcast, etc.) and on-demand programs (for example, movies, reruns of TV shows, variety shows, etc.). For live programs, because digital cable TV has advantages in program sources, for example, digital cable TV has the exclusive copyrights of cctv3, cctv5, cctv6 and cctv8, users can only watch these live programs through the set-top box, which is generally placed in a fixed location ( For example, the living room), when users are watching live programs, they are easy to miss wonderful moments due to temporary things (such as going to the toilet, cooking). Therefore, users often have a desire to move to the kitchen and bedroom to continue watching. Based on the method provided by the embodiment of the present application, the user can continue to watch the live program through other devices (eg, mobile phone or tablet), which can improve the user experience.
另外,对于非直播节目,由于很多节目是付费节目或会员节目,在进行收看时需要登录并输入密码,基于本申请实施例提供的方法,用户订购了包括多台设备的付费节目或会员节目后,当用户通过其中一台设备播放付费节目或会员节目时,用户再通过其他设备(例如,手机或平板)收看这些付费节目或会员节目时,无需进行登录和输入密码等操作,提高了用户体验。In addition, for non-live programs, since many programs are paid programs or membership programs, it is necessary to log in and enter a password when watching. , when the user plays paid programs or membership programs through one of the devices, when the user watches these paid programs or membership programs through other devices (for example, mobile phones or tablets), there is no need to log in and enter passwords and other operations, which improves the user experience. .
在一种可能的设计中,SoC 207可以对媒体内容解密后再进行压缩,例如可以将4k的媒体内容压缩为1080p或960p,然后将压缩后的媒体内容通过传输模块206发送给传输模块106。传输模块206可以基于HDCP加密媒体内容,然后将加密后的媒体内容传输给传输模块106,传输模块106基于HDCP解密媒体内容,再将解密后的媒体内容上传给SoC 107,SoC 107可以对媒体内容进行解压缩和解码处理。这样,可以保证媒体内容能够安全分享。In a possible design, the SoC 207 can decrypt the media content and then compress it, for example, compress the 4k media content into 1080p or 960p, and then send the compressed media content to the transmission module 106 through the transmission module 206 . The transmission module 206 can encrypt the media content based on HDCP, and then transmit the encrypted media content to the transmission module 106. The transmission module 106 decrypts the media content based on HDCP, and then uploads the decrypted media content to the SoC 107, and the SoC 107 can encrypt the media content. Perform decompression and decoding processing. In this way, it can be ensured that the media content can be safely shared.
下面以目的设备(例如,设备602)与第一源设备(例如,设备601)建立连接,且第一源设备分别通过第一输入端口(例如,HDMI-1)连接第一电子设备(例如,机顶盒603),通过第二输入端口(例如,HDMI-2)连接第二电子设备(例如,机顶盒604)的场景为例,对选择媒体内容来源和播放媒体内容的过程进行说明:Next, a destination device (eg, device 602) is used to establish a connection with a first source device (eg, device 601), and the first source device is connected to a first electronic device (eg, Set-top box 603), take the scenario of connecting a second electronic device (for example, set-top box 604) through a second input port (for example, HDMI-2) as an example, and describe the process of selecting a media content source and playing media content:
如图8中的(a)所示,设备601可以是源设备(例如,可以为电视机),设备601当前可以显示直播节目的界面6011,该直播节目的频道标识6012可以是CCTV8。设备603和设备604是与设备601连接的机顶盒。设备603可以通过HDMI-1端口与设备601连接,设备604可以通过HDMI-2端口与设备601连接。界面6011中显示的直播节目的媒体内容可以是设备601通过HDMI-2端口从设备604接收到的。如图8中的(b)所示,设备602可以是目的设备(例如,可以为平板电脑),平板电脑的主界面6021中可以包括多个应用的图标,例如可以包括“今天”APP的图片、“客厅电视”的图标、“电视直播”6022的图标,“视频”的图标等。主界面6021中还可以包括搜索控件和登录控件等,本申请不做限定。设备602可以接收用户点击“电视直播”6022的操作,响应于该操作,设备602可以显示如图8中的(c)所示的界面6024,界面6024中包括预览界面6026和媒体内容来源列表6027。媒体内容来源列表6027可以包括外部媒体内容来源和本机媒体内容来源。外部媒体内容来源例如可以包括客厅电视(即设备601)的HDMI-1和客厅电视的HDMI-2,本机媒体内容来源例如可以包括本机的AV接口。外部媒体内容来源的标识(设备标识和端口标识)可以是设备602与设备601建立连接的过程中获取到的。示例性的,如图8中的(d)所示,响应于用户点击HDMI-2(客厅电视)的操作,设备602可以显示提示框6025以提示接入客厅电视的HDMI-2接口,并且可以在预览界面6026显示来自HDMI-2接口的视频 内容,设备602的扬声器可以播放来自HDMI-2接口的音频内容。可选的,可以在已选中的媒体内容来源(例如,HDMI-2)的标识后显示提示文字“已接入”,在其他未选中的媒体内容来源的标识后显示提示文字“未接入”。As shown in (a) of FIG. 8 , the device 601 may be a source device (eg, a TV), and the device 601 can currently display an interface 6011 of a live program, and the channel identifier 6012 of the live program may be CCTV8. Device 603 and device 604 are set-top boxes connected to device 601 . Device 603 can be connected to device 601 through an HDMI-1 port, and device 604 can be connected to device 601 through an HDMI-2 port. The media content of the live program displayed in the interface 6011 may be received by the device 601 from the device 604 through the HDMI-2 port. As shown in (b) of FIG. 8 , the device 602 may be a destination device (for example, a tablet computer), and the main interface 6021 of the tablet computer may include icons of multiple applications, such as a picture of the “Today” APP. , the icon of "Living Room TV", the icon of "Live TV" 6022, the icon of "Video", etc. The main interface 6021 may also include search controls, login controls, etc., which are not limited in this application. The device 602 may receive an operation of the user clicking on “Live TV” 6022, and in response to the operation, the device 602 may display an interface 6024 as shown in (c) in FIG. 8 , the interface 6024 includes a preview interface 6026 and a media content source list 6027 . The list of media content sources 6027 may include external media content sources and native media content sources. The external media content sources may include, for example, the HDMI-1 of the living room TV (ie, device 601 ) and the HDMI-2 of the living room TV, and the local media content sources may include, for example, the local AV interface. The identifiers (device identifiers and port identifiers) of external media content sources may be acquired during the process of establishing a connection between the device 602 and the device 601 . Exemplarily, as shown in (d) of FIG. 8 , in response to the user's operation of clicking on the HDMI-2 (living room TV), the device 602 may display a prompt box 6025 to prompt access to the HDMI-2 interface of the living room TV, and may The video content from the HDMI-2 interface is displayed in the preview interface 6026, and the speakers of the device 602 can play the audio content from the HDMI-2 interface. Optionally, the prompt text "connected" may be displayed after the identification of the selected media content source (for example, HDMI-2), and the prompt text "not connected" may be displayed after the identification of other unselected media content sources. .
当目的设备连接多个外部媒体内容来源(例如,目的设备连接的源设备具有多个媒体内容来源)时,用户可以在目的设备上切换不同的外部媒体内容来源,从而能够从不同的外部媒体内容来源观看节目。若目的设备为手机或平板电脑等触控设备,用户可以通过触控操作切换外部媒体内容来源。例如,如图8中的(d)所示,当(客厅电视)HDMI-2处于选中状态时,用户再点击HDMI-1(客厅电视),可以从(客厅电视)HDMI-2切换为(客厅电视)HDMI-1。若目的设备为电视机,用户可以通过语音或遥控设备(例如,遥控器)切换外部媒体内容来源。当然,用户也可以从外部媒体内容来源切换至本机媒体内容来源(例如,从HDMI-2(客厅电视)切换为AV接口),或者从本机媒体内容来源切换为外部媒体内容来源(例如,从AV接口切换为HDMI-2(客厅电视)),本申请不做限定。When the destination device is connected to multiple external media content sources (for example, the source device connected to the destination device has multiple media content sources), the user can switch different external media content sources on the destination device, so as to be able to access different external media content from different external media content sources. source to watch the show. If the destination device is a touch device such as a mobile phone or tablet, the user can switch the source of the external media content through a touch operation. For example, as shown in (d) in Figure 8, when (living room TV) HDMI-2 is selected, the user can click HDMI-1 (living room TV) again to switch from (living room TV) HDMI-2 to (living room TV) HDMI-2 TV) HDMI-1. If the destination device is a TV, the user can switch the source of the external media content through voice or a remote control device (eg, a remote control). Of course, users can also switch from external media content sources to native media content sources (for example, from HDMI-2 (living room TV) to AV interface), or from native media content sources to external media content sources (for example, Switching from the AV interface to HDMI-2 (living room TV)) is not limited in this application.
可选的,用户退出“电视直播”应用后,“电视直播”应用可以保存用户最近一次选择的媒体内容来源信息(例如,HDMI-2(客厅电视)),当用户下一次打开直播应用时,默认选中用户上一次选中的媒体内容来源信息。Optionally, after the user exits the "Live TV" application, the "Live TV" application can save the media content source information (for example, HDMI-2 (living room TV)) selected by the user last time, and when the user opens the live broadcast application next time, By default, the media content source information selected by the user last time is selected.
如图9所示,为本申请实施例提供的一种目的设备100和源设备200之间的信号传输示意图。目的设备100和源设备200之间可以建立P2P连接,或者目的设备100和源设备200可以连接到同一个局域网。其中,源设备200连接两个机顶盒,分别是机顶盒300和机顶盒400。机顶盒300通过HDMI-1(端口)2092与源设备200连接,机顶盒400通过HDMI-2(端口)2094与源设备200连接。目的设备100可以接收用户打开TV播放器101(TV播放器101例如可以为“电视直播”应用)的操作,启动TV播放器。响应于用户从TV播放器101的媒体内容来源列表中选择HDMI-2(客厅电视,即源设备200)的操作,TV播放器101可以向TV API 102发送第二消息。第二消息可以包括设备标识(即源设备200)和端口标识(即HDMI-2)。TV播放器101可以通过TV API 102的远端适配模块1021将第二消息发送给连接管理模块104。连接管理模块104可以管理目的设备100与源设备200的连接,并能够与源设备200进行指令交互。连接管理模块可以从第二消息中删除设备标识,仅将端口ID发送至源设备200的连接管理模块204,或者连接管理模块104可以直接将端口ID(例如,HDMI-2)发送至源设备200的连接管理模块204。连接管理模块204接收端口ID后,调用TV服务203的源管理器2031。源管理器2031调用HDMI播放器2033从HDMI-2读取媒体内容,并通过HDMI播放器2033将媒体内容发送至SoC 207。SoC 207将媒体内容发送至传输模块206。传输模块206可以将媒体内容传输至目的设备100的传输模块106。传输模块106可以将媒体内容发送至SoC 107。SoC 107可以对视频内容进行解码处理,并将解码处理后的视频内容发送至TV播放器101的显示模块1011;同时SoC 107可以对音频内容进行解码处理,并将解码处理后的音频内容发送至扬声器108,从而目的设备100可以播放机顶盒400的节目。当然,源设备200的源管理器2031从HDMI-2读取媒体内容后,同时可以将媒体内容发送至SoC 207,SoC 207可以将视频内容发送至TV播放器201的显示模块2011,并将音频内容发送至扬声器208,从而源设备200可以播放机顶盒400的节目。这样,家庭多台设备(目的设备和源设备)可以共享一台机顶盒,即通过一台机顶盒可以同时满足两个设备(例如,两台电视机)观看节目的需求, 能够降低用户的成本。As shown in FIG. 9 , a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided. A P2P connection may be established between the destination device 100 and the source device 200, or the destination device 100 and the source device 200 may be connected to the same local area network. The source device 200 is connected to two set-top boxes, which are the set-top box 300 and the set-top box 400 respectively. The set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092 , and the set-top box 400 is connected to the source device 200 through HDMI-2 (port) 2094 . The destination device 100 may receive the user's operation of opening the TV player 101 (for example, the TV player 101 may be a "live TV" application), and start the TV player. The TV player 101 may send a second message to the TV API 102 in response to the user's operation to select HDMI-2 (living room TV, i.e. source device 200) from the TV player 101's list of media content sources. The second message may include the device identification (ie source device 200) and the port identification (ie HDMI-2). The TV player 101 can send the second message to the connection management module 104 through the remote adaptation module 1021 of the TV API 102. The connection management module 104 can manage the connection between the destination device 100 and the source device 200 , and can perform instruction interaction with the source device 200 . The connection management module may remove the device identification from the second message and only send the port ID to the connection management module 204 of the source device 200, or the connection management module 104 may directly send the port ID (eg, HDMI-2) to the source device 200 The connection management module 204. After receiving the port ID, the connection management module 204 calls the source manager 2031 of the TV service 203 . The source manager 2031 calls the HDMI player 2033 to read the media content from the HDMI-2, and sends the media content to the SoC 207 through the HDMI player 2033. The SoC 207 sends the media content to the transport module 206. The transmission module 206 may transmit the media content to the transmission module 106 of the destination device 100 . The transport module 106 may transmit the media content to the SoC 107 . The SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 400 . Of course, after the source manager 2031 of the source device 200 reads the media content from the HDMI-2, it can send the media content to the SoC 207 at the same time, and the SoC 207 can send the video content to the display module 2011 of the TV player 201, and the audio The content is sent to the speakers 208 so that the source device 200 can play the set-top box 400 programming. In this way, multiple devices (destination device and source device) in the family can share one set-top box, that is, one set-top box can satisfy the demands of two devices (eg, two TV sets) for watching programs at the same time, which can reduce user costs.
下面以目的设备(例如,设备602)与两个源设备(包括第一源设备和第二源设备,第一源设备例如可以为设备601,第二源设备例如可以为设备605)建立连接,第一源设备通过第一输入端口(例如,HDMI-1)连接第一电子设备(例如,机顶盒603),通过第二输入端口(例如,HDMI-2)连接第二电子设备(例如,机顶盒604),第二源设备通过第三输入端口(例如,HDMI-3)连接第三电子设备(例如,机顶盒606)的场景为例,对选择媒体内容来源和播放媒体内容的过程进行说明:In the following, a connection is established between the destination device (for example, device 602) and two source devices (including a first source device and a second source device, the first source device may be device 601, for example, and the second source device may be device 605, for example), The first source device connects to a first electronic device (eg, set-top box 603 ) through a first input port (eg, HDMI-1), and connects to a second electronic device (eg, set-top box 604 ) through a second input port (eg, HDMI-2) ), the second source device is connected to the third electronic device (for example, the set-top box 606) through the third input port (for example, HDMI-3) as an example, the process of selecting the media content source and playing the media content is described:
如图10中的(a)所示,设备601例如可以为电视机,设备601当前可以显示直播节目的界面6011,该直播节目的频道标识6012可以是CCTV8。设备603和设备604可以是与设备601连接的机顶盒,直播节目的媒体内容可以是设备601从设备603或设备604接收到的。如图10中的(b)所示,设备605可以是源设备(例如,可以为电视机),设备605当前可以显示直播节目的界面6051,该直播节目的频道标识6052可以是湖南卫视。设备603和设备604可以是与设备605连接的机顶盒,直播节目的媒体内容可以是设备605从设备606接收到的。如图10中的(c)所示,设备602可以是目的设备(例如,可以为平板电脑),设备602可以显示如图10中的(c)所示的界面6024,界面6024中包括预览界面6026和媒体内容来源列表6027。其中,媒体内容来源列表6027可以包括外部媒体内容来源和本机媒体内容来源。外部媒体内容来源例如可以包括客厅电视(即设备601)的HDMI-1、客厅电视的HDMI-2以及卧室电视(即设备605)的HDMI-3,本机媒体内容来源例如可以包括AV接口。外部媒体内容来源可以是设备602与其他设备(即设备601和设备605)建立连接的过程中获取到的。示例性的,响应于用户点击HDMI-3(卧室电视)的标识的操作,可以显示提示框6028以提示设备601正在读取卧室电视的HDMI-3接口,并且在预览界面6026可以显示来自HDMI-3接口的视频内容,设备602的扬声器可以播放来自HDMI-3接口的音频内容。As shown in (a) of FIG. 10 , the device 601 can be, for example, a TV, and the device 601 can currently display an interface 6011 of a live program, and the channel identifier 6012 of the live program can be CCTV8. Device 603 and device 604 may be set-top boxes connected to device 601 , and the media content of the live program may be received by device 601 from device 603 or device 604 . As shown in (b) of FIG. 10 , the device 605 may be a source device (eg, a TV), and the device 605 can currently display an interface 6051 of a live program, and the channel identifier 6052 of the live program may be Hunan Satellite TV. The device 603 and the device 604 may be set-top boxes connected to the device 605 , and the media content of the live program may be received by the device 605 from the device 606 . As shown in (c) in FIG. 10 , the device 602 may be a destination device (for example, a tablet computer), and the device 602 may display an interface 6024 as shown in (c) in FIG. 10 , the interface 6024 includes a preview interface 6026 and a list of media content sources 6027. The media content source list 6027 may include external media content sources and local media content sources. External media content sources may include, for example, HDMI-1 for the living room TV (ie, device 601 ), HDMI-2 for the living room TV, and HDMI-3 for the bedroom TV (ie, device 605 ), and local media content sources may include, for example, AV interfaces. The source of the external media content may be obtained during the process of establishing a connection between the device 602 and other devices (ie, the device 601 and the device 605). Exemplarily, in response to the user's operation of clicking the logo of HDMI-3 (bedroom TV), a prompt box 6028 may be displayed to prompt the device 601 to read the HDMI-3 interface of the bedroom TV, and the preview interface 6026 may display the data from the HDMI-3 interface. 3 interface video content, the speaker of the device 602 can play audio content from the HDMI-3 interface.
可选的,若媒体内容来源列表6027中显示与设备602连接的其他设备(例如,设备601)的全部媒体内容来源,可以在连接机顶盒的媒体内容来源(例如,HDMI-3(卧室电视))的标识后显示提示文字“已接入”,在未连接机顶盒的媒体内容来源的标识后显示提示文字“未接入”,用户可以对其他设备的媒体内容来源的可用情况一目了然,并且用户可以从“已接入”的媒体内容来源中选择媒体内容来源,从而可以观看该媒体内容来源的节目。Optionally, if the media content source list 6027 displays all media content sources of other devices (eg, device 601) connected to the device 602, the media content sources of the connected set-top box (eg, HDMI-3 (bedroom TV)) The prompt text "Accessed" is displayed after the logo of the device, and the prompt text "Not Accessed" is displayed after the logo of the media content source that is not connected to the set-top box. Users can see the availability of the media content sources of other devices at a glance, and users can download Select a media content source from the "Accessed" media content source, so that you can watch the program of the media content source.
如图11所示,为本申请实施例提供的一种目的设备100和源设备200(第一源设备)以及目的设备100和源设备500(第二源设备)之间的信号传输示意图。目的设备100和源设备200、源设备500之间可以建立P2P连接,或者目的设备100和源设备200、源设备500可以连接到同一个局域网。其中,源设备200连接两个机顶盒,分别是机顶盒300和机顶盒400。机顶盒300通过HDMI-1(端口)2092与源设备200连接,机顶盒400通过HDMI-2(端口)2094与源设备200连接。源设备500连接机顶盒600,机顶盒600通过HDMI-3(端口)5092与源设备500连接。响应于用户从目的设备100的TV播放器101的媒体内容来源列表中选择源设备500的HDMI-3端口的操作,TV播放器101向TV API 102发送第四消息。第四消息可以包括设备标识(即源设备500)和端口标识(即HDMI-3)。TV API 102通过远端适配模块1021将第四消息发送给连接管理模块104。连接管理模块104可以管理目的设备100与不同源设备(源设备200和源设备500)的连接,并能够与 不同源设备进行指令交互。连接管理模块可以从第四消息中删除设备标识,仅将端口ID(例如,HDMI-3)发送至源设备200的连接管理模块204,或者连接管理模块104可以直接将端口ID(例如,HDMI-3)发送至源设备200的连接管理模块204。连接管理模块504接收端口ID后,调用TV服务503的源管理器5031。源管理器5031通过HDMI播放器5033从HDMI-3端口5094获取媒体内容,并通过HDMI播放器5033将媒体内容发送至SoC 507。SoC 507将媒体内容发送至传输模块506。传输模块506将媒体内容传输至传输模块106,传输模块106可以将接收到的媒体内容发送至SoC 107。SoC 107可以对视频内容进行解码处理,并将解码处理后的视频内容发送至TV播放器101的显示模块1011;同时SoC 107可以对音频内容进行解码处理,并将解码处理后的音频内容发送至扬声器108,从而目的设备100可以播放机顶盒600的节目。当然,源设备500的源管理器5031获取媒体内容后,同时可以将媒体内容发送至SoC 507,SoC 507可以将视频内容发送至TV播放器501的显示模块5011,并将音频内容发送至扬声器508,从而源设备500可以播放机顶盒600的节目。这样,目的设备100可以与源设备500共享机顶盒600,即通过一台机顶盒可以同时满足两个设备观看电视的需求,能够降低用户的成本。As shown in FIG. 11 , a schematic diagram of signal transmission between a destination device 100 and a source device 200 (a first source device) and a destination device 100 and a source device 500 (a second source device) provided by an embodiment of the present application. A P2P connection may be established between the destination device 100 and the source device 200 and the source device 500, or the destination device 100, the source device 200 and the source device 500 may be connected to the same local area network. The source device 200 is connected to two set-top boxes, which are the set-top box 300 and the set-top box 400 respectively. The set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092 , and the set-top box 400 is connected to the source device 200 through HDMI-2 (port) 2094 . The source device 500 is connected to the set-top box 600 , and the set-top box 600 is connected to the source device 500 through HDMI-3 (port) 5092 . In response to the user's operation to select the HDMI-3 port of the source device 500 from the media content source list of the TV player 101 of the destination device 100, the TV player 101 sends a fourth message to the TV API 102. The fourth message may include the device identification (ie source device 500) and the port identification (ie HDMI-3). The TV API 102 sends the fourth message to the connection management module 104 through the remote adaptation module 1021. The connection management module 104 can manage the connection between the destination device 100 and different source devices (the source device 200 and the source device 500), and can perform instruction interaction with different source devices. The connection management module may remove the device identification from the fourth message and send only the port ID (eg, HDMI-3) to the connection management module 204 of the source device 200, or the connection management module 104 may directly send the port ID (eg, HDMI-3) to the connection management module 204 of the source device 200. 3) Sent to the connection management module 204 of the source device 200 . After receiving the port ID, the connection management module 504 calls the source manager 5031 of the TV service 503 . The source manager 5031 obtains the media content from the HDMI-3 port 5094 through the HDMI player 5033, and sends the media content to the SoC 507 through the HDMI player 5033. SoC 507 sends the media content to transport module 506. The transmission module 506 transmits the media content to the transmission module 106, and the transmission module 106 can send the received media content to the SoC 107. The SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 600 . Of course, after the source manager 5031 of the source device 500 obtains the media content, it can send the media content to the SoC 507 at the same time, and the SoC 507 can send the video content to the display module 5011 of the TV player 501 and the audio content to the speaker 508 , so that the source device 500 can play the program of the set-top box 600 . In this way, the destination device 100 can share the set-top box 600 with the source device 500, that is, one set-top box can satisfy the demands of two devices to watch TV at the same time, which can reduce the cost of the user.
可以理解的是,目的设备100的连接管理模块104可以与源设备200的连接管理模块204保持连接,若用户需要切换媒体内容来源,例如,从源设备500的HDMI-3接口切换为源设备200的HDMI-1接口,则连接管理模块104可以基于目的设备100与源设备200的连接向源设备500的连接管理模块504发送相应的消息以获取相应的媒体内容。It can be understood that the connection management module 104 of the destination device 100 can maintain a connection with the connection management module 204 of the source device 200. If the user needs to switch the source of the media content, for example, switch from the HDMI-3 interface of the source device 500 to the source device 200. The connection management module 104 can send a corresponding message to the connection management module 504 of the source device 500 based on the connection between the destination device 100 and the source device 200 to obtain the corresponding media content.
下面以目的设备(例如,设备602)与第一源设备(例如,设备601)建立连接,且第一源设备通过第一输入端口(例如,HDMI-1)连接第一电子设备(例如,机顶盒603)的场景为例,对选择频道(切换频道)的过程进行说明:Next, a destination device (eg, device 602 ) is used to establish a connection with a first source device (eg, device 601 ), and the first source device is connected to a first electronic device (eg, a set-top box) through a first input port (eg, HDMI-1) 603) as an example, the process of selecting a channel (switching a channel) is described:
如图12中的(a)所示,设备601可以是源设备(例如,可以为电视机),设备601当前显示的界面6011可以显示直播节目,该直播节目的频道标识6012可以是湖南卫视的台标。设备603是与设备601连接的机顶盒,湖南卫视的直播节目的媒体内容是设备603发送给设备601的。如图12中的(b)所示,设备602可以通过设备601观看湖南卫视的直播节目,当用户需要换台时,可以通过语音或触控操作调出节目单6100,节目单6100中包括多个条目,每个条目对应一个电视台(卫视)的名称和频道,例如,条目6101是指湖南卫视的频道为023。当用户在目的设备602上切换频道(换台)时,设备602可以向设备601发送换台(切换频道)指令,设备601根据换台指令进行相应的处理,并可以将换台后的媒体内容发送给设备602。示例性的,在条目6101为选中状态时,若用户在节目单6100点击条目6102,如图12中的(c)所示,设备602可以从界面6021切换为界面6029,即从湖南卫视切换为浙江卫视。同时,如图12中的(d)所示,设备601可以从界面6011切换为界面6013,即从湖南卫视切换为浙江卫视。在界面6013中,可以显示浙江卫视的直播节目,该直播节目的频道标识6014可以是浙江卫视的台标。这样,用户可以在目的设备上切换频道(换台),无需用户与源设备进行交互来换台(例如,去源设备所在的房间进行换台操作),可以提高用户体验。As shown in (a) of FIG. 12 , the device 601 may be a source device (for example, a TV), the interface 6011 currently displayed by the device 601 may display a live program, and the channel identifier 6012 of the live program may be Hunan Satellite TV’s Station logo. Device 603 is a set-top box connected to device 601 , and the media content of the live program of Hunan Satellite TV is sent by device 603 to device 601 . As shown in (b) of Figure 12, the device 602 can watch the live program of Hunan Satellite TV through the device 601. When the user needs to change the channel, he can call up the program list 6100 through voice or touch operation. The program list 6100 includes multiple Each entry corresponds to the name and channel of a television station (satellite TV), for example, entry 6101 means that the channel of Hunan Satellite TV is 023. When the user switches channels (channel switching) on the destination device 602, the device 602 can send a channel switching (channel switching) instruction to the device 601, and the device 601 performs corresponding processing according to the channel switching instruction, and can convert the media content after the channel switching. Sent to device 602 . Exemplarily, when the item 6101 is selected, if the user clicks the item 6102 in the program list 6100, as shown in (c) in Figure 12, the device 602 can be switched from the interface 6021 to the interface 6029, that is, from Hunan Satellite TV to Zhejiang Satellite TV. At the same time, as shown in (d) of FIG. 12 , the device 601 can be switched from the interface 6011 to the interface 6013, that is, from Hunan Satellite TV to Zhejiang Satellite TV. In the interface 6013, the live program of Zhejiang Satellite TV can be displayed, and the channel identifier 6014 of the live program can be the logo of Zhejiang Satellite TV. In this way, the user can switch the channel (channel change) on the destination device without the user interacting with the source device to change the channel (for example, go to the room where the source device is located to perform the channel change operation), which can improve the user experience.
如图13所示,为本申请实施例提供的一种目的设备100和源设备200之间的信号传输示意图。目的设备100和源设备200之间建立P2P连接,或者目的设备100和源设备200可以连接到同一个局域网。其中,源设备200连接机顶盒300,机顶盒300通过HDMI-1 (端口)2092与源设备200连接。目的设备100的传输模块106可以从源设备200的传输模块206接收HDMI-1(端口)2092的媒体内容,并将接收到的媒体内容发送至SoC 107。SoC 107可以对视频内容进行解码处理,并将解码处理后的视频内容发送至TV播放器101的显示模块1011;同时SoC 107可以对音频内容进行解码处理,并将解码处理后的音频内容发送至扬声器108,从而目的设备100可以播放机顶盒300的节目。响应于用户切换频道的操作(例如,从频道023切换到频道024),TV播放器可以向TV API 102发送第五消息,第五消息可以包括待切换频道的信息(待切换频道的信息可以是上一个、下一个或频道的标识(例如,频道024)等)。TV播放器101调用TV API 102的远端适配模块1021。远端适配模块1021可以将第五消息发送给连接管理模块104。连接管理模块104可以管理目的设备100与源设备200的连接,并能够与源设备200进行指令交互。连接管理模块将待切换频道的信息发送至源设备200的连接管理模块204。连接管理模块204可以确定待切换频道对应的端口DI,并可以将端口ID和待切换频道的信息发送给切换服务API 205。切换服务API 205可以通过蓝牙连接向切换设备700发送第六消息,第六消息可以包括端口ID和待切换频道的信息,切换设备700向机顶盒300发送第七消息,切换设备可以通过红外线或蓝牙连接向机顶盒300发送第七消息。第七消息可以包括待切换频道的信息,机顶盒300响应于接收到第七消息,可以切换频道。而后,源管理器2031通过HDMI播放器2033从HDMI-1(端口)2094获取媒体内容,并通过HDMI播放器2033将媒体内容发送至SoC 207。SoC 207将媒体内容发送至传输模块206。传输模块206将媒体内容传输至传输模块106,传输模块106可以将接收到的媒体内容发送至SoC 107。SoC 107可以对视频内容进行解码处理,并将解码处理后的视频内容发送至TV播放器101的显示模块1011;同时SoC 107可以对音频内容进行解码处理,并将解码处理后的音频内容发送至扬声器108,从而目的设备100可以播放机顶盒300切换后的节目。另外,源设备200的源管理器2031将切换后的媒体内容发送至SoC 207后,SoC 207可以将视频内容发送至TV播放器201的显示模块2011,并将音频内容发送至扬声器208,从而源设备200可以播放机顶盒300切换后的节目。As shown in FIG. 13 , a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided. A P2P connection is established between the destination device 100 and the source device 200, or the destination device 100 and the source device 200 may be connected to the same local area network. The source device 200 is connected to the set-top box 300, and the set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092. The transmission module 106 of the destination device 100 may receive the media content of HDMI-1 (port) 2092 from the transmission module 206 of the source device 200, and send the received media content to the SoC 107. The SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 300 . In response to the user's operation to switch channels (eg, from channel 023 to channel 024), the TV player may send a fifth message to the TV API 102, and the fifth message may include information of the channel to be switched (the information of the channel to be switched may be Identification of the previous, next, or channel (eg, channel 024, etc.). The TV player 101 calls the remote adaptation module 1021 of the TV API 102. The remote adaptation module 1021 may send the fifth message to the connection management module 104 . The connection management module 104 can manage the connection between the destination device 100 and the source device 200 , and can perform instruction interaction with the source device 200 . The connection management module sends the information of the channel to be switched to the connection management module 204 of the source device 200 . The connection management module 204 can determine the port DI corresponding to the channel to be switched, and can send the port ID and the information of the channel to be switched to the switching service API 205. The switching service API 205 can send the sixth message to the switching device 700 through the Bluetooth connection, the sixth message can include the port ID and the information of the channel to be switched, the switching device 700 sends the seventh message to the set-top box 300, and the switching device can be connected through infrared or Bluetooth. A seventh message is sent to the set-top box 300 . The seventh message may include information of the channel to be switched, and the set-top box 300 may switch the channel in response to receiving the seventh message. Then, the source manager 2031 obtains the media content from the HDMI-1 (port) 2094 through the HDMI player 2033, and sends the media content to the SoC 207 through the HDMI player 2033. The SoC 207 sends the media content to the transport module 206. The transmission module 206 transmits the media content to the transmission module 106, and the transmission module 106 can send the received media content to the SoC 107. The SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108, so that the destination device 100 can play the program switched by the set-top box 300. In addition, after the source manager 2031 of the source device 200 sends the switched media content to the SoC 207, the SoC 207 can send the video content to the display module 2011 of the TV player 201, and send the audio content to the speaker 208, so that the source The device 200 can play the program switched by the set-top box 300 .
如图14A中的(a)所示,设备601可以是源设备(例如,可以为电视机),设备601处于熄屏状态。如图14B所示,当源设备200熄屏时,可以通过“心跳”保证连接管理模块204处于运行状态,除连接管理模块204之前的其他模块可以休眠(例如,源管理器2031、显示模块2011和所述扬声器208以及SoC 207中的AP等等)。其中,“心跳”即连接管理模块204与连接管理模块104按照预设周期(例如,30s)进行心跳消息的交互。当连接管理模块204接收到连接管理模块104发送的特定消息(例如,第一消息)时,可以唤醒进入休眠的源管理器2031。设备603是与设备601连接的机顶盒。如图14A中的(b)所示,设备602可以通过设备601观看湖南卫视的直播节目。当用户在目的设备602上切换频道(换台)时,设备602可以向设备601发送换台指令,设备601可以通过蓝牙连接将换台指令转发给切换设备,切换设备通过红外信号切换机顶盒603的频道。这样,设备601可以从设备603接收换台后的媒体内容,并且,设备601可以将换台后的媒体内容发送给设备602。示例性的,当用户需要换台时,可以通过语音或触控操作调出节目单6100,节目单6100中包括多个条目。在条目6101为选中状态时,若用户在节目单6100点击条目6102,如图14A中的(c)所示,设备602可以从界面6021切换为界面6029,即从湖南卫 视切换为浙江卫视。As shown in (a) of FIG. 14A , the device 601 may be a source device (for example, a television), and the device 601 is in a screen-off state. As shown in FIG. 14B , when the screen of the source device 200 is turned off, the connection management module 204 can be guaranteed to be in a running state through “heartbeat”, and other modules except the connection management module 204 can sleep (for example, the source manager 2031, the display module 2011 and the speaker 208 and the AP in the SoC 207, etc.). The “heartbeat” refers to the interaction between the connection management module 204 and the connection management module 104 according to a preset period (eg, 30s) of heartbeat messages. When the connection management module 204 receives a specific message (eg, the first message) sent by the connection management module 104, the source manager 2031 that has entered sleep may be woken up. Device 603 is a set-top box connected to device 601 . As shown in (b) of FIG. 14A , the device 602 can watch the live program of Hunan Satellite TV through the device 601 . When the user switches the channel (channel change) on the destination device 602, the device 602 can send a channel change command to the device 601, the device 601 can forward the channel change command to the switching device through the Bluetooth connection, and the switching device switches the set-top box 603 through the infrared signal. channel. In this way, the device 601 can receive the media content after the channel change from the device 603 , and the device 601 can send the media content after the channel change to the device 602 . Exemplarily, when the user needs to change channels, the program list 6100 can be called up through voice or touch operation, and the program list 6100 includes multiple items. When the item 6101 is in the selected state, if the user clicks the item 6102 in the program list 6100, as shown in (c) in Figure 14A, the device 602 can be switched from the interface 6021 to the interface 6029, that is, from Hunan Satellite TV to Zhejiang Satellite TV.
在一种可能的设计中,如图13所示,源设备200的源管理器2031将切换后的媒体内容发送至SoC 207后,SoC 207不将视频内容发送至TV播放器201的显示模块2011,且不将音频内容发送至扬声器208),即源设备200不播放机顶盒300的节目,处于熄屏状态。In a possible design, as shown in FIG. 13 , after the source manager 2031 of the source device 200 sends the switched media content to the SoC 207 , the SoC 207 does not send the video content to the display module 2011 of the TV player 201 , and the audio content is not sent to the speaker 208), that is, the source device 200 does not play the program of the set-top box 300, and is in a screen-off state.
在另一种可能的设计中,如图14B所示,源设备200的TV服务203可以通过HDMI播放器2033从HDMI-1(端口)2092接收来自机顶盒300(数字电视机顶盒)的没有加密的媒体内容,HDMI播放器2033可以将没有加密的媒体内容发送至传输模块206,以便传输模块206将媒体内容发送至目的设备100(的传输模块106)。In another possible design, as shown in FIG. 14B, the TV service 203 of the source device 200 may receive unencrypted media from the set-top box 300 (digital TV set-top box) from HDMI-1 (port) 2092 through the HDMI player 2033 content, the HDMI player 2033 may send the unencrypted media content to the transmission module 206 so that the transmission module 206 sends the media content to the destination device 100 (the transmission module 106 of the).
下面以目的设备(例如,设备602)与第一源设备(例如,设备601)建立连接,且第一源设备分别通过第一输入端口(例如,HDMI-1)连接第一电子设备(例如,机顶盒603),通过第二输入端口(例如,HDMI-2)连接第二电子设备(例如,机顶盒604)的场景为例,对选择频道(切换频道)的过程进行说明:Next, a destination device (eg, device 602) is used to establish a connection with a first source device (eg, device 601), and the first source device is connected to a first electronic device (eg, Set-top box 603), the scenario of connecting a second electronic device (for example, set-top box 604) through a second input port (for example, HDMI-2) is taken as an example, to illustrate the process of selecting a channel (switching a channel):
如图15中的(a)所示,设备601可以是源设备(例如,可以为电视机),设备603和设备604是与设备601连接的机顶盒。设备603可以通过HDMI-1端口与设备601连接,设备604可以通过HDMI-2端口与设备601连接。设备601当前可以显示界面6011,界面6011的节目内容可以是设备601通过HDMI-2端口从设备604获取到的,或者,界面6011的节目内容可以是从网络(华为视频服务器)获取到的。如图15中的(b)所示,设备602可以通过设备601的HDMI-1端口观看直播节目,该直播节目的媒体内容是来自设备603的。当用户在目的设备602上切换频道(换台)时,设备602可以向设备601发送换台(切换频道)指令,设备601根据换台指令进行相应的处理,并可以将换台后的媒体内容发送给设备602。示例性的,当用户需要换台时,可以通过语音或触控操作调出节目单6100,节目单6100中包括多个条目,每个条目对应一个卫视的名称和频道,例如,条目6101是指湖南卫视的频道为023。在条目6101为选中状态时,若用户在节目单6100点击条目6102,如图15中的(c)所示,设备602可以从界面6021切换为界面6029,即从湖南卫视切换为浙江卫视。同时,如图15中的(d)所示,设备601当前播放的节目不变,即在界面6011中仍显示来自设备604的节目内容。As shown in (a) of FIG. 15 , the device 601 may be a source device (eg, may be a television), and the devices 603 and 604 are set-top boxes connected to the device 601 . Device 603 can be connected to device 601 through an HDMI-1 port, and device 604 can be connected to device 601 through an HDMI-2 port. The device 601 can currently display the interface 6011, and the program content of the interface 6011 can be obtained by the device 601 from the device 604 through the HDMI-2 port, or the program content of the interface 6011 can be obtained from the network (Huawei video server). As shown in (b) of FIG. 15 , the device 602 can watch the live program through the HDMI-1 port of the device 601 , and the media content of the live program comes from the device 603 . When the user switches channels (channel switching) on the destination device 602, the device 602 can send a channel switching (channel switching) instruction to the device 601, and the device 601 performs corresponding processing according to the channel switching instruction, and can convert the media content after the channel switching. Sent to device 602 . Exemplarily, when the user needs to change the channel, the program list 6100 can be called up through voice or touch operation. The program list 6100 includes multiple items, and each item corresponds to the name and channel of a satellite TV. For example, item 6101 refers to Hunan Satellite TV's channel is 023. When the item 6101 is selected, if the user clicks the item 6102 in the program list 6100, as shown in (c) in Figure 15, the device 602 can switch from the interface 6021 to the interface 6029, that is, from Hunan Satellite TV to Zhejiang Satellite TV. Meanwhile, as shown in (d) of FIG. 15 , the program currently played by the device 601 remains unchanged, that is, the program content from the device 604 is still displayed in the interface 6011 .
如图16所示,为本申请实施例提供的一种目的设备100和源设备200之间的信号传输示意图。目的设备100和源设备200之间可以建立P2P连接,或者目的设备100和源设备200可以连接到同一个局域网。其中,源设备200连接两个机顶盒,分别是机顶盒300和机顶盒400。机顶盒300通过HDMI-1(端口)2092与源设备200连接,机顶盒400通过HDMI-2(端口)2094与源设备200连接。目的设备100的传输模块106可以从源设备200的传输模块206接收HDMI-2(端口)2094的媒体内容,并将接收到的媒体内容发送至SoC 107。SoC 107可以对视频内容进行解码处理,并将解码处理后的视频内容发送至TV播放器101的显示模块1011;同时SoC 107可以对音频内容进行解码处理,并将解码处理后的音频内容发送至扬声器108,从而目的设备100可以播放机顶盒400的节目。响应于用户切换频道的操作(例如,从频道023切换到频道024),TV播放器101可以向TV API 102发送第五消息,第五消息可以包括第一频道的信息(第一频道的信息可以是上一个频道、下一个频道或频道的标识(例如,频道024)等)。TV播放器101调用TV API 102的远端适配模块1021。远端适配模块1021可以将第五消息发送给连接管理模块104。连 接管理模块104可以管理目的设备100与源设备200的连接,并能够与源设备200进行指令交互。连接管理模块可以将第一频道的信息发送至源设备200的连接管理模块204。连接管理模块204可以确定第一频道对应的端口ID(例如,HDMI-2),并可以将端口ID和第一频道的信息发送给切换服务API 205。切换服务API 205可以通过蓝牙连接将端口ID和第一频道的信息发送给切换设备700,切换设备700向机顶盒400发送红外信号,控制机顶盒400切换频道。其中,切换设备700是与机顶盒400配对的红外控制设备,源设备200可以与切换设备700建立蓝牙连接,并基于蓝牙连接与切换设备700进行信令交互,以便切换设备700控制机顶盒400切换频道。而后,源管理器2031通过HDMI播放器2033从HDMI-1(端口)2094获取机顶盒400的媒体内容,并通过HDMI播放器2033将媒体内容发送至SoC 207。SoC 207将媒体内容发送至传输模块206。传输模块206将媒体内容传输至传输模块106,传输模块106可以将接收到的媒体内容发送至SoC 107。SoC 107可以对视频内容进行解码处理,并将解码处理后的视频内容发送至TV播放器101的显示模块1011;同时SoC 107可以对音频内容进行解码处理,并将解码处理后的音频内容发送至扬声器108,从而目的设备100可以播放机顶盒400切换后的节目。As shown in FIG. 16 , a schematic diagram of signal transmission between a destination device 100 and a source device 200 according to an embodiment of the present application is provided. A P2P connection may be established between the destination device 100 and the source device 200, or the destination device 100 and the source device 200 may be connected to the same local area network. The source device 200 is connected to two set-top boxes, which are the set-top box 300 and the set-top box 400 respectively. The set-top box 300 is connected to the source device 200 through HDMI-1 (port) 2092 , and the set-top box 400 is connected to the source device 200 through HDMI-2 (port) 2094 . The transmission module 106 of the destination device 100 may receive the media content of HDMI-2 (port) 2094 from the transmission module 206 of the source device 200, and send the received media content to the SoC 107. The SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108 so that the destination device 100 can play the program of the set-top box 400 . In response to the user's operation to switch channels (eg, from channel 023 to channel 024), the TV player 101 may send a fifth message to the TV API 102, and the fifth message may include information of the first channel (the information of the first channel may is the previous channel, the next channel, or the identification of the channel (eg, channel 024, etc.). The TV player 101 calls the remote adaptation module 1021 of the TV API 102. The remote adaptation module 1021 may send the fifth message to the connection management module 104 . The connection management module 104 can manage the connection between the destination device 100 and the source device 200, and can perform instruction interaction with the source device 200. The connection management module may send the information of the first channel to the connection management module 204 of the source device 200 . The connection management module 204 can determine the port ID (for example, HDMI-2) corresponding to the first channel, and can send the port ID and the information of the first channel to the switching service API 205. The switching service API 205 can send the port ID and the information of the first channel to the switching device 700 through the Bluetooth connection, and the switching device 700 sends an infrared signal to the set-top box 400 to control the set-top box 400 to switch channels. The switching device 700 is an infrared control device paired with the set-top box 400. The source device 200 can establish a Bluetooth connection with the switching device 700, and perform signaling interaction with the switching device 700 based on the Bluetooth connection, so that the switching device 700 controls the set-top box 400 to switch channels. Then, the source manager 2031 obtains the media content of the set-top box 400 from the HDMI-1 (port) 2094 through the HDMI player 2033, and sends the media content to the SoC 207 through the HDMI player 2033. The SoC 207 sends the media content to the transport module 206. The transmission module 206 transmits the media content to the transmission module 106, and the transmission module 106 can send the received media content to the SoC 107. The SoC 107 can decode the video content, and send the decoded video content to the display module 1011 of the TV player 101; at the same time, the SoC 107 can decode the audio content and send the decoded audio content to speaker 108, so that the destination device 100 can play the program switched by the set-top box 400.
同时,源设备200的源管理器2031可以通过HDMI播放器2034从HDMI-1(端口)2092获取机顶盒300媒体内容,并将媒体内容发送至SoC 207,SoC 207可以将视频内容发送至TV播放器201的显示模块2011,并将音频内容发送至扬声器208,从而源设备200可以播放机顶盒300的节目。这样,源设备200可以播放机顶盒300的节目(第四媒体内容),目的设备100可以通过源设备200观看机顶盒400的节目(第一媒体内容)。或者,源设备200可以基于华为视频模块210从网络获取媒体内容(第四媒体内容),并将媒体内容送至SoC 207,SoC 207可以将视频内容发送至TV播放器201的显示模块2011,并将音频内容发送至扬声器208。这样,源设备200可以播放华为视频服务器中的节目,目的设备100可以通过源设备200观看机顶盒400的节目,用户可以在源设备200和目的设备100上观看不同的节目,且用户可以在目的设备上切换频道(切换节目),可以提高用户体验。Meanwhile, the source manager 2031 of the source device 200 can obtain the media content of the set-top box 300 from the HDMI-1 (port) 2092 through the HDMI player 2034, and send the media content to the SoC 207, and the SoC 207 can send the video content to the TV player 201 of the display module 201, and send the audio content to the speaker 208, so that the source device 200 can play the program of the set-top box 300. In this way, the source device 200 can play the program (the fourth media content) of the set-top box 300 , and the destination device 100 can watch the program (the first media content) of the set-top box 400 through the source device 200 . Alternatively, the source device 200 can obtain the media content (the fourth media content) from the network based on the Huawei video module 210, and send the media content to the SoC 207, and the SoC 207 can send the video content to the display module 2011 of the TV player 201, and The audio content is sent to speakers 208 . In this way, the source device 200 can play the program in the Huawei video server, the destination device 100 can watch the program of the set-top box 400 through the source device 200, the user can watch different programs on the source device 200 and the destination device 100, and the user can watch the program on the destination device Switching channels (switching programs) can improve user experience.
本申请另一实施例提供一种芯片系统,如图17所示,该芯片系统包括至少一个处理器1701和至少一个接口电路1702。处理器1701和接口电路1702可通过线路互联。例如,接口电路1702可用于从其它装置(例如,目的设备的存储器,第一源设备的存储器、第二源设备的存储器、切换设备的存储器或电子设备(例如,第一电子设备、第二电子设备或第三电子设备)的存储器)接收信号。又例如,接口电路1702可用于向其它装置(例如处理器1701)发送信号。Another embodiment of the present application provides a chip system. As shown in FIG. 17 , the chip system includes at least one processor 1701 and at least one interface circuit 1702 . The processor 1701 and the interface circuit 1702 may be interconnected by wires. For example, the interface circuit 1702 may be used to transfer data from other devices (eg, the memory of the destination device, the memory of the first source device, the memory of the second source device, the memory of the switching device, or the electronic device (eg, the first electronic device, the second electronic device) device or a memory of a third electronic device) to receive the signal. As another example, the interface circuit 1702 may be used to send signals to other devices (eg, the processor 1701).
例如,接口电路1702可读取电子设备中存储器中存储的指令,并将该指令发送给处理器1701。当所述指令被处理器1701执行时,可使得目的设备或第一源设备(如图2所示的电子设备110)执行上述实施例中的各个步骤。For example, the interface circuit 1702 may read instructions stored in memory in the electronic device and send the instructions to the processor 1701 . When the instructions are executed by the processor 1701 , the destination device or the first source device (the electronic device 110 shown in FIG. 2 ) can be made to execute the various steps in the above embodiments.
当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。Certainly, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在目的设备(如图2所示的设备110)上运行时,使得设备110执行上述方法实施例中目的设备(例如,设备602或目的设备100)或第一源设备(例如,设备601或源设备200)执行的各个功能或者步骤。Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium includes computer instructions, when the computer instructions are executed on a target device (the device 110 shown in FIG. 2 ), the device 110 is made to execute Various functions or steps performed by the destination device (eg, device 602 or destination device 100 ) or the first source device (eg, device 601 or source device 200 ) in the foregoing method embodiments.
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中目的设备(例如,设备602或目的设备100)或第一源设备(例如,设备601或源设备200)执行的各个功能或者步骤。The embodiments of the present application further provide a computer program product, when the computer program product runs on a computer, the computer is made to execute the destination device (for example, the device 602 or the destination device 100 ) or the first source in the foregoing method embodiments. Various functions or steps performed by a device (eg, device 601 or source device 200).
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above contents are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (24)

  1. 一种媒体内容共享方法,其特征在于,包括:A method for sharing media content, comprising:
    目的设备显示第一媒体内容来源和第二媒体内容来源;所述第一媒体内容来源和所述第二媒体内容来源与第一源设备关联;The destination device displays the first media content source and the second media content source; the first media content source and the second media content source are associated with the first source device;
    所述目的设备响应于用户选择所述第一媒体内容来源的操作,向所述第一源设备发送第一消息;The destination device sends a first message to the first source device in response to the user's operation of selecting the source of the first media content;
    所述第一源设备响应于接收到所述第一消息,向所述目的设备发送从第一输入端口接收的来自第一电子设备的第一媒体内容;The first source device sends, in response to receiving the first message, the first media content from the first electronic device received from the first input port to the destination device;
    所述目的设备接收所述第一媒体内容,并播放所述第一媒体内容;The destination device receives the first media content and plays the first media content;
    所述目的设备响应于所述用户选择所述第二媒体内容来源的操作,向所述第一源设备发送第二消息;The destination device sends a second message to the first source device in response to the user's operation of selecting the source of the second media content;
    所述第一源设备响应于接收到所述第二消息,向所述目的设备发送从第二输入端口接收的来自第二电子设备的第二媒体内容;The first source device, in response to receiving the second message, sends the second media content from the second electronic device received from the second input port to the destination device;
    所述目的设备接收所述第二媒体内容,并播放所述第二媒体内容。The destination device receives the second media content and plays the second media content.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述第一消息包括所述第一输入端口的标识,所述第二消息包括所述第二输入端口的标识。The first message includes the identification of the first input port, and the second message includes the identification of the second input port.
  3. 根据权利要求1或2所述的方法,其特征在于,The method according to claim 1 or 2, characterized in that,
    所述第一媒体内容来源包括所述第一输入端口的标识、所述第一源设备的标识、所述第一媒体内容对应的应用程序、所述第一媒体内容的频道信息或所述第一媒体内容的节目信息中的至少一种;The source of the first media content includes the identifier of the first input port, the identifier of the first source device, the application program corresponding to the first media content, the channel information of the first media content or the first source device. at least one of program information of a media content;
    所述第二媒体内容来源包括所述第二输入端口的标识、所述第一源设备的标识或所述第二媒体内容对应的应用程序、所述第二媒体内容的频道信息或所述第二媒体内容的节目信息中的至少一种。The source of the second media content includes the identifier of the second input port, the identifier of the first source device or the application program corresponding to the second media content, the channel information of the second media content or the first source device. At least one of the program information of the two media content.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述目的设备显示第一媒体内容来源和第二媒体内容来源之前,所述方法还包括:The method according to any one of claims 1-3, wherein before the destination device displays the first media content source and the second media content source, the method further comprises:
    所述目的设备响应于所述用户打开第一应用的操作,向所述第一源设备发送第三消息;The destination device sends a third message to the first source device in response to the user's operation of opening the first application;
    所述第一源设备响应于接收到所述第三消息,向所述目的设备发送所述第一媒体内容来源和所述第二媒体内容来源。The first source device sends the first source of media content and the second source of media content to the destination device in response to receiving the third message.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述目的设备显示第一媒体内容来源和第二媒体内容来源之前,所述方法还包括:The method according to any one of claims 1-4, wherein before the destination device displays the first media content source and the second media content source, the method further comprises:
    所述目的设备和所述第一源设备之间建立点对点P2P连接,或者所述目的设备和所述第一源设备连接到同一局域网。A point-to-point P2P connection is established between the destination device and the first source device, or the destination device and the first source device are connected to the same local area network.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,The method according to any one of claims 1-5, wherein,
    所述第一输入端口或所述第二输入端口为高清多媒体接口HDMI端口、音视频AV端口、无线保真WIFI端口或有线网卡。The first input port or the second input port is a high-definition multimedia interface HDMI port, an audio and video AV port, a wireless fidelity WIFI port or a wired network card.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述目的设备显示第一媒体内容来源和第二媒体内容来源包括:The method according to any one of claims 1-6, wherein the destination device displaying the first media content source and the second media content source comprises:
    所述目的设备显示第一媒体内容来源、第二媒体内容来源和第三媒体内容来源;所述第三媒体内容来源与第二源设备关联;The destination device displays a first media content source, a second media content source and a third media content source; the third media content source is associated with the second source device;
    所述目的设备响应于用户选择所述第三媒体内容来源的操作,向所述第二源设备发送第四消息;The destination device sends a fourth message to the second source device in response to the user's operation of selecting the third media content source;
    所述第二源设备响应于接收到所述第四消息,向所述目的设备发送从第三输入端口接收的来自第三电子设备的第三媒体内容;The second source device, in response to receiving the fourth message, sends the third media content from the third electronic device received from the third input port to the destination device;
    所述目的设备接收所述第三媒体内容,并播放所述第三媒体内容。The destination device receives the third media content and plays the third media content.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    所述目的设备响应于所述用户选择第一频道的操作,向所述第二源设备发送第五消息;The destination device sends a fifth message to the second source device in response to the user's operation of selecting the first channel;
    所述第二源设备响应于接收到所述第五消息,向切换设备发送第六消息;In response to receiving the fifth message, the second source device sends a sixth message to the switching device;
    所述切换设备响应于接收到所述第六消息,向所述第三电子设备发送第七消息;In response to receiving the sixth message, the switching device sends a seventh message to the third electronic device;
    所述第三电子设备响应于接收到所述第七消息,获取所述第一频道的媒体内容,并将所述第一频道的媒体内容发送给所述第二源设备;In response to receiving the seventh message, the third electronic device acquires the media content of the first channel, and sends the media content of the first channel to the second source device;
    所述第二源设备向所述目的设备发送所述第一频道的媒体内容;sending, by the second source device, the media content of the first channel to the destination device;
    所述目的设备接收所述第一频道的媒体内容,并播放所述第一频道的媒体内容。The destination device receives the media content of the first channel, and plays the media content of the first channel.
  9. 根据权利要求8所述的方法,其特征在于,所述切换设备响应于接收到所述第六消息,向所述第二电子设备发送第七消息包括:The method according to claim 8, wherein, in response to receiving the sixth message, the switching device sending the seventh message to the second electronic device comprises:
    所述切换设备通过红外线或蓝牙连接向所述第二电子设备发送所述第七消息。The switching device sends the seventh message to the second electronic device through an infrared or Bluetooth connection.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述目的设备响应于用户选择所述第一媒体内容来源的操作,向所述第一源设备发送第一消息之后,所述方法还包括:The method according to any one of claims 1-9, characterized in that, after the destination device sends the first message to the first source device in response to a user's operation of selecting the source of the first media content, the The method also includes:
    所述第一源设备从所述第一电子设备接收所述第一媒体内容。The first source device receives the first media content from the first electronic device.
  11. 根据权利要求10所述的方法,其特征在于,所述第一源设备包括第一源管理器、第一SoC和第一传输模块,所述第一源设备从所述第一电子设备接收所述第一媒体内容包括:11. The method of claim 10, wherein the first source device comprises a first source manager, a first SoC, and a first transmission module, and wherein the first source device receives the data from the first electronic device The first media content includes:
    所述第一源管理器从所述第一输入端口读取所述第一电子设备的所述第一媒体内容,并将所述第一媒体内容发送至所述第一SoC;所述第一SoC对所述第一媒体内容进行压缩,将压缩后的所述第一媒体内容发送给所述第一传输模块,所述第一传输模块将所述压缩后的所述第一媒体内容发送至所述目的设备。The first source manager reads the first media content of the first electronic device from the first input port, and sends the first media content to the first SoC; the first The SoC compresses the first media content, and sends the compressed first media content to the first transmission module, and the first transmission module sends the compressed first media content to the destination device.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, wherein the method further comprises:
    所述第一SoC基于高带宽数字内容保护技术HDCP对所述第一媒体内容进行解密;The first SoC decrypts the first media content based on the high-bandwidth digital content protection technology HDCP;
    所述第一传输模块基于HDCP对所述压缩后的所述第一媒体内容进行加密。The first transmission module encrypts the compressed first media content based on HDCP.
  13. 根据权利要求10所述的方法,其特征在于,所述第一源设备包括第一源管理器和第一传输模块,所述第一源设备从所述第一电子设备接收所述第一媒体内容包括:11. The method of claim 10, wherein the first source device comprises a first source manager and a first transport module, and wherein the first source device receives the first media from the first electronic device content include:
    所述第一源管理器从所述第一输入端口读取所述第一电子设备的所述第一媒体内容,并将所述第一媒体内容发送至所述第一传输模块,所述第一传输模块将所述第一媒体内容发送至所述目的设备。The first source manager reads the first media content of the first electronic device from the first input port, and sends the first media content to the first transmission module, the first A transmission module sends the first media content to the destination device.
  14. 根据权利要求11或12所述的方法,其特征在于,所述第一源设备还包括第一 显示模块和第一扬声器,所述方法还包括:The method according to claim 11 or 12, wherein the first source device further comprises a first display module and a first speaker, the method further comprising:
    所述第一SoC接收所述第一媒体内容后,对所述第一媒体内容进行解码处理,将解码处理后的所述第一媒体内容中的视频内容发送给所述第一显示模块,将解码处理后的所述第一媒体内容中的音频内容发送给所述第一扬声器;所述第一显示模块播放所述视频内容,所述第一扬声器播放所述音频内容。After receiving the first media content, the first SoC performs decoding processing on the first media content, and sends the decoded video content in the first media content to the first display module, and sends the decoded video content in the first media content to the first display module. The decoded audio content in the first media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content.
  15. 根据权利要求11-13任一项所述的方法,其特征在于,所述第一源设备还包括第一显示模块和第一扬声器,所述方法还包括:The method according to any one of claims 11-13, wherein the first source device further comprises a first display module and a first speaker, and the method further comprises:
    所述第一源管理器、所述第一显示模块和所述第一扬声器处于休眠状态。The first source manager, the first display module and the first speaker are in a dormant state.
  16. 根据权利要求15所述的方法,其特征在于,所述第一源设备包括第一连接管理模块,所述目的设备包括第二连接管理模块,所述方法还包括:The method according to claim 15, wherein the first source device includes a first connection management module, the destination device includes a second connection management module, and the method further comprises:
    所述第一连接管理模块和所述第二连接管理模块基于预设周期传输心跳消息。The first connection management module and the second connection management module transmit heartbeat messages based on a preset period.
  17. 根据权利要求11或12所述的方法,其特征在于,所述第一源设备还包括第一显示模块和第一扬声器,所述方法还包括:The method according to claim 11 or 12, wherein the first source device further comprises a first display module and a first speaker, and the method further comprises:
    所述第一SoC接收第四媒体内容,对所述第四媒体内容进行解码处理,将解码处理后的所述第四媒体内容中的视频内容发送给所述第一显示模块,将解码处理后的所述第四媒体内容中的音频内容发送给所述第一扬声器;所述第一显示模块播放所述视频内容,所述第一扬声器播放所述音频内容。The first SoC receives the fourth media content, performs decoding processing on the fourth media content, sends the decoded video content in the fourth media content to the first display module, and decodes the decoded video content in the fourth media content to the first display module. The audio content in the fourth media content is sent to the first speaker; the first display module plays the video content, and the first speaker plays the audio content.
  18. 根据权利要求11所述的方法,其特征在于,所述目的设备包括第二传输模块、第二SoC、第二显示模块和第二扬声器,所述目的设备接收所述第一媒体内容,并播放所述第一媒体内容包括:The method according to claim 11, wherein the destination device comprises a second transmission module, a second SoC, a second display module and a second speaker, and the destination device receives the first media content and plays it The first media content includes:
    所述第二传输模块从所述第一传输模块接收所述第一媒体内容,将所述第一媒体内容发送给所述第二SoC,所述第二SoC对所述第一媒体内容进行解压缩和解码处理;所述第二SoC将解压缩和解码处理后的所述第一媒体内容中的视频内容发送给所述第二显示模块,将解压缩和解码处理后的所述第一媒体内容中的音频内容发送给扬声器,所述第二显示模块播放所述视频内容,所述第二扬声器播放所述音频内容。The second transmission module receives the first media content from the first transmission module, sends the first media content to the second SoC, and the second SoC decodes the first media content Compression and decoding processing; the second SoC sends the decompressed and decoded video content in the first media content to the second display module, and the decompressed and decoded first media The audio content in the content is sent to the speaker, the second display module plays the video content, and the second speaker plays the audio content.
  19. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method of claim 18, wherein the method further comprises:
    所述第二传输模块基于高带宽数字内容保护技术HDCP对所述第一媒体内容进行解密。The second transmission module decrypts the first media content based on the high-bandwidth digital content protection technology HDCP.
  20. 根据权利要求13所述的方法,其特征在于,所述目的设备包括第二传输模块、第二SoC、第二显示模块和第二扬声器,所述目的设备接收所述第一媒体内容,并播放所述第一媒体内容包括:The method according to claim 13, wherein the destination device comprises a second transmission module, a second SoC, a second display module and a second speaker, and the destination device receives the first media content and plays it The first media content includes:
    所述第二传输模块从所述第一传输模块接收所述第一媒体内容,将所述第一媒体内容发送给所述第二SoC,所述第二SoC对所述第一媒体内容进行解码处理;所述第二SoC将解码处理后的所述第一媒体内容中的视频内容发送给所述第二显示模块,将解码处理后的所述第一媒体内容中的音频内容发送给扬声器,所述第二显示模块播放所述视频内容,所述第二扬声器播放所述音频内容。The second transmission module receives the first media content from the first transmission module, sends the first media content to the second SoC, and the second SoC decodes the first media content processing; the second SoC sends the decoded video content in the first media content to the second display module, and sends the decoded audio content in the first media content to the speaker, The second display module plays the video content, and the second speaker plays the audio content.
  21. 一种媒体内容共享方法,其特征在于,包括:A method for sharing media content, comprising:
    目的设备显示第一媒体内容来源和第二媒体内容来源;所述第一媒体内容来源和所述第二媒体内容来源与第一源设备关联;The destination device displays the first media content source and the second media content source; the first media content source and the second media content source are associated with the first source device;
    所述目的设备响应于用户选择所述第一媒体内容来源的操作,向所述第一源设备发送第一消息,所述第一消息用于指示所述第一源设备的第一输入端口;In response to the user's operation of selecting the source of the first media content, the destination device sends a first message to the first source device, where the first message is used to indicate the first input port of the first source device;
    所述目的设备从所述第一源设备接收第一媒体内容,并播放所述第一媒体内容;The destination device receives the first media content from the first source device, and plays the first media content;
    所述目的设备响应于所述用户选择所述第二媒体内容来源的操作,向所述第一源设备发送第二消息,所述第二消息用于指示所述第一源设备的第二输入端口;In response to the user's operation of selecting the source of the second media content, the destination device sends a second message to the first source device, where the second message is used to indicate a second input of the first source device port;
    所述目的设备接收所述第二媒体内容,并播放所述第二媒体内容。The destination device receives the second media content and plays the second media content.
  22. 一种媒体内容共享方法,其特征在于,包括:A method for sharing media content, comprising:
    第一源设备响应于从目的设备接收到第一消息,向所述目的设备发送从第一输入端口接收的来自第一电子设备的第一媒体内容;The first source device, in response to receiving the first message from the destination device, sends the first media content from the first electronic device received from the first input port to the destination device;
    所述第一源设备响应于从所述目的设备接收到第二消息,向所述目的设备发送从第二输入端口接收的来自第二电子设备的第二媒体内容。The first source device transmits the second media content received from the second input port from the second electronic device to the destination device in response to receiving the second message from the destination device.
  23. 一种媒体内容共享系统,其特征在于,包括目的设备和第一源设备,所述目的设备执行如权利要求1-21中任一项所述的方法,所述第一源设备执行如权利要求1-20或22中任一项所述的方法。A media content sharing system, characterized in that it includes a destination device and a first source device, the destination device executes the method according to any one of claims 1-21, and the first source device executes the method as claimed in claims The method of any one of 1-20 or 22.
  24. 一种计算机可读存储介质,其特征在于,包括计算机指令;A computer-readable storage medium, comprising computer instructions;
    当所述计算机指令在目的设备上运行时,使得所述目的设备执行如权利要求1-21中任一项所述的方法;When the computer instructions are executed on the target device, the target device is caused to execute the method according to any one of claims 1-21;
    或者,当所述计算机指令在第一源设备上运行时,使得所述第一源设备执行如权利要求1-20或22中任一项所述的方法。Alternatively, the computer instructions, when executed on a first source device, cause the first source device to perform the method of any one of claims 1-20 or 22.
PCT/CN2021/109368 2020-07-29 2021-07-29 Media content sharing method and apparatus WO2022022652A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010746420.XA CN114071169B (en) 2020-07-29 2020-07-29 Media content sharing method and device
CN202010746420.X 2020-07-29

Publications (1)

Publication Number Publication Date
WO2022022652A1 true WO2022022652A1 (en) 2022-02-03

Family

ID=80037658

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109368 WO2022022652A1 (en) 2020-07-29 2021-07-29 Media content sharing method and apparatus

Country Status (2)

Country Link
CN (1) CN114071169B (en)
WO (1) WO2022022652A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546201A (en) * 2022-02-21 2022-05-27 Oppo广东移动通信有限公司 Multimedia resource sharing method, electronic equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685432B (en) * 2011-01-31 2015-06-10 Lg电子株式会社 Display apparatus connected with at least one device and controlling method thereof
US20150195275A1 (en) * 2010-10-06 2015-07-09 Prima Cinema, Inc. Secure device authentication protocol
CN105323638A (en) * 2014-06-20 2016-02-10 深圳市同方多媒体科技有限公司 Method and apparatus for monitoring signal source port of television set
CN109963189A (en) * 2017-12-26 2019-07-02 三星电子株式会社 Electronic device and its method
CN110389736A (en) * 2019-06-05 2019-10-29 华为技术有限公司 A kind of throwing screen display methods and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060031889A1 (en) * 2002-12-11 2006-02-09 Bennett James D Video processing system with simultaneous multiple outputs each with unique formats
CN102611938B (en) * 2012-03-15 2016-12-14 晨星软件研发(深圳)有限公司 A kind of multimode screen moving method and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150195275A1 (en) * 2010-10-06 2015-07-09 Prima Cinema, Inc. Secure device authentication protocol
CN102685432B (en) * 2011-01-31 2015-06-10 Lg电子株式会社 Display apparatus connected with at least one device and controlling method thereof
CN105323638A (en) * 2014-06-20 2016-02-10 深圳市同方多媒体科技有限公司 Method and apparatus for monitoring signal source port of television set
CN109963189A (en) * 2017-12-26 2019-07-02 三星电子株式会社 Electronic device and its method
CN110389736A (en) * 2019-06-05 2019-10-29 华为技术有限公司 A kind of throwing screen display methods and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546201A (en) * 2022-02-21 2022-05-27 Oppo广东移动通信有限公司 Multimedia resource sharing method, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN114071169A (en) 2022-02-18
CN114071169B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
TWI517689B (en) Method and system for switching multi-images
US10110393B2 (en) Protocol switching over multi-network interface
US20160316272A1 (en) Method and device for same-screen interaction
WO2022111672A1 (en) Data processing method and apparatus, and electronic device
US20120254929A1 (en) Content Extraction for Television Display
US20150195604A1 (en) Living Room Computer
US8495706B2 (en) Television apparatus, display control device, and display control method
US20090002568A1 (en) Information processor, control method and display system of the same
US20120240180A1 (en) Set-top box, earphone, and multimedia playing method
US20150067758A1 (en) Methods for content sharing utilizing a compatibility notification to a display forwarding function and associated devices
JP5221704B2 (en) VIDEO REPRODUCTION DEVICE, VIDEO TRANSMISSION DEVICE, VIDEO REPRODUCTION PROGRAM, VIDEO TRANSMISSION PROGRAM, AND RECORDING MEDIUM
AU2010100105A4 (en) Integrated internet multimedia and computing access interactive communication device
WO2022022652A1 (en) Media content sharing method and apparatus
US9031378B2 (en) Method of managing multiple wireless video traffic and electronic device thereof
US8332897B1 (en) Remote rendering of webpages on television
WO2017101860A1 (en) Multi-screen interaction and management method and system for set top box
EP2661878B1 (en) System and method for video distribution over internet protocol networks
WO2015077983A1 (en) Device and method for playing media in home network
US20130205352A1 (en) System and Method for Video Streaming to Display Device Using Parasitically Powered Receiver
US20230179815A1 (en) Electronic apparatus, server and method of controlling the same
KR101700349B1 (en) Display apparatus and streaming tranforting method of the same
KR102603548B1 (en) Method and apparatus for collaborative content rendering
WO2020000493A1 (en) Media playing method and media playing device
WO2024001535A1 (en) Display device, playing device, control device and data transmission method
US20220382535A1 (en) Consumer device firmware updating via hdmi

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: 21849055

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21849055

Country of ref document: EP

Kind code of ref document: A1