WO2015109872A1 - Method for quickly accessing and controlling the playing of shared media file based on samba - Google Patents

Method for quickly accessing and controlling the playing of shared media file based on samba Download PDF

Info

Publication number
WO2015109872A1
WO2015109872A1 PCT/CN2014/088219 CN2014088219W WO2015109872A1 WO 2015109872 A1 WO2015109872 A1 WO 2015109872A1 CN 2014088219 W CN2014088219 W CN 2014088219W WO 2015109872 A1 WO2015109872 A1 WO 2015109872A1
Authority
WO
WIPO (PCT)
Prior art keywords
samba
mobile terminal
request
shared media
media file
Prior art date
Application number
PCT/CN2014/088219
Other languages
French (fr)
Chinese (zh)
Inventor
崔忠宁
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2015109872A1 publication Critical patent/WO2015109872A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present invention claims the prior application priority of the application title of "SAMBA-based quick access and control for playing a shared media file” on January 26, 2014.
  • the content of the above prior application is incorporated by reference. Into this text.
  • the present invention relates to the field of communication technologies, and more particularly to a method for quickly accessing and controlling playback of shared media files based on SAMBA.
  • SAMBA is a free software that implements the SMB protocol on Linux and UNIX systems, consisting of a server and a client program.
  • the object of the present invention is to overcome the above-mentioned drawbacks in the prior art, and to provide a method for quickly accessing and controlling the playing of shared media files based on SAMBA, so that the mobile terminal can indirectly access and manipulate the SAMBA shared media files through the SAMBA-enabled playback device.
  • a method for quickly accessing and controlling a shared media file based on SAMBA is applied between a mobile terminal and a SAMBA-enabled playback device, and the method includes the following steps:
  • the mobile terminal generates a corresponding request according to the operation of the user, and sends the request to the playback device through the HTTP protocol; wherein the request includes a request to log in to the SAMBA server, a request to obtain a shared directory and a file list thereof, and a control to play the shared media file. request;
  • the playing device starts a pre-set thread for receiving and processing the request sent by the mobile terminal, and then respectively calls the login SAMBA server and acquires and controls the interface for playing the shared media file to perform corresponding processing;
  • the playback device returns the processing result to the mobile terminal, and the mobile terminal feeds back to the user through the screen view.
  • the request to log in to the SAMBA server includes input information consisting of a SAMBA server name, a username, and a password.
  • the request to obtain the shared directory and its file list includes the path of the folder.
  • the request to control playback of the shared media file includes a path to the shared media file.
  • the corresponding request generated by the mobile terminal is sent to the playback device by using the HTTP protocol after being encapsulated into json data.
  • the thread is started when the system of the playback device is started.
  • a request is detected, a new thread is started for processing, and the user continues to detect whether there is a new request; when no request is detected, Continue to test.
  • the method further includes:
  • the mobile terminal obtains a list of SAMBA servers from the playback device and selects the SAMBA server to be logged in.
  • the step of the mobile terminal acquiring the SAMBA server list from the playing device specifically includes:
  • the mobile terminal sends a GetDevicelist command to the playback device.
  • the playback device invokes the interface to obtain the list data of the SAMBA server, encapsulates the list data into json data, and sends the data to the mobile terminal through the HTTP protocol.
  • the mobile terminal parses the json data, the mobile terminal lists the data. The data is displayed.
  • the invention can enable the mobile terminal that does not support SAMBA to indirectly control the SAMBA shared media file through the playing device, and the SAMBA-enabled playback device can further improve the efficiency of accessing and manipulating the SAMBA shared media file, and improve the user experience.
  • FIG. 1 is a flowchart of a method for quickly accessing and controlling playback of a shared media file based on SAMBA according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a mobile phone according to Embodiment 2 of the present invention when an interaction is implemented by a program;
  • FIG. 3 is a flowchart of a Blu-ray player provided by the second embodiment of the present invention when interacting through a program
  • FIG. 4 is a schematic diagram of a mobile phone provided by a mobile phone according to Embodiment 2 of the present invention from a Blu-ray player to a SAMBA server list;
  • FIG. 5 is a schematic diagram of logging in to a SAMBA server from a mobile phone terminal according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic diagram of browsing a SAMBA shared media file through a mobile phone according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of displaying playback information on a mobile phone end according to Embodiment 2 of the present invention.
  • FIG. 8 is a structural block diagram of a SAMBA-based system for quickly accessing and controlling playback of shared media files according to Embodiment 3 of the present invention.
  • Embodiment 1 of the present invention provides a method for quickly accessing and controlling a shared media file based on SAMBA, which is applied between a mobile terminal and a SAMBA-enabled playback device, wherein the mobile terminal may be a mobile terminal device such as a mobile phone or a tablet computer. .
  • the mobile terminal may be a mobile terminal device such as a mobile phone or a tablet computer.
  • FIG. 1 is a flowchart of a method according to Embodiment 1 of the present invention.
  • the method of the embodiment of the present invention includes the following steps:
  • Step S101 Establish a connection between the mobile terminal and the playback device by using an HTTP protocol.
  • the mobile terminal and the playback device can communicate through the HTTP protocol as long as they support the Internet function.
  • Step S102 The mobile terminal generates a corresponding request according to the operation of the user, and adopts an HTTP protocol. Send the request to the playback device;
  • the request mainly includes a request for logging in to the SAMBA server, a request for acquiring a shared directory and a file list thereof, and a request for controlling the playing of the shared media file;
  • the request for logging in to the SAMBA server includes input information consisting of a SAMBA server name, a username, and a password.
  • the request to obtain the shared directory and its file list includes the path of the folder.
  • the request to control playback of the shared media file includes a path to the shared media file.
  • the corresponding request generated by the mobile terminal is sent to the playback device by using the HTTP protocol after being encapsulated into json data.
  • Step S103 The playback device starts a pre-set thread for receiving and processing the request sent by the mobile terminal, and then respectively calls the login SAMBA server and acquires and controls the interface for playing the shared media file to perform corresponding processing;
  • the thread is started by the system startup of the playback device, and the thread may be an infinite loop process.
  • the request is detected, a new thread is started for processing, and the user continues to detect whether there is any New request; when no request is detected, the test continues.
  • the input information required to log in to the SAMBA server interface is the SAMBA server name, user name, and password.
  • the mobile terminal receives the input information and encapsulates it into json data, and sends the data to the playback device through the HTTP protocol, and the playback device is responsible for receiving the data.
  • the original login interface of the playback device is called, and the login operation can be realized.
  • the parameter required to obtain the shared media file in a folder under the SAMBA server is the path of the folder.
  • the mobile terminal sends the corresponding path through the HTTP protocol, and the subsequent processing and login process are similar.
  • the parameter required to play a shared media file under the SAMBA server is also the path of the file, and the mobile terminal passes The HTTP protocol sends the corresponding path, and the subsequent processing and login process are similar.
  • Step S104 The playback device returns the processing result to the mobile terminal, and the mobile terminal feeds back to the user through the screen view.
  • the method further includes:
  • the mobile terminal obtains a list of SAMBA servers from the playback device and selects the SAMBA server to be logged in.
  • the step is specifically: the mobile terminal sends a GetDevicelist command to the playback device.
  • the playback device invokes the interface to obtain the list data of the SAMBA server, encapsulates the list data into json data, and sends the data to the mobile terminal through the HTTP protocol, and the mobile terminal analyzes The list data is displayed after the json data.
  • the second embodiment of the present invention describes the entire implementation process by taking a mobile phone provided with an iOS system and a Blu-ray player supporting SAMBA as an example.
  • FIG. 2 shows a flow chart when the mobile phone implements interaction through a program, which includes the following steps:
  • Step S201 The user operates the mobile phone provided with the iOS system
  • Step S202 Generate a corresponding request according to the operation
  • Step S203 sending a request to the Blu-ray player
  • Step S204 After transmitting, determining whether the success information returned from the Blu-ray player is received;
  • Step S205 if yes, processing the returned data information
  • Step S206 updating the mobile phone interface.
  • Figure 3 is a flow chart showing the interaction of the Blu-ray player through a program, which includes the following steps:
  • Step S301 receiving a request sent by the mobile phone
  • Step S302 determining whether a request is received
  • Step S303 if yes, processing the request
  • Step S304 returning the data information of the processing result to the mobile phone.
  • the user can obtain the SAMBA server list from the Blu-ray player through the mobile phone. After selecting the required SAMBA server, log in to the SAMBA server from the mobile phone, browse the SAMBA shared media file through the mobile phone, and control.
  • the Blu-ray player plays the SAMBA shared media file and finally displays the playback information on the mobile phone.
  • Embodiment 3 of the present invention provides a system for quickly accessing and controlling playback of shared media files based on SAMBA.
  • the system is applied between the mobile terminal 41 and the SAMBA-enabled playback device 42, and the mobile terminal 41 passes.
  • the HTTP protocol establishes a connection with the playback device 42.
  • the mobile terminal 41 includes:
  • the request generating module 411 is configured to generate a corresponding request according to the operation of the user; wherein the request mainly includes a request for logging in to the SAMBA server, a request for acquiring a shared directory and a file list thereof, and a request for controlling the playing of the shared media file;
  • the sending module 412 is configured to send the request to the playing device 42 by using an HTTP protocol
  • the display module 413 is configured to feed back to the user through the screen view when the playback device returns the processing result to the mobile terminal 41.
  • the playback device 42 includes:
  • the thread processing module 421 is configured to start a preset thread for receiving and processing the request sent by the mobile terminal 41, and then respectively call the login SAMBA server and acquire and control the interface for playing the shared media file to perform corresponding processing;
  • the processing result feedback module 422 is configured to return the processing result to the mobile terminal 41.
  • the SAMBA-based system for quickly accessing and controlling the playing of shared media files is exemplified by the division of the foregoing functional modules.
  • the foregoing functions may be allocated according to requirements. It is completed by different functional modules, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above.
  • the present invention enables the mobile terminal that does not support SAMBA to indirectly control the SAMBA shared media file through the playback device, and the SAMBA-enabled playback device can further improve the efficiency of accessing and manipulating the SAMBA shared media file.
  • the user experience is not limited to, but not support SAMBA to indirectly control the SAMBA shared media file through the playback device, and the SAMBA-enabled playback device can further improve the efficiency of accessing and manipulating the SAMBA shared media file.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed is a method for quickly accessing and controlling the playing of a shared media file based on an SAMBA. The method comprises the steps of: establishing a connection between a mobile terminal and a playing device via the HTTP protocol; generating, by the mobile terminal, a corresponding request according to the operation of a user, and sending the request to the playing device via the HTTP protocol; starting, by the playing device, a pre-set thread responsible for receiving and processing the request sent by the mobile terminal, thus respectively invoking interfaces which log in an SAMBA server and acquire and control the playing of a shared media file to conduct corresponding processing; and returning, by the playing device, a processing result to the mobile terminal, and feeding back, by the mobile terminal, same to the user via a screen view. The present invention enables a mobile terminal a system of which does not support the SAMBA to directly manipulate a shared media file of the SAMBA via a playing device, and a playing device which supports the SAMBA can further increase the efficiency for same to access and manipulate the shared media file of the SAMBA.

Description

基于SAMBA的快速访问和控制播放共享媒体文件方法Fast access and control method for playing shared media files based on SAMBA
本发明要求2014年1月26日递交的发明名称为“基于SAMBA的快速访问和控制播放共享媒体文件方法”的申请号201410039219.2的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the prior application priority of the application title of "SAMBA-based quick access and control for playing a shared media file" on January 26, 2014. The content of the above prior application is incorporated by reference. Into this text.
技术领域Technical field
本发明涉及通信技术领域,更具体地说,是涉及一种基于SAMBA的快速访问和控制播放共享媒体文件方法。The present invention relates to the field of communication technologies, and more particularly to a method for quickly accessing and controlling playback of shared media files based on SAMBA.
背景技术Background technique
SAMBA是在Linux和UNIX***上实现SMB协议的一个免费软件,由服务器及客户端程序构成。SAMBA is a free software that implements the SMB protocol on Linux and UNIX systems, consisting of a server and a client program.
目前,市场上支持SAMBA的设备有很多,如蓝光播放机等。然而,虽然蓝光播放机支持SAMBA,但是只能使用遥控器来控制登陆、浏览及播放SAMBA共享媒体文件,在快速浏览和操控上所欠缺,用户体验不佳。另一方面,部分移动设备由于***的缺陷或实现难度等问题无法实现对SAMBA设备的支持。Currently, there are many devices that support SAMBA on the market, such as Blu-ray players. However, although the Blu-ray player supports SAMBA, it can only use the remote control to control login, browse and play SAMBA shared media files, which is lacking in quick browsing and manipulation, and the user experience is not good. On the other hand, some mobile devices cannot support SAMBA devices due to system defects or implementation difficulties.
发明内容Summary of the invention
本发明的目的在于克服现有技术中的上述缺陷,提供一种基于SAMBA的快速访问和控制播放共享媒体文件方法,使移动终端能够通过支持SAMBA的播放设备间接的访问和操控SAMBA共享媒体文件。 The object of the present invention is to overcome the above-mentioned drawbacks in the prior art, and to provide a method for quickly accessing and controlling the playing of shared media files based on SAMBA, so that the mobile terminal can indirectly access and manipulate the SAMBA shared media files through the SAMBA-enabled playback device.
为实现上述目的,本发明提供的技术方案如下:一种基于SAMBA的快速访问和控制播放共享媒体文件方法,应用于移动终端与支持SAMBA的播放设备之间,该方法包括以下步骤:To achieve the above objective, the technical solution provided by the present invention is as follows: A method for quickly accessing and controlling a shared media file based on SAMBA is applied between a mobile terminal and a SAMBA-enabled playback device, and the method includes the following steps:
通过HTTP协议使移动终端与播放设备之间建立连接;Establishing a connection between the mobile terminal and the playback device through the HTTP protocol;
移动终端根据用户的操作生成相应的请求,并通过HTTP协议将请求发送至播放设备;其中,所述请求包括登陆SAMBA服务器的请求、获取共享目录及其文件列表的请求和控制播放共享媒体文件的请求;The mobile terminal generates a corresponding request according to the operation of the user, and sends the request to the playback device through the HTTP protocol; wherein the request includes a request to log in to the SAMBA server, a request to obtain a shared directory and a file list thereof, and a control to play the shared media file. request;
播放设备启动预先设置的用于负责接收和处理移动终端发送的请求的线程进而分别调用登陆SAMBA服务器和获取、控制播放共享媒体文件的接口做出相应的处理;The playing device starts a pre-set thread for receiving and processing the request sent by the mobile terminal, and then respectively calls the login SAMBA server and acquires and controls the interface for playing the shared media file to perform corresponding processing;
播放设备把处理结果返回给移动终端,移动终端通过屏幕视图反馈给用户。The playback device returns the processing result to the mobile terminal, and the mobile terminal feeds back to the user through the screen view.
进一步而言,所述登陆SAMBA服务器的请求包含有由SAMBA服务器名称、用户名和密码组成的输入信息。Further, the request to log in to the SAMBA server includes input information consisting of a SAMBA server name, a username, and a password.
进一步而言,所述获取共享目录及其文件列表的请求包含有文件夹的路径。Further, the request to obtain the shared directory and its file list includes the path of the folder.
进一步而言,所述控制播放共享媒体文件的请求包含有共享媒体文件的路径。Further, the request to control playback of the shared media file includes a path to the shared media file.
进一步而言,所述移动终端生成的相应请求通过封装成json数据后再通过HTTP协议将请求发送至播放设备。Further, the corresponding request generated by the mobile terminal is sent to the playback device by using the HTTP protocol after being encapsulated into json data.
进一步而言,所述线程随播放设备的***启动而启动,当检测到请求时,则启动一个新的线程进行处理,而自己则继续检测是否有新的请求;当没有检测到请求时,则继续检测。 Further, the thread is started when the system of the playback device is started. When a request is detected, a new thread is started for processing, and the user continues to detect whether there is a new request; when no request is detected, Continue to test.
进一步而言,所述移动终端根据用户的操作生成相应的请求,并通过HTTP协议将请求发送至播放设备的步骤之前还包括:Further, before the step of the mobile terminal generating a corresponding request according to the operation of the user and transmitting the request to the playback device by using the HTTP protocol, the method further includes:
移动终端从播放设备中获取SAMBA服务器列表,选择需要登陆的SAMBA服务器。The mobile terminal obtains a list of SAMBA servers from the playback device and selects the SAMBA server to be logged in.
进一步而言,所述移动终端从播放设备中获取SAMBA服务器列表的步骤具体包括:Further, the step of the mobile terminal acquiring the SAMBA server list from the playing device specifically includes:
移动终端将一个GetDevicelist命令发送至播放设备,播放设备接收命令后调用接口去获取SAMBA服务器的列表数据,将列表数据封装成json数据,通过HTTP协议发送给移动终端,移动终端解析json数据后将列表数据显示出来。The mobile terminal sends a GetDevicelist command to the playback device. After receiving the command, the playback device invokes the interface to obtain the list data of the SAMBA server, encapsulates the list data into json data, and sends the data to the mobile terminal through the HTTP protocol. After the mobile terminal parses the json data, the mobile terminal lists the data. The data is displayed.
与现有技术相比,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:
本发明能够使***不支持SAMBA的移动终端通过播放设备对SAMBA共享媒体文件进行间接的操控,而支持SAMBA的播放设备可以进一步提高其访问和操控SAMBA共享媒体文件的效率,提高了用户体验。The invention can enable the mobile terminal that does not support SAMBA to indirectly control the SAMBA shared media file through the playing device, and the SAMBA-enabled playback device can further improve the efficiency of accessing and manipulating the SAMBA shared media file, and improve the user experience.
附图说明DRAWINGS
图1是本发明实施例一提供的基于SAMBA的快速访问和控制播放共享媒体文件方法的流程图;1 is a flowchart of a method for quickly accessing and controlling playback of a shared media file based on SAMBA according to Embodiment 1 of the present invention;
图2是本发明实施例二提供的手机通过程序实现交互时的流程图;2 is a flowchart of a mobile phone according to Embodiment 2 of the present invention when an interaction is implemented by a program;
图3是本发明实施例二提供的蓝光播放机通过程序实现交互时的流程图;3 is a flowchart of a Blu-ray player provided by the second embodiment of the present invention when interacting through a program;
图4是本发明实施例二提供的手机从蓝光播放机端获取到SAMBA服务器列表的示意图;4 is a schematic diagram of a mobile phone provided by a mobile phone according to Embodiment 2 of the present invention from a Blu-ray player to a SAMBA server list;
图5是本发明实施例二提供的从手机端登陆SAMBA服务器的示意图; 5 is a schematic diagram of logging in to a SAMBA server from a mobile phone terminal according to Embodiment 2 of the present invention;
图6是本发明实施例二提供的通过手机浏览SAMBA共享媒体文件的示意图;6 is a schematic diagram of browsing a SAMBA shared media file through a mobile phone according to Embodiment 2 of the present invention;
图7是本发明实施例二提供的在手机端显示播放信息的示意图;7 is a schematic diagram of displaying playback information on a mobile phone end according to Embodiment 2 of the present invention;
图8是本发明实施例三提供的基于SAMBA的快速访问和控制播放共享媒体文件的***的结构框图。FIG. 8 is a structural block diagram of a SAMBA-based system for quickly accessing and controlling playback of shared media files according to Embodiment 3 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一Embodiment 1
本发明的实施例一提供了一种基于SAMBA的快速访问和控制播放共享媒体文件方法,应用于移动终端与支持SAMBA的播放设备之间,其中,移动终端可以是手机、平板电脑等移动终端设备。下面结合附图对本实施例进行详细说明。Embodiment 1 of the present invention provides a method for quickly accessing and controlling a shared media file based on SAMBA, which is applied between a mobile terminal and a SAMBA-enabled playback device, wherein the mobile terminal may be a mobile terminal device such as a mobile phone or a tablet computer. . The embodiment will be described in detail below with reference to the accompanying drawings.
图1是本发明实施例一的方法流程图,请参考图1,本发明实施例的方法包括以下步骤:1 is a flowchart of a method according to Embodiment 1 of the present invention. Referring to FIG. 1, the method of the embodiment of the present invention includes the following steps:
步骤S101、通过HTTP协议使移动终端与播放设备之间建立连接;Step S101: Establish a connection between the mobile terminal and the playback device by using an HTTP protocol.
在本发明实施例中,移动终端和播放设备只要支持互联网功能即可通过HTTP协议进行通信。In the embodiment of the present invention, the mobile terminal and the playback device can communicate through the HTTP protocol as long as they support the Internet function.
步骤S102、移动终端根据用户的操作生成相应的请求,并通过HTTP协议 将请求发送至播放设备;Step S102: The mobile terminal generates a corresponding request according to the operation of the user, and adopts an HTTP protocol. Send the request to the playback device;
在本发明实施例中,所述请求主要包括登陆SAMBA服务器的请求、获取共享目录及其文件列表的请求和控制播放共享媒体文件的请求;In the embodiment of the present invention, the request mainly includes a request for logging in to the SAMBA server, a request for acquiring a shared directory and a file list thereof, and a request for controlling the playing of the shared media file;
进一步的,所述登陆SAMBA服务器的请求包含有由SAMBA服务器名称、用户名和密码组成的输入信息。所述获取共享目录及其文件列表的请求包含有文件夹的路径。所述控制播放共享媒体文件的请求包含有共享媒体文件的路径。Further, the request for logging in to the SAMBA server includes input information consisting of a SAMBA server name, a username, and a password. The request to obtain the shared directory and its file list includes the path of the folder. The request to control playback of the shared media file includes a path to the shared media file.
其中,所述移动终端生成的相应请求通过封装成json数据后再通过HTTP协议将请求发送至播放设备。The corresponding request generated by the mobile terminal is sent to the playback device by using the HTTP protocol after being encapsulated into json data.
步骤S103、播放设备启动预先设置的用于负责接收和处理移动终端发送的请求的线程进而分别调用登陆SAMBA服务器和获取、控制播放共享媒体文件的接口做出相应的处理;Step S103: The playback device starts a pre-set thread for receiving and processing the request sent by the mobile terminal, and then respectively calls the login SAMBA server and acquires and controls the interface for playing the shared media file to perform corresponding processing;
在本发明实施例中,所述线程随播放设备的***启动而启动,该线程可以是一个无限循环过程,当检测到请求时,则启动一个新的线程进行处理,而自己则继续检测是否有新的请求;当没有检测到请求时,则继续检测。In the embodiment of the present invention, the thread is started by the system startup of the playback device, and the thread may be an infinite loop process. When the request is detected, a new thread is started for processing, and the user continues to detect whether there is any New request; when no request is detected, the test continues.
进一步而言,登陆SAMBA服务器的接口需要的输入信息是SAMBA服务器名称、用户名和密码,移动终端接收上述输入信息后封装成json数据,通过HTTP协议发送到播放设备,播放设备负责接受数据的线程接收到输入信息之后就会调用播放设备原始的登陆接口,即可实现登陆操作。获取SAMBA服务器下某一个文件夹下的共享媒体文件需要的参数是该文件夹的路径,移动终端通过HTTP协议发送对应的路径,后续处理和登陆流程类似。播放SAMBA服务器下某一个共享媒体文件需要的参数也是该文件的路径,移动终端通过 HTTP协议发送对应的路径即可,后续处理和登陆流程类似。Further, the input information required to log in to the SAMBA server interface is the SAMBA server name, user name, and password. The mobile terminal receives the input information and encapsulates it into json data, and sends the data to the playback device through the HTTP protocol, and the playback device is responsible for receiving the data. After the input information, the original login interface of the playback device is called, and the login operation can be realized. The parameter required to obtain the shared media file in a folder under the SAMBA server is the path of the folder. The mobile terminal sends the corresponding path through the HTTP protocol, and the subsequent processing and login process are similar. The parameter required to play a shared media file under the SAMBA server is also the path of the file, and the mobile terminal passes The HTTP protocol sends the corresponding path, and the subsequent processing and login process are similar.
步骤S104、播放设备把处理结果返回给移动终端,移动终端通过屏幕视图反馈给用户。Step S104: The playback device returns the processing result to the mobile terminal, and the mobile terminal feeds back to the user through the screen view.
作为一个优选的实施方式,当播放设备支持有多个SAMBA服务器时,在步骤S102之前还包括:As a preferred implementation, when the playback device supports multiple SAMBA servers, before step S102, the method further includes:
移动终端从播放设备中获取SAMBA服务器列表,选择需要登陆的SAMBA服务器。该步骤具体为:移动终端将一个GetDevicelist命令发送至播放设备,播放设备接收命令后调用接口去获取SAMBA服务器的列表数据,将列表数据封装成json数据,通过HTTP协议发送给移动终端,移动终端解析json数据后将列表数据显示出来。The mobile terminal obtains a list of SAMBA servers from the playback device and selects the SAMBA server to be logged in. The step is specifically: the mobile terminal sends a GetDevicelist command to the playback device. After receiving the command, the playback device invokes the interface to obtain the list data of the SAMBA server, encapsulates the list data into json data, and sends the data to the mobile terminal through the HTTP protocol, and the mobile terminal analyzes The list data is displayed after the json data.
实施例二Embodiment 2
本发明的实施例二以设置有iOS***的手机和支持SAMBA的蓝光播放机为例对整个实现过程进行说明。The second embodiment of the present invention describes the entire implementation process by taking a mobile phone provided with an iOS system and a Blu-ray player supporting SAMBA as an example.
图2示出了手机通过程序实现交互时的流程图,其包括以下步骤:FIG. 2 shows a flow chart when the mobile phone implements interaction through a program, which includes the following steps:
步骤S201、用户对设置有iOS***的手机进行操作;Step S201: The user operates the mobile phone provided with the iOS system;
步骤S202、根据操作生成相应的请求;Step S202: Generate a corresponding request according to the operation;
步骤S203、向蓝光播放机发送请求;Step S203, sending a request to the Blu-ray player;
步骤S204、发送后判断是否接收到从蓝光播放机返回的成功信息;Step S204: After transmitting, determining whether the success information returned from the Blu-ray player is received;
步骤S205、若是,则处理返回的数据信息;Step S205, if yes, processing the returned data information;
步骤S206、更新手机界面。Step S206, updating the mobile phone interface.
图3示出了蓝光播放机通过程序实现交互时的流程图,其包括以下步骤:Figure 3 is a flow chart showing the interaction of the Blu-ray player through a program, which includes the following steps:
步骤S301、接收手机发送过来的请求; Step S301, receiving a request sent by the mobile phone;
步骤S302、判断是否接收到请求;Step S302: determining whether a request is received;
步骤S303、若是,则处理请求;Step S303, if yes, processing the request;
步骤S304、返回处理结果的数据信息给手机。Step S304, returning the data information of the processing result to the mobile phone.
如图4至图7所示,用户可以通过手机从蓝光播放机端获取到SAMBA服务器列表,当选择了需要的SAMBA服务器后,从手机端登陆SAMBA服务器,通过手机浏览SAMBA共享媒体文件,并控制蓝光播放机播放SAMBA共享媒体文件,最后在手机端显示播放信息。As shown in Figure 4 to Figure 7, the user can obtain the SAMBA server list from the Blu-ray player through the mobile phone. After selecting the required SAMBA server, log in to the SAMBA server from the mobile phone, browse the SAMBA shared media file through the mobile phone, and control. The Blu-ray player plays the SAMBA shared media file and finally displays the playback information on the mobile phone.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以在存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘等。A person skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by a program instructing related hardware, and the program can be stored in a computer readable storage medium. Storage media such as ROM/RAM, magnetic disks, optical disks, etc.
实施例三Embodiment 3
本发明的实施例三提供了一种基于SAMBA的快速访问和控制播放共享媒体文件的***,请参考图8,该***应用于移动终端41与支持SAMBA的播放设备42之间,移动终端41通过HTTP协议与播放设备42建立连接。Embodiment 3 of the present invention provides a system for quickly accessing and controlling playback of shared media files based on SAMBA. Referring to FIG. 8, the system is applied between the mobile terminal 41 and the SAMBA-enabled playback device 42, and the mobile terminal 41 passes. The HTTP protocol establishes a connection with the playback device 42.
在本发明的实施例中,所述移动终端41包括:In the embodiment of the present invention, the mobile terminal 41 includes:
请求生成模块411,用于根据用户的操作生成相应的请求;其中,所述请求主要包括登陆SAMBA服务器的请求、获取共享目录及其文件列表的请求和控制播放共享媒体文件的请求;The request generating module 411 is configured to generate a corresponding request according to the operation of the user; wherein the request mainly includes a request for logging in to the SAMBA server, a request for acquiring a shared directory and a file list thereof, and a request for controlling the playing of the shared media file;
发送模块412,用于通过HTTP协议将请求发送至播放设备42;The sending module 412 is configured to send the request to the playing device 42 by using an HTTP protocol;
显示模块413,用于当播放设备把处理结果返回给移动终端41时,则通过屏幕视图反馈给用户。The display module 413 is configured to feed back to the user through the screen view when the playback device returns the processing result to the mobile terminal 41.
在本发明的实施例中,所述播放设备42包括: In an embodiment of the invention, the playback device 42 includes:
线程处理模块421,用于启动预先设置的用于负责接收和处理移动终端41发送的请求的线程进而分别调用登陆SAMBA服务器和获取、控制播放共享媒体文件的接口做出相应的处理;The thread processing module 421 is configured to start a preset thread for receiving and processing the request sent by the mobile terminal 41, and then respectively call the login SAMBA server and acquire and control the interface for playing the shared media file to perform corresponding processing;
处理结果反馈模块422,用于把处理结果返回给移动终端41。The processing result feedback module 422 is configured to return the processing result to the mobile terminal 41.
需要说明的是,上述实施例提供的一种基于SAMBA的快速访问和控制播放共享媒体文件的***,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将***的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that the SAMBA-based system for quickly accessing and controlling the playing of shared media files is exemplified by the division of the foregoing functional modules. In actual applications, the foregoing functions may be allocated according to requirements. It is completed by different functional modules, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above.
综上所述,本发明能够使***不支持SAMBA的移动终端通过播放设备对SAMBA共享媒体文件进行间接的操控,而支持SAMBA的播放设备可以进一步提高其访问和操控SAMBA共享媒体文件的效率,提高了用户体验。In summary, the present invention enables the mobile terminal that does not support SAMBA to indirectly control the SAMBA shared media file through the playback device, and the SAMBA-enabled playback device can further improve the efficiency of accessing and manipulating the SAMBA shared media file. The user experience.
上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。 The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and combinations thereof may be made without departing from the spirit and scope of the invention. Simplifications should all be equivalent replacements and are included in the scope of the present invention.

Claims (8)

  1. 一种基于SAMBA的快速访问和控制播放共享媒体文件方法,应用于移动终端与支持SAMBA的播放设备之间,其特征在于,该方法包括以下步骤:A method for quickly accessing and controlling the playing of shared media files based on SAMBA is applied between a mobile terminal and a SAMBA-enabled playback device, and the method comprises the following steps:
    通过HTTP协议使移动终端与播放设备之间建立连接;Establishing a connection between the mobile terminal and the playback device through the HTTP protocol;
    移动终端根据用户的操作生成相应的请求,并通过HTTP协议将请求发送至播放设备;其中,所述请求包括登陆SAMBA服务器的请求、获取共享目录及其文件列表的请求和控制播放共享媒体文件的请求;The mobile terminal generates a corresponding request according to the operation of the user, and sends the request to the playback device through the HTTP protocol; wherein the request includes a request to log in to the SAMBA server, a request to obtain a shared directory and a file list thereof, and a control to play the shared media file. request;
    播放设备启动预先设置的用于负责接收和处理移动终端发送的请求的线程进而分别调用登陆SAMBA服务器和获取、控制播放共享媒体文件的接口做出相应的处理;The playing device starts a pre-set thread for receiving and processing the request sent by the mobile terminal, and then respectively calls the login SAMBA server and acquires and controls the interface for playing the shared media file to perform corresponding processing;
    播放设备把处理结果返回给移动终端,移动终端通过屏幕视图反馈给用户。The playback device returns the processing result to the mobile terminal, and the mobile terminal feeds back to the user through the screen view.
  2. 根据权利要求1所述的基于SAMBA的快速访问和控制播放共享媒体文件方法,其特征在于,所述登陆SAMBA服务器的请求包含有由SAMBA服务器名称、用户名和密码组成的输入信息。The SAMBA-based method for quickly accessing and controlling the playing of shared media files according to claim 1, wherein the request for logging in to the SAMBA server includes input information consisting of a SAMBA server name, a username, and a password.
  3. 根据权利要求1所述的基于SAMBA的快速访问和控制播放共享媒体文件方法,其特征在于,所述获取共享目录及其文件列表的请求包含有文件夹的路径。The SAMBA-based method for quickly accessing and controlling playback of a shared media file according to claim 1, wherein the request to acquire a shared directory and a file list thereof includes a path of a folder.
  4. 根据权利要求1所述的基于SAMBA的快速访问和控制播放共享媒体文件方法,其特征在于,所述控制播放共享媒体文件的请求包含有共享媒体文 件的路径。The SAMBA-based method for quickly accessing and controlling a shared media file according to claim 1, wherein the request to control playing a shared media file includes a shared media message. The path of the piece.
  5. 根据权利要求1~4中任意一项所述的基于SAMBA的快速访问和控制播放共享媒体文件方法,其特征在于,所述移动终端生成的相应请求通过封装成json数据后再通过HTTP协议将请求发送至播放设备。The SAMBA-based method for quickly accessing and controlling a shared media file according to any one of claims 1 to 4, wherein the corresponding request generated by the mobile terminal is encapsulated into json data and then requested by the HTTP protocol. Send to the playback device.
  6. 根据权利要求1所述的基于SAMBA的快速访问和控制播放共享媒体文件方法,其特征在于,所述线程随播放设备的***启动而启动,当检测到请求时,则启动一个新的线程进行处理,而自己则继续检测是否有新的请求;当没有检测到请求时,则继续检测。The SAMBA-based method for quickly accessing and controlling a shared media file according to claim 1, wherein the thread is started with a system startup of the playback device, and when a request is detected, a new thread is started for processing. While he continues to detect if there is a new request; when no request is detected, the test continues.
  7. 根据权利要求1所述的基于SAMBA的快速访问和控制播放共享媒体文件方法,其特征在于,所述移动终端根据用户的操作生成相应的请求,并通过HTTP协议将请求发送至播放设备的步骤之前还包括:The SAMBA-based method for quickly accessing and controlling a shared media file according to claim 1, wherein the mobile terminal generates a corresponding request according to an operation of the user, and sends the request to the playback device by using an HTTP protocol. Also includes:
    移动终端从播放设备中获取SAMBA服务器列表,选择需要登陆的SAMBA服务器。The mobile terminal obtains a list of SAMBA servers from the playback device and selects the SAMBA server to be logged in.
  8. 根据权利要求7所述的基于SAMBA的快速访问和控制播放共享媒体文件方法,其特征在于,所述移动终端从播放设备中获取SAMBA服务器列表的步骤具体包括:The SAMBA-based method for quickly accessing and controlling the playing of a shared media file according to claim 7, wherein the step of the mobile terminal acquiring the SAMBA server list from the playing device comprises:
    移动终端将一个GetDevicelist命令发送至播放设备,播放设备接收命令后调用接口去获取SAMBA服务器的列表数据,将列表数据封装成json数据, 通过HTTP协议发送给移动终端,移动终端解析json数据后将列表数据显示出来。 The mobile terminal sends a GetDevicelist command to the playback device. After receiving the command, the playback device invokes the interface to obtain the list data of the SAMBA server, and encapsulates the list data into json data. The data is sent to the mobile terminal through the HTTP protocol, and the mobile terminal parses the json data and displays the list data.
PCT/CN2014/088219 2014-01-26 2014-10-09 Method for quickly accessing and controlling the playing of shared media file based on samba WO2015109872A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410039219.2 2014-01-26
CN201410039219.2A CN103747016A (en) 2014-01-26 2014-01-26 SAMBA-based method for quickly accessing and controlling to play shared media files

Publications (1)

Publication Number Publication Date
WO2015109872A1 true WO2015109872A1 (en) 2015-07-30

Family

ID=50504003

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088219 WO2015109872A1 (en) 2014-01-26 2014-10-09 Method for quickly accessing and controlling the playing of shared media file based on samba

Country Status (2)

Country Link
CN (1) CN103747016A (en)
WO (1) WO2015109872A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010437A (en) * 2019-12-12 2020-04-14 深圳市深智电科技有限公司 Intelligent media playing system and control method

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747016A (en) * 2014-01-26 2014-04-23 广东欧珀移动通信有限公司 SAMBA-based method for quickly accessing and controlling to play shared media files
CN104301400B (en) * 2014-09-28 2017-10-03 四川长虹电器股份有限公司 Multi-screen collaboration and resource share method based on Samba agreements
CN104468761B (en) * 2014-11-28 2018-05-18 广东欧珀移动通信有限公司 Control the method and mobile terminal of player carry shared file
CN105721945A (en) * 2016-02-02 2016-06-29 四川长虹电器股份有限公司 Method for playing iso mirror image film in local area networkonline with television
CN105704558A (en) * 2016-03-17 2016-06-22 四川长虹电器股份有限公司 Method of online playing iso film in local area network by intelligent television
CN105827636B (en) * 2016-05-09 2019-04-16 Oppo广东移动通信有限公司 A kind of method and apparatus of shared media services
CN107172048A (en) * 2017-05-19 2017-09-15 郑州云海信息技术有限公司 A kind of multi-channel implementation method and device based on SMB agreements
CN113691531B (en) * 2021-08-24 2023-08-01 深圳市思迪信息技术股份有限公司 WebSocket protocol-based data transmission method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102204192A (en) * 2011-05-26 2011-09-28 华为技术有限公司 A method for mounting network attachment storage nas device and a digital media player dmp
CN102708901A (en) * 2012-04-20 2012-10-03 Tcl通力电子(惠州)有限公司 BD (Blu-ray disc) player and web control method therefor
CN103338263A (en) * 2013-07-08 2013-10-02 广东欧珀移动通信有限公司 Method and system for sharing audio and video files based on players
CN103747016A (en) * 2014-01-26 2014-04-23 广东欧珀移动通信有限公司 SAMBA-based method for quickly accessing and controlling to play shared media files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102204192A (en) * 2011-05-26 2011-09-28 华为技术有限公司 A method for mounting network attachment storage nas device and a digital media player dmp
CN102708901A (en) * 2012-04-20 2012-10-03 Tcl通力电子(惠州)有限公司 BD (Blu-ray disc) player and web control method therefor
CN103338263A (en) * 2013-07-08 2013-10-02 广东欧珀移动通信有限公司 Method and system for sharing audio and video files based on players
CN103747016A (en) * 2014-01-26 2014-04-23 广东欧珀移动通信有限公司 SAMBA-based method for quickly accessing and controlling to play shared media files

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010437A (en) * 2019-12-12 2020-04-14 深圳市深智电科技有限公司 Intelligent media playing system and control method
CN111010437B (en) * 2019-12-12 2023-08-22 深圳市深智电科技有限公司 Intelligent media playing system and control method

Also Published As

Publication number Publication date
CN103747016A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
WO2015109872A1 (en) Method for quickly accessing and controlling the playing of shared media file based on samba
US20160366461A1 (en) Method and Device for Mobile Communication Terminal to Control Smart TV to Play Video File
US20150365453A1 (en) Media projection method and device, control terminal and cloud server
US11108727B2 (en) System, method, and server for playing multimedia resource
US20200267195A1 (en) Closed network video presentation
US20140298395A1 (en) Methods and systems for playing video on multiple terminals
US20160094504A1 (en) Session History Horizon Control
WO2016095705A1 (en) Method, device and system for streaming media transmission
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
JP5601638B2 (en) Method and system used to provide network service exchange
US9686506B2 (en) Method, apparatus, system, and storage medium for video call and video call control
US20150143210A1 (en) Content Stitching Templates
CA2938542A1 (en) Synchronizing presentation states between multiple applications
US9420066B2 (en) Automated content submission to a share site
WO2015165358A1 (en) Chat information transmission method and apparatus, and chat information push method and server
KR20100020310A (en) Method and apparatus for providing/receiving user interface using user interface directory
US20180270278A1 (en) Device and method for providing mobile internet call service
JP6230453B2 (en) Imaging apparatus and control method thereof
WO2016106705A1 (en) Content sharing method, terminal, server and system
GB2508138A (en) Delivering video content to a device by storing multiple formats
WO2017193544A1 (en) Method, device, and electronic apparatus for downloading resource
US20170093969A1 (en) Information processing device, information processing system, information processing method and program
TWI515684B (en) Method and apparatus for message processing and system thereof
WO2017193955A1 (en) Management method and system, terminal and server
JP2009271576A (en) Client terminal equipment, thin client system, thin client server device, and client terminal equipment control method

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14879905

Country of ref document: EP

Kind code of ref document: A1