Search Unity

[RELEASED] MPMP - cross platform video solution

Discussion in 'Assets and Asset Store' started by _monoflow, Jan 25, 2016.

  1. D3m0n

    D3m0n

    Joined:
    Nov 11, 2014
    Posts:
    104
    I can not get youtube videos running on Android. In the editor everything works, loaded on Android (and verified the console then 0 errors). I can not see anything at all. It's the first time I use this plugin since I bought it, I hope it works.

    Any help?
     
  2. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    The Youtube player is a build in feature of the VLC backend. On other platforms/backends you need a third party solution that resolves the url that you type in your browser to get the real video file for playback with MPMP. ( https://www.assetstore.unity3d.com/en/#!/content/29704)
     
  3. D3m0n

    D3m0n

    Joined:
    Nov 11, 2014
    Posts:
    104
    Time ago buy this plugin right for this support ... If it's missing why to put it in description and not specify that on mobile platforms would not work without the purchase of third-party plugins? Is it possible to have a refund by sending the invoice ID?
     
  4. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    129
    @_monoflow hello, Support video Network Sync? thanks!
     
  5. D3m0n

    D3m0n

    Joined:
    Nov 11, 2014
    Posts:
    104
    The developer has refused me the refund: in his opinion, it can only be claimed if the purchase was made at most within two weeks (it is not specified anywhere and is the only one on the store to practice this policy.) . For me it is a star in everything and for everything, never more assets than that. 80 € stolen. Nice way to deal with a customer! I am extremely bitter.
     
    Muckel and Grakou like this.
  6. Grakou

    Grakou

    Joined:
    Jul 11, 2016
    Posts:
    6
    Thank you for this fix, but probably similar error regarding whitespace chars exists when running the app on iOS Simulator. Can you please provide a fix for this as well? Below you'll find the log:

    -------- failed compiling:
    fragment evaluation shader
    WARNING: 0:4: extension 'GL_EXT_frag_depth' is not supported
    ERROR: 0:38: Use of undeclared identifier 'gl_FragDepthEXT'


    Note: Creation of internal variant of shader 'Hidden/Internal-MotionVectors' failed.
    WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Pass '' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Setting to default shader.
    WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Pass '' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Setting to default shader.
    UnloadTime: 266.004059 ms
    dyld: lazy symbol binding failed: Symbol not found: _MPMP_GetRenderEventFunc
    Referenced from: /Users/username with whitespace/Library/Developer/CoreSimulator/Devices/99A99D0C-D4EA-4407-9C5C-D2C1AB6A1D44/data/Containers/Bundle/Application/52D5F1BF-6E81-40BA-A5CB-E550084D51B6/ProductName.app/ProductName
    Expected in: flat namespace


    dyld: Symbol not found: _MPMP_GetRenderEventFunc
    Referenced from: /Users/username with whitespace/Library/Developer/CoreSimulator/Devices/99A99D0C-D4EA-4407-9C5C-D2C1AB6A1D44/data/Containers/Bundle/Application/52D5F1BF-6E81-40BA-A5CB-E550084D51B6/ProductName.app/ProductName
    Expected in: flat namespace

     
    Muckel likes this.
  7. Muckel

    Muckel

    Joined:
    Mar 26, 2009
    Posts:
    438
    hello,
    ... on Windows & Unity 2017 & Mac OS X ...
    the video Player is crashing the App...
    no problem with Unity3d 5.6.x ....
    switched to native Unity Video Player and all is good...
    will you fix that?
    M.
     
  8. rbisso

    rbisso

    Joined:
    Jul 13, 2011
    Posts:
    26
    Hello, @_monoflow!

    Does MPMP support AES-128 encryption over HLS? If not, is there any plan to support it, in the future?
     
  9. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Hi,
    i'm not familiar with this feature and at the moment there are no plans to support this.
     
  10. Eric_Bates

    Eric_Bates

    Joined:
    Jan 14, 2014
    Posts:
    122
    This looks like a great plugin! Just curious for iOS since it's using AVFoundation, does it also support hardware video encoding from frames?
    Thanks!
     
  11. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Hi,
    yes , on mobile you have also hardware encoding.
     
  12. Eric_Bates

    Eric_Bates

    Joined:
    Jan 14, 2014
    Posts:
    122
    Hi @_monoflow, thats great thank you! Do you have a link to any documentation on this feature?
     
  13. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Ah, sorry. It's only decoding. MPMP is only a playback solution. You can't create videos.
     
  14. djmario

    djmario

    Joined:
    Feb 17, 2017
    Posts:
    4
    hi @_monoflow,

    I found this plugin and want to try streaming video RTMP with this but can not work

    Please help to confirm MPMP can support RTMP for mobile platform or not and how I can test in demo plugin

    Cause I consider to buy but can not test this feature

    Many thanks
     
  15. dryraa

    dryraa

    Joined:
    Apr 10, 2017
    Posts:
    8
    Hello @_monoflow,
    we bought the plugin, we are using it for an AR Android/iOS application, it worked like a charm on Unity 5.6.0f3, but now we migrated to Unity 2017.3.1f1, and downloaded the last update of MPMP, integrated everything, and now when trying to play a video on Android , for example with this link "http://download.blender.org/peach/trailer/trailer_iphone.m4v",
    it does not play the video and seems to fire an error (Block) on video load with the Load method, this does not happen on the editor, I followed this thread and did everything but it seems not to work, can this be a Unity 2017 problem or am I missing a configuration?

    It would be really a shame to fallback again to Unity 5 because of this.

    Thank you for your help
     
  16. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Hi dryraa,
    i guess it is a problem of the m4v format. As far as i know on Android this format is not supported. https://developer.android.com/guide/topics/media/media-formats.html
    Did you tested with mp4?
     
  17. dryraa

    dryraa

    Joined:
    Apr 10, 2017
    Posts:
    8
    Hello @_monoflow,
    Thank you for your answer, yes I have tested with an mp4 link and it has exactly the same problem.
    I have also created a whole new clean project, and tried it on a 2017.1.0f3 version, with an mp4 remote file, and faced the same problem.
     
  18. Johnfred_Fredjohns

    Johnfred_Fredjohns

    Joined:
    Sep 7, 2017
    Posts:
    2
    Hi,

    I'm looking for a tool that will let me pull a live video stream from a server and play it back in Unity. Can this tool accomplish this task for me?
     
  19. jocyf

    jocyf

    Joined:
    Jan 30, 2007
    Posts:
    252
    Hi,

    I've testing this asset and I can't get any video to play in Android if that video is in a folder inside the StreamingAssets folder. So, a video in StreamingAssets/Menu/Menu.mp4 isn't playing. Any advice?
     
  20. Nesse_M

    Nesse_M

    Joined:
    Jun 8, 2017
    Posts:
    7
    Hi @_monoflow

    It appears that the SteamVR plug-in somehow influences MPMP (without actually being used in the project - just by simply "being" in the Assets folder); as soon as the SteamVR plug-in is imported, MPMP suddenly no longer seems to be able to project on the texture / material despite working fine before importing. It loads and plays the video, and audio of the videofile can even be heard while playing, but the video does not show.

    Are you or is anyone else aware of this situation? It has occurred on multiple (desktop) devices (which I tested to make sure it is not a graphics-card-related issue) and happens as soon as the SteamVR plug-in is imported.

    Any help would be appreciated - thanks in advance!

    Short version: MPMP seems to encounter a problem when the SteamVR plug-in is imported, causing the video to not be projected anymore.
     
  21. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Hi,
    i guess that it is not a problem with SteamVR but a problem with linear color mode. check what color mode you use in your publish setting and if you use linear than you should enable the 'force gamme' option of the MPMP player. In the documentation of MPMP i wrote some lines of this problem and that you can use the gamma correction shader that comes with MPMP. (I have also a project with MPMP and SteamVR and this was the problem i encountered)
     
  22. Nesse_M

    Nesse_M

    Joined:
    Jun 8, 2017
    Posts:
    7
    I see! Very informative - thank you very much! I'm going to try it out in just a moment, I'll make sure to let you know if I was successful. Thanks again for the information!
     
  23. Nesse_M

    Nesse_M

    Joined:
    Jun 8, 2017
    Posts:
    7
    Actually, while my Color Mode normally is set to Gamma, I now realize that SteamVR, when first importing the plug-in, prompts you with a number of recommendations regarding settings, one of which is to change the Color Mode from Gamma to Linear. Honestly, I would have overlooked this had you not informed about it, so thanks again; simply telling SteamVR to not change the Color Mode is all it took!

    For others encountering the problem in the future: when SteamVR asks you to override the Color Mode and change it to Linear, cancel this - you will need it to be Gamma in order for MPMP to continue working properly. (You can still change the Color Mode if you already accepted it - Player Settings > Other Settings > Rendering > Color Space)
     
  24. Nesse_M

    Nesse_M

    Joined:
    Jun 8, 2017
    Posts:
    7
    Hi @_monoflow

    I've encountered something that I hoped you could help with. I've noticed that, when playing videos with a height of 1920 pixels and H264 codec, the video is horizontally cropped.
    The same aspect ratio with H265 codec is displayed properly without any cropping; it only seems to happen with H264. Similarly, the width of the video can vary; however, a height of 1920 is cropped.
    I am not using any other plug-ins or any other MPMP-related scripts - it's just the regular player (MPMP.cs).

    Are you aware of this and if so, is this intended? Does it happen in any other cases that you are aware of? And can the automatic cropping be switched off (if so, how)?

    Again, thanks for any help in advance!
     
  25. vnikopol

    vnikopol

    Joined:
    Jul 16, 2018
    Posts:
    3
    Hi. I have questions. Is there UWP (hololens) compatibility? Is there streaming HSL or RTSP support?
     
  26. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    721
    Is support DASH/ HLS?
     
  27. Samusan32

    Samusan32

    Joined:
    May 11, 2018
    Posts:
    1
    Hi, I'm running tests with the MPMP demo. It works perfectly while playing videos stored in the device both in Android and PC, but I've got a problem playing them by http. With videos with a resolution higher than 1080p it doesn't work like it should, 4K videos stop after a few seconds. It looks like after starting playing the video the buffer stops loading data. Is there any way I can fix it?

    Since I've been using the plug-in to develop a VR app the resolution is very important. By the way, despite this error the plug-in is fantastic. It is easy to implement and having the videos stored in the device it couldn't work better.

    In Windows it stops less frequently, and when it does it's only with some videos and keeps loading. In Android it just stops working.
     
  28. tengkufathullah

    tengkufathullah

    Joined:
    Apr 3, 2017
    Posts:
    13
    Hi,

    I purchase your plugin on Jun 2018, apparently, whenever I open the video streaming scene and return back to the main scene, then I will get a black screen, the UI seems working if I tap randomly on the screen. Please advise. It only happens on some devices which is both Samsung tab and Samsung mini-tab.
     
  29. delacroix9999

    delacroix9999

    Joined:
    Dec 13, 2018
    Posts:
    3
    @_monoflow do MPMP supports RTMP streaming for WebGL build?
     
  30. Majimus

    Majimus

    Joined:
    Sep 29, 2016
    Posts:
    3
    Last edited: Feb 13, 2019
  31. rgonsalv

    rgonsalv

    Joined:
    Sep 29, 2016
    Posts:
    39
    Hi: This line of code,
    Code (CSharp):
    1.  _handleNativeCallback.Free();
    is generating this error when when we stop playing our app in the Editor:
    Code (CSharp):
    1. InvalidOperationException: Handle is not initialized.
    2. System.Runtime.InteropServices.GCHandle.Free () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    3. monoflow.MPMP.OnDestroy () (at Assets/Plugins/MPMP/Scripts/MPMP.cs:863)
    4.  
    Can anything be done, like checking if the handle is initialized before that line?
     
  32. spaul13

    spaul13

    Joined:
    Aug 28, 2017
    Posts:
    10
    Can anyone please tell me how to support 360 video playback on android using this project? What modifications are required?
    Information regarding any other similar projects for android uses VLC media player will also work.
     
  33. rgonsalv

    rgonsalv

    Joined:
    Sep 29, 2016
    Posts:
    39
    We ended up doing this:
    Code (CSharp):
    1. if (_handleNativeCallback.IsAllocated) {
    2.                 _handleNativeCallback.Free();
    3. }
     
  34. rgonsalv

    rgonsalv

    Joined:
    Sep 29, 2016
    Posts:
    39
    Doesn't feel like this plugin is supported anymore, since there haven't been any replies from the developer since April 2018.

    Videos that played fine in the player using Unity 5.6.4 don't play for us at all in Unity 2018.4 on Windows 10. Plays ok in the Editor.
     
unityunity