diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /third_party/libwebrtc/examples/androidvoip/res | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/examples/androidvoip/res')
3 files changed, 327 insertions, 0 deletions
diff --git a/third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml b/third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml new file mode 100644 index 0000000000..c7fa5a9b31 --- /dev/null +++ b/third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml @@ -0,0 +1,303 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/scroll_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:focusable="true" + android:focusableInTouchMode="true" + tools:context="org.webrtc.examples.androidvoip.MainActivity"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="8dp"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="15dp" + android:text="@string/local_endpoint_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <!--Local IP Adress--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/ip_address_text_view" + android:textSize="16dp" /> + + <TextView + android:id="@+id/local_ip_address_text_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:layout_marginRight="15dp" + android:textSize="16dp" /> + + </LinearLayout> + + <!--Local Port Number--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/port_number_text_view" + android:textSize="16dp" /> + + <EditText + android:id="@+id/local_port_number_edit_text" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:layout_weight="1" + android:text="10000" + android:inputType="number" + android:textSize="16dp" /> + + </LinearLayout> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="30dp" + android:text="@string/remote_endpoint_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <!--Remote IP Adress--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/ip_address_text_view" + android:textSize="16dp" /> + + <EditText + android:id="@+id/remote_ip_address_edit_text" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginRight="15dp" + android:layout_weight="1" + android:inputType="number" + android:digits="0123456789." + android:textSize="16dp" /> + + </LinearLayout> + + <!--Remote Port Number--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/port_number_text_view" + android:textSize="16dp" /> + + <EditText + android:id="@+id/remote_port_number_edit_text" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:layout_weight="1" + android:text="10000" + android:inputType="number" + android:textSize="16dp" /> + + </LinearLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="30dp" + android:text="@string/encoder_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <Spinner + android:id="@+id/encoder_spinner" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="10dp"/> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_marginTop="20dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="25dp" + android:text="@string/decoder_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <Button + android:id="@+id/decoder_selection_button" + android:text="@string/decoder_selection_button" + style="?android:attr/buttonBarButtonStyle" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:layout_weight="1" /> + + </LinearLayout> + + + <TextView + android:id="@+id/decoders_text_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="15dp" + android:layout_marginBottom="30dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/decoders_text_view_default" + android:textSize="16dp" /> + + + <RelativeLayout + android:id="@+id/switch_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="15dp" + android:visibility="gone" > + + <View + android:id="@+id/divider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:layout_marginBottom="45dp" + android:background="@color/light_gray" /> + + <LinearLayout + android:id="@+id/start_send_switch_layout" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical" + android:layout_below="@id/divider" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="15dp" + android:gravity="left" + android:layout_weight="1" + android:text="@string/start_send_text_view" + android:textSize="16dp" /> + + <Switch + android:id="@+id/start_send_switch" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:gravity="right" + android:layout_weight="1" /> + + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical" + android:layout_below="@id/start_send_switch_layout"> + + <TextView + android:id="@+id/start_playout_text_view" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="15dp" + android:gravity="left" + android:layout_weight="1" + android:text="@string/start_playout_text_view" + android:textSize="16dp" /> + + <Switch + android:id="@+id/start_playout_switch" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:gravity="right" + android:layout_weight="1" /> + + </LinearLayout> + + </RelativeLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:orientation="vertical" > + + <ToggleButton + android:id="@+id/session_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:textOff="@string/session_button_text_off" + android:textOn="@string/session_button_text_on" + style="?android:attr/buttonStyle" /> + + </LinearLayout> + + </LinearLayout> + +</ScrollView> diff --git a/third_party/libwebrtc/examples/androidvoip/res/values/colors.xml b/third_party/libwebrtc/examples/androidvoip/res/values/colors.xml new file mode 100644 index 0000000000..4dadaa9941 --- /dev/null +++ b/third_party/libwebrtc/examples/androidvoip/res/values/colors.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="almost_black">#484848</color> + <color name="light_gray">#D3D3D3</color> +</resources>
\ No newline at end of file diff --git a/third_party/libwebrtc/examples/androidvoip/res/values/strings.xml b/third_party/libwebrtc/examples/androidvoip/res/values/strings.xml new file mode 100644 index 0000000000..d519bfbbb6 --- /dev/null +++ b/third_party/libwebrtc/examples/androidvoip/res/values/strings.xml @@ -0,0 +1,19 @@ +<resources> + <string name="app_name">androidvoip</string> + <string name="local_endpoint_text_view">Local Endpoint</string> + <string name="remote_endpoint_text_view">Remote Endpoint</string> + <string name="ip_address_text_view">IP Address:</string> + <string name="port_number_text_view">Port Number:</string> + <string name="encoder_text_view">Select Encoder</string> + <string name="decoder_text_view">Select Decoder</string> + <string name="decoder_selection_button">Configure Selection</string> + <string name="decoders_text_view_default">No decoders selected</string> + <string name="dialog_title">Choose Decoders</string> + <string name="ok_label">Ok</string> + <string name="dismiss_label">Dismiss</string> + <string name="clear_all_label">Clear All</string> + <string name="start_send_text_view">Start Sending</string> + <string name="start_playout_text_view">Start Playout</string> + <string name="session_button_text_off">Start Session</string> + <string name="session_button_text_on">Stop Session</string> +</resources> |