Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
target/generard-sources
target/generated-test-sources
target/maven-archiver
target/maven-status
target/surefire-reports
target/test-classes
.vscode
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# blastream-java-sdk

All URIs are relative to *https://api.v2.blastream.com/api-docs*
This is also where you can find all parameters related to params variable

### Examples
```java
String publicKey = "XXXXXXXXXXXXXX";
String privateKey = "YYYYYYYYYYYYY";

//Create a simulcast target
Instance instance = new Instance(publicKey, privateKey, "");
try {
Channel channel = instance.createOrGetChannel("ma-room-java", new JSONObject());
channel.createSimulcast("live-to-my-cdn", "rtmp://live.monsite.com/live", "stream-name", new JSONObject());
//you can delete it with channel.deleteSimulcast(simulcastId);
}
catch(Exception e) {
System.out.println(e.toString());
}

//Create or get a room with admin link
instance = new Instance(publicKey, privateKey, "");
try {
Channel channel = instance.createOrGetChannel("ma-room-java", new JSONObject());
String iframe = instance.getIframe("600", "400", new JSONObject());
System.out.println(iframe);
}
catch(Exception e) {
System.out.println(e.toString());
}

//Create or get a room with speaker link
instance = new Instance(publicKey, privateKey, "");
try {
Channel channel = instance.createOrGetChannel("ma-room-java", new JSONObject());
channel.createOrGetCollaborator("Speaker Name", "speaker", new JSONObject());
String iframeColab = channel.getIframe("600", "400", new JSONObject());
System.out.println(iframeColab);
}
catch(Exception e) {
System.out.println(e.toString());
}
```
55 changes: 55 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.blastream.sdk</groupId>
<artifactId>BlastreamJavaSdk</artifactId>
<packaging>jar</packaging>
<version>0.1</version>
<name>BlastreamJavaSdk</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <!-- Utilisez une version récente du plugin -->
<configuration>
<release>11</release> <!-- Configuration pour Java 11 -->
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.15</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.13</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</project>
9 changes: 9 additions & 0 deletions src/main/java/com/blastream/sdk/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.blastream.sdk;

public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
Loading