# android_integrate_smb **Repository Path**: ruanke/android_integrate_smb ## Basic Information - **Project Name**: android_integrate_smb - **Description**: In android platform, integrate smb client and play media item in smb servers. - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-22 - **Last Updated**: 2020-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # android_integrate_smb In android platform, integrate smb client and play media item in smb servers. 1. use jcifs open source, http://jcifs.samba.org/ 2. the jcifs version is 1.2.25. In this repository, the jcifs-1.2.25.jar file is compiled by myself, which is patched by LargeReadWrite.patch 3. HttpServer.java is based on NanoHTTPD open source. 4. AsyncHttpService.java is based on AsyncHttp open source. 5. why use http server? Because MediaPlayer in android can't play smb protocal files directly, http server covert http to smb protocal. 6. How to build jcifs open source. (0) download jcifs source code. http://jcifs.samba.org/src/ (1) download JavaEE sdk, add javax.servlet-api.jar in this sdk into class path of the operation system. (2) modify the javac tool path in build.xml according to your operation system. (3) use ant to compile. 7. why use jcifs 1.2.25 version, because this version support smb servers scan. 8. In order to quickly read smb file in http server and play video smoothly, we must do: (1) follow the step 2, patched by the LargeReadWrite.patch. (2) System.setProperty("jcifs.smb.client.dfs.disabled", "true") in code.