scte35
scte35 copied to clipboard
Java library that handles decoding strings that follow the SCTE 35 Standard
SCETE 35 Decoder
Java library that handles decoding strings that follow the SCTE 35 Standard: https://en.wikipedia.org/wiki/SCTE-35. The result is an Plain Old Java Object of type SpliceInfoSection
This library was forked from https://github.com/riedlse/scte35.
Goals
- Provide a simple interface that can be instatiated or injected
- Remove Netbeans dependency
- Remove UI dependency
- Compatibility with Android
- Removing dependency to
javax.xml.bind.DatatypeConverterhttp://stackoverflow.com/a/34424297. Usingcommons-codec - Removing
com.turner.decoder.Base64. Usingcommons-codec - Keep it independent of Android libraries
- Removing dependency to
- Fully define model
- Move to gradle
- Add unit tests
Integration
This library is made available via maven repository. Alternatively it can be downloaded and included directly into a private maven repository or directly in the libs folder of the target app.
Add maven repository
repositories {
maven {
name = "NFL Scte35"
url = uri("https://maven.pkg.github.com/nfl/scte35")
}
}
Add dependency
dependencies {
...
implementation 'com.nfl.dm.scte35:scte35-decoder:1.0.31'
...
}
Create or inject instance:
Scte35Decoder scte35Decoder = new Scte35Decoder(false);
SpliceInfoSection spliceInfoSection = scte35Decoder.base64Decode("SCTE35_ENCODED_STRING");
//Use values from model: spliceInfoSection
TODOs
- Make models immutable
- Add more examples to increase code coverage