Search Unity

Video VideoClip load from assetbundle in android is error

Discussion in 'Audio & Video' started by BoboShu, May 19, 2017.

  1. BoboShu

    BoboShu

    Joined:
    Nov 20, 2014
    Posts:
    38
    android log :

    05-19 16:27:57.157: E/FileSource(15336): Failed to open file 'archive:/CAB-da7e5cc2578a42415407da10d8bd2923/CAB-da7e5cc2578a42415407da10d8bd2923.resource'. (No such file or directory)

    05-19 16:27:57.157: E/NdkMediaExtractor(15336): sf error code: -2

    windows log :

    WindowsVideoMedia error 0xc00d36c3 while reading archive:/CAB-da7e5cc2578a42415407da10d8bd2923/CAB-da7e5cc2578a42415407da10d8bd2923.resource
    Context: MFCreateSourceReaderFromURL
    Error details: The scheme of the given URL is unsupported.
    Track types:
    Can't play movie []

    other :
    http://stackoverflow.com/questions/...y-videoplayer-and-videoclip-api-to-play-video
    https://www.google.com.hk/#newwindow=1&safe=off&q=unity+videoplayer+android+assetbundle
    http://answers.unity3d.com/questions/1342610/problem-with-assetbundles-and-streamingassets-in-a.html
     
  2. Desoxi

    Desoxi

    Joined:
    Apr 12, 2015
    Posts:
    195
    Did you find a solution to this? Found several other posts from other people having the exact same issue.
    My log is nearly the same:

    AndroidPlayer(ADB@127.0.0.1:34999)</i> AndroidVideoMedia OpenExtractor unable to open archive:/CAB-14baa5416d7d039303ccd3f472c5d1c1/CAB-14baa5416d7d039303ccd3f472c5d1c1.resource, error: 2
    UnityEngine.Video.VideoPlayer:INTERNAL_CALL_Prepare(VideoPlayer)
    UnityEngine.Video.VideoPlayer:prepare() (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/modules/Video/VideoPlayerBindings.gen.cs:175)
    VideoPlayerController:playVideo(String, Action, Action`1, Boolean) (at C:\Assets\Scripts\Controller\VideoPlayerController.cs:259)
    <LoadAssetBundleCoroutine>c__Iterator0:MoveNext() (at C:\Assets\Controller\VideoPlayerController.cs:203)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

    [./PlatformDependent/AndroidPlayer/Modules/Video/Private/AndroidVideoMedia.cpp line 307]
    (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/modules/Video/VideoPlayerBindings.gen.cs Line: 175)
     
  3. gamepower7

    gamepower7

    Joined:
    May 16, 2017
    Posts:
    27
    i thinks its a bug
    check this post
     
  4. canyon_gyh

    canyon_gyh

    Joined:
    Aug 15, 2018
    Posts:
    48
    That's how you handle it?I also get this error
     
  5. EMPD

    EMPD

    Joined:
    Sep 5, 2019
    Posts:
    2
    same issue in 2019.2.0f1. can anyone solved it? help me if yes.. Thank you.
     
  6. canyon_gyh

    canyon_gyh

    Joined:
    Aug 15, 2018
    Posts:
    48