Former-commit-id: 609605a8a68ce176a471903cbf2b2002ff5b7d9b
TangShanKaiPing
wanggang 6 years ago
parent 21fd4f5efc
commit ccae59d1f2

@ -310,6 +310,7 @@
<Compile Include="Assets\OpenCVForUnity\org\opencv_contrib\xphoto\TonemapDurand.cs" />
<Compile Include="Assets\OpenCVForUnity\org\opencv_contrib\xphoto\WhiteBalancer.cs" />
<Compile Include="Assets\OpenCVForUnity\org\opencv_contrib\xphoto\Xphoto.cs" />
<Compile Include="Assets\Scripts\ButtonPress.cs" />
<Compile Include="Assets\Scripts\FaceDetectionController.cs" />
<Compile Include="Assets\Scripts\LoginResult.cs" />
<Compile Include="Assets\Scripts\VlcPlayerController.cs" />

@ -148,9 +148,9 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -50, y: -30}
m_SizeDelta: {x: 50, y: 30}
m_Pivot: {x: 0, y: 0}
m_AnchoredPosition: {x: -60, y: -30}
m_SizeDelta: {x: 120, y: 60}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &197350178
MonoBehaviour:
m_ObjectHideFlags: 0
@ -198,7 +198,7 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
- m_Target: {fileID: 625678229}
m_MethodName: set_Volume
m_Mode: 0
m_Arguments:
@ -421,10 +421,10 @@ RectTransform:
m_Father: {fileID: 1627962635}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 10, y: -10}
m_SizeDelta: {x: 15, y: 15}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 30, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &680623244
MonoBehaviour:
@ -925,8 +925,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 60, y: -40}
m_SizeDelta: {x: 120, y: 80}
m_AnchoredPosition: {x: 60, y: -30}
m_SizeDelta: {x: 120, y: 60}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1161814043
MonoBehaviour:
@ -1512,8 +1512,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -65, y: -15}
m_SizeDelta: {x: 15, y: 15}
m_AnchoredPosition: {x: -160, y: -30}
m_SizeDelta: {x: 60, y: 60}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1627962636
MonoBehaviour:
@ -1558,7 +1558,7 @@ MonoBehaviour:
onValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
- m_Target: {fileID: 625678229}
m_MethodName: set_Mute
m_Mode: 0
m_Arguments:

@ -0,0 +1,26 @@
using UnityEngine;
using UnityEngine.EventSystems;
public class ButtonPress : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
public void OnPointerDown(PointerEventData eventData)
{
this.Move(eventData.button.ToString(), true);
}
public void OnPointerUp(PointerEventData eventData)
{
this.Move(eventData.button.ToString(), false);
}
private void Move(string action, bool start)
{
//var baseUrl = PlayerPrefs
if (start)
{
}
else
{
}
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b3ae04fed039aa14a899d2ab7c583abf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

@ -1,19 +1,34 @@
using UMP;
using System;
using UMP;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class VlcPlayerController : MonoBehaviour, IPointerClickHandler
{
public UniversalMediaPlayer player;
public Canvas controlCanvas;
private void Start()
{
this.controlCanvas.enabled = false;
var buttons = controlCanvas.GetComponents<Button>();
foreach (var button in buttons)
{
//button.onClick.AddListener
}
//player.Path = "http://49.4.92.112:8080/live/ec352fafdaed11b584c2f84dfc5f0e6f.flv";
player.Path = "http://clips.vorwaerts-gmbh.de/VfE_html5.mp4";
player.Play();
}
private Action<PointerEventData> OnPointerDown(PointerEventData eventData)
{
throw new NotImplementedException();
}
public void OnPointerClick(PointerEventData eventData)
{
this.controlCanvas.enabled = !this.controlCanvas.enabled;
}
}
Loading…
Cancel
Save