Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Resolved video play not working in android

Discussion in 'Audio & Video' started by Arash_dh, Apr 11, 2021.

  1. Arash_dh

    Arash_dh

    Joined:
    Jul 13, 2020
    Posts:
    4
    hi I want to use video in my app, I use this method
    //Step 1: Add Video Clip to assets
    //Step 2: Create "Render Texture" in assets (Create-Render Texture)
    //Step 3: create "Video Player" in hierarchy (Video-Video Player)
    //Step 4: Create "Raw Image" as a child to your canvas (UI - Raw Image)
    //Step 5: Drag your Render Texture to the "texture" of your Raw Image
    //Step 6: Drag your Video Clip to the "video clip" of the video player
    //Step 7: Drag your Render Texture to the "target texture" of the Video Player
    and when I run works fine , but when I build app for android and test it, video it's not working, its mean to show me a black screen
     
  2. FaiyazOfficial

    FaiyazOfficial

    Joined:
    Mar 29, 2018
    Posts:
    5
    Did you fix it?