1 <?xml version="1.0" encoding="utf-8"?>
\r
2 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
\r
3 xmlns:app="http://schemas.android.com/apk/res-auto"
\r
4 xmlns:tools="http://schemas.android.com/tools"
\r
5 android:id="@+id/layout"
\r
6 android:layout_width="match_parent"
\r
7 android:layout_height="match_parent"
\r
8 android:gravity="center_vertical">
\r
12 android:id="@+id/input"
\r
13 android:layout_width="0dp"
\r
14 android:layout_height="0dp"
\r
15 android:stretchColumns="1"
\r
16 app:layout_constraintBottom_toTopOf="@+id/controls"
\r
17 app:layout_constraintEnd_toEndOf="parent"
\r
18 app:layout_constraintStart_toStartOf="parent"
\r
19 app:layout_constraintTop_toTopOf="parent"
\r
20 app:layout_constraintVertical_bias="1.0"
\r
21 app:layout_constraintVertical_chainStyle="spread_inside">
\r
24 android:layout_width="match_parent"
\r
25 android:layout_height="match_parent">
\r
28 android:id="@+id/URL"
\r
29 android:layout_width="wrap_content"
\r
30 android:layout_height="wrap_content"
\r
31 android:layout_gravity="right|center_vertical"
\r
32 android:padding="8dp"
\r
33 android:text="URL" />
\r
36 android:id="@+id/URLText"
\r
37 android:layout_width="wrap_content"
\r
38 android:layout_height="wrap_content"
\r
39 android:layout_margin="8dp"
\r
40 android:inputType="textUri"
\r
41 android:text="wss://webrtc.nirbheek.in:8443" />
\r
45 android:layout_width="match_parent"
\r
46 android:layout_height="match_parent">
\r
49 android:id="@+id/ID"
\r
50 android:layout_width="wrap_content"
\r
51 android:layout_height="wrap_content"
\r
52 android:layout_gravity="right|center_vertical"
\r
53 android:padding="8dp"
\r
54 android:text="ID" />
\r
57 android:id="@+id/IDText"
\r
58 android:layout_width="match_parent"
\r
59 android:layout_height="wrap_content"
\r
60 android:layout_margin="8dp"
\r
61 android:inputType="number"
\r
62 android:text="ID" />
\r
68 <android.support.constraint.ConstraintLayout
\r
69 android:id="@+id/controls"
\r
70 android:layout_width="0dp"
\r
71 android:layout_height="wrap_content"
\r
72 app:layout_constraintBottom_toTopOf="@id/surface_video"
\r
73 app:layout_constraintEnd_toEndOf="parent"
\r
74 app:layout_constraintHorizontal_bias="0.0"
\r
75 app:layout_constraintStart_toStartOf="parent"
\r
76 app:layout_constraintTop_toBottomOf="@id/input">
\r
79 android:id="@+id/button_play"
\r
80 android:layout_width="wrap_content"
\r
81 android:layout_height="wrap_content"
\r
82 android:layout_marginStart="8dp"
\r
83 android:contentDescription="@string/button_play"
\r
84 android:src="@android:drawable/ic_media_play"
\r
85 android:text="@string/button_play"
\r
86 app:layout_constraintBottom_toBottomOf="parent"
\r
87 app:layout_constraintEnd_toStartOf="@+id/button_pause"
\r
88 app:layout_constraintHorizontal_chainStyle="packed"
\r
89 app:layout_constraintStart_toStartOf="parent" />
\r
92 android:id="@+id/button_pause"
\r
93 android:layout_width="wrap_content"
\r
94 android:layout_height="wrap_content"
\r
95 android:layout_marginEnd="2dp"
\r
96 android:contentDescription="@string/button_pause"
\r
97 android:src="@android:drawable/ic_media_pause"
\r
98 android:text="@string/button_pause"
\r
99 app:layout_constraintEnd_toEndOf="parent"
\r
100 app:layout_constraintStart_toEndOf="@+id/button_play"
\r
101 app:layout_constraintTop_toTopOf="@+id/button_play" />
\r
103 </android.support.constraint.ConstraintLayout>
\r
106 <org.freedesktop.gstreamer.webrtc.GStreamerSurfaceView
\r
107 android:id="@+id/surface_video"
\r
108 android:layout_width="wrap_content"
\r
109 android:layout_height="wrap_content"
\r
110 android:layout_marginTop="8dp"
\r
111 app:layout_constraintBottom_toBottomOf="parent"
\r
112 app:layout_constraintEnd_toStartOf="parent"
\r
113 app:layout_constraintStart_toStartOf="parent"
\r
114 app:layout_constraintTop_toBottomOf="@id/controls"
\r
115 app:layout_constraintVertical_bias="1.0" />
\r
117 <android.support.constraint.Guideline
\r
118 android:id="@+id/guideline"
\r
119 android:layout_width="wrap_content"
\r
120 android:layout_height="wrap_content"
\r
121 android:orientation="vertical"
\r
122 app:layout_constraintGuide_begin="50dp" />
\r
124 </android.support.constraint.ConstraintLayout>
\r