Skip to content

Commit ddc4c4a

Browse files
committed
fix: ship the media module's natives to anything depending on it
webrtc-java-media declared no dependency on its own classifier artifact, so a project depending on the module got the Java classes and none of the native libraries, and failed at class-initialization time with "Native library 'avutil-59.dll' is not on the classpath". It now carries them the same way webrtc-java carries its own, through a dependency on itself with the platform classifier. Running the new example is what turned this up: it is the first thing to consume the module the way an application would, rather than from inside its own build where the staging directory is already on the class path.
1 parent 2694ffc commit ddc4c4a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎webrtc-java-media/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@
136136
<artifactId>webrtc-java</artifactId>
137137
<version>${project.version}</version>
138138
</dependency>
139+
140+
<!-- The native library of this module and the FFmpeg libraries beside
141+
it, so that depending on this module brings what it needs to run.
142+
webrtc-java carries its own natives the same way. -->
143+
<dependency>
144+
<groupId>${project.groupId}</groupId>
145+
<artifactId>${project.artifactId}</artifactId>
146+
<version>${project.version}</version>
147+
<classifier>${platform.classifier}</classifier>
148+
</dependency>
139149
</dependencies>
140150

141151
<profiles>

0 commit comments

Comments
 (0)