PressPlay makes it easy for your Java applications to play media and parse metadata using the ffmpeg tools.
- ffmpeg must be installed on the machine where you want to play media
- Java 11 or higher is required
- PressPlay uses log4j2 for logging; your application must provide this dependency
If the ffmpeg tools are not installed at /usr/local/bin or /usr/bin, you will need to set a system property so pressplay knows where to find the tools:
pressplay.ffmpeg.path=/full/path/to/tools/
If you are using Maven, you can get the pressplay library with this dependency:
<dependency>
<groupId>net.jeremybrooks</groupId>
<artifactId>pressplay</artifactId>
<version>1.0.9</version>
</dependency>
Releasing to Central requires some specific steps:
- export some JDK options so Java 17 will work:
export JDK_JAVA_OPTIONS='--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED'
- Update the version in pom.xml
- Update the version in README.md
- Do the release:
mvn clean deploy -Prelease - If the release is successful:
- Commit and push
- tag the repo
git tag -a x.y.z - push the tag
git push origin --tags - update the version in pom.xml for the next snapshot
- commit and push
- Clear your JDK options:
unset JDK_JAVA_OPTIONS