Developer postOriginal post (opens in a new tab)

Whirligig Update 3.73 Beta Release

This is a big update or a least I think it is. I've implemented a new video plugin that uses LibVLC. Here's a link to the plugin:
https://www.assetstore.unity3d.com/en/#!/content/53391

The long and the short of it this brings a whole new level of default compatibility to the player and also opens up the ability to playback youtube videos. Full details are below.

Now as far as I know there is no problem with using LibVLC for playback and I've looked up the licensing and multiple other aspects of this and can't find any reason that I shouldn't be using this. There are also other players on the store that use LibVLC for video playback so it seems to me that again this is good reason to use it.

If you know better please please let me know. I'm using purchased plugins and implementing them in no unusual way but if anyone knows better I would be very greatful if you passed that info onto me.

Aside from that find a list below of the updates and how they impact things.

MPMP Plugin added. This is a very large update as this brings VLC support which also brings a load of possibilities for the future. These include better native codec support, faster playback of videos and youtube playback.

A Settings menu has been added. This is a new area to encompass the settings I've left off the main display. So although these settings were already available in other ways they now have a place to change them in their own menu. So in the settings menu which is the icon that looks like a cog on the main UI you will find a slider to adjust the stereo separation, a slider to adjust the SuperSampling, a toggle to switch between the new VLC support and the Directshow support (also available as a mappable xbox button), a text field where you can put in a Youtube code and a button to load it.

VLC Support in detail
The VLC support option allows you to change the player to use the VLC library over the previous directshow plugin. This mean that there are a whole load more codecs available without having to install the DirectShow codecs. On top of that you may well find better playback with the VLC option. I hope to make this the default and the directshow to be the other option but currently the VLC support misses a couple of important features. The first is the fact it doesn't know that a file has failed to load so if it doesn't work it won't tell you, the second is that some files when you try to load them crash the player (the player always starts using DirectShow unless you are using the Youtube feature described below), the third is that some videos look garbled when they shouldn't and the forth is that it doesn't load properly and requires you to play the video before you can scrub and skip to different parts of the video. These are being worked on and I hope to have fixes for them soon. I thought though that the benifits outwayed the negitives to not release it in beta form.

Youtube support
So I've added Youtube support as the VLC plugin (MPMP Unity plugin) brings that to the table and so I've put it in. It's in its infancy but can be used. To use it do one of two things. Open the settings menu, paste the Youtube URL code into the youtube box and hit load. Currently this loads the video into the player where the previous video is so any changes you make will be saved into the previous videos settings and when you load the youtube video the only thing that will change is the start and end time and when playing you will see the youtube video. The second and preferred way is to create an empty file (a text file is fine) with the Youtube code followed by a .you as the name so for example the file name for https://www.youtube.com/watch?v=o5KQL_50ZHk would be:

o5KQL_50ZHk.you

This then can be stored wherever you like and will load the video that the code is for. To get the code it's just the last bit of a youtube video.

By creating a file it means that you can change and save the settings of it like any other video.

This is early days for this feature and the VLC MPMP plugin and I've got a lot to work on making it stable and easy to use but I thought I would give it out to you so you can have a look and see what you think.

I hope you like it.

Know bugs.
when loading the Youtube video the aspect ratio doesn't get set right. To get it to work again just try changing the stretch and it should re adjust it.
Some video files when using VLC crash the player. The player always start in Directshow support so restart should bring Whirligig back to life.
To scrub a video when using VLC play it first. You will then be able to scrub it like any other video.
Some videos display incorrectly using VLC and look completely garbled.