This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
337 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package cn.jzvd.demo; | ||
|
||
import android.app.Activity; | ||
import android.os.Bundle; | ||
|
||
import com.squareup.picasso.Picasso; | ||
|
||
import cn.jzvd.JZVideoPlayer; | ||
import cn.jzvd.JZVideoPlayerStandard; | ||
|
||
/** | ||
* Created by Nathen on 2017/9/19. | ||
*/ | ||
|
||
public class ExtendsNormalActivity extends Activity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_extends_normal); | ||
JZVideoPlayerStandard jzVideoPlayerStandard = findViewById(R.id.videoplayer); | ||
jzVideoPlayerStandard.setUp(VideoConstant.videoUrlList[0] | ||
, JZVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, "嫂子不信"); | ||
Picasso.with(this) | ||
.load(VideoConstant.videoThumbList[0]) | ||
.into(jzVideoPlayerStandard.thumbImageView); | ||
} | ||
|
||
@Override | ||
public void onBackPressed() { | ||
if (JZVideoPlayer.backPress()) { | ||
return; | ||
} | ||
super.onBackPressed(); | ||
} | ||
|
||
@Override | ||
protected void onPause() { | ||
super.onPause(); | ||
JZVideoPlayer.releaseAllVideos(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.