StreamMediaSource for MediaElement
#2968
Replies: 2 comments 2 replies
-
|
This seems like a great idea! I will add it to our monthly meeting if there is enough interest. If you can find more like minded people who would like this it is more likely it can be implemented. Looks like you have done most if not all of the work already. We have monthly meetings where we discuss the toolkit on Youtube. I hope we can get 10 upvotes from the community so we can start the ball rolling. Here is a link to our monthly standup page where we link what we have talked about with details about what happened. https://github.com/CommunityToolkit/Maui/wiki/Monthly-Standups Here is a link to how we add new features: https://github.com/CommunityToolkit/Maui/wiki/Submitting-a-New-Feature This should provide enough information to get you started. I will say the hard part is already done! Once you have the upvotes to around 10 we can move forward with adding it our monthly meeting. Then once it is voted on and accepted as a proposal I would be happy to champion it. More about the whole process is available above. I did simplify it a bit in this paragraph and skip a few things but I hope to see this in the toolkit! |
Beta Was this translation helpful? Give feedback.
-
|
I'm going to paste a markup file from @matt-goldman that provides some details about how this can be implemented. StreamMediaSource ImplementationOverviewThis document summarizes the implementation of What Was AddedCore Class
Platform-Specific ImplementationsWindows (
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
MediaElementcurrently supports loading media from URL, file, or embedded resource. I needed a way to load media from a memory stream.I'm not sure whether this is something others need - I personally needed this because I'm building an app with some specific security requirements. Playing back media stored in the app would require saving it to file outside the app's protected environment, which would violate some of the security standards. Not sure if there are other use cases, but for example recording a video or audio, then viewing it or listening to it before saving. Again not sure whether this is something people actually need or not, but it seems valuable to me.
Anyway because I needed this, I forked the repo and added it on my fork. You can see it here: https://github.com/matt-goldman/Maui-1/tree/add-stream-media-source
I've added
StreamMediaSourceand updated the sample app to include a demo page for it. API is simple:Just trying to gauge here whether others see value in this and whether there's any interest in a feature proposal for this.
Beta Was this translation helpful? Give feedback.
All reactions