Compare commits
2 Commits
6a650a282b
...
87ade75f1d
| Author | SHA1 | Date | |
|---|---|---|---|
| 87ade75f1d | |||
| 798652cb4d |
@@ -32,12 +32,7 @@ public partial class MainPage : ContentPage
|
|||||||
KeyStorage.SavePublicKey(_username, keys.publicKey);
|
KeyStorage.SavePublicKey(_username, keys.publicKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
hybridWebView.SetInvokeJavaScriptTarget(this);
|
|
||||||
// hybridWebView.SetInvokeJavaScriptTarget(new RtcBridgeService());
|
|
||||||
//TODO: Need to not have parameters in constructor, protected flags on vars instead of private should make everything accessible
|
|
||||||
|
|
||||||
ServerAPI.setupClient();
|
ServerAPI.setupClient();
|
||||||
|
|
||||||
|
|
||||||
_socket = new RelaySocketClient(_username);
|
_socket = new RelaySocketClient(_username);
|
||||||
_rtc = new RtcBridgeService(
|
_rtc = new RtcBridgeService(
|
||||||
@@ -47,6 +42,8 @@ public partial class MainPage : ContentPage
|
|||||||
() => _currentChannelId,
|
() => _currentChannelId,
|
||||||
SafeSendRawToWebView
|
SafeSendRawToWebView
|
||||||
);
|
);
|
||||||
|
|
||||||
|
hybridWebView.SetInvokeJavaScriptTarget(_rtc);
|
||||||
|
|
||||||
_socket.Log += Console.WriteLine;
|
_socket.Log += Console.WriteLine;
|
||||||
_socket.ChannelListReceived += HandleChannelList;
|
_socket.ChannelListReceived += HandleChannelList;
|
||||||
@@ -300,26 +297,6 @@ public partial class MainPage : ContentPage
|
|||||||
{
|
{
|
||||||
SwapView();
|
SwapView();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task JoinRtcChannel()
|
|
||||||
{
|
|
||||||
return _rtc.JoinRtcChannel();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void LeaveRtcChannel()
|
|
||||||
{
|
|
||||||
_rtc.LeaveRtcChannel();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SendRtcSignal(string json)
|
|
||||||
{
|
|
||||||
_rtc.SendRtcSignal(json);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Task<string> GetRtcParticipants()
|
|
||||||
{
|
|
||||||
return _rtc.GetRtcParticipants();
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void OnHybridWebViewRawMessageReceived(object sender, HybridWebViewRawMessageReceivedEventArgs e)
|
private async void OnHybridWebViewRawMessageReceived(object sender, HybridWebViewRawMessageReceivedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user