@byteplus/react-native-live-push 1.1.1-rc.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +11 -5
- package/lib/commonjs/index.js +1861 -5457
- package/lib/module/index.js +1861 -5457
- package/lib/typescript/codegen/android/errorcode.d.ts +11 -11
- package/lib/typescript/codegen/pack/errorcode.d.ts +11 -11
- package/lib/typescript/codegen/pack/keytype.d.ts +19 -19
- package/package.json +1 -1
|
@@ -31,7 +31,6 @@ public class VeLivePushView extends FrameLayout {
|
|
|
31
31
|
public void setViewId(String viewId) {
|
|
32
32
|
this.viewId = viewId;
|
|
33
33
|
this.hasRegister = true;
|
|
34
|
-
this.emitOnLoad();
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
public void setViewKind(String viewKind) {
|
|
@@ -43,10 +42,10 @@ public class VeLivePushView extends FrameLayout {
|
|
|
43
42
|
surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {
|
|
44
43
|
@Override
|
|
45
44
|
public void surfaceCreated(@NonNull SurfaceHolder holder) {
|
|
46
|
-
hasLoad = true;
|
|
47
45
|
subview = surfaceView;
|
|
48
46
|
VolcViewManager.putViewById(viewId, subview);
|
|
49
47
|
emitOnLoad();
|
|
48
|
+
hasLoad = true;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
@Override
|
|
@@ -67,9 +66,9 @@ public class VeLivePushView extends FrameLayout {
|
|
|
67
66
|
@Override
|
|
68
67
|
public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture,
|
|
69
68
|
int width, int height) {
|
|
70
|
-
hasLoad = true;
|
|
71
69
|
VolcViewManager.putViewById(viewId, subview);
|
|
72
70
|
emitOnLoad();
|
|
71
|
+
hasLoad = true;
|
|
73
72
|
}
|
|
74
73
|
@Override
|
|
75
74
|
public void onSurfaceTextureSizeChanged(
|
|
@@ -93,8 +92,15 @@ public class VeLivePushView extends FrameLayout {
|
|
|
93
92
|
public void resetSurface() {
|
|
94
93
|
if (subview instanceof SurfaceView) {
|
|
95
94
|
SurfaceView surface = (SurfaceView)subview;
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
post(new Runnable() {
|
|
96
|
+
@Override
|
|
97
|
+
public void run() {
|
|
98
|
+
removeView(surface);
|
|
99
|
+
addView(surface);
|
|
100
|
+
surface.requestLayout();
|
|
101
|
+
surface.invalidate();
|
|
102
|
+
}
|
|
103
|
+
});
|
|
98
104
|
}
|
|
99
105
|
}
|
|
100
106
|
|