提交 50ee93a2 编写于 作者: S shuyu

fix 注释

上级 80421df8
......@@ -5,6 +5,7 @@ import android.app.Application;
import com.shuyu.gsyvideoplayer.GSYVideoManager;
/**
* 初始化视频播放
* Created by shuyu on 2016/11/11.
*/
......
......@@ -18,6 +18,10 @@ import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* 单独的视频播放页面
* Created by shuyu on 2016/11/11.
*/
public class PlayActivity extends AppCompatActivity {
public final static String IMG_TRANSITION = "IMG_TRANSITION";
......
......@@ -5,6 +5,7 @@ import android.os.Build;
import android.transition.Transition;
/**
* 重载了过渡动画的方法
* Created by shuyu on 2016/8/15.
*/
......
......@@ -17,6 +17,8 @@ import com.example.gsyvideoplayer.R;
public class JumpUtils {
/**
* 跳转到视频播放
*
* @param activity
* @param view
*/
......
......@@ -74,7 +74,8 @@ public class GSYVideoManager implements IMediaPlayer.OnPreparedListener, IMediaP
*/
public static HttpProxyCacheServer getProxy(Context context) {
HttpProxyCacheServer proxy = GSYVideoManager.instance().proxy;
return proxy == null ? (proxy = GSYVideoManager.instance().newProxy(context)) : proxy;
return proxy == null ? (GSYVideoManager.instance().proxy =
GSYVideoManager.instance().newProxy(context)) : proxy;
}
/**
......@@ -157,6 +158,7 @@ public class GSYVideoManager implements IMediaPlayer.OnPreparedListener, IMediaP
Surface holder = (Surface) msg.obj;
if (holder.isValid()) {
mediaPlayer.setSurface(holder);
//exoPlayer在一些手机上在onPause后会声音先出来,画面黑一段时间,目前通过seekTo之后重新渲染解决
if (mediaPlayer != null && mediaPlayer.getDuration() > 30
&& mediaPlayer.getCurrentPosition() < mediaPlayer.getDuration()) {
mediaPlayer.seekTo(mediaPlayer.getCurrentPosition() - 20);
......
......@@ -3,10 +3,12 @@ package com.shuyu.gsyvideoplayer.model;
import java.util.Map;
/**
* 视频内部接受数据model
* Created by shuyu on 2016/11/11.
*/
public class GSYModel {
String url;
Map<String, String> mapHeadData;
boolean looping;
......
......@@ -8,6 +8,7 @@ import java.util.Formatter;
import java.util.Locale;
/**
* 公共类
* Created by shuyu on 2016/11/11.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册