Commit a2c03383 authored by DANDOCON's avatar DANDOCON

Visualizando video

parent 517bbb73
......@@ -49,9 +49,9 @@ public class GestorMenuInteractivo : MonoBehaviour
//iconosClima[0] = "Sol"
//iconosClima[1] = "Sol y lluvia"
//iconosClima[2] = "Lluvia"
private GameObject quadVideo; //GameObject para administrar la reproducción de videos publicitarios de la pantalla principal
private GameObject rawImageVideo; //GameObject para administrar la reproducción de videos publicitarios de la pantalla principal
private GameObject TextTituloVideoOferta; //GameObject para visualizar los titulos de un video de oferta que se encuentre reproduciendo
private GameObject quadVideoOfertas; //GameObject para administrar la reproducción de videos de ofertas académicas
private GameObject rawImageVideoOfertas; //GameObject para administrar la reproducción de videos de ofertas académicas
private GameObject ButtonVolverOfertaAcademica; //GameObject que contiene el boton volver de la pantalla de reproducción de un video de oferta
private RectTransform rectTransformContenedorPaneles;//El panel que cotiene todos los paneles
private Vector3 vector3VizualizarMenu; //Vermite hacer la transicion de pantallas
......@@ -92,11 +92,11 @@ public class GestorMenuInteractivo : MonoBehaviour
contenedorPaginacion = GameObject.Find("ContenedorPaginacion").transform; //Referencio al contenedor de la paginacion
PanelLoading = GameObject.Find("PanelLoading"); //Referencio al preload de informacion de los Observatorios
PanelLoading.SetActive(false);//Oculto el panel loading
quadVideo = GameObject.Find("QuadVideo"); //Referencio al reproductor de video de videos de pantalla inicial
rawImageVideo = GameObject.Find("RawImageVideo"); //Referencio al reproductor de video de videos de pantalla inicial
ButtonVolverOfertaAcademica = GameObject.Find("ButtonVolverOfertaAcademica");//Referencio el boton de volver que se encuentra en el panel del reproductor del video de ofertas
TextTituloVideoOferta = GameObject.Find("TextTituloVideoOferta"); //Referencio el texto que visualizara el titulo del video de oferta que se encuentra actualmente reproduciendose
quadVideoOfertas = GameObject.Find("QuadVideoOferta"); //Referencio al reproductor de video de oferta
quadVideoOfertas.SetActive(false);
rawImageVideoOfertas = GameObject.Find("RawImageVideoOferta"); //Referencio al reproductor de video de oferta
rawImageVideoOfertas.SetActive(false);
var dataApi = JSON.Parse(Manager.instancia.dataApiPrincipal);//Obtengo en un json los datos de la primera api
fechaActual = dataApi["configuracion_pantalla"]["fecha"]; //Obtengo la fecha actual que me envia la api
//=========Inicio de descarga del logo del app y le asigno en cada logo del menu correspondiente ===========
......@@ -171,7 +171,7 @@ public class GestorMenuInteractivo : MonoBehaviour
arryListVideos.Add("FECHA_INI_NA, HORA_INI_NA, FECHA_FIN_NA, HORA_FIN_NA, https://www.youtube.com/watch?v=p3qtKmNoyb4");
}
string auxUrl= ((string) arryListVideos[0]).Split(',')[4];
quadVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().Prepare(auxUrl);//Se le pasa el url del video que se desea reproducir
rawImageVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().Prepare(auxUrl);//Se le pasa el url del video que se desea reproducir
//Lleno el panel que contiene la lista de observatorios
foreach (JSONNode item in dataApi["observatorios"].AsArray)
{
......@@ -265,8 +265,8 @@ public class GestorMenuInteractivo : MonoBehaviour
void ReproducirVideoTitulacion(string nombre, string url){
contarTime=false;
TextTituloVideoOferta.GetComponent<Text>().text = nombre;
quadVideoOfertas.SetActive(true);
quadVideoOfertas.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().Prepare(url);
rawImageVideoOfertas.SetActive(true);
rawImageVideoOfertas.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().Prepare(url);
estadoBotonVolverVideoTitulacion(false);
NavegacionMenus(4);
}
......@@ -314,7 +314,7 @@ public class GestorMenuInteractivo : MonoBehaviour
public void VerListaObservatorios(){
fuenteAudios.clip = audioBoton[0];
fuenteAudios.Play();
quadVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().PauseVideo();
rawImageVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().PauseVideo();
contarTime=true;
NavegacionMenus (1);
......@@ -322,10 +322,10 @@ public class GestorMenuInteractivo : MonoBehaviour
//Metodo para el evento ofertas del panel de inicio
public void VerListaOfertas(){
quadVideoOfertas.SetActive(false);
rawImageVideoOfertas.SetActive(false);
fuenteAudios.clip = audioBoton[0];
fuenteAudios.Play();
quadVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().PauseVideo();
rawImageVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().PauseVideo();
contarTime=true;
CargarVideosOferta();
NavegacionMenus (3);
......@@ -363,7 +363,7 @@ public class GestorMenuInteractivo : MonoBehaviour
public void InicioClick(){
fuenteAudios.clip = audioBoton[0];
fuenteAudios.Play();
quadVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().PlayVideo();
rawImageVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().PlayVideo();
contarTime=false;
NavegacionMenus (0);
}
......@@ -741,7 +741,7 @@ public class GestorMenuInteractivo : MonoBehaviour
}
else
{
quadVideo.SetActive(false);
rawImageVideo.SetActive(false);
Manager.instancia.dataApiPrincipal = www.downloadHandler.text;
arryListVideos.RemoveRange(0,arryListVideos.Count);//Limpio el array
var dataApi = JSON.Parse(Manager.instancia.dataApiPrincipal);//Obtengo en un json los datos de la primera api
......@@ -783,9 +783,9 @@ public class GestorMenuInteractivo : MonoBehaviour
arryListVideos.Add("FECHA_INI_NA, HORA_INI_NA, FECHA_FIN_NA, HORA_FIN_NA, https://www.youtube.com/watch?v=_PrNnXyR-Ho");
arryListVideos.Add("FECHA_INI_NA, HORA_INI_NA, FECHA_FIN_NA, HORA_FIN_NA, https://www.youtube.com/watch?v=ZbI4lHBSrqo");
}
quadVideo.SetActive(true);
rawImageVideo.SetActive(true);
string auxUrl= ((string) arryListVideos[0]).Split(',')[4];
quadVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().Prepare(auxUrl);
rawImageVideo.transform.GetChild(0).GetComponent<YoutubePlayer.VideoControl>().Prepare(auxUrl);
}
}
......
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4277610628915866103
--- !u!1 &3743264997462550164
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
......@@ -8,114 +8,10 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4277610628915866102}
- component: {fileID: 4277610628915866107}
- component: {fileID: 4277610628915866100}
- component: {fileID: 4277610628915866101}
m_Layer: 5
m_Name: QuadVideo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4277610628915866102
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610628915866103}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4277610629519659101}
m_Father: {fileID: 0}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
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: 1000, y: 580}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!33 &4277610628915866107
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610628915866103}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &4277610628915866100
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610628915866103}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 8392fd35f2a32f99caab895aaf92f44f, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &4277610628915866101
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610628915866103}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &4277610629519659102
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4277610629519659101}
- component: {fileID: 4277610629519659100}
- component: {fileID: 2053785669785787561}
- component: {fileID: 6876473957961132044}
- component: {fileID: 1322725434530407153}
- component: {fileID: 7649059407032364247}
- component: {fileID: 6812565949336924456}
- component: {fileID: 3928741611130995517}
m_Layer: 5
m_Name: Video Player
m_TagString: Untagged
......@@ -123,19 +19,19 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4277610629519659101
--- !u!224 &1322725434530407153
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610629519659102}
m_GameObject: {fileID: 3743264997462550164}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4277610628915866102}
m_Father: {fileID: 6727684956562370816}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
......@@ -143,13 +39,13 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!328 &4277610629519659100
--- !u!328 &7649059407032364247
VideoPlayer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610629519659102}
m_GameObject: {fileID: 3743264997462550164}
m_Enabled: 1
m_VideoClip: {fileID: 0}
m_TargetCameraAlpha: 1
......@@ -178,13 +74,13 @@ VideoPlayer:
m_WaitForFirstFrame: 1
m_FrameReadyEventEnabled: 0
m_VideoShaders: []
--- !u!114 &2053785669785787561
--- !u!114 &6812565949336924456
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610629519659102}
m_GameObject: {fileID: 3743264997462550164}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3768fe280903842fdaa2a016022624f1, type: 3}
......@@ -193,18 +89,91 @@ MonoBehaviour:
youtubeUrl:
is360Video: 0
cli: 1
--- !u!114 &6876473957961132044
--- !u!114 &3928741611130995517
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4277610629519659102}
m_GameObject: {fileID: 3743264997462550164}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 151e4485c1b7a7e509b19e8f06b278dd, type: 3}
m_Name:
m_EditorClassIdentifier:
youtubePlayer: {fileID: 2053785669785787561}
BackgroundVideo: {fileID: 0}
EfectLoad: {fileID: 0}
--- !u!1 &9046487188941570926
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6727684956562370816}
- component: {fileID: 2101000093064681419}
- component: {fileID: 5552026318948155797}
m_Layer: 5
m_Name: RawImageVideo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6727684956562370816
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9046487188941570926}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1322725434530407153}
m_Father: {fileID: 0}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
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: 1000, y: 580}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2101000093064681419
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9046487188941570926}
m_CullTransparentMesh: 1
--- !u!114 &5552026318948155797
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9046487188941570926}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 8400000, guid: e75c1f92955f6bba0b81bd01804b585c, type: 2}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
fileFormatVersion: 2
guid: 72e463bd7e5dd770ab66790d9bf809e3
guid: 0045b428b41224b18be6c19711162294
PrefabImporter:
externalObjects: {}
userData:
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
{
"process_id" : 50210,
"version" : "2022.1.22f1",
"app_path" : "/home/rolando/Unity/Hub/Editor/2022.1.22f1/Editor/Unity",
"app_contents_path" : "/home/rolando/Unity/Hub/Editor/2022.1.22f1/Editor/Data"
}
\ No newline at end of file
{"m_ScrollY":0.0,"m_ExpandedSceneGameObjectInstanceIDs":[],"m_LastClickedInstanceID":0,"m_OpenSceneGUIDs":[]}
\ No newline at end of file
{"m_ScrollY":0.0,"m_ExpandedSceneGameObjectInstanceIDs":[-1600,-1238,25908,26010,26100,26126,26188],"m_LastClickedInstanceID":-5394,"m_OpenSceneGUIDs":["802c306a2e0fa8d4f87d3cdfbaedc189"]}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Base path: '/home/rolando/Unity/Hub/Editor/2022.1.22f1/Editor/Data', plugins path '/home/rolando/Unity/Hub/Editor/2022.1.22f1/Editor/Data/PlaybackEngines'
Cmd: initializeCompiler
Unhandled exception: Protocol error - failed to read magic number (error -2147483644, transferred 0/4)
Quitting shader compiler process
......@@ -12,10 +12,10 @@ EditorUserSettings:
value: 00530c5706030b5d540a5c701175084146161e79797c77687f784c30b2e5656d
flags: 0
RecentlyUsedSceneGuid-2:
value: 5b01060556055f5a5f0b5c24117b5b44104f4f2e7f2b22362f281837e1b16c61
value: 0652025353540b0b5d5f0e2445775e44434f4a297d2b2032282f4467b3b96c6c
flags: 0
RecentlyUsedSceneGuid-3:
value: 0652025353540b0b5d5f0e2445775e44434f4a297d2b2032282f4467b3b96c6c
value: 5b01060556055f5a5f0b5c24117b5b44104f4f2e7f2b22362f281837e1b16c61
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment