如何从.net中的byte []加载Media(.avi) [英] How to load Media(.avi) from the byte[] in .net

查看:90
本文介绍了如何从.net中的byte []加载Media(.avi)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我将Media(.avi)存储为<​​c0>以便存储到数据库.我真正需要的是在检索时将byte[]转换为media-type(.avi)并在mediaplayer中显示.

我们可以使用file.writebytes()byte[]写入文件,然后从文件中加载媒体.但这不是我所需要的,我需要直接与byte[]一起玩.任何人都可以帮助我,但我在Mediaplayer中找不到一种执行此操作的方法.
问候,

sajith



I am storing Media(.avi) as byte[] for storing to database. what I really need is to convert byte[] to media-type(.avi) while retriving and show in mediaplayer .

We can write the byte[] to a file using file.writebytes() and load the media from the file. But this is not I need, I need to play with direct with byte[]. Can any one help me I didn''t find a method to do this in mediaplayer.
Regards,

sajith

推荐答案

播放内存流中的视频 [ http://winmm.codeplex.com/ [ ^ ]
Playing Video From Memorystream

Playing video from a memory stream[^]

And there is a library for playing audio:
http://winmm.codeplex.com/[^]


这篇关于如何从.net中的byte []加载Media(.avi)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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