CN104468761B - Control the method and mobile terminal of player carry shared file - Google Patents
Control the method and mobile terminal of player carry shared file Download PDFInfo
- Publication number
- CN104468761B CN104468761B CN201410710307.0A CN201410710307A CN104468761B CN 104468761 B CN104468761 B CN 104468761B CN 201410710307 A CN201410710307 A CN 201410710307A CN 104468761 B CN104468761 B CN 104468761B
- Authority
- CN
- China
- Prior art keywords
- file
- player
- mobile terminal
- list
- directory
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种控制播放机挂载共享文件的方法及装置,其中方法包括:移动终端向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表;移动终端显示所述文件列表上包含的文件,以供用户浏览和选择。本发明解决了现有技术中通过遥控器来控制播放机挂载共享文件时,用户定位共享文件困难的问题,使用户能够在移动终端上方便快捷的定位共享文件。
The embodiment of the present invention discloses a method and device for controlling a player to mount a shared file, wherein the method includes: the mobile terminal sends a mount command to the player, and the mount command includes a directory identifier, so that the player Mount the file directory corresponding to the directory identifier, and return the file list in the file directory to the mobile terminal; the mobile terminal displays the files contained in the file list for the user to browse and select. The invention solves the problem in the prior art that it is difficult for the user to locate the shared file when the player is controlled by the remote controller to mount the shared file, and enables the user to conveniently and quickly locate the shared file on the mobile terminal.
Description
技术领域technical field
本发明实施例涉及移动通信技术,尤其涉及一种控制播放机挂载共享文件的方法和移动终端。The embodiment of the present invention relates to mobile communication technology, and in particular to a method for controlling a player to mount a shared file and a mobile terminal.
背景技术Background technique
随着科技网络的发展,“一机两用”功能的播放机应用而生,其不仅可以播放碟片,而且可以供大部分网络爱好者通过流媒体观赏、交换和共享影片。那么怎样才能使用户方便快速地定位到自己喜欢的那个文件成为关键问题。With the development of technological networks, the application of "one machine, two-purpose" players has emerged, which can not only play discs, but also allow most Internet enthusiasts to watch, exchange and share videos through streaming media. So how to make the user conveniently and quickly locate that file he likes becomes a key issue.
目前,很多用户使用遥控器来控制播放机挂载和浏览共享文件。具体的,用户通过触碰遥控器的上下按键来查找文件,显然,当共享的文件海量时,用户需要不停的触碰遥控器的上下按键,费时又费力,要找到需要的文件就会十分困难。Currently, many users use remote controls to control the player to mount and browse shared files. Specifically, the user searches for files by touching the up and down buttons of the remote controller. Obviously, when there are a large number of shared files, the user needs to keep touching the up and down buttons of the remote controller, which is time-consuming and laborious. It will be very difficult to find the required files. difficulty.
发明内容Contents of the invention
有鉴于此,本发明实施例提供一种控制播放机挂载共享文件的方法及移动终端,以优化现有的通过遥控器来控制播放机挂载共享文件的方法,使得用户能够方便快捷的定位共享文件。In view of this, an embodiment of the present invention provides a method for controlling a player to mount a shared file and a mobile terminal to optimize the existing method of controlling the player to mount a shared file through a remote control, so that the user can conveniently and quickly locate shared documents.
在第一方面,本发明实施例提供了一种控制播放机挂载共享文件的方法,包括:In a first aspect, an embodiment of the present invention provides a method for controlling a player to mount a shared file, including:
移动终端向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表;The mobile terminal sends a mount instruction to the player, the mount instruction includes a directory identifier, so that the player mounts the file directory corresponding to the directory identifier, and returns the file directory in the file directory to the mobile terminal. File List;
移动终端显示所述文件列表上包含的文件,以供用户浏览和选择。The mobile terminal displays the files contained in the file list for the user to browse and select.
在第二方面,本发明实施例提供了一种移动终端,包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
发送模块,用于向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表;A sending module, configured to send a mount instruction to the player, the mount instruction includes a directory identifier, so that the player mounts the file directory corresponding to the directory identifier, and returns the file to the mobile terminal list of files in the directory;
显示模块,用于显示所述文件列表上包含的文件,以供用户浏览和选择。The display module is used to display the files included in the file list for users to browse and select.
本发明实施例通过使用移动终端向播放器发送挂载指令,并在挂载指令中包含目录标识,使播放器挂载该目录标识对应的文件目录,并向移动终端返回该文件目录中的文件列表,移动终端显示该文件列表上包含的文件。通过上述各步骤可以使共享文件显示在移动终端上,从而使用户能够在移动终端上方便快捷的定位共享文件。In the embodiment of the present invention, the mobile terminal is used to send a mount instruction to the player, and the directory identifier is included in the mount instruction, so that the player mounts the file directory corresponding to the directory identifier, and returns the files in the file directory to the mobile terminal. list, and the mobile terminal displays the files included in the file list. Through the above steps, the shared file can be displayed on the mobile terminal, so that the user can conveniently and quickly locate the shared file on the mobile terminal.
附图说明Description of drawings
图1是本发明第一实施例提供的一种控制播放机挂载共享文件的方法流程示意图;FIG. 1 is a schematic flowchart of a method for controlling a player to mount a shared file provided by the first embodiment of the present invention;
图2是本发明第二实施例提供的一种控制播放机挂载共享文件的方法流程示意图;Fig. 2 is a schematic flowchart of a method for controlling a player to mount a shared file provided by the second embodiment of the present invention;
图3是本发明第三实施例提供的一种控制播放机挂载共享文件的方法流程示意图;Fig. 3 is a schematic flowchart of a method for controlling a player to mount a shared file provided by the third embodiment of the present invention;
图4是本发明第四实施例提供的一种控制播放机挂载共享文件的方法信令示意图;Fig. 4 is a schematic signaling diagram of a method for controlling a player to mount a shared file provided by the fourth embodiment of the present invention;
图5是本发明第五实施例提供的一种移动终端结构示意图。Fig. 5 is a schematic structural diagram of a mobile terminal provided by a fifth embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. 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 parts related to the present invention are shown in the drawings but not all content.
第一实施例first embodiment
图1是本发明第一实施例提供的一种控制播放机挂载共享文件的方法流程示意图,本实施例的方法可以由移动终端中的发送装置和屏幕显示装置来执行,该装置可通过硬件和/或软件的方式实现。或者,本实施例的方法可以由安装在移动终端中的应用客户端来执行,该客户端可通过硬件和/或软件的方式实现。本实施例的移动终端可以为智能手机、Ipad等,本实施例的播放器可以为蓝光播放器等,这里不做具体限定。Fig. 1 is a schematic flowchart of a method for controlling a player to mount a shared file provided by the first embodiment of the present invention. The method of this embodiment can be executed by the sending device and the screen display device in the mobile terminal, and the device can and/or software. Alternatively, the method in this embodiment may be executed by an application client installed in the mobile terminal, and the client may be implemented by means of hardware and/or software. The mobile terminal in this embodiment may be a smart phone, an Ipad, etc., and the player in this embodiment may be a Blu-ray player, etc., which are not specifically limited here.
相应的,本实施例的方法具体包括如下步骤:Correspondingly, the method in this embodiment specifically includes the following steps:
步骤110、移动终端向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表。Step 110, the mobile terminal sends a mount instruction to the player, the mount instruction includes a directory identifier, so that the player mounts the file directory corresponding to the directory identifier, and returns the file to the mobile terminal A list of files in the directory.
在本实施例中,移动终端向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表。In this embodiment, the mobile terminal sends a mount instruction to the player, and the mount instruction includes a directory identifier, so that the player mounts the file directory corresponding to the directory identifier, and returns to the mobile terminal A list of files in the file directory.
其中,所述文件目录可以按照文件类型来划分,例如喜剧片、爱情片、动作片等;也可以按照演员来划分,例如周迅、刘诗诗等,这里不做具体限定。所述目录标识可以为文件目录的名称,例如喜剧片、周迅等。Wherein, the file directory can be divided according to file types, such as comedy films, romance films, action films, etc.; it can also be divided according to actors, such as Zhou Xun, Liu Shishi, etc., which are not specifically limited here. The directory identifier may be the name of the file directory, such as Comedy, Zhou Xun and so on.
以在安卓开发平台开发的应用客户端为例,该客户端安装在移动终端上,用户点击移动终端上显示的文件目录列表上的某一文件目录,则该客户端响应用户的操作,向播放器发送挂载指令,其中,挂载指令中包含该文件目录的目录标识,则播放器通过linux挂载命令从网络服务器上挂载该文件目录,并将该文件目录的相关数据(例如文件列表)封装成轻量级的数据交换格式(JavaScript Object Notation,JSON)的数据,通过超文本传送协议(Hyper Text Transfer Protocol,HTTP)将该JSON数据发送给移动终端的客户端。其中网络服务器可以为网络文件系统(Network File System,NFS)服务器或塞班服务器。Taking the application client developed on the Android development platform as an example, the client is installed on the mobile terminal, and the user clicks on a certain file directory on the file directory list displayed on the mobile terminal, and the client responds to the user's operation and sends a message to the player. If the player sends a mount command, wherein the mount command contains the directory identifier of the file directory, then the player mounts the file directory from the network server through the linux mount command, and sends the relevant data of the file directory (such as the file list ) is encapsulated into data in a lightweight data exchange format (JavaScript Object Notation, JSON), and the JSON data is sent to the client of the mobile terminal through a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP). The network server may be a Network File System (Network File System, NFS) server or a Symbian server.
在本实施例中,所述移动终端向播放器发送挂载指令之前,还可以包括:所述移动终端向所述播放器发送第一指令,所述第一指令包含服务器标识,以使所述播放器从所述服务器标识对应的文件共享服务器上获取文件目录列表,并向所述移动终端返回所述文件目录列表;所述移动终端显示所述文件目录列表;所述移动终端接收用户选择的所述文件目录。In this embodiment, before the mobile terminal sends the mount instruction to the player, it may further include: the mobile terminal sends a first instruction to the player, the first instruction includes a server identifier, so that the The player obtains the file directory list from the file sharing server corresponding to the server identifier, and returns the file directory list to the mobile terminal; the mobile terminal displays the file directory list; the mobile terminal receives the file directory list selected by the user. The file directory.
这里,为了区分同一移动终端先后发送的不同指令,将此步骤发送的指令称为第一指令。Here, in order to distinguish different instructions successively sent by the same mobile terminal, the instruction sent in this step is called the first instruction.
同样以上述在安卓开发平台开发的应用客户端为例,点击该客户端中显示的服务器列表中的某一服务器,通过HTTP请求,发送第一指令至播放器,播放器通过linux命令(例如rpcinfo/showmount)从该服务器上获取共享给该播放器的文件目录列表,并将该文件目录列表的相关数据(例如文件目录)封装成JSON数据,通过HTTP协议将该JSON数据发送给移动终端的客户端。以使所述移动终端显示所述文件目录列表,供用户浏览并选择文件目录,所述移动终端接收用户选择的某一文件目录。Also take the above-mentioned application client developed on the Android development platform as an example, click on a certain server in the server list displayed in the client, and send the first command to the player through an HTTP request, and the player will pass a linux command (such as rpcinfo /showmount) obtains the file directory list shared to the player from the server, and encapsulates the relevant data (such as the file directory) of the file directory list into JSON data, and sends the JSON data to the client of the mobile terminal through the HTTP protocol end. The mobile terminal displays the file directory list for the user to browse and select a file directory, and the mobile terminal receives a certain file directory selected by the user.
在本实施例中,所述移动终端向所述播放器发送第一指令之前,还可以包括:所述移动终端与所述播放器建立连接;所述移动终端接收所述播放器发送的数据信息,所述数据信息是与所述播放机共享的所有文件共享服务器的数据信息;所述移动终端根据所述数据信息生成并显示文件共享服务器列表;所述移动终端接收用户选择的所述文件共享服务器。In this embodiment, before the mobile terminal sends the first instruction to the player, it may further include: the mobile terminal establishes a connection with the player; the mobile terminal receives the data information sent by the player , the data information is the data information of all file sharing servers shared with the player; the mobile terminal generates and displays a file sharing server list according to the data information; the mobile terminal receives the file sharing server selected by the user server.
同样以上述在安卓开发平台开发的应用客户端为例,在用户点击进入该客户端之后,在客户端显示的播放机列表选择某个播放机进入,则与该播放机建立了网络连接,该播放机在互联网上搜索共享给它的服务器,并把服务器的相关数据(例如服务器的网络协议(Internet Protocol,IP)地址、文件目录列表)封装成JSON数据,通过HTTP协议发送给客户端,客户端通过安卓系统的ListView组件等技术组织生成服务器列表,并显示所述服务器列表,供用户浏览并选择服务器,所述移动终端接收用户选择的某一服务器。Also take the above-mentioned application client developed on the Android development platform as an example. After the user clicks to enter the client, and selects a certain player from the player list displayed on the client to enter, a network connection is established with the player. The player searches for the server shared with it on the Internet, and encapsulates the relevant data of the server (such as the server's Internet Protocol (IP) address, file directory list) into JSON data, and sends it to the client through the HTTP protocol. The terminal generates a server list through technical organizations such as the ListView component of the Android system, and displays the server list for the user to browse and select a server, and the mobile terminal receives a certain server selected by the user.
步骤102、所述移动终端显示所述文件列表上包含的文件,以供用户浏览和选择。Step 102, the mobile terminal displays the files contained in the file list for the user to browse and select.
在本实施例中,移动终端显示所述文件列表上包含的文件,以供用户浏览和选择。In this embodiment, the mobile terminal displays the files included in the file list for the user to browse and select.
在本实施例中,所述移动终端显示所述文件列表上包含的文件之后,还可以包括:所述移动终端接收用户从所述文件列表中选择的文件;所述移动终端发送播放指令至所述播放机,以使所述播放机播放所述文件。In this embodiment, after the mobile terminal displays the files contained in the file list, it may further include: the mobile terminal receiving the file selected by the user from the file list; the mobile terminal sending a playback instruction to the the player so that the player plays the file.
本发明实施例通过使用移动终端向播放器发送挂载指令,并在挂载指令中包含目录标识,使播放器挂载该目录标识对应的文件目录,并向移动终端返回该文件目录中的文件列表,移动终端显示该文件列表上包含的文件。通过上述各步骤可以使共享文件显示在移动终端上,从而使用户能够在移动终端上方便快捷的定位共享文件。In the embodiment of the present invention, the mobile terminal is used to send a mount instruction to the player, and the directory identifier is included in the mount instruction, so that the player mounts the file directory corresponding to the directory identifier, and returns the files in the file directory to the mobile terminal. list, and the mobile terminal displays the files included in the file list. Through the above steps, the shared file can be displayed on the mobile terminal, so that the user can conveniently and quickly locate the shared file on the mobile terminal.
第二实施例second embodiment
图2是本发明第二实施例提供的一种控制播放机挂载共享文件的方法流程示意图。本实施例以上述实施例为基础进行优化,在本实施例中,优选的在步骤移动终端向播放器发送挂载指令之前,增加了所述移动终端与所述播放器建立连接;所述移动终端接收所述播放器发送的数据信息,所述数据信息是与所述播放机共享的所有文件共享服务器的数据信息;所述移动终端根据所述数据信息生成并显示文件共享服务器列表;所述移动终端接收用户选择的所述文件共享服务器;所述移动终端向所述播放器发送第一指令,所述第一指令包含服务器标识,以使所述播放器从所述服务器标识对应的文件共享服务器上获取文件目录列表,并向所述移动终端返回所述文件目录列表;所述移动终端显示所述文件目录列表;所述移动终端接收用户选择的所述文件目录的相关步骤。Fig. 2 is a schematic flowchart of a method for controlling a player to mount a shared file provided by the second embodiment of the present invention. This embodiment is optimized on the basis of the above embodiments. In this embodiment, preferably before the mobile terminal sends a mount instruction to the player, the mobile terminal is added to establish a connection with the player; The terminal receives the data information sent by the player, the data information is the data information of all file sharing servers shared with the player; the mobile terminal generates and displays a list of file sharing servers according to the data information; the The mobile terminal receives the file sharing server selected by the user; the mobile terminal sends a first instruction to the player, the first instruction includes a server identification, so that the player identifies the corresponding file sharing server from the server The server obtains the file directory list, and returns the file directory list to the mobile terminal; the mobile terminal displays the file directory list; and the mobile terminal receives the related steps of the file directory selected by the user.
相应的,本实施例的方法包括如下步骤:Correspondingly, the method of this embodiment includes the following steps:
步骤201、移动终端与播放器建立连接。Step 201, the mobile terminal establishes a connection with the player.
在本实施例中,移动终端与所述播放器建立连接。这里,建立的连接类型可以为网络连接,包括:HTTP连接、传输控制协议(Transmission Control Protocol,TCP)连接、套接字(Socket)连接等,这里不做具体限定。In this embodiment, the mobile terminal establishes a connection with the player. Here, the established connection type may be a network connection, including: HTTP connection, Transmission Control Protocol (Transmission Control Protocol, TCP) connection, socket (Socket) connection, etc., which are not specifically limited here.
步骤202、所述移动终端接收所述播放器发送的数据信息,所述数据信息是与所述播放机共享的所有文件共享服务器的数据信息。Step 202. The mobile terminal receives data information sent by the player, where the data information is data information of all file sharing servers shared with the player.
在本实施例中,移动终端与所述播放器建立连接之后,该播放机在互联网上搜索共享给它的服务器,并把服务器的相关数据即数据信息(例如服务器IP地址、文件目录列表)封装成JSON数据,通过HTTP协议发送给移动终端。In this embodiment, after the mobile terminal establishes a connection with the player, the player searches for a server shared with it on the Internet, and encapsulates relevant data of the server, namely data information (such as server IP address, file directory list) into JSON data and sent to the mobile terminal through the HTTP protocol.
步骤203、所述移动终端根据所述数据信息生成并显示文件共享服务器列表。Step 203, the mobile terminal generates and displays a list of file sharing servers according to the data information.
在本实施例中,移动终端接收播放器发送的数据信息之后,通过安卓系统的ListView等技术组织将数据信息生成服务器列表,并显示所述服务器列表,供用户浏览并选择服务器。In this embodiment, after receiving the data information sent by the player, the mobile terminal generates a server list from the data information through technical organizations such as ListView of the Android system, and displays the server list for the user to browse and select a server.
步骤204、所述移动终端接收用户选择的所述文件共享服务器。Step 204, the mobile terminal receives the file sharing server selected by the user.
步骤205、所述移动终端向所述播放器发送第一指令,所述第一指令包含服务器标识,以使所述播放器从所述服务器标识对应的文件共享服务器上获取文件目录列表,并向所述移动终端返回所述文件目录列表。Step 205, the mobile terminal sends a first instruction to the player, the first instruction includes a server identifier, so that the player obtains a file directory list from the file sharing server corresponding to the server identifier, and sends the The mobile terminal returns the file directory list.
在本实施例中,所述第一指令包含的服务器标识为步骤204中用户选择的所述文件共享服务器的的服务器标识。In this embodiment, the server identifier included in the first instruction is the server identifier of the file sharing server selected by the user in step 204 .
步骤206、所述移动终端显示所述文件目录列表。Step 206, the mobile terminal displays the file directory list.
步骤207、所述移动终端接收用户选择的所述文件目录。Step 207, the mobile terminal receives the file directory selected by the user.
步骤208、所述移动终端向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表。Step 208, the mobile terminal sends a mount instruction to the player, the mount instruction includes a directory identifier, so that the player mounts the file directory corresponding to the directory identifier, and returns the file directory to the mobile terminal list of files in the mentioned file directory.
在本实施例中,所述挂载指令中包含目录标识为步骤207中用户选择的所述文件目录的目录标识。In this embodiment, the directory identifier included in the mount instruction is the directory identifier of the file directory selected by the user in step 207 .
步骤209、所述移动终端显示所述文件列表上包含的文件,以供用户浏览和选择。Step 209, the mobile terminal displays the files contained in the file list for the user to browse and select.
本发明实施例通过使用移动终端向播放器发送挂载指令,并在挂载指令中包含目录标识,使播放器挂载该目录标识对应的文件目录,并向移动终端返回该文件目录中的文件列表,移动终端显示该文件列表上包含的文件。通过上述各步骤可以使共享文件显示在移动终端上,从而使用户能够在移动终端上方便快捷的定位共享文件。In the embodiment of the present invention, the mobile terminal is used to send a mount instruction to the player, and the directory identifier is included in the mount instruction, so that the player mounts the file directory corresponding to the directory identifier, and returns the files in the file directory to the mobile terminal. list, and the mobile terminal displays the files included in the file list. Through the above steps, the shared file can be displayed on the mobile terminal, so that the user can conveniently and quickly locate the shared file on the mobile terminal.
第三实施例third embodiment
图3是本发明第三实施例提供的一种控制播放机挂载共享文件的方法流程示意图。本实施例以上述实施例为基础进行优化,在本实施例中,优选的在所述显示所述文件列表上包含的文件之后,增加了所述移动终端接收用户从所述文件列表中选择的文件;所述移动终端发送播放指令至所述播放机,以使所述播放机播放所述文件的相关步骤。Fig. 3 is a schematic flowchart of a method for controlling a player to mount a shared file according to the third embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, preferably after displaying the files contained in the file list, the mobile terminal receives the files selected by the user from the file list. File; the mobile terminal sends a play instruction to the player, so that the player plays the relevant steps of the file.
相应的,本实施例的方法包括如下步骤:Correspondingly, the method of this embodiment includes the following steps:
步骤301、移动终端向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表。Step 301, the mobile terminal sends a mount instruction to the player, the mount instruction includes a directory identifier, so that the player mounts the file directory corresponding to the directory identifier, and returns the file to the mobile terminal A list of files in the directory.
步骤302、所述移动终端显示所述文件列表上包含的文件,以供用户浏览和选择。Step 302, the mobile terminal displays the files included in the file list for the user to browse and select.
步骤303、所述移动终端接收用户从所述文件列表中选择的文件。Step 303, the mobile terminal receives the file selected by the user from the file list.
步骤304、所述移动终端发送播放指令至所述播放机,以使所述播放机播放所述文件。Step 304, the mobile terminal sends a play instruction to the player, so that the player plays the file.
本发明实施例通过使用移动终端向播放器发送挂载指令,并在挂载指令中包含目录标识,使播放器挂载该目录标识对应的文件目录,并向移动终端返回该文件目录中的文件列表,移动终端显示该文件列表上包含的文件。通过上述各步骤可以使共享文件显示在移动终端上,从而使用户能够在移动终端上方便快捷的定位共享文件。In the embodiment of the present invention, the mobile terminal is used to send a mount instruction to the player, and the directory identifier is included in the mount instruction, so that the player mounts the file directory corresponding to the directory identifier, and returns the files in the file directory to the mobile terminal. list, and the mobile terminal displays the files included in the file list. Through the above steps, the shared file can be displayed on the mobile terminal, so that the user can conveniently and quickly locate the shared file on the mobile terminal.
第四实施例Fourth embodiment
图4是本发明第四实施例提供的一种控制播放机挂载共享文件的方法信令示意图,本实施例以上述实施例为基础进行优化,在本实施例中,优选的在安卓开发平台上使用NFS文件共享系统实现本发明的技术方案。Fig. 4 is a schematic diagram of signaling of a method for controlling a player to mount a shared file provided by the fourth embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiment. Use the NFS file sharing system to realize the technical solution of the present invention.
相应的,本实施例的方法包括如下步骤:Correspondingly, the method of this embodiment includes the following steps:
步骤401、移动终端与播放器建立连接。Step 401, the mobile terminal establishes a connection with the player.
步骤402、播放器获取与其共享的NFS共享服务器的数据信息,并将数据信息封装成JSON格式。Step 402, the player obtains the data information of the NFS shared server shared with it, and encapsulates the data information into a JSON format.
步骤403、播放器将封装成JSON格式的数据信息发送至移动终端。Step 403, the player sends the data information encapsulated in JSON format to the mobile terminal.
步骤404、移动终端根据JSON格式的数据信息生成并显示NFS共享服务器列表。Step 404, the mobile terminal generates and displays the NFS shared server list according to the data information in JSON format.
在本实施例中,移动终端接收播放器发送的数据信息之后,通过安卓系统的ListView等技术组织将数据信息生成NFS共享服务器列表,并显示NFS共享服务器列表,供用户浏览并选择需要的NFS共享服务器。In this embodiment, after the mobile terminal receives the data information sent by the player, the data information is generated by technical organizations such as ListView of the Android system to generate a list of NFS shared servers, and the list of NFS shared servers is displayed for users to browse and select the required NFS shared server. server.
步骤405、移动终端接收用户选择的NFS共享服务器。Step 405, the mobile terminal receives the NFS shared server selected by the user.
步骤406、移动终端向播放器发送第一指令,第一指令包含NFS共享服务器标识。Step 406, the mobile terminal sends a first instruction to the player, and the first instruction includes the NFS shared server identifier.
步骤407、播放器从NFS共享服务器上获取文件目录列表。Step 407, the player obtains the file directory list from the NFS shared server.
步骤408、播放器向移动终端发送文件目录列表。Step 408, the player sends the file directory list to the mobile terminal.
在本实施例中,所述第一指令包含的NFS共享服务器标识为步骤405中用户选择的NFS共享服务器的的服务器标识。In this embodiment, the NFS shared server identifier contained in the first instruction is the server identifier of the NFS shared server selected by the user in step 405 .
步骤409、移动终端显示文件目录列表。Step 409, the mobile terminal displays a file directory list.
步骤410、移动终端接收用户选择的文件目录。Step 410, the mobile terminal receives the file directory selected by the user.
步骤411、移动终端向播放器发送挂载指令,所述挂载指令中包含文件目录标识。Step 411, the mobile terminal sends a mount instruction to the player, and the mount instruction includes a file directory identifier.
步骤412、播放器挂载文件目录标识对应的文件目录。Step 412, the player mounts the file directory corresponding to the file directory identifier.
步骤413、播放器向移动终端发送文件目录中的文件列表。Step 413, the player sends the file list in the file directory to the mobile terminal.
在本实施例中,所述挂载指令中包含目录标识为步骤410中用户选择的文件目录的目录标识。In this embodiment, the directory identifier included in the mount instruction is the directory identifier of the file directory selected by the user in step 410 .
步骤414、移动终端显示文件列表上包含的文件。Step 414, the mobile terminal displays the files contained in the file list.
步骤415、移动终端接收用户选择的播放文件。Step 415, the mobile terminal receives the playback file selected by the user.
步骤416、移动终端发送播放指令至播放机。Step 416, the mobile terminal sends a play instruction to the player.
步骤417、播放机播放文件。Step 417, the player plays the file.
本发明实施例通过使用移动终端向播放器发送挂载指令,并在挂载指令中包含目录标识,使播放器挂载该目录标识对应的文件目录,并向移动终端返回该文件目录中的文件列表,移动终端显示该文件列表上包含的文件。通过上述各步骤可以使共享文件显示在移动终端上,从而使用户能够在移动终端上方便快捷的定位共享文件。In the embodiment of the present invention, the mobile terminal is used to send a mount instruction to the player, and the directory identifier is included in the mount instruction, so that the player mounts the file directory corresponding to the directory identifier, and returns the files in the file directory to the mobile terminal. list, and the mobile terminal displays the files included in the file list. Through the above steps, the shared file can be displayed on the mobile terminal, so that the user can conveniently and quickly locate the shared file on the mobile terminal.
第五实施例fifth embodiment
图5是本发明第五实施例提供的一种移动终端结构示意图。如图5所示,所述装置包括:Fig. 5 is a schematic structural diagram of a mobile terminal provided by a fifth embodiment of the present invention. As shown in Figure 5, the device includes:
发送模块11,用于向播放器发送挂载指令,所述挂载指令中包含目录标识,以使所述播放器挂载所述目录标识对应的文件目录,并向所述移动终端返回所述文件目录中的文件列表;The sending module 11 is configured to send a mount instruction to the player, the mount instruction includes a directory identifier, so that the player mounts the file directory corresponding to the directory identifier, and returns the file directory to the mobile terminal. list of files in the file directory;
显示模块12,用于显示所述文件列表上包含的文件,以供用户浏览和选择。The display module 12 is configured to display the files included in the file list for users to browse and select.
本发明第五实施例所述的装置用于执行本发明第一、第二、第三实施例和第四实施例所述的方法步骤,其技术原理和产生的技术效果类似,这里不再累述。The device described in the fifth embodiment of the present invention is used to execute the method steps described in the first, second, third and fourth embodiments of the present invention, and its technical principles and technical effects are similar, and will not be repeated here stated.
在上述实施例的基础上,所述发送模块11,还用于在向播放器发送挂载指令之前,向所述播放器发送第一指令,所述第一指令包含服务器标识,以使所述播放器从所述服务器标识对应的文件共享服务器上获取文件目录列表,并向所述移动终端返回所述文件目录列表;On the basis of the above-mentioned embodiments, the sending module 11 is further configured to send a first instruction to the player before sending the mount instruction to the player, the first instruction includes a server identifier, so that the The player obtains the file directory list from the file sharing server corresponding to the server identifier, and returns the file directory list to the mobile terminal;
所述显示模块12,还用于显示所述文件目录列表;The display module 12 is also used to display the file directory list;
所述移动终端,还包括:The mobile terminal also includes:
接收模块13,用于接收用户选择的所述文件目录。The receiving module 13 is configured to receive the file directory selected by the user.
在上述实施例的基础上,所述移动终端,还包括:On the basis of the above embodiments, the mobile terminal further includes:
建立连接模块14,用于在所述发送模块11向所述播放器发送第一指令之前,与所述播放器建立连接;A connection establishment module 14, configured to establish a connection with the player before the sending module 11 sends the first instruction to the player;
所述接收模块13,还用于接收所述播放器发送的数据信息,所述数据信息是与所述播放机共享的所有文件共享服务器的数据信息,接收用户选择的所述文件共享服务器;The receiving module 13 is also used to receive the data information sent by the player, the data information is the data information of all file sharing servers shared with the player, and receive the file sharing server selected by the user;
所述显示模块12,还用于根据所述数据信息生成并显示文件共享服务器列表。The display module 12 is further configured to generate and display a list of file sharing servers according to the data information.
在上述实施例的基础上,所述接收模块13,还用于在所述显示模块12显示所述文件列表上包含的文件之后,接收用户从所述文件列表中选择的文件;On the basis of the above embodiments, the receiving module 13 is further configured to receive the file selected by the user from the file list after the display module 12 displays the files contained in the file list;
所述发送模块11,还用于发送播放指令至所述播放机,以使所述播放机播放所述文件。The sending module 11 is further configured to send a play instruction to the player, so that the player plays the file.
在上述实施例的基础上,所述文件共享服务器为NFS服务器或塞班服务器。On the basis of the foregoing embodiments, the file sharing server is an NFS server or a Symbian server.
显然,本领域技术人员应该明白,上述的本发明的各模块或各步骤可以通过如上所述的服务器实施。可选地,本发明实施例可以用计算机装置可执行的程序来实现,从而可以将它们存储在存储装置中由处理器来执行,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等;或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件的结合。Apparently, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by the above-mentioned server. Optionally, the embodiments of the present invention can be implemented by programs executable by a computer device, so that they can be stored in a storage device and executed by a processor, and the program can be stored in a computer-readable storage medium, The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.; or they may be fabricated into individual integrated circuit modules, or multiple modules or steps among them may be fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域技术人员而言,本发明可以有各种改动和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410710307.0A CN104468761B (en) | 2014-11-28 | 2014-11-28 | Control the method and mobile terminal of player carry shared file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410710307.0A CN104468761B (en) | 2014-11-28 | 2014-11-28 | Control the method and mobile terminal of player carry shared file |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104468761A CN104468761A (en) | 2015-03-25 |
| CN104468761B true CN104468761B (en) | 2018-05-18 |
Family
ID=52914113
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410710307.0A Expired - Fee Related CN104468761B (en) | 2014-11-28 | 2014-11-28 | Control the method and mobile terminal of player carry shared file |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104468761B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105530126A (en) * | 2015-12-11 | 2016-04-27 | 浪潮电子信息产业股份有限公司 | A method of building nfs services based on Redhat system series |
| CN107015997B (en) * | 2016-01-28 | 2020-10-30 | 北京联创众升科技有限公司 | Mobile terminal wireless control multi-demonstration system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102708901A (en) * | 2012-04-20 | 2012-10-03 | Tcl通力电子(惠州)有限公司 | BD (Blu-ray disc) player and web control method therefor |
| CN103024011A (en) * | 2012-12-03 | 2013-04-03 | 广东欧珀移动通信有限公司 | A method and system for controlling MHL playback equipment |
| CN103747016A (en) * | 2014-01-26 | 2014-04-23 | 广东欧珀移动通信有限公司 | SAMBA-based fast access and control method for playing shared media files |
| US9124997B2 (en) * | 2010-12-15 | 2015-09-01 | Samsung Electronics Co., Ltd. | Apparatus and method for remotely controlling in mobile communication terminal |
-
2014
- 2014-11-28 CN CN201410710307.0A patent/CN104468761B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9124997B2 (en) * | 2010-12-15 | 2015-09-01 | Samsung Electronics Co., Ltd. | Apparatus and method for remotely controlling in mobile communication terminal |
| CN102708901A (en) * | 2012-04-20 | 2012-10-03 | Tcl通力电子(惠州)有限公司 | BD (Blu-ray disc) player and web control method therefor |
| CN103024011A (en) * | 2012-12-03 | 2013-04-03 | 广东欧珀移动通信有限公司 | A method and system for controlling MHL playback equipment |
| CN103747016A (en) * | 2014-01-26 | 2014-04-23 | 广东欧珀移动通信有限公司 | SAMBA-based fast access and control method for playing shared media files |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104468761A (en) | 2015-03-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11112942B2 (en) | Providing content via multiple display devices | |
| US11050683B2 (en) | System for providing dialog content | |
| US20250254206A1 (en) | Platform-independent content generation for thin client applications | |
| CN102685573B (en) | Via the internet content subscription service of multiple equipment | |
| US9116893B2 (en) | Network connected media gateway for communication networks | |
| JP6253110B2 (en) | Using the application cache to update installed application resources | |
| CN109845283B (en) | Customize media items for playback on alternate playback devices paired with the user device | |
| US20240402977A1 (en) | Desktop sharing method and mobile terminal | |
| US20160110414A1 (en) | Information searching apparatus and control method thereof | |
| US9367125B2 (en) | Terminal apparatus for shooting and distributing video data and video-data distribution method | |
| US20140279075A1 (en) | Interactive advertising | |
| JP2018077851A (en) | Identifying and organizing images according to layout without user intervention | |
| CN102647632B (en) | Direct equipment choice is utilized to carry out bumpless transfer between display application | |
| KR20190143470A (en) | Content viewing device and Method for displaying content viewing options thereon | |
| JP6215359B2 (en) | Providing access to information across multiple computing devices | |
| CN104539977A (en) | Live broadcast previewing method and device | |
| US20130080560A1 (en) | System and Method for Sharing Digital Data on a Presenter Device to a Plurality of Participant Devices | |
| JP7780581B2 (en) | Enabling media functionality provided on a first screen device to be presented on a second screen device | |
| US9161075B2 (en) | System independent remote storing of digital content | |
| WO2015009417A1 (en) | Content retrieval via remote control | |
| US20170171571A1 (en) | Push Video Documentation Methods and Appliances | |
| WO2015109872A1 (en) | Method for quickly accessing and controlling the playing of shared media file based on samba | |
| WO2016045606A1 (en) | Method and apparatus for recommending media content | |
| WO2013192288A1 (en) | Closed network presentation | |
| CN104468761B (en) | Control the method and mobile terminal of player carry shared file |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180518 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |