WO2021179674A1 - 数据播放方法和装置 - Google Patents

数据播放方法和装置 Download PDF

Info

Publication number
WO2021179674A1
WO2021179674A1 PCT/CN2020/130560 CN2020130560W WO2021179674A1 WO 2021179674 A1 WO2021179674 A1 WO 2021179674A1 CN 2020130560 W CN2020130560 W CN 2020130560W WO 2021179674 A1 WO2021179674 A1 WO 2021179674A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
video
terminal
stream data
identity
Prior art date
Application number
PCT/CN2020/130560
Other languages
English (en)
French (fr)
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 北京达佳互联信息技术有限公司
Priority to EP20924721.2A priority Critical patent/EP4009642A4/en
Publication of WO2021179674A1 publication Critical patent/WO2021179674A1/zh
Priority to US17/697,852 priority patent/US20220210501A1/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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43076Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of the same content streams on multiple devices, e.g. when family members are watching the same movie on different devices
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • 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/439Processing of audio elementary streams
    • 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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/147Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals

Definitions

  • the present disclosure relates to the field of live broadcast technology, and in particular to a data playback method, device, electronic equipment, and storage medium.
  • the anchor provides a live broadcast room for the audience to participate in watching the drama.
  • the process includes: the anchor opens a theater live room, selects a target video and plays it.
  • the terminal in the live broadcast room can only obtain the live broadcast data in a fixed manner, and cannot flexibly process the actual state of the terminal, and the live broadcast effect is poor.
  • the present disclosure provides a data playback method, device, electronic equipment and storage medium.
  • the technical solutions of the present disclosure are as follows:
  • a data playback method applied to a first terminal including:
  • the data receiving service corresponding to the data receiving identity, obtain the video stream data of the target video; and, obtain the live streaming data;
  • the data receiving identity is the identity for the first terminal to receive data, and the live streaming data is the first terminal. Audio and video data streams provided by two terminals, where the second terminal is a terminal in the same virtual space as the first terminal;
  • a data playback method applied to a second terminal including:
  • the live streaming data is an audio and video data stream provided by the second terminal;
  • the live streaming data is provided to a first terminal, and the first terminal is a terminal in the same virtual space as the second terminal.
  • the data acquisition unit is configured to execute the data receiving service corresponding to the data receiving identity to acquire the video stream data of the target video; and, to acquire the live streaming data;
  • the data receiving identity is the identity for the first terminal to receive data
  • the live streaming data is an audio and video data stream provided by a second terminal, and the second terminal is a terminal in the same virtual space as the first terminal;
  • the data playing unit is configured to play the video stream data of the target video and the live stream data.
  • a data playback device applied to a second terminal including:
  • the video playback unit is configured to perform playback of the video stream data of the target video shared in the virtual space
  • the live streaming data providing unit is configured to perform providing the live streaming data to a first terminal, and the first terminal is a terminal in the same virtual space as the second terminal.
  • an electronic device including:
  • a memory for storing executable instructions of the processor
  • the processor is configured to execute the instructions to implement the data playback method described in any one of the embodiments of the first aspect or the second aspect.
  • a storage medium is provided.
  • the electronic device can execute any one of the first aspect or the second aspect.
  • a computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the device reads from the readable storage medium The computer program is read and executed, so that the device executes the data playback method described in any one of the embodiments of the first aspect or the second aspect.
  • Fig. 1 is a diagram showing an application environment of a data playing method according to an exemplary embodiment
  • Fig. 3 is a flowchart showing another data playing method according to an exemplary embodiment
  • Fig. 4 is a schematic diagram showing a process of receiving data from a guest terminal according to an exemplary embodiment
  • Fig. 5 is a schematic diagram showing a flow of receiving data from an audience terminal according to an exemplary embodiment
  • Fig. 6 is a block diagram showing a data playing device according to an exemplary embodiment
  • Fig. 7 is a block diagram showing a data playing device according to an exemplary embodiment.
  • Fig. 8 is an internal structure diagram of an electronic device according to an exemplary embodiment.
  • the data playback method provided by the present disclosure can be applied to the application environment as shown in FIG. 1.
  • the first terminal 110 and the second terminal 120 are involved.
  • the first terminal 110 communicates with the second terminal 120 through the network.
  • the first terminal 110 obtains the video stream data of the target video according to the data receiving service corresponding to the data receiving identity; and, obtains the live streaming data, wherein the data receiving identity is used for the identity of the first terminal 110 to receive the data, and the live streaming data is the first terminal 110
  • the audio and video data stream provided by the second terminal 120, the second terminal 120 is a terminal in the same virtual space as the first terminal 110, and the first terminal 110 plays the video stream data and live stream data of the target video.
  • the first terminal 110 and the second terminal 120 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like.
  • Fig. 2 is a flow chart showing a data playback method according to an exemplary embodiment. As shown in Fig. 2, a data synchronization method is applied to the first terminal 110 in Fig. 2 as an example for description, and it is applied to the first terminal. , Including the following steps:
  • step 210 the video stream data of the target video is obtained according to the data receiving service corresponding to the data receiving identity; and, the live streaming data is obtained; the data receiving identity is used for the identity of the first terminal to receive the data,
  • the stream data is an audio and video data stream provided by a second terminal, and the second terminal is a terminal in the same virtual space as the first terminal.
  • the virtual space refers to the bounded space in the virtual network, such as a live broadcast room, a language chat room, and so on.
  • the host can choose to open the virtual space through the host terminal and select a target video.
  • the same target video can be played synchronously.
  • the host and the audience can have real-time live broadcast communication.
  • the virtual space may include a first terminal and a second terminal.
  • the first terminal may refer to the audience terminal of the audience or the guest terminal of the guest, and the second terminal may refer to the anchor terminal of the host.
  • the first terminal can obtain the video stream data of the target video to watch the target video together with the terminal in the same virtual space.
  • the first terminal can also receive the live stream data of the second terminal .
  • the live stream data is a terminal in the same virtual space as the first terminal, such as the live stream data provided by the host terminal, where the live stream data includes audio and video data streams, that is, includes both voice stream data and video images. Stream data.
  • the first terminal will obtain its current data receiving identity, and according to the data receiving identity, start the data receiving service corresponding to the data receiving identity to obtain the video stream data of the target video. And, get live streaming data.
  • the data receiving service corresponding to the data receiving identity is started through the current data receiving identity, and different data receiving services are provided for different identities, which can bring to different end users, that is, audiences and guests. Different experience of watching drama.
  • the method may further include:
  • the first data receiving service is deleted, and the data receiving service is started.
  • the second data receiving service can be deleted to prevent the second data receiving service from acquiring video stream data and live streaming data, avoid occupying unnecessary operating space, and start the first data at the same time
  • the receiving service is to obtain video stream data and live streaming data through the data receiving service in the future.
  • the first data receiving service can be deleted to prevent the first data receiving service from acquiring video stream data and live streaming data, avoid occupying unnecessary operating space, and start the second data receiving service for subsequent approval
  • the data receiving service obtains video streaming data and live streaming data.
  • the data receiving identity is detected; if the detected data receiving identity is the first data receiving identity, the second data receiving service is deleted, and the first data receiving service is started; if the detected playing identity is If it is the second data receiving identity, the first data receiving service is deleted, and the second data receiving service is started.
  • the acquiring the data receiving identity may include:
  • the identity adjustment instruction a corresponding data receiving identity is obtained; the data receiving identity has a corresponding data receiving service.
  • different data receiving identities can be converted mutually.
  • an identity adjustment instruction needs to be obtained, and the data receiving identity is adjusted according to the identity adjustment instruction to determine the latest data receiving identity.
  • the audience can participate in the interaction by leaving a message while watching the live broadcast. However, if the audience wants to interact with the anchor by voice or video and show it to other audiences, the audience can request (for example, through the microphone).
  • the data receiving identity is adjusted, the identity adjustment instruction is generated, and after the data receiving identity is passed, the data receiving identity is adjusted, and the data receiving identity is converted from the audience to the guests.
  • the identity adjustment instruction is acquired, and the data receiving identity is adjusted according to the identity adjustment instruction.
  • the identities between viewers and guests can be converted according to the needs of the live broadcast process, so that the data receiving service corresponding to the data receiving identity can be subsequently started according to the data receiving identity, providing a basis, and realizing the on-demand conversion of the data receiving identity.
  • the obtaining the video stream data of the target video that is, step 210 includes:
  • the repertoire information includes one or more of the following: the identifier of the target video, the title of the target video, and the address link of the target video.
  • the repertoire information is obtained, it is determined whether to join the virtual space to watch the video together, and the video stream data of the target video can also be requested according to the repertoire information, so that the video stream data of the target video can be played to realize the virtual reality.
  • Video sharing in the space is obtained, it is determined whether to join the virtual space to watch the video together, and the video stream data of the target video can also be requested according to the repertoire information, so that the video stream data of the target video can be played to realize the virtual reality.
  • the first player is started, and the video stream data of the target video is obtained from the server through the first player using the repertoire information.
  • the acquiring live stream data includes:
  • the data receiving identity of the first terminal is the first data receiving identity, such as a guest
  • the first data receiving service corresponding to the first data receiving identity namely the HPPM service and the APM service
  • the first player can be started, and the video stream data of the target video can be obtained from the server through the first player using the repertoire information, and when the live stream data is obtained, the first data can be received according to the The data receiving service corresponding to the identity obtains the live streaming data.
  • the acquiring live stream data through the data receiving identity includes:
  • the first data receiving service corresponding to the first data receiving identity will be started.
  • the second player will be started, and according to the second player Obtain live streaming data from the second terminal.
  • the first data receiving identity of the first terminal is the first data receiving identity
  • the first data receiving service corresponding to the first data receiving identity is started, wherein the live streaming data can be obtained directly from the second terminal, because
  • the first data receiving identity can be a guest who performs voice communication between the microphone and the host. Therefore, the live stream data is obtained from the second terminal (the host terminal), which can reduce the data delay between the guest and the host and improve the live communication experience.
  • the requesting the video stream data of the target video through the repertoire information includes;
  • the acquiring live stream data includes:
  • the second data receiving service corresponding to the second data receiving identity namely the PHPPM service
  • the third player can be started, and the video stream data of the target video can be obtained from the server using the repertoire information through the third player, and when the live stream data is obtained, the fourth player can be started, and according to The fourth player obtains live streaming data.
  • the fourth player obtains live streaming data from the server.
  • the second data receiving service corresponding to the second data receiving identity is started, where the live streaming data and the video streaming data are both obtained from the server .
  • the second terminal can reduce the pressure on the second terminal by pushing the live streaming data to the server, and then forwarding the live streaming data to the first terminal by the server.
  • the video stream data of the target video includes video picture stream data and video audio stream data
  • the video stream data and the live stream data of the target video to be played include:
  • the video and audio stream data of the video stream data will be shielded by the first player, and the video stream data will be played.
  • the video image stream data enables the terminal user to watch the drama through the first player, that is, watch the target video.
  • the video audio stream data and live stream data of the video stream data will also be played through the second player.
  • the live stream data includes second voice stream data
  • the second voice stream data includes an echo signal generated by playing the video and audio stream data of the video stream data after being diffused.
  • the provision of the live stream data to the first terminal includes:
  • the second terminal Since the host needs to conduct live communication with the guests, the second terminal will also obtain the second voice stream data of the host speaking, and provide the live stream data including the second voice stream data to the first terminal.
  • the embodiment of the present disclosure will perform echo cancellation processing on the second voice stream data.
  • the video and audio stream data of the target video is the original signal that has not been played by the speaker at the host side
  • the second voice stream data collected by the microphone includes the echo signal generated after the video and audio stream data played by the speaker is diffused.
  • the video and audio stream data as the reference signal to perform echo cancellation processing on the second voice stream data to obtain the second voice stream data after the echo signal is eliminated.
  • the obtained second voice stream data does not have an echo signal, which can improve The quality of voice communication.
  • the sixth player will also receive the first voice stream data provided by the first terminal, and the sixth player can play the first voice stream data.
  • the playback volume of the first voice stream data may be adjusted to be higher than the playback volume of the target video.
  • the providing the live streaming data to the first terminal includes:
  • the first voice stream data is merged into the live stream data, and the live stream data after the merged first voice stream data is provided to the first terminal.
  • the audience terminal starts the PHPPM service.
  • the PHPPM service corresponds to two players. One player obtains and plays the video stream data of the target video, and the other player obtains and plays the live stream data. Among them, the player of the PHPPM service can also only obtain the voice stream data of the live stream data and be responsible for playing, thereby reducing the overhead of the terminal, as shown in FIG. 5.
  • all terminals in the live broadcast room can watch dramas and listen to the voice stream data of the host and guests together, and the embodiments of the present disclosure can realize the centralized processing of the audio data by enabling the APM service, so that the audio data can be Refined processing improves the voice communication experience.
  • Fig. 6 is a block diagram showing a data playing device according to an exemplary embodiment.
  • the data playback device 600 includes:
  • it further includes:
  • the service activation unit is configured to execute and activate the data receiving service corresponding to the data receiving identity.
  • the data acquisition unit 610 is configured to perform acquisition of repertoire information of the target video, where the repertoire information is used to characterize the identity information of the target video; Describe the video stream data of the target video.
  • the data obtaining unit 610 is configured to execute and start a first player, and obtain the video stream data of the target video from the server by using the repertoire information through the first player;
  • the data receiving service corresponding to the data receiving identity obtains the live streaming data.
  • the data acquisition unit 610 is configured to execute the startup of a third player, and acquire the video stream data of the target video from the server by using the repertoire information through the third player; The fourth player obtains the live stream data through the fourth player.
  • the data playing unit 612 is configured to play the video stream data of the target video through the third player; and play the live stream data through the fourth player.
  • the first voice stream data acquisition unit is configured to perform acquisition of the first voice stream data
  • the first voice stream data includes an echo signal generated by diffusing video and audio stream data of the video stream data of the target video
  • the first voice stream data providing unit is configured In order to perform echo cancellation processing on the first voice stream data using the video and audio stream data of the target video as a reference signal, to obtain the first voice stream data after the echo signal is eliminated; the first voice stream data after the echo signal is eliminated
  • a voice stream data is provided to the second terminal and the other terminals.
  • the identity obtaining unit is configured to execute a receiving identity adjustment instruction; according to the identity adjustment instruction, obtain a corresponding data receiving identity; the data receiving identity has a corresponding data receiving service.
  • the data receiving identity includes a first data receiving identity and a second data receiving identity
  • the data receiving service includes a first data receiving service and a second data receiving service
  • the first data receiving service The identity corresponds to the first data receiving service
  • the second data receiving identity corresponds to the second data receiving service.
  • it further includes:
  • the second adjustment unit is configured to perform adjustment from the first data receiving identity to the second data receiving identity based on the detection of the data receiving identity, deleting the first data receiving service, and starting the data receiving service .
  • the video playing unit 710 is configured to play the video stream data of the target video shared in the virtual space;
  • the live streaming data providing unit 714 is configured to perform providing the live streaming data to a first terminal, and the first terminal is a terminal in the same virtual space as the second terminal.
  • the device further includes:
  • the virtual space opening unit is configured to execute the opening of the virtual space and determine the target video to be shared in the virtual space;
  • a repertoire information acquisition unit configured to perform acquisition of repertoire information of the target video, where the repertoire information is used to characterize the identity information of the target video;
  • the repertoire information providing unit is configured to perform providing repertoire information of the target video to the first terminal.
  • the video stream data of the target video includes video picture stream data and video audio stream data
  • the video playing unit 710 is configured to execute a fifth player, and the fifth player
  • the player uses the repertoire information to obtain the video stream data of the target video from the server, shields the video and audio stream data of the video stream data, and plays the video picture stream data of the video stream data; starts the sixth player, and passes The sixth player plays the video and audio stream data of the video stream data.
  • the device further includes:
  • the first voice stream data playing unit is configured to receive and play the first voice stream data provided by the first terminal through the sixth player.
  • the live streaming data providing unit 714 is configured to perform merging of the first voice stream data into the live streaming data, and to merge the first voice stream data.
  • the live streaming data is provided to the first terminal.
  • Fig. 8 is a block diagram showing a device 800 for data playback according to an exemplary embodiment.
  • the device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • the processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the memory 804 is configured to store various types of data to support operations in the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable read only memory
  • PROM programmable read only memory
  • ROM read only memory
  • magnetic memory flash memory
  • flash memory magnetic or optical disk.
  • the power supply component 806 provides power for various components of the device 800.
  • the power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
  • the multimedia component 808 includes a screen that provides an output interface between the device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), and when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals.
  • the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
  • the audio component 810 further includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.

Abstract

本公开关于一种数据播放方法、装置、电子设备及存储介质,应用于第一终端,所述方法包括:根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;播放所述目标视频的视频流数据和所述直播流数据。在本公开的实施例中,根据第一终端的数据接收身份对应的数据接收服务来分别获取视频流数据和直播流数据并播放,基于终端的实际状态进行灵活处理,提高直播效果和直播效率。

Description

数据播放方法和装置
相关申请的交叉引用
本公开要求于2020年03月09日提交的申请号为202010158998.3、名称为“数据播放方法、装置、电子设备及存储介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
技术领域
本公开涉及直播技术领域,尤其涉及一种数据播放方法、装置、电子设备及存储介质。
背景技术
随着互联网技术的发展以及人们对文化艺术作品的大量需求,直播行业以其信息传递的及时性和互动性迎来了空前繁荣的发展。其中,直播加看剧的剧场形式,给用户带来不一样的体验,把线下的观看电影、电视、短视频等迁移到线上,可以在让观众与主播同时进行看剧和交流。
在相关技术中,实现观众与主播同时进行看剧和交流,是主播提供一个直播间供观众进入参与看剧,该过程包括:主播开启一个剧场直播间,选取一个目标视频并播放,在目标视频播放过程中,直播间的终端只能通过固定方式获取到直播数据,并不能针对终端的实际状态进行灵活处理,直播效果较差。
发明内容
本公开提供一种数据播放方法、装置、电子设备及存储介质。本公开的技术方案如下:
根据本公开实施例的第一方面,提供一种数据播放方法,应用于第一终端,包括:
根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份为用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;
播放所述目标视频的视频流数据和所述直播流数据。
根据本公开实施例的第二方面,提供一种数据播放方法,应用于第二终端,包括:
播放在虚拟空间共享的目标视频的视频流数据;
获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流;
将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
根据本公开实施例的第三方面,提供一种数据播放装置,应用于第一终端,包括:
数据获取单元,被配置为执行根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份为用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;
数据播放单元,被配置为执行播放所述目标视频的视频流数据和所述直播流数据。
根据本公开实施例的第四方面,提供一种数据播放装置,应用于第二终端,包括:
视频播放单元,被配置为执行播放在虚拟空间共享的目标视频的视频流数据;
直播流数据获取单元,被配置为执行获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流;
直播流数据提供单元,被配置为执行将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
根据本公开实施例的第五方面,提供一种电子设备,包括:
处理器;
用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为执行所述指令,以实现上述第一方面或第二方面的任一项实施例中所述的数据播放方法。
根据本公开实施例的第六方面,提供一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述第一方面或第二方面的任一项实施例中所述的数据播放方法。
根据本公开实施例的第七方面,提供一种计算机程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,设备的至少一个处理器从所述可读存储介质读取并执行所述计算机程序,使得设备执行上述第一方面或第二方面的任一项实施例中所述的数据播放方法。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是根据一示例性实施例示出的一种数据播放方法的应用环境图;
图2是根据一示例性实施例示出的一种数据播放方法的流程图;
图3是根据一示例性实施例示出的另一种数据播放方法的流程图;
图4是根据一示例性实施例示出的一种嘉宾终端数据接收流程示意图;
图5是根据一示例性实施例示出的一种观众终端数据接收流程示意图;
图6是根据一示例性实施例示出的一种数据播放装置的框图;
图7是根据一示例性实施例示出的一种数据播放装置的框图;和
图8是根据一示例性实施例示出的一种电子设备的内部结构图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
本公开所提供的数据播放方法,可以应用于如图1所示的应用环境中。其中,涉及到第一终端110和第二终端120。第一终端110通过网络与第二终端120进行通信。第一终端110根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据,其中,数据接收身份用于第一终端110接收数据的身份,直播流数据为第二终端120提供的音视频数据流,第二终端120为与第一终端110处于同一虚拟空间的终端,第一终端110播放目标视频的视频流数据和直播流数据。其中,第一终端110和第二终端120可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑等。
图2是根据一示例性实施例示出的一种数据播放方法的流程图,如图2所示,以数据同步方法用于图2中的第一终端110为例进行说明,应用于第一终端,包括以下步骤:
在步骤210中,根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端。
其中,虚拟空间是指的在虚拟网络中的有界空间,如直播间、语聊间等等。主播可以通过主播终端选择开启虚拟空间,并选定一目标视频,在该虚拟空间的终端,可以同步播放同一目标视频,在播放目标视频时,主播和观众之间可以进行实时直播交流。虚拟空间中可以包括第一终端和第二终端,第一终端可以是指的观众的观众终端或者嘉宾的嘉宾终端,第二终端则可以是指的主播的主播终端。
数据接收身份是指直播过程中每一参与直播的用户或用户对应的终端的身份,数据接收身份包括观众和嘉宾等,其中,不同的数据接收身份之间可以相互转换,例如,在直播过程中,当观看目标视频的观众上麦进行发言时,其数据接收身份则由观众转变为嘉宾,当其发言完毕,下麦观看目标视频时,其数据接收身份则由嘉宾转变为观众。
在直播过程中,第一终端可以获取到目标视频的视频流数据,以与在同一虚拟空间的终端共同观看目标视频,在此过程中,第一终端还可以接收到第二终端的直播流数据。在一些实施例中,直播流数据与第一终端处于同一虚拟空间的终端,比如主播终端提供的直播流数据,其中直播流数据包括音视频数据流,即既包括语音流数据也包括了视频画面流数据。
在本公开的实施例中,数据接收服务是指在数据传输和处理过程中用到的服务技术,第一终端获取目标视频的视频流数据和获取直播流数据时,可以根据其当前的数据接收身份采用对应的数据接收服务,来获取目标视频的视频流数据和获取直播流数据。
在步骤212中,播放所述目标视频的视频流数据和所述直播流数据。
在获取到目标视频的视频流数据和直播流数据后,可以在第一终端上进行播放,实现看剧和直播交流。
上述数据播放方法,第一终端根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据,其中,数据接收身份用于第一终端接收数据的身份,直播流数据为第二终端提供的音视频数据流,第二终端为与第一终端处于同一虚拟空间的终端,第一终端播放目标视频的视频流数据和直播流数据。在本公开的实施例中,基于终端的实际状态进行灵活处理,提高直播效果和直播效率。
在一示例性实施例中,在步骤210之前,即在所述根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据之前,还包括:
获取所述数据接收身份;
启动与所述数据接收身份对应的数据接收服务。
其中,所述数据接收身份包括第一数据接收身份和第二数据接收身份;所述数据接收服务包括第一数据接收服务和第二数据接收服务;所述第一数据接收身份与所述第一数据接收服务对应,所述第二数据接收身份与所述第二数据接收服务对应。
在一些实施例中,第一数据接收身份可以为嘉宾,第二数据接收身份可以为观众,嘉宾和观众都能使用第一数据接收服务,或者,第二数据接收服务,当然,也可以是嘉宾对应使用第一数据接收服务,观众对应使用第二数据接收服务,可根据实际情况调整数据接收服务,本公开的实施例对此无需加以限制。
在一些实施例中,第一数据接收服务可以为HPPM(High Performance Play Module,高性能播放模块)服务和APM(Audio Process Module,音频处理模块)服务,HPPM服务可以启动第一播放器获取目标视频的视频流数据,以及,APM服务启动第二播放器获取直播流数据。第二数据接收服务可以为PHPPM(Pair High Performance Play Module,配对高性能播放模块)服务,PHPPM服务可以启动第三播放器获取目标视频的视频流数据,以及,启动第四播放器获取直播流数据。
其中,APM服务用于处理视频流数据的视频音频流数据和直播流数据,以及第一终端的第一语音流数据,通过APM服务统一处理音频数据,可以解决虚拟空间(如直播间)说话的声音和目标视频的声音冲突等问题。
需要说明的是,HPPM服务,APM服务和PHPPM服务除了可以根据数据接收身份提供对应的数据接收服务之外,还可以提供play(播放)、pause(暂停)、seek(寻找)、stop(停止)、mute(弱化)等音视频处理功能,观众和嘉宾可以根据直播需求选择是否需要使用上述功能。
本公开的实施例在直播过程中,第一终端将获取其当前的数据接收身份,并根据 数据接收身份,启动与该数据接收身份对应的数据接收服务,以获取到目标视频的视频流数据,和,获取直播流数据。
上述示例性实施例中,通过当前的数据接收身份来启动与数据接收身份对应的数据接收服务,针对不同的身份提供不同的数据接收服务,可以给与不同的终端用户,即观众和嘉宾带来不同的看剧体验。
在一示例性实施例中,在所述启动与所述数据接收身份对应的数据接收服务之后,所述方法还可以包括:
基于检测到所述数据接收身份由所述第二数据接收身份调整为所述第一数据接收身份,删除所述第二数据接收服务,启动所述第一数据接收服务;
基于检测到所述数据接收身份由所述第一数据接收身份调整为所述第二数据接收身份,删除所述第一数据接收服务,启动所述数据接收服务。
在一些实施例中,若检测到的数据接收身份由第二数据接收身份调整为第一数据接收身份,则后续通过数据接收身份获取视频流数据和直播流数据,用到的数据接收服务为第一数据接收身份对应的第一数据接收身份,因此,可以删除第二数据接收服务,防止第二数据接收服务获取视频流数据和直播流数据,避免占用不必要的运行空间,同时启动第一数据接收服务,为后续通过数据接收服务获取视频流数据和直播流数据。
若检测到的数据接收身份由第一数据接收身份调整为第二数据接收身份,则后续通过数据接收服务获取视频流数据和直播流数据,用到的数据接收服务为第二数据接收身份对应的第二数据接收服务,因此,可以删除第一数据接收服务,防止第一数据接收服务获取视频流数据和直播流数据,避免占用不必要的运行空间,同时启动第二数据接收服务,为后续通过数据接收服务获取视频流数据和直播流数据。
上述示例性实施例中,通过对数据接收身份进行检测;若检测到的数据接收身份为第一数据接收身份,则删除第二数据接收服务,启动第一数据接收服务;若检测到的播放身份为第二数据接收身份,则删除第一数据接收服务,启动第二数据接收服务。使得后续根据每一数据接收身份的特性,来获取视频流数据和直播流数据,防止不需要的数据接收服务获取视频流数据和直播流数据,避免占用不必要的运行空间。
在一示例性实施例中,所述获取数据接收身份可以包括:
接收身份调节指令;
根据所述身份调节指令,获取对应的数据接收身份;所述数据接收身份具有对应 的数据接收服务。
在一些实施例中,不同的数据接收身份之间可以相互转换,在获取数据接收身份之前,需要获取身份调节指令,并根据身份调节指令,对数据接收身份进行调节,确定最新的数据接收身份。例如,观众在观看直播的过程中,可以通过留言的方式参与互动,但是若观众想要与主播进行的语音或者视频的互动,并展示给其他的观众,该观众可以请求(例如,通过上麦的方式进行请求)调节数据接收身份,生成身份调节指令,并在通过后,进行数据接收身份的调节,将数据接收身份由观众转换为嘉宾。
上述示例性实施例中,获取身份调节指令,根据身份调节指令,对数据接收身份进行调节。可以根据直播过程中的需求转换观众、嘉宾之间的身份,使得后续根据数据接收身份启动数据接收身份对应的数据接收服务,提供基础,实现数据接收身份的按需转换。
在一示例性实施例中,所述获取目标视频的视频流数据,即步骤210包括:
获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;
通过所述剧目信息请求所述目标视频的视频流数据。
其中,剧目信息包括以下一种或多种:目标视频的标识、目标视频的剧名、目标视频的地址链接。
在一些实施例中,第一终端可以获取到由主播终端推送的剧目信息,并将剧目信息展示给第一终端的用户,比如,假设剧目信息中包括目标视频的剧名“爱回家”,则可以将剧名展示在第一终端,如果第一终端的用户想要加入主播开启的虚拟空间以同步观看目标视频,则可以根据剧目信息中的地址链接,请求该目标视频的视频流数据。
上述示例性实施例中,获取剧目信息,确定是否要加入虚拟空间共同观看视频,并且,还可以根据剧目信息请求到目标视频的视频流数据,使得可以播放目标视频的视频流数据,以实现虚拟空间的视频共享。
在一示例性实施例中,
所述通过所述剧目信息请求所述目标视频的视频流数据,包括;
启动第一播放器,通过所述第一播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据。
所述获取直播流数据,包括:
通过所述数据接收身份对应的数据接收服务获取所述直播流数据。
在本公开的实施例中,假设第一终端的数据接收身份为第一数据接收身份,比如嘉宾,将启动第一数据接收身份对应的第一数据接收服务,即HPPM服务和APM服务,那么在获取目标视频的视频流数据时,可以启动第一播放器,并通过第一播放器使用剧目信息向服务器获取目标视频的视频流数据,以及,在获取直播流数据时,可以根据第一数据接收身份对应的数据接收服务获取直播流数据。
在一示例性实施例中,所述通过所述数据接收身份获取直播流数据,包括:
启动第二播放器,通过所述第二播放器向所述第二终端获取所述直播流数据。
假设第一终端的数据接收身份为第一数据接收身份,将启动第一数据接收身份对应的第一数据接收服务,在获取直播流数据时,将启动第二播放器,并根据第二播放器从第二终端获取直播流数据。
上述示例性实施例中,如果第一终端的数据接收身份为第一数据接收身份,启动第一数据接收身份对应的第一数据接收服务,其中,直播流数据可以直接从第二终端获取,由于第一数据接收身份可以是上麦与主播进行语音交流的嘉宾,因此直播流数据从第二终端(主播终端)获取,可以减少嘉宾与主播之间的数据时延,提高直播交流体验。
在一示例性实施例中,
所述通过所述剧目信息请求所述目标视频的视频流数据,包括;
启动第三播放器,通过所述第三播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据;
所述获取直播流数据,包括:
启动第四播放器,通过所述第四播放器获取所述直播流数据。
在本公开的实施例中,假设第一终端的数据接收身份为第二数据接收身份,比如观众,将启动第二数据接收身份对应的第二数据接收服务,即PHPPM服务,那么在获取目标视频的视频流数据时,可以启动第三播放器,并通过第三播放器使用剧目信息向服务器获取目标视频的视频流数据,以及,在获取直播流数据时,可以启动第四播放器,并根据第四播放器获取直播流数据。其中,第四播放器是从服务器获取到直播流数据。
上述示例性实施例中,如果第一终端的数据接收身份为第二数据接收身份,启动第二数据接收身份对应的第二数据接收服务,其中,直播流数据和视频流数据都是从服务器获取,第二终端通过将直播流数据推送到服务器,再由服务器转发直播流数据 至第一终端,可以减少第二终端的压力。
在一示例性实施例中,所述目标视频的视频流数据包括视频画面流数据和视频音频流数据,所述播放所述目标视频的视频流数据和所述直播流数据,包括:
通过所述第一播放器屏蔽所述视频音频流数据,并播放所述视频画面流数据;
通过所述第二播放器播放所述视频音频流数据和所述直播流数据。
在播放视频流数据和直播流数据时,如果是通过第一数据接收服务获取到视频流数据和直播流数据,将通过第一播放器屏蔽视频流数据的视频音频流数据,播放视频流数据的视频画面流数据,使得终端的用户可以通过第一播放器看剧,即观看目标视频,另外,还将通过第二播放器播放视频流数据的视频音频流数据和直播流数据。
上述示例性实施例中,在通过第一数据接收身份对应的第一数据接收服务获取到目标视频的视频流数据和直播流数据后,将通过第一播放器仅播放视频流数据的视频画面流数据,以及,通过第二播放器播放视频流数据的视频音频流数据和直播流数据,由于第一数据接收身份可以是上麦与主播进行语音交流的嘉宾,故在第一终端还将获取到嘉宾说话的第一语音流数据,通过第二播放器统一对包括第一语音流数据在内的音频数据进行统筹处理,可以提高数据处理效率。
在一示例性实施例中,所述播放所述目标视频的视频流数据和所述直播流数据,包括:
通过所述第三播放器播放所述目标视频的视频流数据;
通过所述第四播放器播放所述直播流数据。
在播放视频流数据和直播流数据时,如果是通过第二数据接收服务获取到视频流数据和直播流数据,将通过第三播放器视频流数据,使得终端的用户可以通过第一播放器看剧和听剧,即观看目标视频,另外,还将通过第四播放器播放直播流数据。
上述示例性实施例中,在通过第二数据接收身份对应的第二数据接收服务获取到目标视频的视频流数据和直播流数据后,将通过第三播放器播放视频流数据,以及,通过第四播放器播放直播流数据,通过不同的播放器分工处理,可以使得数据有序播放。
在一示例性实施例中,所述方法还包括:
获取第一语音流数据;
将所述第一语音流数据提供至所述第二终端和其他终端,所述其他终端为与所述第一终端处于同一虚拟空间的终端。
第一终端的用户可以为上麦后嘉宾,嘉宾可以与第二终端的主播进行语音交流,此处可以通过第二终端采集嘉宾说话的声音得到第一语音流数据,然后可以将第一语音流数据提供至第二终端和在同一虚拟空间的其他终端,从而实现虚拟空间内主播、观众和嘉宾之间的语音交流。其中,其他终端也可以作为第一终端,即在同一虚拟空间中可以包括多个第一终端,即可以包括多个观众终端和多个嘉宾终端。
在一示例性实施例中,所述第一语音流数据包括播放所述目标视频的视频流数据的视频音频流数据经扩散后产生的回声信号,所述将所述第一语音流数据提供至所述第二终端和其他终端,包括:
以所述目标视频的视频音频流数据为参考信号,对所述第一语音流数据进行回声消除处理,得到消除回声信号后的所述第一语音流数据;
将消除回声信号后的第一语音流数据提供至所述第二终端和所述其他终端。
在第一终端通过麦克风获取第一语音流数据时,由于是在同步观看目标视频的过程中,因此经常会出现播放的目标视频的声音经过多种路径传播后被第一终端的麦克风拾取,并传回形成回声现象。如果不对回声进行处理,将会影响语音交流的质量和用户体验,严重时还会形成震荡,产生啸叫。为了避免回声带来的不利影响,本公开的实施例采用AEC(Acoustic Echo Cancellation,回声消除),将扬声器播放出来的目标视频的视频音频流数据从麦克风采集的第一语音流数据中消除,使得麦克风采集的声音只有用户说话的声音。
其中,目标视频的视频音频流数据是未经主播端的扬声器播放的原始信号,麦克风采集的第一语音流数据中包括了经扬声器播放的视频音频流数据扩散后产生的回声信号,本公开的实施例可以以视频音频流数据为参考信号,对第一语音流数据进行回声消除处理,得到消除回声信号后的第一语音流数据,这样,所得的第一语音流数据不存在回声信号,可以提高语音交流的质量。
在一示例性实施例中,所述视频音频流数据的播放音量小于所述直播流数据的播放音量。
在第一终端播放目标视频的视频流数据和直播流数据时,将视频流数据的视频音频流数据的播放音量调整为小于直播流数据的播放音量,使得目标视频的声音和说话的声音存在主次之分,提高直播时的语音交流的体验。
在本公开的实施例中,根据第一终端的数据接收身份对应的数据接收服务来分别获取视频流数据和直播流数据并播放,使得视频流数据和直播流数据播放流畅,减少 播放时多方噪音,提高了看剧体验。
图3是根据一示例性实施例示出的一种数据播放方法的流程图,如图2所示,以数据同步方法用于图3中的第二终端120为例进行说明,应用于第二终端,包括以下步骤:
在步骤310中,播放在虚拟空间共享的目标视频的视频流数据。
在步骤312中,获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流。
在步骤314中,将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
第二终端可以为主播的主播终端,主播可以通过主播终端可以开启虚拟空间,并播放在虚拟空间共享的目标视频。在播放目标视频的过程中,主播可以利用摄像头和麦克风采集主播动作的主播视频流数据和主播说话的第二语音流数据,主播视频流数据和第二语音流数据将会组合为音视频数据流,以作为直播流数据提供至在虚拟空间的第一终端。
在一些实施例中,为了降低第二终端的开销,直播流数据可以只采集第二语音流数据,并且只将第二语音流数据作为直播流数据,提供至在虚拟空间的第一终端。
在上述数据播放方法中,可以在虚拟空间播放目标视频的过程中,获取到直播流数据并提供至第一终端,使得在虚拟空间的第一终端的用户可以实现看剧和直播交流,提高了用户体验。
在一示例性实施例中,在所述获取直播流数据之前,所述方法还包括:
开启虚拟空间,并确定在所述虚拟空间共享的目标视频;
获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;
将所述目标视频的剧目信息提供至所述第一终端。
在开启虚拟空间后,可以从直播平台上已有的剧集进行选择,确定在虚拟空间共享的目标视频,在确定目标视频后可以获取到该目标视频的剧目信息,其中,剧目信息包括以下一种或多种目标视频的标识、目标视频的剧名、目标视频的地址链接,然后将剧目信息提供至第一终端。剧目信息可以由服务器统一推送。
在一示例性实施例中,所述目标视频的视频流数据包括视频画面流数据和视频音频流数据,所述播放在虚拟空间共享的目标视频的视频流数据,包括:
启动第五播放器,通过所述第五播放器使用所述剧目信息向服务器获取所述目标 视频的视频流数据,屏蔽所述视频流数据的视频音频流数据,并播放所述视频流数据的视频画面流数据;
启动第六播放器,通过所述第六播放器播放所述视频流数据的视频音频流数据。
在本公开的实施例中,第二终端可以使用HPPM服务和APM服务。在一些实施例中,可以启动HPPM服务的第五播放器,通过第五播放器使用剧目信息向服务器获取目标视频的视频流数据后,可以屏蔽视频流数据的视频音频流数据,并播放视频流数据的视频画面流数据,以及启动APM服务器的第六播放器,并通过第六播放器播放视频流数据的视频音频流数据。
在一示例性实施例中,所述直播流数据包括第二语音流数据,所述第二语音流数据包括播放所述视频流数据的视频音频流数据经扩散后产生的回声信号,所述将所述直播流数据提供至第一终端,包括:
通过所述第六播放器以所述视频音频流数据为参考信号,对所述第二语音流数据进行回声消除处理,得到消除回声信号后的所述第二语音流数据;
将消除回声信号后的所述第二语音流数据作为直播流数据提供至第一终端。
由于主播需要与嘉宾进行直播交流,故在第二终端还将获取到主播说话的第二语音流数据,并将包括第二语音流数据的直播流数据提供至第一终端。
在第二终端通过麦克风获取第二语音流数据时,由于是在同步观看目标视频的过程中,因此经常会出现播放的目标视频的声音经过多种路径传播后被第二终端的麦克风拾取,并传回形成回声现象。因此,本公开的实施例将对第二语音流数据进行回声消除处理。其中,目标视频的视频音频流数据是未经主播端的扬声器播放的原始信号,麦克风采集的第二语音流数据中包括了经扬声器播放的视频音频流数据扩散后产生的回声信号,本公开的实施例可以以视频音频流数据为参考信号,对第二语音流数据进行回声消除处理,得到消除回声信号后的第二语音流数据,这样,所得的第二语音流数据不存在回声信号,可以提高语音交流的质量。
在本公开的实施例中,通过第六播放器统一对包括第二语音流数据在内的音频数据进行统筹处理,可以提高数据处理效率。
在一示例性实施例中,所述方法还包括:
通过所述第六播放器接收所述第一终端提供的第一语音流数据并播放。
在第六播放器中还将接收到第一终端提供的第一语音流数据,第六播放器可以对第一语音流数据播放,其中,为了使得说话的声音和目标视频的声音存在主次之分, 可以在播放第一语音流数据时,将第一语音流数据的播放音量调整为高于目标视频的播放音量。
在一示例性实施例中,所述将所述直播流数据提供至第一终端,包括:
将所述第一语音流数据合并至所述直播流数据中,并将合并所述第一语音流数据后的所述直播流数据,提供至所述第一终端。
在一些实施例中,本公开的实施例还可以将第一语音流数据合并至直播流数据,并将合并了第一语音流数据合并至直播流数据一起提供至第一终端,这样,第一终端就可以接收到来自虚拟空间内所有的用户的语音流数据,可以提高用户交流体验。
为了使本领域技术人员深入了解本公开的实施例,下面采用示例进行说明本公开的实施例实现数据播放的过程,其中该过程包括:
1、主播终端开启直播间。
2、主播终端选择在直播间播放的目标视频,并提供直播流数据。
3、在确定目标视频后,嘉宾终端启动HPPM服务和APM服务,启动HPPM服务,通过HPPM服务对应的播放器获取到目标视频的视频流数据,启动APM服务,并通过APM服务对应的播放器获取直播流数据,其中,HPPM服务对应的播放器将视频流数据的视频音频流数据屏蔽,然后基于视频流数据的视频画面数据进行播放,APM服务对应的播放器则将获取嘉宾说话的第一语音流数据,并在APM服务对应的播放器上播放视频流数据的视频音频流数据,并在采集到第一语音流数据后,基于视频音频流数据对于第一语音流数据进行回声消除处理,并将回声消除处理后的第一语音流数据推送至虚拟空间的终端,参见如图4所示。
4、观众终端启动PHPPM服务,PHPPM服务对应两个播放器,一个播放器获取到目标视频的视频流数据并播放,另一个播放器获取直播流数据并播放。其中,PHPPM服务的播放器也可以仅获取直播流数据的语音流数据负责播放,降低终端的开销,参见如图5所示。
6、当观众终端开启麦克风后将作为嘉宾终端,此时将销毁PHPPM服务,启动HPPM服务和APM服务,当嘉宾关闭麦克风销毁HPPM服务和APM服务,启动PHPPM服务。
本公开的实施例的在直播间的终端都可以一起看剧和收听主播和嘉宾的语音流数据,并且本公开的实施例通过开启APM服务,可以实现对音频数据的集中处理,使得音频数据的精细化处理,提高语音交流体验。
应该理解的是,虽然图2-3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-3中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
图6是根据一示例性实施例示出的一种数据播放装置框图。参照图6,该数据播放装置600包括:
数据获取单元610,被配置为执行根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;
数据播放单元612,被配置为执行播放所述目标视频的视频流数据和所述直播流数据。
在一示例性实施例中,还包括:
身份获取单元,被配置为执行获取所述数据接收身份;
服务启动单元,被配置为执行启动与所述数据接收身份对应的数据接收服务。
在一示例性实施例中,所述数据获取单元610,被配置为执行获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;通过所述剧目信息请求所述目标视频的视频流数据。
在一示例性实施例中,所述剧目信息包括以下一种或多种;所述目标视频的标识、所述目标视频的剧名、所述目标视频的地址链接。
在一示例性实施例中,所述数据获取单元610,被配置为执行启动第一播放器,通过所述第一播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据;通过所述数据接收身份对应的数据接收服务获取所述直播流数据。
在一示例性实施例中,所述数据获取单元610,被配置为执行启动第二播放器,通过所述第二播放器向所述第二终端获取所述直播流数据。
在一示例性实施例中,所述数据获取单元610,被配置为执行启动第三播放器, 通过所述第三播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据;启动第四播放器,通过所述第四播放器获取所述直播流数据。
在一示例性实施例中,所述数据播放单元612,被配置为执行通过所述第一播放器屏蔽所述视频音频流数据,并播放所述视频画面流数据;通过所述第二播放器播放所述视频音频流数据和所述直播流数据。
在一示例性实施例中,所述数据播放单元612,被配置为执行通过所述第三播放器播放所述目标视频的视频流数据;通过所述第四播放器播放所述直播流数据。
在一示例性实施例中,所述装置还包括:
第一语音流数据获取单元,被配置为执行获取第一语音流数据;
第一语音流数据提供单元,被配置为执行将所述第一语音流数据提供至所述第二终端和其他终端,所述其他终端为与所述第一终端处于同一虚拟空间的终端。
在一示例性实施例中,所述第一语音流数据包括播放所述目标视频的视频流数据的视频音频流数据经扩散后产生的回声信号,所述第一语音流数据提供单元,被配置为执行以所述目标视频的视频音频流数据为参考信号,对所述第一语音流数据进行回声消除处理,得到消除回声信号后的所述第一语音流数据;将消除回声信号后的第一语音流数据提供至所述第二终端和所述其他终端。
在一示例性实施例中,所述身份获取单元,被配置为执行接收身份调节指令;根据所述身份调节指令,获取对应的数据接收身份;所述数据接收身份具有对应的数据接收服务。
在一示例性实施例中,所述数据接收身份包括第一数据接收身份和第二数据接收身份;所述数据接收服务包括第一数据接收服务和第二数据接收服务;所述第一数据接收身份与所述第一数据接收服务对应,所述第二数据接收身份与所述第二数据接收服务对应。
在一示例性实施例中,还包括:
第一调整单元,被配置为执行基于检测到所述数据接收身份由所述第二数据接收身份调整为所述第一数据接收身份,删除所述第二数据接收服务,启动所述第一数据接收服务;
第二调整单元,被配置为执行基于检测到所述数据接收身份由所述第一数据接收身份调整为所述第二数据接收身份,删除所述第一数据接收服务,启动所述数据接收服务。
在一示例性实施例中,所述视频音频流数据的播放音量小于所述直播流数据的播放音量。
图7是根据一示例性实施例示出的一种数据播放装置框图。参照图7,数据播放装置700包括:
视频播放单元710,被配置为执行播放在虚拟空间共享的目标视频的视频流数据;
直播流数据获取单元712,被配置为执行获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流;
直播流数据提供单元714,被配置为执行将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
在一示例性实施例中,所述装置还包括:
虚拟空间开启单元,被配置为执行开启虚拟空间,并确定在所述虚拟空间共享的目标视频;
剧目信息获取单元,被配置为执行获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;
剧目信息提供单元,被配置为执行将所述目标视频的剧目信息提供至所述第一终端。
在一示例性实施例中,所述目标视频的视频流数据包括视频画面流数据和视频音频流数据,所述视频播放单元710,被配置为执行启动第五播放器,通过所述第五播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据,屏蔽所述视频流数据的视频音频流数据,并播放所述视频流数据的视频画面流数据;启动第六播放器,通过所述第六播放器播放所述视频流数据的视频音频流数据。
在一示例性实施例中,所述直播流数据包括第二语音流数据,所述第二语音流数据包括播放所述视频流数据的视频音频流数据经扩散后产生的回声信号,所述直播流数据提供单元714,被配置为执行通过所述第六播放器以所述视频音频流数据为参考信号,对所述第二语音流数据进行回声消除处理,得到消除回声信号后的所述第二语音流数据;将消除回声信号后的所述第二语音流数据作为直播流数据提供至第一终端。
在一示例性实施例中,所述装置还包括:
第一语音流数据播放单元,被配置为执行通过所述第六播放器接收所述第一终端提供的第一语音流数据并播放。
在一示例性实施例中,所述直播流数据提供单元714,被配置为执行将所述第一 语音流数据合并至所述直播流数据中,并将合并所述第一语音流数据后的所述直播流数据,提供至所述第一终端。
关于上述实施例中的装置,其中各个模块执行操作的实现方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图8是根据一示例性实施例示出的一种用于数据播放的设备800的框图。例如,设备800可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。
参照图8,设备800可以包括以下一个或多个组件:处理组件802、存储器804、电力组件806、多媒体组件808、音频组件810、输入/输出(I/O)的接口812、传感器组件814以及通信组件816。
处理组件802通常控制设备800的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在设备800上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。
电源组件806为设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为设备800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接 收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为设备800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为设备800的显示器和小键盘,传感器组件814还可以检测设备800或设备800一个组件的位置改变,用户与设备800接触的存在或不存在,设备800方位或加速/减速和设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。
通信组件816被配置为便于设备800和其他设备之间有线或无线方式的通信。设备800可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由设备800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。

Claims (46)

  1. 一种数据播放方法,其中,应用于第一终端,包括:
    根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;
    播放所述目标视频的视频流数据和所述直播流数据。
  2. 根据权利要求1所述的数据播放方法,其中,还包括:
    获取所述数据接收身份;
    启动与所述数据接收身份对应的数据接收服务。
  3. 根据权利要求2所述的数据播放方法,其中,所述获取目标视频的视频流数据,包括:
    获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;
    通过所述剧目信息请求所述目标视频的视频流数据。
  4. 根据权利要求3所述的数据播放方法,其中,所述剧目信息包括以下一种或多种;所述目标视频的标识、所述目标视频的剧名、所述目标视频的地址链接。
  5. 根据权利要求3所述的数据播放方法,其中,
    所述通过所述剧目信息请求所述目标视频的视频流数据,包括;
    启动第一播放器,通过所述第一播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据。
    所述获取直播流数据,包括:
    通过所述数据接收身份对应的数据接收服务获取所述直播流数据。
  6. 根据权利要求5所述的数据播放方法,其中,所述通过所述数据接收身份获取直播流数据,包括:
    启动第二播放器,通过所述第二播放器向所述第二终端获取所述直播流数据。
  7. 根据权利要求3所述的数据播放方法,其中,
    所述通过所述剧目信息请求所述目标视频的视频流数据,包括;
    启动第三播放器,通过所述第三播放器使用所述剧目信息向服务器获取所述目标 视频的视频流数据;
    所述获取直播流数据,包括:
    启动第四播放器,通过所述第四播放器获取所述直播流数据。
  8. 根据权利要求6所述的数据播放方法,其中,所述目标视频的视频流数据包括视频画面流数据和视频音频流数据,所述播放所述目标视频的视频流数据和所述直播流数据,包括:
    通过所述第一播放器屏蔽所述视频音频流数据,并播放所述视频画面流数据;
    通过所述第二播放器播放所述视频音频流数据和所述直播流数据。
  9. 根据权利要求7所述的数据播放方法,其中,所述播放所述目标视频的视频流数据和所述直播流数据,包括:
    通过所述第三播放器播放所述目标视频的视频流数据;
    通过所述第四播放器播放所述直播流数据。
  10. 根据权利要求1所述的数据播放方法,其中,所述方法还包括:
    获取第一语音流数据;
    将所述第一语音流数据提供至所述第二终端和其他终端,所述其他终端为与所述第一终端处于同一虚拟空间的终端。
  11. 根据权利要求10所述的数据播放方法,其中,所述第一语音流数据包括播放所述目标视频的视频流数据的视频音频流数据经扩散后产生的回声信号,所述将所述第一语音流数据提供至所述第二终端和其他终端,包括:
    以所述目标视频的视频音频流数据为参考信号,对所述第一语音流数据进行回声消除处理,得到消除回声信号后的所述第一语音流数据;
    将消除回声信号后的第一语音流数据提供至所述第二终端和所述其他终端。
  12. 根据权利要求2所述的数据播放方法,其中,所述获取数据接收身份,包括:
    接收身份调节指令;
    根据所述身份调节指令,获取对应的数据接收身份;所述数据接收身份具有对应的数据接收服务。
  13. 根据权利要求3所述的数据播放方法,其中,所述数据接收身份包括第一数据接收身份和第二数据接收身份;所述数据接收服务包括第一数据接收服务和第二数据接收服务;所述第一数据接收身份与所述第一数据接收服务对应,所述第二数据接收身份与所述第二数据接收服务对应。
  14. 根据权利要求13所述的数据传输方法,其中,在所述启动与所述数据接收身份对应的数据接收服务之后,还包括:
    基于检测到所述数据接收身份由所述第二数据接收身份调整为所述第一数据接收身份,删除所述第二数据接收服务,启动所述第一数据接收服务;
    基于检测到所述数据接收身份由所述第一数据接收身份调整为所述第二数据接收身份,则删除所述第一数据接收服务,启动所述数据接收服务。
  15. 根据权利要求8所述的数据播放方法,其中,所述视频音频流数据的播放音量小于所述直播流数据的播放音量。
  16. 一种数据播放方法,其中,应用于第二终端,包括:
    播放在虚拟空间共享的目标视频的视频流数据;
    获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流;
    将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
  17. 根据权利要求16所述的数据播放方法,其中,还包括:
    开启虚拟空间,并确定在所述虚拟空间共享的目标视频;
    获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;
    将所述目标视频的剧目信息提供至所述第一终端。
  18. 根据权利要求17所述的数据播放方法,其中,所述目标视频的视频流数据包括视频画面流数据和视频音频流数据,所述播放在虚拟空间共享的目标视频的视频流数据,包括:
    启动第五播放器,通过所述第五播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据,屏蔽所述视频流数据的视频音频流数据,并播放所述视频流数据的视频画面流数据;
    启动第六播放器,通过所述第六播放器播放所述视频流数据的视频音频流数据。
  19. 根据权利要求18所述的数据播放方法,其中,所述直播流数据包括第二语音流数据,所述第二语音流数据包括播放所述视频流数据的视频音频流数据经扩散后产生的回声信号,所述将所述直播流数据提供至第一终端,包括:
    通过所述第六播放器以所述视频音频流数据为参考信号,对所述第二语音流数据 进行回声消除处理,得到消除回声信号后的所述第二语音流数据;
    将消除回声信号后的所述第二语音流数据作为直播流数据提供至第一终端。
  20. 根据权利要求18所述的数据播放方法,其中,所述方法还包括:
    通过所述第六播放器接收所述第一终端提供的第一语音流数据并播放。
  21. 根据权利要求20所述的数据播放方法,其中,所述将所述直播流数据提供至第一终端,包括:
    将所述第一语音流数据合并至所述直播流数据中,并将合并所述第一语音流数据后的所述直播流数据,提供至所述第一终端。
  22. 一种数据播放装置,其中,应用于第一终端,包括:
    数据获取单元,被配置为执行根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;
    数据播放单元,被配置为执行播放所述目标视频的视频流数据和所述直播流数据。
  23. 根据权利要求22所述的数据播放装置,其中,还包括:
    身份获取单元,被配置为执行获取所述数据接收身份;
    服务启动单元,被配置为执行启动与所述数据接收身份对应的数据接收服务。
  24. 根据权利要求23所述的数据播放装置,其中,所述数据获取单元,被配置为执行获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;通过所述剧目信息请求所述目标视频的视频流数据。
  25. 根据权利要求24所述的数据播放装置,其中,所述剧目信息包括以下一种或多种;所述目标视频的标识、所述目标视频的剧名、所述目标视频的地址链接。
  26. 根据权利要求24所述的数据播放装置,其中,所述数据获取单元,被配置为执行启动第一播放器,通过所述第一播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据;通过所述数据接收身份对应的数据接收服务获取所述直播流数据。
  27. 根据权利要求26所述的数据播放装置,其中,所述数据获取单元,被配置为执行启动第二播放器,通过所述第二播放器向所述第二终端获取所述直播流数据。
  28. 根据权利要求24所述的数据播放装置,其中,所述数据获取单元,被配置为执行启动第三播放器,通过所述第三播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据;启动第四播放器,通过所述第四播放器获取所述直播流数据。
  29. 根据权利要求27所述的数据播放装置,其中,所述数据播放单元,被配置为执行通过所述第一播放器屏蔽所述视频音频流数据,并播放所述视频画面流数据;通过所述第二播放器播放所述视频音频流数据和所述直播流数据。
  30. 根据权利要求28所述的数据播放装置,其中,所述数据播放单元,被配置为执行通过所述第三播放器播放所述目标视频的视频流数据;通过所述第四播放器播放所述直播流数据。
  31. 根据权利要求22所述的数据播放装置,其中,所述装置还包括:
    第一语音流数据获取单元,被配置为执行获取第一语音流数据;
    第一语音流数据提供单元,被配置为执行将所述第一语音流数据提供至所述第二终端和其他终端,所述其他终端为与所述第一终端处于同一虚拟空间的终端。
  32. 根据权利要求31所述的数据播放装置,其中,所述第一语音流数据包括播放所述目标视频的视频流数据的视频音频流数据经扩散后产生的回声信号,所述第一语音流数据提供单元,被配置为执行以所述目标视频的视频音频流数据为参考信号,对所述第一语音流数据进行回声消除处理,得到消除回声信号后的所述第一语音流数据;将消除回声信号后的第一语音流数据提供至所述第二终端和所述其他终端。
  33. 根据权利要求23所述的数据播放装置,其中,所述身份获取单元,被配置为执行接收身份调节指令;根据所述身份调节指令,获取对应的数据接收身份;所述数据接收身份具有对应的数据接收服务。
  34. 根据权利要求3所述的数据播放装置,其中,所述数据接收身份包括第一数据接收身份和第二数据接收身份;所述数据接收服务包括第一数据接收服务和第二数据接收服务;所述第一数据接收身份与所述第一数据接收服务对应,所述第二数据接收身份与所述第二数据接收服务对应。
  35. 根据权利要求34所述的数据传输装置,其中,还包括:
    第一调整单元,被配置为执行基于检测到所述数据接收身份由所述第二数据接收身份调整为所述第一数据接收身份,删除所述第二数据接收服务,启动所述第一数据接收服务;
    第二调整单元,被配置为执行基于检测到所述数据接收身份由所述第一数据接收 身份调整为所述第二数据接收身份,删除所述第一数据接收服务,启动所述数据接收服务。
  36. 根据权利要求29或30所述的数据播放装置,其中,所述视频音频流数据的播放音量小于所述直播流数据的播放音量。
  37. 一种数据播放装置,其中,应用于第二终端,包括:
    视频播放单元,被配置为执行播放在虚拟空间共享的目标视频的视频流数据;
    直播流数据获取单元,被配置为执行获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流;
    直播流数据提供单元,被配置为执行将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
  38. 根据权利要求37所述的数据播放装置,其中,所述装置还包括:
    虚拟空间开启单元,被配置为执行开启虚拟空间,并确定在所述虚拟空间共享的目标视频;
    剧目信息获取单元,被配置为执行获取所述目标视频的剧目信息,所述剧目信息用于表征所述目标视频的身份信息;
    剧目信息提供单元,被配置为执行将所述目标视频的剧目信息提供至所述第一终端。
  39. 根据权利要求37所述的数据播放装置,其中,所述目标视频的视频流数据包括视频画面流数据和视频音频流数据,所述视频播放单元,被配置为执行启动第五播放器,通过所述第五播放器使用所述剧目信息向服务器获取所述目标视频的视频流数据,屏蔽所述视频流数据的视频音频流数据,并播放所述视频流数据的视频画面流数据;启动第六播放器,通过所述第六播放器播放所述视频流数据的视频音频流数据。
  40. 根据权利要求39所述的数据播放装置,其中,所述直播流数据包括第二语音流数据,所述第二语音流数据包括播放所述视频流数据的视频音频流数据经扩散后产生的回声信号,所述直播流数据提供单元,被配置为执行通过所述第六播放器以所述视频音频流数据为参考信号,对所述第二语音流数据进行回声消除处理,得到消除回声信号后的所述第二语音流数据;将消除回声信号后的所述第二语音流数据作为直播流数据提供至第一终端。
  41. 根据权利要求39所述的数据播放装置,其中,所述装置还包括:
    第一语音流数据播放单元,被配置为执行通过所述第六播放器接收所述第一终端提供的第一语音流数据并播放。
  42. 根据权利要求41所述的数据播放装置,其中,所述直播流数据提供单元,被配置为执行将所述第一语音流数据合并至所述直播流数据中,并将合并所述第一语音流数据后的所述直播流数据,提供至所述第一终端。
  43. 一种电子设备,其中,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;
    播放所述目标视频的视频流数据和所述直播流数据。
  44. 一种电子设备,其中,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    播放在虚拟空间共享的目标视频的视频流数据;
    获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流;
    将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
  45. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:
    根据数据接收身份对应的数据接收服务,获取目标视频的视频流数据;和,获取直播流数据;所述数据接收身份用于所述第一终端接收数据的身份,所述直播流数据为第二终端提供的音视频数据流,所述第二终端为与所述第一终端处于同一虚拟空间的终端;
    播放所述目标视频的视频流数据和所述直播流数据。
  46. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:
    播放在虚拟空间共享的目标视频的视频流数据;
    获取直播流数据;所述直播流数据为所述第二终端提供的音视频数据流;
    将所述直播流数据提供至第一终端,所述第一终端为与所述第二终端处于同一虚拟空间的终端。
PCT/CN2020/130560 2020-03-09 2020-11-20 数据播放方法和装置 WO2021179674A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20924721.2A EP4009642A4 (en) 2020-03-09 2020-11-20 DATA REPRODUCTION METHOD AND APPARATUS
US17/697,852 US20220210501A1 (en) 2020-03-09 2022-03-17 Method and apparatus for playing data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010158998.3A CN111355973B (zh) 2020-03-09 2020-03-09 数据播放方法、装置、电子设备及存储介质
CN202010158998.3 2020-03-09

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/697,852 Continuation US20220210501A1 (en) 2020-03-09 2022-03-17 Method and apparatus for playing data

Publications (1)

Publication Number Publication Date
WO2021179674A1 true WO2021179674A1 (zh) 2021-09-16

Family

ID=71197522

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/130560 WO2021179674A1 (zh) 2020-03-09 2020-11-20 数据播放方法和装置

Country Status (4)

Country Link
US (1) US20220210501A1 (zh)
EP (1) EP4009642A4 (zh)
CN (1) CN111355973B (zh)
WO (1) WO2021179674A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355973B (zh) * 2020-03-09 2021-10-15 北京达佳互联信息技术有限公司 数据播放方法、装置、电子设备及存储介质
CN113645472B (zh) * 2021-07-05 2023-04-28 北京达佳互联信息技术有限公司 一种基于播放对象的交互方法、装置、电子设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341695A (zh) * 2016-08-31 2017-01-18 腾讯数码(天津)有限公司 直播间互动方法、装置及系统
US20170064404A1 (en) * 2015-08-27 2017-03-02 Kiswe Mobile Inc. Live event viewing via mixed live and on-demand streaming
CN106792245A (zh) * 2016-11-22 2017-05-31 广州华多网络科技有限公司 直播间视频流合成方法、装置及终端设备
CN107396166A (zh) * 2017-08-07 2017-11-24 北京小米移动软件有限公司 直播中显示视频的方法及装置
CN109618191A (zh) * 2018-12-17 2019-04-12 广州市百果园信息技术有限公司 直播连麦方法、装置、计算机可读存储介质及终端
CN110012362A (zh) * 2019-04-16 2019-07-12 广州虎牙信息科技有限公司 一种直播语音处理方法、装置、设备及存储介质
CN111355973A (zh) * 2020-03-09 2020-06-30 北京达佳互联信息技术有限公司 数据播放方法、装置、电子设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8910208B2 (en) * 2009-12-07 2014-12-09 Anthony Hartman Interactive video system
CN103237191B (zh) * 2013-04-16 2016-04-06 成都飞视美视频技术有限公司 在视频会议中同步推送音视频的方法
US20140317660A1 (en) * 2013-04-22 2014-10-23 LiveRelay Inc. Enabling interaction between social network users during synchronous display of video channel
CN106131583A (zh) * 2016-06-30 2016-11-16 北京小米移动软件有限公司 一种直播处理方法、装置、终端设备及系统
CN107027050B (zh) * 2017-04-13 2020-11-20 广州华多网络科技有限公司 辅助直播的音视频处理方法及装置
CN109429108B (zh) * 2017-08-28 2021-06-29 创盛视联数码科技(北京)有限公司 一种iOS移动端基于Socket.IO和WebRTC的观看端视频连麦方法
CN109640191A (zh) * 2017-10-09 2019-04-16 武汉斗鱼网络科技有限公司 一种连麦直播的方法和装置
CN110493610A (zh) * 2019-08-14 2019-11-22 北京达佳互联信息技术有限公司 聊天室开启视频画面的方法、装置、电子设备及存储介质
CN110856011B (zh) * 2019-12-05 2022-06-10 咪咕视讯科技有限公司 一种分组进行直播互动的方法、电子设备及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170064404A1 (en) * 2015-08-27 2017-03-02 Kiswe Mobile Inc. Live event viewing via mixed live and on-demand streaming
CN106341695A (zh) * 2016-08-31 2017-01-18 腾讯数码(天津)有限公司 直播间互动方法、装置及系统
CN106792245A (zh) * 2016-11-22 2017-05-31 广州华多网络科技有限公司 直播间视频流合成方法、装置及终端设备
CN107396166A (zh) * 2017-08-07 2017-11-24 北京小米移动软件有限公司 直播中显示视频的方法及装置
CN109618191A (zh) * 2018-12-17 2019-04-12 广州市百果园信息技术有限公司 直播连麦方法、装置、计算机可读存储介质及终端
CN110012362A (zh) * 2019-04-16 2019-07-12 广州虎牙信息科技有限公司 一种直播语音处理方法、装置、设备及存储介质
CN111355973A (zh) * 2020-03-09 2020-06-30 北京达佳互联信息技术有限公司 数据播放方法、装置、电子设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4009642A4 *

Also Published As

Publication number Publication date
CN111355973B (zh) 2021-10-15
US20220210501A1 (en) 2022-06-30
CN111355973A (zh) 2020-06-30
EP4009642A4 (en) 2023-04-12
EP4009642A1 (en) 2022-06-08

Similar Documents

Publication Publication Date Title
CN111818359B (zh) 直播互动视频的处理方法、装置、电子设备及服务器
US20210281909A1 (en) Method and apparatus for sharing video, and storage medium
CN106105246B (zh) 直播显示方法、装置及系统
JP6404912B2 (ja) ライブ放送システム
US9131256B2 (en) Method and apparatus for synchronizing content playback
WO2017181551A1 (zh) 视频处理方法及装置
JP2017531973A (ja) 動画撮影方法及びその装置、プログラム、及び記憶媒体
US20220210501A1 (en) Method and apparatus for playing data
CN109151565B (zh) 播放语音的方法、装置、电子设备及存储介质
US11457250B2 (en) Method, device, and storage medium for transmitting data
US20220078221A1 (en) Interactive method and apparatus for multimedia service
CN111583952A (zh) 音频处理方法、装置、电子设备及存储介质
WO2021143881A1 (zh) 直播流的拉流方法及设备
US20230007312A1 (en) Method and apparatus for information interaction in live broadcast room
WO2021244159A1 (zh) 一种翻译方法、装置、耳机和耳机收纳装置
CN110769189A (zh) 视频会议切换方法、装置及可读存储介质
JP2019036969A (ja) ライブ放送システム
WO2023098011A1 (zh) 视频播放方法及电子设备
CN109729367B (zh) 提供直播媒体内容信息的方法、装置及电子设备
CN110992920B (zh) 直播合唱方法、装置、电子设备及存储介质
CN112532931A (zh) 一种视频处理方法、装置和电子设备
CN115052169A (zh) 一种互动方法、装置、电子设备、计算机可读介质
CN109788364B (zh) 视频通话互动方法、装置及电子设备
CN111739538B (zh) 一种翻译方法、装置、耳机和服务器
CN116320514A (zh) 一种音视频会议直播的方法、系统、电子设备和介质

Legal Events

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

Ref document number: 20924721

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020924721

Country of ref document: EP

Effective date: 20220303

NENP Non-entry into the national phase

Ref country code: DE