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
The method of writevideo is not hard to push. When writeaudio is added to push, the video cannot be played
writeVideo方法推送视频没有生硬,加入writeAudio推送时视频无法播放
// type = 1,h264 video stream
Log.d("onEncodeResult", type + " " + length);
if (type == 1) {
rtmpUSB.writeVideo(data, offset, length, Integer.valueOf((int) timestamp));
// FileUtils.putFileStream(data, offset, length);
}
// type = 0,aac audio stream
if (type == 0) {
// rtmpUSB.writeAudio(data, offset, length, Integer.valueOf((int) timestamp));
}
The text was updated successfully, but these errors were encountered:
The method of writevideo is not hard to push. When writeaudio is added to push, the video cannot be played
writeVideo方法推送视频没有生硬,加入writeAudio推送时视频无法播放
// type = 1,h264 video stream
Log.d("onEncodeResult", type + " " + length);
if (type == 1) {
rtmpUSB.writeVideo(data, offset, length, Integer.valueOf((int) timestamp));
// FileUtils.putFileStream(data, offset, length);
}
// type = 0,aac audio stream
if (type == 0) {
// rtmpUSB.writeAudio(data, offset, length, Integer.valueOf((int) timestamp));
}
The text was updated successfully, but these errors were encountered: