CN105847943A - A method and device for playing audio and video by a playback device, and a playback device - Google Patents
A method and device for playing audio and video by a playback device, and a playback device Download PDFInfo
- Publication number
- CN105847943A CN105847943A CN201610248841.3A CN201610248841A CN105847943A CN 105847943 A CN105847943 A CN 105847943A CN 201610248841 A CN201610248841 A CN 201610248841A CN 105847943 A CN105847943 A CN 105847943A
- Authority
- CN
- China
- Prior art keywords
- video
- audio
- server
- server log
- playback device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/4508—Management of client data or end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4825—End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control 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/64—Addressing
- H04N21/6402—Address allocation for clients
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种播放设备播放音视频的方法、装置及播放设备。该方法包括:播放设备接收并记录至少一个智能终端发送的服务器登录参数;所述播放设备接收并记录所述至少一个智能终端发送的播放列表;所述播放设备根据所述播放列表和所述服务器登录参数从服务器获取待播放音视频的地址信息进行音视频播放。本方案实现了在音视频播放过程中,智能终端网络连接断开的情况下,播放设备可连续播放多个音视频。
The present invention discloses a method, device and device for playing audio and video by a playback device. The method comprises: the playback device receives and records server login parameters sent by at least one intelligent terminal; the playback device receives and records a play list sent by the at least one intelligent terminal; the playback device obtains address information of the audio and video to be played from the server according to the play list and the server login parameters to play the audio and video. This solution realizes that when the network connection of the intelligent terminal is disconnected during the audio and video playback process, the playback device can continuously play multiple audio and video.
Description
技术领域technical field
本发明实施例涉及计算机技术,尤其涉及一种播放设备播放音视频的方法、装置及播放设备。Embodiments of the present invention relate to computer technology, and in particular to a method, device and playback device for playing audio and video by a playback device.
背景技术Background technique
播放设备通过网络和智能终端进行连接后,可播放智能终端APP(应用程序,Application)中的音视频。由于大部分音视频服务(如TIDAL、虾米等)提供的音视频地址信息具有时效性(即一段时间后地址信息无效,如30min后),所以当前的一般做法是:在智能终端的APP中维持播放列表,将需要播放的音视频的地址信息发送给播放设备,当APP检测到当前音视频播放结束之后,再推送下一个音视频的地址信息给播放设备用于播放。After the playback device is connected to the smart terminal through the network, it can play the audio and video in the smart terminal APP (application program, Application). Since the audio and video address information provided by most audio and video services (such as TIDAL, Xiami, etc.) is time-sensitive (that is, the address information becomes invalid after a period of time, such as after 30 minutes), the current general practice is to maintain the address information in the smart terminal APP. The playlist sends the address information of the audio and video to be played to the playback device. When the APP detects that the current audio and video is played, it pushes the address information of the next audio and video to the playback device for playback.
上述方案的缺陷在于:在音视频播放过程中,当智能终端和音视频服务器的网络连接断开,或者智能终端和播放设备无网络连接时,播放设备无法连续播放多个音视频。The disadvantage of the above solution is that: during the audio and video playback process, when the network connection between the smart terminal and the audio and video server is disconnected, or the smart terminal and the playback device have no network connection, the playback device cannot continuously play multiple audio and video.
发明内容Contents of the invention
本发明提供一种播放设备播放音视频的方法、装置及播放设备,以实现在音视频播放过程中,智能终端网络连接断开的情况下,播放设备可连续播放多个音视频。The present invention provides a method and device for playing audio and video by a playback device, and a playback device, so that the playback device can continuously play multiple audio and video when the network connection of an intelligent terminal is disconnected during the playback of audio and video.
第一方面,本发明实施例提供了一种播放设备播放音视频的方法,包括:In the first aspect, the embodiment of the present invention provides a method for playing audio and video on a playback device, including:
播放设备接收并记录至少一个智能终端发送的服务器登录参数;The playback device receives and records server login parameters sent by at least one smart terminal;
所述播放设备接收并记录所述至少一个智能终端发送的播放列表;The playback device receives and records the playlist sent by the at least one smart terminal;
所述播放设备根据所述播放列表和所述服务器登录参数从服务器获取待播放音视频的地址信息进行音视频播放。The playback device obtains the address information of the audio and video to be played from the server according to the playlist and the server login parameters to play the audio and video.
第二方面,本发明实施例还提供了一种播放设备播放音视频的装置,包括:In the second aspect, the embodiment of the present invention also provides an apparatus for playing audio and video by a playback device, including:
服务器登录参数获取模块,用于接收并记录至少一个智能终端发送的服务器登录参数;A server login parameter acquisition module, configured to receive and record server login parameters sent by at least one smart terminal;
播放列表获取模块,用于接收并记录所述至少一个智能终端发送的播放列表;A playlist acquisition module, configured to receive and record the playlist sent by the at least one smart terminal;
音视频处理模块,用于根据所述播放列表和所述服务器登录参数从服务器获取待播放音视频的地址信息进行音视频播放。The audio and video processing module is used to obtain the address information of the audio and video to be played from the server according to the playlist and the server login parameters to play the audio and video.
第三方面,本发明实施例还提供了一种播放设备,该播放设备集成了前述实施例中的播放音视频的装置。In a third aspect, an embodiment of the present invention further provides a playback device, which integrates the apparatus for playing audio and video in the foregoing embodiments.
本发明通过播放设备接收并记录至少一个智能终端发送的服务器登录参数,接收并记录所述至少一个智能终端发送的播放列表,根据播放列表和服务器登录参数从服务器获取待播放音视频的地址信息进行音视频播放,解决了在音视频播放过程中,当智能终端和音视频服务器的网络连接断开,或者智能终端和播放设备无网络连接时,播放设备无法连续播放多个音视频问题,实现了智能终端网络连接断开的情况下,播放设备可连续播放多个音视频的目的。The present invention receives and records the server login parameters sent by at least one smart terminal through the playback device, receives and records the playlist sent by the at least one smart terminal, and obtains the address information of audio and video to be played from the server according to the playlist and server login parameters. Audio and video playback, which solves the problem that the playback device cannot play multiple audio and video continuously when the network connection between the smart terminal and the audio and video server is disconnected, or the smart terminal and the playback device have no network connection during the audio and video playback process, and realizes the intelligent When the terminal network connection is disconnected, the playback device can continuously play multiple audio and video purposes.
附图说明Description of drawings
图1是本发明实施例一提供的播放设备播放音视频的方法的流程图;FIG. 1 is a flow chart of a method for playing audio and video by a playback device according to Embodiment 1 of the present invention;
图2是本发明实施例二提供的播放设备播放音视频的方法的流程图;2 is a flow chart of a method for playing audio and video by a playback device according to Embodiment 2 of the present invention;
图3是本发明实施例三提供的播放设备播放音视频的装置的结构图;FIG. 3 is a structural diagram of an apparatus for playing audio and video by a playback device provided in Embodiment 3 of the present invention;
图4是本发明实施例四提供的播放设备的硬件结构图。FIG. 4 is a hardware structural diagram of a playback device provided by Embodiment 4 of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
实施例一Embodiment one
图1为本发明实施例一提供的播放设备播放音视频的方法的流程图,本实施例可适用于智能终端设备(如手机、平板电脑)和播放设备进行网络连接以播放音视频的情况,该方法可以由播放设备(如智能音箱)来执行,具体包括如下步骤:Fig. 1 is the flowchart of the method for playing audio and video by a playback device provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where a smart terminal device (such as a mobile phone, a tablet computer) and a playback device are connected to a network to play audio and video, The method can be performed by a playback device (such as a smart speaker), and specifically includes the following steps:
步骤101、播放设备接收并记录至少一个智能终端发送的服务器登录参数。Step 101, the playback device receives and records server login parameters sent by at least one smart terminal.
其中,服务器登录参数为智能终端登录服务器时获取的包含登录信息的参数,如:服务器的端口信息、当前智能终端登录的认证信息(智能终端的用户名、密码等)、登录时间信息、服务器地址信息等。该服务器登录参数主要用于登录服务器以获取音视频的地址信息进而进行音视频的播放。例如:智能终端中的APP通过路由器或移动网络登录音乐服务器后,当需要播放APP音乐列表中的某首歌曲时,可从音乐服务器获取该首歌曲的URL(Uniform ResoureLocator,统一资源定位器),进而通过该URL获取该首歌曲具体数据信息进行播放。Among them, the server login parameter is a parameter containing login information obtained when the smart terminal logs in to the server, such as: server port information, current smart terminal login authentication information (smart terminal user name, password, etc.), login time information, server address information etc. The server login parameter is mainly used to log in to the server to obtain the address information of the audio and video, and then play the audio and video. For example: after the APP in the smart terminal logs in to the music server through a router or mobile network, when a certain song in the APP music list needs to be played, the URL (Uniform ResoureLocator, Uniform Resource Locator) of the song can be obtained from the music server, Further, the specific data information of the song is obtained through the URL for playing.
本方案中,播放设备可以连接有一个或多个智能终端。优选的,智能终端若存在服务器登录参数,则播放设备在和其进行网络连接时即自动接收该智能终端的服务器登录参数,并进行记录。智能终端还可以根据用户的操作,选择是否发送该服务器登录参数给播放设备。In this solution, the playback device can be connected with one or more smart terminals. Preferably, if the smart terminal has server login parameters, the playback device automatically receives the server login parameters of the smart terminal and records them when it is connected to the network. The smart terminal can also choose whether to send the server login parameters to the playback device according to the user's operation.
步骤102、所述播放设备接收并记录所述至少一个智能终端发送的播放列表。Step 102, the playback device receives and records the playlist sent by the at least one smart terminal.
其中,播放列表记录了音视频的相关信息,示例性的,可以包括该音视频的名称、歌手(演员)、发布者、缩略图和播放时长等。该播放列表维护在智能终端的APP中,用户可根据个人需要对该播放列表中的音视频进行添加或删除等常规操作。优选的,当播放设备和智能终端进行网络连接时,若智能终端中存在播放列表,则该播放列表被自动发送至播放设备中,播放设备接收该播放列表后进行记录。优选的,播放设备中的播放列表可动态变化,实时保持和发送该列表的智能终端中的播放列表一致。优选的,用户也可在智能终端中对播放列表编辑完毕后选择手动发送至播放设备中。Wherein, the playlist records the relevant information of the audio and video, for example, may include the name of the audio and video, singer (actor), publisher, thumbnail, and playing duration, etc. The playlist is maintained in the APP of the smart terminal, and users can perform routine operations such as adding or deleting audio and video in the playlist according to individual needs. Preferably, when the playback device and the smart terminal are connected to the network, if there is a playlist in the smart terminal, the playlist is automatically sent to the playback device, and the playback device records the playlist after receiving it. Preferably, the playlist in the playback device can be changed dynamically, and kept consistent with the playlist in the smart terminal sending the list in real time. Preferably, the user can also choose to manually send the playlist to the playback device after editing the playlist in the smart terminal.
本方案中,播放设备可同时连接有一个或多个智能终端。优选的,播放设备在接收到智能终端发送的播放列表后可采取多种方式进行记录。示例性的,播放设备可根据不同智能终端单独维护和该智能终端对应的播放列表,也可以是在播放设备中仅维护一张最新接收到的播放列表,之前的播放列表被自动覆盖。In this solution, the playback device can be connected to one or more smart terminals at the same time. Preferably, after the playback device receives the playlist sent by the smart terminal, it can record in various ways. Exemplarily, the playback device can independently maintain the playlist corresponding to the smart terminal according to different smart terminals, or only maintain a newly received playlist in the playback device, and the previous playlist is automatically overwritten.
步骤103、所述播放设备根据所述播放列表和所述服务器登录参数从服务器获取待播放音视频的地址信息进行音视频播放。Step 103, the playback device obtains the address information of the audio and video to be played from the server according to the playlist and the server login parameters, and plays the audio and video.
其中,播放设备在播放播放列表中的音视频时可采取顺序播放、随机播放或循环播放等多种播放方式。当需要进行音视频播放时,播放设备根据当前播放列表中要播放的音视频从服务器获取该音视频的地址信息。优选的,可通过播放列表中音视频的标志信息(如MP3文件的ID3信息)和服务器登录参数从服务器获取待播放音视频的地址信息(如URL信息)以获取音视频数据进行音视频播放。Wherein, when playing the audio and video in the playlist, the playback device can adopt various playback methods such as sequential playback, random playback, or loop playback. When audio and video playback is required, the playback device obtains the address information of the audio and video from the server according to the audio and video to be played in the current playlist. Preferably, the address information (such as URL information) of the audio and video to be played can be obtained from the server through the sign information of the audio and video in the playlist (such as the ID3 information of the MP3 file) and the server login parameters to obtain audio and video data for audio and video playback.
本实施例的技术方案,播放设备根据自身的播放列表和所述服务器登录参数信息从服务器获取音视频的地址信息进行音视频播放,解决了在音视频播放过程中,当智能终端和音视频服务器的网络连接断开,或者智能终端和播放设备无网络连接时,播放设备无法连续播放多个音视频问题,实现了智能终端网络连接断开的情况下,播放设备可连续播放多个音视频的目的。In the technical solution of this embodiment, the playback device obtains the address information of the audio and video from the server according to its own playlist and the server login parameter information to play the audio and video, which solves the problem of when the smart terminal and the audio and video server are in the process of playing the audio and video. When the network connection is disconnected, or there is no network connection between the smart terminal and the playback device, the playback device cannot continuously play multiple audio and video problems, which realizes the purpose of the playback device being able to continuously play multiple audio and video when the smart terminal network connection is disconnected .
在上述技术方案的基础上,在所述播放设备接收并记录至少一个智能终端发送的服务器登录参数之前,还包括:至少一个智能终端登录服务器得到相应的服务器登录参数;播放设备和所述至少一个智能终端进行网络连接。其中,网络连接方式包括蓝牙连接和WIFI连接等。智能终端可通过移动网络或通过连接路由器使用无线网络和服务器进行交互以获得服务器登录参数。On the basis of the above technical solution, before the playback device receives and records the server login parameters sent by at least one smart terminal, it also includes: at least one smart terminal logs in to the server to obtain corresponding server login parameters; the playback device and the at least one The smart terminal is connected to the network. Wherein, the network connection mode includes Bluetooth connection, WIFI connection and the like. The smart terminal can interact with the server through the mobile network or connect to the router using the wireless network to obtain server login parameters.
实施例二Embodiment two
图2为本发明实施例二提供的播放设备播放音视频的方法的流程图,本实施例在实施例一基础上,给出了一种播放设备接收到多个服务器登录参数时对服务器登录参数进行记录及进行音视频播放的优选方案。具体包括如下步骤:Fig. 2 is a flow chart of the method for playing audio and video by the playback device provided in Embodiment 2 of the present invention. On the basis of Embodiment 1, this embodiment provides a method for server login parameters when the playback device receives multiple server login parameters. The preferred solution for recording and playing audio and video. Specifically include the following steps:
步骤201、播放设备接收并记录至少一个智能终端发送的服务器登录参数,若播放设备接收到至少两个服务器登录参数,则以堆栈的方式记录所述服务器登录参数。Step 201, the playback device receives and records server login parameters sent by at least one smart terminal, and if the playback device receives at least two server login parameters, records the server login parameters in a stack.
其中,该至少两个服务器登录参数可由一个或多个智能终端发送。示例性的,同一个智能终端情况下,该智能终端在不同时间、不同状态或登录不同的服务器时将获取到不同的服务器登录参数,当播放设备接收该智能终端发送的不同服务器登录参数时以堆栈的方式将多个服务器登录参数进行记录。同理,多个智能终端获取到的不同服务器登录参数依然可根据发送到播放设备的时间先后以堆栈方式记录在播放设备中。Wherein, the at least two server login parameters may be sent by one or more smart terminals. Exemplarily, in the case of the same smart terminal, the smart terminal will obtain different server login parameters at different times, in different states, or when logging in to different servers. When the playback device receives different server login parameters sent by the smart terminal, it will use Multiple server login parameters are recorded in a stacked manner. Similarly, different server login parameters obtained by multiple smart terminals can still be recorded in the playback device in a stacked manner according to the time when they are sent to the playback device.
步骤202、所述播放设备接收并记录所述至少一个智能终端发送的播放列表。Step 202, the playback device receives and records the playlist sent by the at least one smart terminal.
步骤203、播放设备根据所述播放列表和堆栈中栈顶的服务器登录参数从服务器获取音视频的地址信息进行音视频播放。Step 203, the playback device obtains the address information of the audio and video from the server according to the playlist and the server login parameters at the top of the stack to play the audio and video.
其中,当播放设备需要从服务器中获取音视频地址信息时,从堆栈栈顶中读取记录的服务器登录参数,通过该服务器登录参数和播放列表获取地址信息以进行音视频播放。若播放设备获取到的栈顶的服务器登录参数失效,无法通过该服务器登录参数获取到地址信息则删除当前栈顶的服务器登录参数,重新获取堆栈栈顶的服务器登录参数。当播放设备接收到新的服务器登录参数时,该服务器登录参数即被记录在堆栈栈顶,用于之后从服务器获取音视频的地址信息。Wherein, when the playback device needs to obtain the audio and video address information from the server, it reads the recorded server login parameters from the top of the stack, and obtains the address information through the server login parameters and the playlist for audio and video playback. If the server login parameter at the top of the stack obtained by the playback device is invalid, and the address information cannot be obtained through the server login parameter, then delete the current server login parameter at the top of the stack, and obtain the server login parameter at the top of the stack again. When the playback device receives a new server login parameter, the server login parameter is recorded at the top of the stack, and is used to obtain audio and video address information from the server later.
本实施例的技术方案,解决了在音视频播放过程中,当智能终端和音视频服务器的网络连接断开,或者智能终端和播放设备无网络连接时,播放设备无法连续播放多个音视频问题,实现了智能终端网络连接断开的情况下,播放设备可连续播放多个音视频的目的。The technical solution of this embodiment solves the problem that the playback device cannot play multiple audios and videos continuously when the network connection between the smart terminal and the audio and video server is disconnected, or the smart terminal and the playback device have no network connection during the audio and video playback process. Realized the purpose that the playback device can continuously play multiple audio and video when the network connection of the smart terminal is disconnected.
在上述技术方案的基础上,若所述播放设备接收到智能终端发出的登出操作指令,则在所述堆栈中删除所述发出登出操作指令的智能终端对应的服务器登录参数。其中,当智能终端登出服务器后,服务器登录参数通常不再可用,故相应的在播放设备中删除对应的不可用服务器登录参数,堆栈中的数据信息重新排列。本方案一方面使得在智能终端登出服务器后播放设备可利用其它服务器登录参数以获取音视频的地址信息,即使某个服务器登录参数无效,依然能够实现播放设备的不间断播放。同时,合理的维护了播放设备中记录的服务器登录参数。On the basis of the above technical solution, if the playback device receives a logout operation instruction issued by the smart terminal, delete the server login parameter corresponding to the smart terminal that issued the logout operation instruction from the stack. Wherein, when the smart terminal logs out of the server, the server login parameters are usually no longer available, so corresponding unavailable server login parameters are deleted in the playback device, and the data information in the stack is rearranged. On the one hand, this solution enables the playback device to use other server login parameters to obtain audio and video address information after the smart terminal logs out of the server. Even if a certain server login parameter is invalid, the playback device can still play uninterruptedly. At the same time, the server login parameters recorded in the playback device are reasonably maintained.
在上述技术方案的基础上,优选的,当播放设备需要从服务器中获取音视频地址信息时,根据记录的所有服务器登录参数的使用频率的大小,选择使用频率最高的服务器登录参数和播放列表中的信息来获取音视频的地址信息。On the basis of the above technical solution, preferably, when the playback device needs to obtain the audio and video address information from the server, according to the size of the frequency of use of all server login parameters recorded, select the server login parameter with the highest frequency of use and the playlist. information to obtain the address information of audio and video.
在上述技术方案的基础上,优选的,当播放设备需要从服务器中获取音视频地址信息时,选择最近一次使用的服务器登录参数和播放列表中的信息来获取音视频的地址信息。本方案中,避免了由于播放设备不断接收到新的服务器登录参数频繁利用不同服务器登录参数获取音视频地址信息带来的不稳定性。On the basis of the above technical solution, preferably, when the playback device needs to obtain audio and video address information from the server, it selects the last used server login parameters and information in the playlist to obtain the audio and video address information. In this solution, the instability caused by frequent use of different server login parameters to obtain audio and video address information due to the continuous reception of new server login parameters by the playback device is avoided.
在上述技术方案的基础上,优选的,当播放设备使用服务器登录参数和播放列表获取音视频地址的同时,记录使用该服务器登录参数登录的服务器(不同的APP播放列表中的音视频可以对应存放在不同的服务器)获取音视频数据的速率,当播放设备每次需要从服务器中获取音视频地址信息时,选择音视频传输速率最大的服务器对应的服务器登录参数和播放列表获取地址信息。本方案中,通过对服务器登录参数的合理选择优化了播放设备的音视频播放过程,提高了播放效率。On the basis of the above technical solution, preferably, when the playback device uses the server login parameters and playlist to obtain the audio and video addresses, it records the server that uses the server login parameters to log in (the audio and video in different APP playlists can be stored correspondingly) Obtain the rate of audio and video data in different servers), when the playback device needs to obtain the audio and video address information from the server at every turn, select the server login parameters and playlist corresponding to the server with the largest audio and video transmission rate to obtain the address information. In this solution, the audio and video playback process of the playback device is optimized through reasonable selection of server login parameters, and the playback efficiency is improved.
实施例三Embodiment three
图3为本发明实施例三提供的播放设备播放音视频的装置的结构图,如图3所示,包括:Fig. 3 is a structural diagram of a device for playing audio and video by a playback device provided in Embodiment 3 of the present invention, as shown in Fig. 3 , including:
服务器登录参数获取模块1,用于接收并记录至少一个智能终端发送的服务器登录参数;The server login parameter acquisition module 1 is used to receive and record the server login parameters sent by at least one smart terminal;
播放列表获取模块2,用于接收并记录所述至少一个智能终端发送的播放列表;A playlist acquisition module 2, configured to receive and record the playlist sent by the at least one smart terminal;
音视频处理模块3,用于根据所述播放列表和所述服务器登录参数从服务器获取待播放音视频的地址信息进行音视频播放。The audio and video processing module 3 is used to obtain the address information of the audio and video to be played from the server according to the playlist and the server login parameters to play the audio and video.
本实施例的技术方案,解决了在音视频播放过程中,当智能终端和音视频服务器的网络连接断开,或者智能终端和播放设备无网络连接时,播放设备无法连续播放多个音视频问题,实现了智能终端网络连接断开的情况下,播放设备可连续播放多个音视频的目的。The technical solution of this embodiment solves the problem that the playback device cannot play multiple audios and videos continuously when the network connection between the smart terminal and the audio and video server is disconnected, or the smart terminal and the playback device have no network connection during the audio and video playback process. Realized the purpose that the playback device can continuously play multiple audio and video when the network connection of the smart terminal is disconnected.
在上述技术方案的基础上,所述服务器登录参数获取模块具体用于:On the basis of the above technical solution, the server login parameter acquisition module is specifically used for:
若接收到至少两个服务器登录参数,则以堆栈的方式记录所述服务器登录参数。If at least two server login parameters are received, the server login parameters are recorded in a stack.
在上述技术方案的基础上,所述音视频处理模块具体用于:On the basis of the above technical solution, the audio and video processing module is specifically used for:
根据所述播放列表和堆栈中栈顶的服务器登录参数从服务器获取音视频的地址信息进行音视频播放,其中,若所述栈顶的服务器登录参数失效,则删除当前栈顶的服务器登录参数,重新获取堆栈栈顶的服务器登录参数。Obtain the address information of audio and video from the server according to the server login parameters at the top of the stack in the playlist and the stack to play the audio and video, wherein, if the server login parameters at the top of the stack are invalid, delete the server login parameters at the top of the stack, Re-acquire the server login parameters at the top of the stack.
在上述技术方案的基础上,所述音视频处理模块还用于:On the basis of the above technical solution, the audio and video processing module is also used for:
若所述播放设备接收到智能终端发出的登出操作指令,则在所述堆栈中删除所述发出登出操作指令的智能终端对应的服务器登录参数。If the playback device receives the logout operation instruction sent by the smart terminal, it deletes the server login parameter corresponding to the smart terminal that sent the logout operation instruction from the stack.
上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above-mentioned product can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
实施例四Embodiment Four
图4是本发明实施例四提供的播放设备的硬件结构图。本实施例提供的播放设备集成了实施例三中描述的装置。FIG. 4 is a hardware structural diagram of a playback device provided by Embodiment 4 of the present invention. The playback device provided in this embodiment integrates the devices described in Embodiment 3.
具体的,该播放设备的硬件主要包括:Specifically, the hardware of the playback device mainly includes:
处理器41,用于执行控制程序以完成和周边功能模块通信,可协调和控制各个功能模块工作。The processor 41 is used to execute the control program to complete the communication with the surrounding functional modules, and can coordinate and control the work of each functional module.
蓝牙模块42,用于实现蓝牙通信,使播放设备可以通过蓝牙与同样具备蓝牙功能的智能终端(如智能手机)建立连接以获取服务器登录参数和播放列表。蓝牙模块将获取得到的服务器登录参数和播放列表传输给处理器,也可将处理器传输过来的服务器登录参数和播放列表发送至其它蓝牙设备。The bluetooth module 42 is used to realize bluetooth communication, so that the playback device can establish a connection with an intelligent terminal (such as a smart phone) that also has a bluetooth function to obtain server login parameters and playlists. The bluetooth module transmits the acquired server login parameters and playlist to the processor, and can also send the server login parameters and playlist transmitted by the processor to other bluetooth devices.
网络接口43,具体的实现方式包括:有线网络接口和/或符合802.11规范的无线网络接口。处理器通过该网络接口可以连接到互联网以获取服务器的音视频数据。通过该网络接口,多个播放设备可以组成无线音频播放系统,实现音视频的同步播放。通常情况下,各个智能终端也是通过无线网络(如WIFI)接入音视频播放系统,对音视频播放系统及系统内的播放设备进行控制。The specific implementation of the network interface 43 includes: a wired network interface and/or a wireless network interface conforming to the 802.11 specification. The processor can be connected to the Internet through the network interface to obtain the audio and video data of the server. Through this network interface, multiple playback devices can form a wireless audio playback system to realize synchronous playback of audio and video. Usually, each smart terminal also accesses the audio and video playback system through a wireless network (such as WIFI), and controls the audio and video playback system and playback devices in the system.
音频放大模块44,用于接收处理器发送的模拟音频信号并进行功率放大,以驱动扬声器发声。The audio amplification module 44 is used for receiving the analog audio signal sent by the processor and amplifying the power to drive the speaker to produce sound.
扬声器45,用于声音还原,其具体的数量可以是一个或多个。The loudspeaker 45 is used for sound reproduction, and its specific quantity can be one or more.
存储器46,用于存储处理器执行的程序,及音视频连续播放的相关信息,如:服务器登录参数和播放列表等。The memory 46 is used to store programs executed by the processor, and information related to continuous audio and video playback, such as server login parameters and playlists.
本实施例的技术方案,解决了在音视频播放过程中,当智能终端和音视频服务器的网络连接断开,或者智能终端和播放设备无网络连接时,播放设备无法连续播放多个音视频问题,实现了智能终端网络连接断开的情况下,播放设备可连续播放多个音视频的目的。The technical solution of this embodiment solves the problem that the playback device cannot play multiple audios and videos continuously when the network connection between the smart terminal and the audio and video server is disconnected, or the smart terminal and the playback device have no network connection during the audio and video playback process. Realized the purpose that the playback device can continuously play multiple audio and video when the network connection of the smart terminal is disconnected.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610248841.3A CN105847943A (en) | 2016-04-20 | 2016-04-20 | A method and device for playing audio and video by a playback device, and a playback device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610248841.3A CN105847943A (en) | 2016-04-20 | 2016-04-20 | A method and device for playing audio and video by a playback device, and a playback device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105847943A true CN105847943A (en) | 2016-08-10 |
Family
ID=56590138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610248841.3A Pending CN105847943A (en) | 2016-04-20 | 2016-04-20 | A method and device for playing audio and video by a playback device, and a playback device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105847943A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108696792A (en) * | 2017-04-11 | 2018-10-23 | 北京君正集成电路股份有限公司 | A kind of method and apparatus of control intelligent sound |
CN108899020A (en) * | 2018-05-29 | 2018-11-27 | 北京小米移动软件有限公司 | Information search method, device and computer readable storage medium |
CN110460904A (en) * | 2019-08-22 | 2019-11-15 | 聚好看科技股份有限公司 | Audio/video pushing method, mobile terminal and display terminal |
CN116074571A (en) * | 2023-04-06 | 2023-05-05 | 深圳开鸿数字产业发展有限公司 | Control method of audio-video system, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103248683A (en) * | 2013-04-28 | 2013-08-14 | 中国地质大学(武汉) | IOT cloud music speaker and audio data play method thereof |
CN104093102A (en) * | 2014-07-30 | 2014-10-08 | 深圳市华美兴泰科技有限公司 | Wireless sound system for transmitting audio based on WIFI and application method of wireless sound system |
CN104732990A (en) * | 2015-03-18 | 2015-06-24 | 广东欧珀移动通信有限公司 | A method and device for adjusting playlist sorting |
CN104980514A (en) * | 2015-06-19 | 2015-10-14 | 广东欧珀移动通信有限公司 | Remote play control method and apparatus of wireless sound box |
CN105185391A (en) * | 2015-08-27 | 2015-12-23 | 三星电子(中国)研发中心 | Method and device for multi-user sound box control |
-
2016
- 2016-04-20 CN CN201610248841.3A patent/CN105847943A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103248683A (en) * | 2013-04-28 | 2013-08-14 | 中国地质大学(武汉) | IOT cloud music speaker and audio data play method thereof |
CN104093102A (en) * | 2014-07-30 | 2014-10-08 | 深圳市华美兴泰科技有限公司 | Wireless sound system for transmitting audio based on WIFI and application method of wireless sound system |
CN104732990A (en) * | 2015-03-18 | 2015-06-24 | 广东欧珀移动通信有限公司 | A method and device for adjusting playlist sorting |
CN104980514A (en) * | 2015-06-19 | 2015-10-14 | 广东欧珀移动通信有限公司 | Remote play control method and apparatus of wireless sound box |
CN105185391A (en) * | 2015-08-27 | 2015-12-23 | 三星电子(中国)研发中心 | Method and device for multi-user sound box control |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108696792A (en) * | 2017-04-11 | 2018-10-23 | 北京君正集成电路股份有限公司 | A kind of method and apparatus of control intelligent sound |
CN108899020A (en) * | 2018-05-29 | 2018-11-27 | 北京小米移动软件有限公司 | Information search method, device and computer readable storage medium |
CN110460904A (en) * | 2019-08-22 | 2019-11-15 | 聚好看科技股份有限公司 | Audio/video pushing method, mobile terminal and display terminal |
CN116074571A (en) * | 2023-04-06 | 2023-05-05 | 深圳开鸿数字产业发展有限公司 | Control method of audio-video system, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11743534B2 (en) | Systems and methods for networked music playback | |
US11403063B2 (en) | Fast-resume audio playback | |
US11899712B2 (en) | Playback queue collaboration and notification | |
US11175805B2 (en) | Controlling and displaying zones in a multi-zone system | |
US10871817B2 (en) | Synchronous playback with battery-powered playback device | |
CN105847943A (en) | A method and device for playing audio and video by a playback device, and a playback device | |
CN105682010B (en) | Bluetooth connection control method and device in audio playing system and playing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160810 |
|
RJ01 | Rejection of invention patent application after publication |