05-07-13, 11:25 PM
وجدت :
Approach #1. If you really need a way to stream a video from the resource, you need to create a resource stream using the resource you need. This will give you an idea: http://social.msdn.microsoft.com/Forums/...5c93c8cfc2[^], http://msdn.microsoft.com/en-us/library/...eader.aspx[^].
Feeding the stream read from resource as the input of your Media Player control is difficult. The only input is URI. I could not find that a special Microsoft URL schema "res://" supported. As a general approach, you need to develop a special URI instead. You will need to use the constructor for the System.Uri: Uri(SerializationInfo, StreamingContext). For more information, see http://msdn.microsoft.com/en-us/library/system.uri.aspx[^].
This approach will take some effort.
هل يمكن استفيد من هذا؟ فأنا لم أفهم منه
Approach #1. If you really need a way to stream a video from the resource, you need to create a resource stream using the resource you need. This will give you an idea: http://social.msdn.microsoft.com/Forums/...5c93c8cfc2[^], http://msdn.microsoft.com/en-us/library/...eader.aspx[^].
Feeding the stream read from resource as the input of your Media Player control is difficult. The only input is URI. I could not find that a special Microsoft URL schema "res://" supported. As a general approach, you need to develop a special URI instead. You will need to use the constructor for the System.Uri: Uri(SerializationInfo, StreamingContext). For more information, see http://msdn.microsoft.com/en-us/library/system.uri.aspx[^].
This approach will take some effort.
هل يمكن استفيد من هذا؟ فأنا لم أفهم منه
