File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
src/main/java/dev/onvoid/webrtc/internal Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
<artifactId >webrtc-java</artifactId >
12
12
13
+ <build >
14
+ <plugins >
15
+ <plugin >
16
+ <groupId >org.apache.maven.plugins</groupId >
17
+ <artifactId >maven-surefire-plugin</artifactId >
18
+ <configuration >
19
+ <argLine >
20
+ --add-opens webrtc.java/dev.onvoid.webrtc=ALL-UNNAMED
21
+ --add-opens webrtc.java/dev.onvoid.webrtc.logging=ALL-UNNAMED
22
+ --add-opens webrtc.java/dev.onvoid.webrtc.media=ALL-UNNAMED
23
+ --add-opens webrtc.java/dev.onvoid.webrtc.media.audio=ALL-UNNAMED
24
+ --add-opens webrtc.java/dev.onvoid.webrtc.media.video=ALL-UNNAMED
25
+ </argLine >
26
+ <forkCount >2</forkCount >
27
+ </configuration >
28
+ </plugin >
29
+ </plugins >
30
+ </build >
31
+
13
32
<profiles >
14
33
<profile >
15
34
<id >linux-x86_64</id >
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public static void loadLibrary(final String libName) throws Exception {
58
58
Path tempPath = Files .createTempFile (tempName , ext );
59
59
File tempFile = tempPath .toFile ();
60
60
61
- try (InputStream is = NativeLoader .class .getResourceAsStream ("/" + libFileName )) {
61
+ try (InputStream is = NativeLoader .class .getClassLoader (). getResourceAsStream (libFileName )) {
62
62
Files .copy (is , tempPath , StandardCopyOption .REPLACE_EXISTING );
63
63
}
64
64
catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments