| | |
| | | import com.yeshi.base.entity.video.VideoDetailInfo; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.entity.video.VideoResource; |
| | | import com.yeshi.base.utils.JsonUtil; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.base.utils.user.UserUtil; |
| | | import com.yeshi.video.R; |
| | | import com.yeshi.video.entity.FunshionPlayInfo; |
| | | import com.yeshi.video.player.common.IVideoPlayerListener; |
| | | import com.yeshi.video.player.common.VideoDefinition; |
| | | import com.yeshi.video.player.common.VideoEpisode; |
| | | import com.yeshi.video.player.common.VideoPlayerController; |
| | |
| | | import androidx.annotation.Nullable; |
| | | import de.greenrobot.event.EventBus; |
| | | |
| | | public class FunshionPlayerFragment extends RetainViewFragment implements OnClickListener, VideoPlayerController.IVideoPlayerListener { |
| | | public class FunshionPlayerFragment extends RetainViewFragment implements OnClickListener, IVideoPlayerListener { |
| | | private final static String TAG = FunshionPlayerFragment.class.getName(); |
| | | |
| | | //媒体视频播放器 |
| | |
| | | episodes.add(es); |
| | | } |
| | | |
| | | vpc_funshion.setContentView(fl_container).setVideoInfo(episodes, info.getPosition(), mVideoInfo.getShowType(), "风行").setVideoPlayerListener(this).build(getActivity(), FunshionPlayerFragment.this); |
| | | try { |
| | | vpc_funshion.setContentView(fl_container).setVideoInfo(episodes, info.getPosition(), mVideoInfo.getShowType(), "风行").setVideoPlayerListener(this).build(getActivity(), FunshionPlayerFragment.this); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | // loadAD(new IADLoadListener() { |
| | | // @Override |
| | | // public void finishAd() { |
| | |
| | | Header[] headers, JSONObject jsonObject) |
| | | throws Exception { |
| | | if (jsonObject.getBoolean("IsPost")) { |
| | | Gson gson = new GsonBuilder().setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE) |
| | | .create(); |
| | | VideoResource resource = gson.fromJson( |
| | | |
| | | VideoResource resource = JsonUtil.videoGson.fromJson( |
| | | jsonObject.getJSONObject("Data") |
| | | .getJSONObject("Resource") |
| | | .toString(), |