CN103747016A - SAMBA-based method for quickly accessing and controlling to play shared media files - Google Patents
SAMBA-based method for quickly accessing and controlling to play shared media files Download PDFInfo
- Publication number
- CN103747016A CN103747016A CN201410039219.2A CN201410039219A CN103747016A CN 103747016 A CN103747016 A CN 103747016A CN 201410039219 A CN201410039219 A CN 201410039219A CN 103747016 A CN103747016 A CN 103747016A
- Authority
- CN
- China
- Prior art keywords
- samba
- request
- mobile terminal
- playback equipment
- shared medium
- 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
Images
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/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- 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)
- Telephone Function (AREA)
Abstract
The invention discloses an SAMBA-based method for quickly accessing and controlling to play shared media files. The method comprises the following steps that connection is established between a mobile terminal and playing device through a hyper text transport protocol (HTTP); the mobile terminal generates a corresponding request according to operation of a user, and sends the request to the playing device through the HTTP; the playing device starts a preset thread used for receiving and processing the request sent by the mobile terminal and further respectively calls an SAMBA server and an interface for acquiring and controlling to play the shared media files to carry out corresponding processing; the playing device returns a processing result to the mobile terminal and the mobile terminal feeds the processing result back to the user through a screen view. By the method, the mobile terminal of which the system does not support SAMBA indirectly controls the SAMBA shared media files through the playing device, and the playing device supporting the SAMBA can further improve the efficiency of accessing and controlling the SAMBA shared media files.
Description
Technical field
The present invention relates to communication technical field, more particularly, relate to a kind of fast access based on SAMBA and control and play shared medium document method.
Background technology
SAMBA is a freeware realizing SMB agreement on Linux and unix system, server and client-side program, consists of.
At present, on market, support the equipment of SAMBA to have a lot, as blue light player etc.Yet, although blue light player is supported SAMBA, can only use a teleswitch to control and log in, browse and play SAMBA shared medium file, in fast browsing with control institute and be short of, user's experience is not good.On the other hand, part mobile device is due to the defect of system or realize the problems such as difficulty and cannot realize the support to SAMBA equipment.
Summary of the invention
The object of the invention is to overcome above-mentioned defect of the prior art, a kind of fast access based on SAMBA be provided and control and play shared medium document method, making mobile terminal indirectly access and to control SAMBA shared medium file by the playback equipment of support SAMBA.
For achieving the above object, technical scheme provided by the invention is as follows: shared medium document method is play in a kind of fast access based on SAMBA and control, is applied to mobile terminal and supports that between the playback equipment of SAMBA, the method comprises the following steps:
By http protocol, make to connect between mobile terminal and playback equipment;
Mobile terminal generates corresponding request according to user's operation, and sends the request to playback equipment by http protocol; Wherein, described request comprises the request that shared medium file is play in the request of SAMBA server, the request of obtaining share directory and listed files thereof and control that logs in;
Playback equipment start set in advance for being responsible for receiving and the thread of the request that handle mobile terminal sends and then call respectively the interface that logs in SAMBA server and obtain, control broadcasting shared medium file and make corresponding processing;
Playback equipment returns to mobile terminal result, and mobile terminal feeds back to user by screen view.
Furthermore, the request that logs in SAMBA server described in includes the input message being comprised of SAMBA server name, username and password.
The request of obtaining share directory and listed files thereof furthermore, includes the path of file.
Furthermore, the request of described control broadcasting shared medium file includes the path of shared medium file.
Furthermore, the respective request that described mobile terminal generates sends the request to playback equipment by http protocol again after being packaged into json data.
Furthermore, described thread starts with the system of playback equipment, when request being detected, starts a new thread and processes, and oneself continues to detect whether have new request; When request not detected, continue to detect.
Furthermore, described mobile terminal generates corresponding request according to user's operation, and also comprises send the request to the step of playback equipment by http protocol before:
Mobile terminal obtains SAMBA server list from playback equipment, the SAMBA server that selection need to log in.
Furthermore, the step that described mobile terminal obtains SAMBA server list from playback equipment specifically comprises:
Mobile terminal is sent to playback equipment by a GetDevicelist order, playback equipment receives the table data that the rear calling interface of order removes to obtain SAMBA server, table data is packaged into json data, by http protocol, send to mobile terminal, mobile terminal after resolving json data shows table data.
Compared with prior art, beneficial effect of the present invention is:
The present invention can make system not support the mobile terminal of SAMBA by playback equipment, SAMBA shared medium file indirectly to be controlled, and the playback equipment of supporting SAMBA can further improve its access and control the efficiency of SAMBA shared medium file, improved user's experience.
Accompanying drawing explanation
Fig. 1 is the embodiment of the present invention one fast access based on SAMBA providing and the flow chart of controlling broadcasting shared medium document method;
To be the mobile phone that provides of the embodiment of the present invention two realize flow chart when mutual by program to Fig. 2;
To be the blue light player that provides of the embodiment of the present invention two realize flow chart when mutual by program to Fig. 3;
Fig. 4 is that the mobile phone that the embodiment of the present invention two provides gets the schematic diagram of SAMBA server list from blue light player end;
Fig. 5 be the embodiment of the present invention two provide from mobile phone terminal, log in the schematic diagram of SAMBA server;
Fig. 6 be the embodiment of the present invention two provide by mobile phone, browse the schematic diagram of SAMBA shared medium file;
Fig. 7 be the embodiment of the present invention two provide at the display the play schematic diagram of information of mobile phone terminal;
Fig. 8 is the embodiment of the present invention three fast access based on SAMBA providing and the structured flowchart of controlling the system of playing shared medium file.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
Embodiments of the invention one provide a kind of fast access based on SAMBA and have controlled and play shared medium document method, be applied to mobile terminal and support between the playback equipment of SAMBA, wherein, mobile terminal can be the mobile terminal devices such as mobile phone, panel computer.Below in conjunction with accompanying drawing, the present embodiment is elaborated.
Fig. 1 is the method flow diagram of the embodiment of the present invention one, please refer to Fig. 1, and the method for the embodiment of the present invention comprises the following steps:
Step S101, by http protocol, make to connect between mobile terminal and playback equipment;
In embodiments of the present invention, mobile terminal and playback equipment are as long as support that internet function can communicate by http protocol.
Step S102, mobile terminal generate corresponding request according to user's operation, and send the request to playback equipment by http protocol;
In embodiments of the present invention, described request mainly comprises the request that shared medium file is play in the request of SAMBA server, the request of obtaining share directory and listed files thereof and control that logs in;
Further, the request that logs in SAMBA server described in includes the input message being comprised of SAMBA server name, username and password.Described request of obtaining share directory and listed files thereof includes the path of file.The request of described control broadcasting shared medium file includes the path of shared medium file.
Wherein, the respective request that described mobile terminal generates sends the request to playback equipment by http protocol again after being packaged into json data.
Step S103, playback equipment start set in advance for being responsible for receiving and the thread of the request that handle mobile terminal sends and then call respectively and log in SAMBA server and obtain, control the interface of playing shared medium file and make corresponding processing;
In embodiments of the present invention, described thread starts with the system of playback equipment, and this thread can be an Infinite Cyclic process, when request being detected, starts a new thread and processes, and oneself continues to detect whether have new request; When request not detected, continue to detect.
Furthermore, the input message that logs in the interface needs of SAMBA server is SAMBA server name, username and password, mobile terminal is packaged into json data after receiving above-mentioned input message, by http protocol, send to playback equipment, the thread that playback equipment is responsible for accepting data receive will call after input message playback equipment original log in interface, can realize logon operation.The parameter that obtaining the shared medium file under some files under SAMBA server needs is the path of this document folder, and mobile terminal sends corresponding path by http protocol, subsequent treatment and to log in flow process similar.Playing the parameter that under SAMBA server, some shared medium files need is also the path of this document, and mobile terminal sends corresponding path by http protocol, and subsequent treatment is with to log in flow process similar.
Step S104, playback equipment return to mobile terminal result, and mobile terminal feeds back to user by screen view.
As one preferred embodiment, when playback equipment support has a plurality of SAMBA server, before step S102, also comprise:
Mobile terminal obtains SAMBA server list from playback equipment, the SAMBA server that selection need to log in.This step is specially: mobile terminal is sent to playback equipment by a GetDevicelist order, playback equipment receives the table data that the rear calling interface of order removes to obtain SAMBA server, table data is packaged into json data, by http protocol, send to mobile terminal, mobile terminal after resolving json data shows table data.
Embodiment bis-
Embodiments of the invention two be take the blue light player that is provided with the mobile phone of iOS system and supports SAMBA and whole implementation procedure are described as example.
Fig. 2 shows mobile phone and realizes flow chart when mutual by program, and it comprises the following steps:
Step S201, user operate being provided with the mobile phone of iOS system;
Step S202, according to operation, generate corresponding request;
Step S203, to blue light player, send request;
After step S204, transmission, judge whether to receive the successful information of returning from blue light player;
Step S205, the data message that if so, processing is returned;
Step S206, renewal mobile phone interface.
Fig. 3 shows blue light player and realizes flow chart when mutual by program, and it comprises the following steps:
The request that step S301, reception mobile phone send over;
Step S302, judge whether to receive request;
Step S303, if so, processing request;
Step S304, return to result data message to mobile phone.
As shown in Figures 4 to 7, user can get SAMBA server list from blue light player end by mobile phone, after having selected the SAMBA server needing, from mobile phone terminal, log in SAMBA server, by mobile phone, browse SAMBA shared medium file, and control blue light player and play SAMBA shared medium file, finally in the mobile phone terminal information that displays the play.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
Embodiment tri-
Embodiments of the invention three provide a kind of fast access based on SAMBA and have controlled the system of playing shared medium file, please refer to Fig. 8, this system applies is in mobile terminal 41 and support that between the playback equipment 42 of SAMBA, mobile terminal 41 connects by http protocol and playback equipment 42.
In an embodiment of the present invention, described mobile terminal 41 comprises:
Sending module 412, for sending the request to playback equipment 42 by http protocol;
In an embodiment of the present invention, described playback equipment 42 comprises:
It should be noted that, the system of shared medium file is play in a kind of fast access based on SAMBA that above-described embodiment provides and control, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure of the system of being about to is divided into different functional modules, to complete all or part of function described above.
In sum, the present invention can make system not support the mobile terminal of SAMBA by playback equipment, SAMBA shared medium file indirectly to be controlled, and the playback equipment of supporting SAMBA can further improve its access and control the efficiency of SAMBA shared medium file, improved user's experience.
Above-described embodiment is preferably execution mode of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and principle, substitutes, combination, simplify; all should be equivalent substitute mode, within being included in protection scope of the present invention.
Claims (8)
1. a shared medium document method is play in the fast access based on SAMBA and control, is applied to mobile terminal and supports, between the playback equipment of SAMBA, it is characterized in that, the method comprises the following steps:
By http protocol, make to connect between mobile terminal and playback equipment;
Mobile terminal generates corresponding request according to user's operation, and sends the request to playback equipment by http protocol; Wherein, described request comprises the request that shared medium file is play in the request of SAMBA server, the request of obtaining share directory and listed files thereof and control that logs in;
Playback equipment start set in advance for being responsible for receiving and the thread of the request that handle mobile terminal sends and then call respectively the interface that logs in SAMBA server and obtain, control broadcasting shared medium file and make corresponding processing;
Playback equipment returns to mobile terminal result, and mobile terminal feeds back to user by screen view.
2. the fast access based on SAMBA according to claim 1 and control to play shared medium document method, is characterized in that, described in log in SAMBA server request include the input message being formed by SAMBA server name, username and password.
3. the fast access based on SAMBA according to claim 1 and control to play shared medium document method, is characterized in that, described in obtain share directory and listed files thereof request include the path of file.
4. shared medium document method is play in the fast access based on SAMBA according to claim 1 and control, it is characterized in that, the request of described control broadcasting shared medium file includes the path of shared medium file.
5. according to the fast access based on SAMBA described in any one in claim 1~4 and control, play shared medium document method, it is characterized in that, the respective request that described mobile terminal generates sends the request to playback equipment by http protocol again after being packaged into json data.
6. shared medium document method is play in the fast access based on SAMBA according to claim 1 and control, it is characterized in that, described thread starts with the system of playback equipment, when request being detected, start a new thread and process, oneself continue to detect whether have new request; When request not detected, continue to detect.
7. shared medium document method is play in the fast access based on SAMBA according to claim 1 and control, it is characterized in that, described mobile terminal generates corresponding request according to user's operation, and also comprises send the request to the step of playback equipment by http protocol before:
Mobile terminal obtains SAMBA server list from playback equipment, the SAMBA server that selection need to log in.
8. shared medium document method is play in the fast access based on SAMBA according to claim 7 and control, it is characterized in that, the step that described mobile terminal obtains SAMBA server list from playback equipment specifically comprises:
Mobile terminal is sent to playback equipment by a GetDevicelist order, playback equipment receives the table data that the rear calling interface of order removes to obtain SAMBA server, table data is packaged into json data, by http protocol, send to mobile terminal, mobile terminal after resolving json data shows table data.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410039219.2A CN103747016A (en) | 2014-01-26 | 2014-01-26 | SAMBA-based method for quickly accessing and controlling to play shared media files |
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 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 |
---|---|
CN103747016A true CN103747016A (en) | 2014-04-23 |
Family
ID=50504003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410039219.2A Pending CN103747016A (en) | 2014-01-26 | 2014-01-26 | SAMBA-based method for quickly accessing and controlling to play shared media files |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103747016A (en) |
WO (1) | WO2015109872A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301400A (en) * | 2014-09-28 | 2015-01-21 | 四川长虹电器股份有限公司 | Multi-screen cooperation and resource sharing method on basis of Samba protocol |
CN104468761A (en) * | 2014-11-28 | 2015-03-25 | 广东欧珀移动通信有限公司 | Method for controlling player to mount shared file and mobile terminal |
WO2015109872A1 (en) * | 2014-01-26 | 2015-07-30 | 广东欧珀移动通信有限公司 | Method for quickly accessing and controlling the playing of shared media file based on samba |
CN105704558A (en) * | 2016-03-17 | 2016-06-22 | 四川长虹电器股份有限公司 | Method of online playing iso film in local area network by intelligent television |
CN105721945A (en) * | 2016-02-02 | 2016-06-29 | 四川长虹电器股份有限公司 | Method for playing iso mirror image film in local area networkonline with television |
CN105827636A (en) * | 2016-05-09 | 2016-08-03 | 广东欧珀移动通信有限公司 | Method and device for sharing media service |
CN107172048A (en) * | 2017-05-19 | 2017-09-15 | 郑州云海信息技术有限公司 | A kind of multi-channel implementation method and device based on SMB agreements |
CN113691531A (en) * | 2021-08-24 | 2021-11-23 | 深圳市思迪信息技术股份有限公司 | Data transmission method, system, equipment and storage medium based on WebSocket protocol |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111010437B (en) * | 2019-12-12 | 2023-08-22 | 深圳市深智电科技有限公司 | Intelligent media playing system and control method |
Citations (3)
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 |
Family Cites Families (1)
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 |
-
2014
- 2014-01-26 CN CN201410039219.2A patent/CN103747016A/en active Pending
- 2014-10-09 WO PCT/CN2014/088219 patent/WO2015109872A1/en active Application Filing
Patent Citations (3)
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 |
Non-Patent Citations (1)
Title |
---|
文峰: ""利用家庭网络组建多房间影音播放***(下)"", 《家庭影院技术》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015109872A1 (en) * | 2014-01-26 | 2015-07-30 | 广东欧珀移动通信有限公司 | Method for quickly accessing and controlling the playing of shared media file based on samba |
CN104301400A (en) * | 2014-09-28 | 2015-01-21 | 四川长虹电器股份有限公司 | Multi-screen cooperation and resource sharing method on basis of Samba protocol |
CN104301400B (en) * | 2014-09-28 | 2017-10-03 | 四川长虹电器股份有限公司 | Multi-screen collaboration and resource share method based on Samba agreements |
CN104468761A (en) * | 2014-11-28 | 2015-03-25 | 广东欧珀移动通信有限公司 | Method for controlling player to mount shared file and mobile terminal |
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 |
CN105827636A (en) * | 2016-05-09 | 2016-08-03 | 广东欧珀移动通信有限公司 | Method and device for sharing media service |
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 |
CN113691531A (en) * | 2021-08-24 | 2021-11-23 | 深圳市思迪信息技术股份有限公司 | Data transmission method, system, equipment and storage medium based on WebSocket protocol |
Also Published As
Publication number | Publication date |
---|---|
WO2015109872A1 (en) | 2015-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103747016A (en) | SAMBA-based method for quickly accessing and controlling to play shared media files | |
US10949158B2 (en) | Screenshot method and apparatus | |
US10529384B2 (en) | Video recording method and apparatus for mobile terminal | |
CN102521284B (en) | Page screenshot processing method and device based on mobile terminal browser | |
CN104754279B (en) | A kind of method and system for realizing video calling | |
US10284494B2 (en) | Device controlling method, client, server and intermediate device | |
CN108540674B (en) | Automatic testing method and device, computer equipment and storage medium | |
EP3185545A1 (en) | Video conference control method and system | |
CN103597860A (en) | Selective linking of message accounts | |
CN109586929B (en) | Conference content transmission method and device, electronic equipment and storage medium | |
US20170171571A1 (en) | Push Video Documentation Methods and Appliances | |
TWI771480B (en) | Method, device and electronic device for forwarding chat information | |
CN105187266A (en) | Information monitoring method and device | |
JP2017539103A (en) | Method, apparatus, server, and system for synchronizing member gain among multiple apparatuses | |
US20170163787A1 (en) | Method and electronic device for upgrading or downgrading system | |
CN105323243A (en) | Method and device for secure voice communication based on instant messaging | |
US9021114B2 (en) | Automatic connection of computing devices | |
CN102932471A (en) | Method and system for login server by browser and for achieving browser login | |
CN104601666A (en) | Log service method and cloud platform | |
CN104639973A (en) | Information pushing method and device | |
US20170188214A1 (en) | Method and electronic device for sharing multimedia information | |
CN103096181A (en) | Method providing interactive application business and device | |
CN104202309A (en) | Data transmission control method and apparatus | |
CN103905661A (en) | Message forwarding method and cloud server | |
US9300787B1 (en) | Augmented device interaction through services |
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: 20140423 |
|
RJ01 | Rejection of invention patent application after publication |