Skip to content

Adaptive Video doesn't work with AVPro Video on Windows #56

@AndrewRH

Description

@AndrewRH

Describe the issue

When selecting the adaptive option and using AVPRo Video on Windows, the stream doesn't open (may be PC configuration / OS version specific).

It seems to be related this method GetAdaptiveVideoFileURL() which returns an HLS stream for Apple, and a DASH stream for everything else (Windows and Android mainly).

A possible fix

Perhaps there should be an option to rather expose the HLS stream for Windows+Android? They both have pretty good HLS support and it would be very handy to be able to select either. HLS probably even has better support as it is more widely used, so it could be the default.

    public string GetAdaptiveVideoFileURL() 
    {
        switch (Application.platform)
        {
            case RuntimePlatform.Android:
            case RuntimePlatform.WindowsPlayer:
            case RuntimePlatform.WindowsEditor:
            case RuntimePlatform.OSXPlayer:
            case RuntimePlatform.OSXEditor:
            case RuntimePlatform.IPhonePlayer:
            case RuntimePlatform.tvOS:
                return files["hls"]["link"];

            default:
                return files["dash"]["link"];
        }
    }  

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions