Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
io.github.jeancsanchez.jcplayer:jcplayer
Advanced tools
A simple way of make an audio player using custom playlists for Android applications.
A simple audio player for Android that you can plugin to your apps quickly get audio playback working.
You can support us by becoming a patron on Patreon, any support is much appreciated.
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
// ... other dependencies
implementation 'com.github.jeancsanchez:JcPlayer:{version}'
}
You only need a JcPlayerView on your Layout Activity/Fragment. All the controls and everything else are created by the player view itself.
<com.example.jean.jcplayer.view.JcPlayerView
android:id="@+id/jcplayer"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
jcplayerView = (JcPlayerView) findViewById(R.id.jcplayerView);
ArrayList<JcAudio> jcAudios = new ArrayList<>();
jcAudios.add(JcAudio.createFromURL("url audio","http://xxx/audio.mp3"));
jcAudios.add(JcAudio.createFromAssets("Asset audio", "audio.mp3"));
jcAudios.add(JcAudio.createFromRaw("Raw audio", R.raw.audio));
jcplayerView.initPlaylist(jcAudios, null);
jcplayerView.initAnonPlaylist(jcAudios);
jcplayerView.initWithTitlePlaylist(urls, "Awesome music");
jcplayerView.createNotification(); // default icon
OR
jcplayerView.createNotification(R.drawable.myIcon); // Your icon resource
MyActivity implements JcPlayerManagerListener {
....
jcplayerView.setJcPlayerManagerListener(this);
// Just be happy :D
}
You can customize the player layout by manipulating these attributes.
app:next_icon
app:next_icon_color
app:pause_icon
app:pause_icon_color
app:play_icon
app:play_icon_color
app:previous_icon
app:previous_icon_color
app:progress_color
app:random_icon_color
app:repeat_icon
app:repeat_icon_color
app:seek_bar_color
app:text_audio_current_duration_color
app:text_audio_duration_color
app:text_audio_title_color
FAQs
A simple way of make an audio player using custom playlists for Android applications.
We found that io.github.jeancsanchez.jcplayer:jcplayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.