How to play video in media element from byte array in wpf

amr yakout 40 Reputation points
2024-01-23T15:10:27.52+00:00

I have wpf app and i want to play video in media element from byte array that's stored in azure sql database

Azure SQL Database
Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
317 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,784 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,000 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,012 questions
0 comments No comments
{count} votes

Accepted answer
  1. LiHongMSFT-4306 28,041 Reputation points
    2024-01-24T03:14:37.7333333+00:00

    Hi @amr yakout It seems not directly possible.

    How about MediaElement from Silverlight.

    See this similar thread: Using MediaElement to play video from Stream.

    Best regards,

    Cosmog Hong


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.