/
demoLiveStream.cs
50 lines (43 loc) · 1.33 KB
/
demoLiveStream.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Smobiler.Core;
using Smobiler.Core.Controls;
namespace Smobiler.Tutorials.Plugins
{
partial class demoLiveStream : Smobiler.Core.Controls.MobileForm
{
public demoLiveStream() : base()
{
//This call is required by the SmobilerForm.
InitializeComponent();
}
private void title1_ImagePress(object sender, EventArgs e)
{
this.Close();
}
private void btnfilter_Press(object sender, EventArgs e)
{
liveStream1.Filter = !liveStream1.Filter;
btnfilter.Text = "filter" + " " + liveStream1.Filter.ToString();
}
private void btnstartStreaming_Press(object sender, EventArgs e)
{
liveStream1.Play = false;
liveStream1.Play = true;
}
private void btnstopStreaming_Press(object sender, EventArgs e)
{
liveStream1.Play = false;
}
private void btnswapCamera_Press(object sender, EventArgs e)
{
liveStream1.SwapCamera = !liveStream1.SwapCamera;
}
private void liveStream1_OnChanged(object sender, Smobiler.Plugins.LiveStreamOnChangedEventArgs e)
{
Toast(e.State.ToString());
}
}
}