June 2017
Beginner to intermediate
336 pages
8h 44m
English
Now we have video ingestion, and the streaming channel is in place. The next step is to consume this live streaming within the holographic application. To do that, you can follow this code snippet:
public class LiveStreaming : MonoBehaviour { public WWW webObject; public string videoUrl = " http://[mediaservicesaccount].streaming.mediaservices. windows.net/[....].ism/manifest "; public GUITexture guiTexture; //On Start, create WWW object and link it with Steaming URL void Start() { webObject = new WWW(videoUrl); guiTexture = GetComponent<GUITexture>(); guiTexture.texture = webObject.movie; } //On Update, update movie texture and play void Update() { MovieTexture movieObject = guiTexture.texture ...Read now
Unlock full access