A FLV playback library for Windows 10 UWP.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
core/dawn_player
.gitignore
LICENSE
README.md

README.md

DawnPlayer

A FLV playback library for Windows 10 UWP.

Features

  • No third-party dependencies
  • HTTP FLV (live) stream and local file playback

Requirements

  • Microsoft Visual Studio 2015

Usage

XAML

<MediaElement x:Name="mediaElement" AutoPlay="True"/>

C#

// Local file playback
StorageFile file = ...;
fileStream = await file.OpenAsync(Windows.Storage.FileAccessMode.Read);
flvMediaStreamSource = await FlvMediaStreamSource.CreateFromRandomAccessStreamAsync(fileStream);
mediaElement.SetMediaStreamSource(flvMediaStreamSource.Source);

// HTTP FLV playback
Uri uri = ...;
var httpClient = new HttpClient();
httpStream = await httpClient.GetInputStreamAsync(uri);
flvMediaStreamSource = await FlvMediaStreamSource.CreateFromInputStreamAsync(httpStream);
mediaElement.SetMediaStreamSource(flvMediaStreamSource.Source);