SkillAgentSearch skills...

DawnPlayer

A FLV playback library for Windows 10+ UWP and WinUI 3 Apps.

Install / Use

/learn @lxrite/DawnPlayer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DawnPlayer

A FLV playback library for Windows 10+ UWP and WinUI 3 Apps.

This library allows you to extend the functionality of MediaPlayerElement and MediaElement to support playing FLV video files.

Features

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

Requirements

  • Microsoft Visual Studio 2022

Usage

Download the DawnPlayer NuGet package here: https://www.nuget.org/packages/DawnPlayer/

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);
View on GitHub
GitHub Stars49
CategoryDevelopment
Updated1y ago
Forks8

Languages

C++

Security Score

80/100

Audited on Mar 10, 2025

No findings