-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple stream #9
Comments
Hello, |
have some example in viblast source how to do I'm lost in this part. EX: public class MainActivity extends Activity {
// if you want to see Viblast logs:
|
You can try with something like this:
|
Error:(26, 3) error: cannot find symbol variable viblastView1
Error:(30, 3) error: cannot find symbol variable viblastView2
Error:(28, 3) error: cannot find symbol variable viblastPlayer1
Error:(26, 48) error: cannot find symbol variable viblast_view1
Error:(28, 38) error: cannot find symbol variable viblastView1
Error:(30, 48) error: cannot find symbol variable viblast_view2
Error:(32, 3) error: cannot find symbol variable viblastPlayer2
Error:(32, 38) error: cannot find symbol variable viblastView2
Error:Execution failed for task ':PlayerDemo:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
C:\Users\gamer\Downloads\android-pdn-sdk-master
(1)\android-pdn-sdk-master\VBPlayerDemo\PlayerDemo\src\main\java\com\viblast\android\vbplayerdemo\MainActivity.java
Information:9 errors
Information:BUILD FAILED in 1s
package com.viblast.android.vbplayerdemo;
import android.app.Activity;
import android.os.Bundle;
import com.viblast.android.ViblastConfig;
import com.viblast.android.ViblastPlayer;
import com.viblast.android.ViblastView;
public class MainActivity extends Activity {
private ViblastPlayer viblastPlayer;
private ViblastView viblastView;
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
viblastView = (ViblastView)findViewById(R.id.viblast_view);
final ViblastConfig vbConfig = new ViblastConfig();
// start faster, using the lowest resolution:
vbConfig.advancedConfig.put("initial-abr-index", "0");
vbConfig.setCdnStream("https://nimble.viblast.com:8081/live/high/playlist.m3u8");
viblastView1 = (ViblastView)findViewById(R.id.viblast_view1);
vbConfig.setCdnStream("http://url/port/index1.m3u8");
viblastPlayer1 = new ViblastPlayer(viblastView1, vbConfig);
viblastView2 = (ViblastView)findViewById(R.id.viblast_view2);
vbConfig.setCdnStream("http://url/port/index2.m3u8");
viblastPlayer2 = new ViblastPlayer(viblastView2, vbConfig);
vbConfig.advancedConfig.put("enable-pdn", "true");
vbConfig.advancedConfig.put("enable-realtime-loggger", "true");
vbConfig.advancedConfig.put("realtime-logger-server",
"wss://cs.viblast.com/rt");
vbConfig.advancedConfig.put("key",
"200057d28abdc9fb593eb654629f2f03c14fac9c5fc0825c899bd6095ad7a8de5f83d52297310d340876edc852425419de9630208b8476a4307ad1082f80f033c8ffb5d5100fdf126e25ff7c77759cf1");
// if you want to see Viblast logs:
// vbConfig.advancedConfig.put("log", "verbose");
viblastPlayer = new ViblastPlayer(viblastView, vbConfig);
}
@OverRide
protected void onStart() {
super.onStart();
viblastPlayer.start();
}
@OverRide
protected void onStop() {
viblastPlayer.release();
super.onStop();
}
}
2017-10-25 17:39 GMT-02:00 ivan-petrov <[email protected]>:
… You can try with something like this:
...
final ViblastConfig vbConfig = new ViblastConfig();
// start faster, using the lowest resolution:
vbConfig.advancedConfig.put("initial-abr-index", "0");
vbConfig.setCdnStream("http://url/port/index.m3u8");
vbConfig.advancedConfig.put("enable-pdn", "true");
vbConfig.advancedConfig.put("enable-realtime-loggger", "true");
vbConfig.advancedConfig.put("realtime-logger-server", "wss://cs.viblast.com/rt");
vbConfig.advancedConfig.put("key", "f87aa9ad-113a-4435-bb27-db4c7c2d9ace");
viblastView1 = (ViblastView)findViewById(R.id.viblast_view1);
vbConfig.setCdnStream("http://url/port/index1.m3u8");
viblastPlayer1 = new ViblastPlayer(viblastView1, vbConfig);
viblastView2 = (ViblastView)findViewById(R.id.viblast_view2);
vbConfig.setCdnStream("http://url/port/index2.m3u8");
viblastPlayer2 = new ViblastPlayer(viblastView2, vbConfig);
//etc...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUHKfBH1dWRI5MBeJVuEVGl2BoW3syoqks5sv450gaJpZM4QBB5l>
.
|
The code above is "pseudo". You have to define the additional resources and instances needed by your app. With the demo application only one view and single player instance is supported. |
ok but I do not know how to program, I wanted to test with a 3 channels to
see how the system is, but I thank you for your help thank you very much
2017-10-26 4:49 GMT-02:00 ivan-petrov <[email protected]>:
… The code above is "pseudo". You have to define the additional resources
and instances needed by your app. With the demo application only one view
and single player instance is supported.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUHKfJKmiLSx0uK32rXIHC9mvOqylIDSks5swCuRgaJpZM4QBB5l>
.
|
Ik |
I'm testing the system but I'm in doubt as I make the player run more than one stream I want to test it with 5 stream could give me a hint: ???
The text was updated successfully, but these errors were encountered: