[Released] AVPro Video - complete video playback solution

The issue here is that the StreamingAssets folder is exported as a separate folder and not within unity files (im talking about WebGL), and we had issues with black screen/video not starting from time to time and we think it might be related to server or something like that, do you have any suggestions ?

I’m afraid I dont’ know what to suggest. Ideally we need a reproducible case so that it can be debugged. Does it do this when you run the WebGL build locally? Which platform and browsers have you tested? WebGL is tricky for videos because some browsers will not auto-play videos, especially if they contain audio. I can’t see any reason why having the video in StreamingAssets woudl make a difference to whether the video plays or not though.

Ahh funny story, well I’m glad that you solved it and that using a legitimate copy triumphed over the pirated version :slight_smile:

1 Like

I’m afraid I really don’t know. I’m not familiar with the Playmaker actions - actually they were written for us by the author of Playmaker so perhaps you could ask him?

The code for InfoIsPlaybackStalled seems correct though - and that is the right thing to use.

Do you use need to use Playmaker? If not , then in C# you would just need to call:

bool isStalled = mediaPlayer.Info.IsPlaybackStalle();

1 Like

Can you please tell me whats the difference between Stop() and CloseVideo() functions ?
In other words, how to properly start and stop a video please ?

thank you. is he Jean fabre ? who is if possible ?
thank you

Yes Jean Fabre kindly created those Playmaker actions

Hello again,

I’m successfully using the Media Foundation → Unity → Audio Output → Audio Source → visualizers path. But it only seems to work if I set it before running, if I switch between unity and system direct during runtime, it won’t show on the visualizer. Is that expected? (My use case is that I want to use system-direct almost all of the time unless they load a scene that has a visualizer, system-direct does things like play smoothly during scene loads, etc)

Thanks!

Yes, currently you would need to create the MediaPlayer component again if you wish to change the audio rendering mode. This is something we should have fixed in AVPro Video 2.0 so that it can be toggled directly. I guess a workaround for now would be to have 2 MediaPlayer instances - one for direct audio and one for AudioSource audio. Just make sure that you CloseVideo() on the one that you’re not using so that it free’s up memory and video decoding resources.

Thanks,

1 Like

Hi All,

AVPro Video version 1.11.5 has just been released!

You can find the updated version on the Asset Store and the free trial version on our website.

Changes include:

General

  • Fixed issue where Seek() sometimes didn’t trigger the seek events as it would complete the seek too quickly. Now the seek events are always triggered.

iOS / tvOS

  • Fixed issue where YCbCr texture output would be black due to unrecognised colour transform type.

Windows

  • Fixed Facebook Audio 360 mode handling for non FB360 audio content, for example where it would play back a stereo 22050hz track at the wrong speed
  • Removed the Low Latency option as it created issues and didn’t really bring any advantages

Thanks to everyone that reported bugs that were fixed in this release :slight_smile:

Please report any issues here on the forum, or preferably to our Github Issue tracker

Thanks,

Describe the bug:
The video play, but, not show image, only sound.

Your Setup (please complete the following information):

Unity version: 2019.4.x
AVPro Video version: 1.11.5
Operating system version: iOS 13.5
Device model: iphone SE 1 gen
Video specs: https://d22npu57smr6wp.cloudfront.net/cca1d0da-1b9a-42d8-a962-45d8a1d4e25b/hls/cb3701c6-e4da-4874-9ae2-4eabac1ce8ca_video_03_saopaulo_15fps_comsuavizacao.m3u8 (HLS format)

On log of iOS, not show any error

Is it normal that playing video by URL caused stalling a lot in Android?
It also caused stalling when I’m rewinding the already played video.

We’ll reply to your issue over on GitHub where you posted it too.

Thanks,

It really depends on the video specs and the network connection. Perhaps you could give more details? WE have template on GitHub which would help us to offer you a fix/solution:
https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/new/choose

Thanks,

Hello, would it be conceivably possible for music to create a fading effect if I have two players and trigger one player to lower it’s volume as it gets to the end of the track and then start the second player on the next track towards the end of the fade, raising it’s volume as it takes over?

Yes that should work exactly as you expect.
We do have a component called PlaylistMediaPlayer (see the demo scene for this) which actually does this for you. It allows you to specify a playlist and then it can fade the audio (and video too) while transitioning.

1 Like

Hi, can you say step by step how to play video from local android folder? I manually download it, set write permission of player settings. Url path was /storage/emulated/0/Download/snow.mp4 but video on phone not play. Please help.

Hello guys does your plugin support Hardware Decoding on Windows 8.1 Embedded ?

I’m not sure whether it is supported or not…I’ve not tried that OS before. In theory it should work, but some editions of Windows don’t include media playback support. For that Microsoft added an optional download called Media Pack:
https://www.microsoft.com/en-gb/download/details.aspx?id=40744

So with that installed (if needed) I would say there’s a good chance that it would be supported.

Hope that helps,

Hi,

Hmm it should work. Which version of Android are you using? I think that some versions of Android may block access to those OS folders by default without adding special app permissions to the manifest, see here:
https://stackoverflow.com/questions/57977190/scoped-storage-download-folder-access

You may have to uninstall your app and reinstall or, or add the ‘external’ folder install option in Player Settings, or add some of the above permissions for legacy access.

Otherwise, have a look at the Android log (adb logcat) as that should give the reason why access wasn’t granted.

Hope that helps.

Thanks,