| | |
| | | |
| | | import androidx.annotation.NonNull; |
| | | |
| | | import com.android.app_base.base.BaseConfig; |
| | | import com.android.app_base.base.view.BaseFragment; |
| | | import com.android.app_base.utils.GlideUtil; |
| | | import com.application.zhangshi_app_android.R; |
| | |
| | | public VideoFragment() { |
| | | } |
| | | |
| | | public static VideoFragment newInstance(String playUrl) { |
| | | public static VideoFragment newInstance(String url) { |
| | | VideoFragment fragment = new VideoFragment(); |
| | | if (url.contains("profile/upload")) {//如果是上传到服务器的图片 |
| | | //只取profile/upload以后的部分 |
| | | url = url.substring(url.indexOf("profile/upload")); |
| | | url = BaseConfig.BASE_URL_DOMAIN + "/" + url; |
| | | } |
| | | Bundle args = new Bundle(); |
| | | args.putSerializable("playUrl", playUrl); |
| | | args.putSerializable("playUrl", url); |
| | | fragment.setArguments(args); |
| | | return fragment; |
| | | } |