You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MediaPlayer.LaunchListener listener = new MediaPlayer.LaunchListener() {
@Override
public void onSuccess(MediaPlayer.MediaLaunchObject object) {
// save these object references to control media playback
1、我的投屏流地址rtmp://liteavapp.qcloud.com/live/liteavdemoplayerstreamid,用VLC播放正常
2、用Connect-SDK-Android投屏异常:Internal Server Error
3、我的测试代码如下
package com.connectsdk.sampler;
import android.app.AlertDialog;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.connectsdk.core.MediaInfo;
import com.connectsdk.device.ConnectableDevice;
import com.connectsdk.device.ConnectableDeviceListener;
import com.connectsdk.device.DevicePicker;
import com.connectsdk.discovery.CapabilityFilter;
import com.connectsdk.discovery.DiscoveryManager;
import com.connectsdk.discovery.DiscoveryManagerListener;
import com.connectsdk.service.DeviceService;
import com.connectsdk.service.capability.MediaControl;
import com.connectsdk.service.capability.MediaPlayer;
import com.connectsdk.service.capability.VolumeControl;
import com.connectsdk.service.command.ServiceCommandError;
import java.util.List;
public class TestActivity extends AppCompatActivity implements DiscoveryManagerListener, View.OnClickListener, ConnectableDeviceListener {
// Log.e("TestActivity", "onDeviceAdded");
}
// Log.e("TestActivity", "onDeviceUpdated");
}
// Log.e("TestActivity", "onDeviceRemoved");
}
// String mediaURL = "https://1251542705.vod2.myqcloud.com/4a8d9c67vodtransgzp1251542705/bc0f40875576678020645410808/v.f100820.mp4"; // credit: Blender Foundation/CC By 3.0
// String mediaURL = "http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8"; // credit: Blender Foundation/CC By 3.0
String mediaURL = "rtmp://liteavapp.qcloud.com/live/liteavdemoplayerstreamid"; // credit: Blender Foundation/CC By 3.0
String iconURL = "http://www.connectsdk.com/files/2013/9656/8845/test_image_icon.jpg"; // credit: sintel-durian.deviantart.com
String title = "Sintel Trailer";
String description = "Blender Open Movie Project";
String mimeType = "video/"; // audio/ for audio files
MediaInfo mediaInfo = new MediaInfo.Builder(mediaURL, mimeType)
.setTitle(title)
.setDescription(description)
.setIcon(iconURL)
.build();
// mLaunchSession = object.launchSession;
// mMediaControl = object.mediaControl;
}
The text was updated successfully, but these errors were encountered: