将MemoryStream映射到Uri [英] Map MemoryStream to Uri

查看:76
本文介绍了将MemoryStream映射到Uri的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
我想知道是否有人知道将流映射到Uri的方法.
我对包含视频数据的流的自定义实现有什么想法,我想播放吗带有Media元素的视频.问题在于媒体元素仅接受Uri作为源.引用> 如果确实如此,那么除了将流写入磁盘并为第三方提供文件路径(作为URL)之外,您别无选择.


Hi.
I am wondering if anybody aware of some way to map a stream to Uri.
What i have my custom implementation of stream that contains video data and i want to play this video with Media Element. The problem is that media element only accepts Uri as source.

解决方案

The problem is that media element only accepts Uri as source.

If that is indeed the case, then you have no option other than to write your stream to disk and provide this 3rd party componant with the file path (as an URL).


这篇关于将MemoryStream映射到Uri的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆