Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

VideoPlayBack WP8 Path Issue [Solved]

Discussion in 'Windows' started by MrEsquire, Dec 2, 2014.

  1. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Hi all,

    I been using a 3rd party plugin to try and play video for WP8, only plugin I can find on net and free:
    https://github.com/felixrieseberg/Unity-WinRT-WP8-PlayMovieNatively

    For WP8 I can play a video from a server on the net, this is working but not what I need.
    I wish to play the video directly from the Asset folder or streaming Asset folder.
    I tried many ways but nothing happens when I play on Windows Phone, I know it either cannot be done or the path to the video Tut1.mp4 is wrong.


    Code (CSharp):
    1. #if UNITY_WP8
    2.  
    3.         WinControlsWP8.VideoPlayback.PlayVideoFullscreen("ms-appx:///Assets/Tut1.mp4", true);
    4.  
    5.         #endif

    Can anyone help me with WP8 filepaths

    Thank you.
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,658
    MrEsquire likes this.
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Thomas your my hero, I did try this but not the correct way, wrote this wrong before.
    Works perfectly now.
     
  4. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712