Open .m3u8 video streaming on Unity 3d - c#

I have a problem regarding unity 3d video stream, I want to open I can open mp4 videos but with the video player I can't open m3u8 video streams, is there a way to open this kind of videos.Is there any way to play it via u3dxt plugin

EasyMovieTexture is able to play m3u8 format

The AVPro Video plugin for Unity has really good adaptive video file support (both DASH and HLS/m3u8) and supports many platforms. Much easier to use compared to EasyMovieTexture as well.
Using AVPro Video and the Vimeo Unity plugin together is also really helpful if you need to host and transcode videos to the m3u8 format.

Related

How to play muted video and mp3-track simultaneously with c# Windows Phone 8 app

I need to play [short looped video (mp4) without sound] and [mp3-file] simultaneously.
I tried to create 2 MediaElements: for audio and video, but WindowsPhone can play only one MediaElement in one time.
Do you know any tricks how to play video and audio simultaneously?
Maybe there are other ways to play mp3 or video (no MediaElement)?
SoundEffect can play only WAV-files, so this way is not for me, because all my files are MP3.
Thanks in advance.
As first way is to use MediaElement so keep it as it is.
Secondly, you have two options,
1) you can make use of MediaPlayer if your mp3 is stored locally i.e. stored in isolatedstorage/medialibrary
2) you can use BackgroundAudioPlayer if your mp3 is located at specific server.
Hope this Helps.
For using Xaudio2 you can look into this link, download sample.
One problem can be with the music files, I am unsure now that I think about it if mp3 will work. But you can play music in the background of everything with it. If you have trouble with the formatting, there is this link Windows Phone xaudio2 where I had the format problem, with wav files. But see if you can get it to work :)
I solve my issue using MediaStreamSource!
Create 2 Streams:
from mp3-file for audio
from mp4-file for video
Create new class from MediaStreamSource
override OpenMediaAsync() - return video-info from Stream with mp4,
audio-info from Stream with mp3
override GetSampleAsync(MediaType) - if MediaType is Video - return
mp4-sample, else - return mp3 sample
It works!
Ps: Links for examples:
HowTo pars MP3: https://github.com/loarabia/ManagedMediaHelpers
HowTo pars MP4: https://mediastreamsources.codeplex.com/

Image processing (WinRT and C#) - images to video

Is there a way to process frames from a stream(or image file or video file) and save the frames in encoded video file without using Media Foundation API. I am not familiar with C++ and COM technology, so I ask is there any way to make video stream from set of images with C#?
It might be possible with some .NET wrappers for Media Foundation. Perhaps SharpDX has them.

open source Codec library to make media player in c#.net

Is their any open source codec library?
That i can use to make my media player?
i have to make a media player (using c#.net) that would support mp3,mp4, flv and xvid files,
VLC (which in itself is I think a pretty good media player) offers a .Net interface in order to embed it in applications, you can check the VideoLAN Wiki for details (I never used it, but as far as I can see on forums, it works).

Embeddable streaming video player that can play avi and asf cross-platform

Is there an embeddable video player that can do the following:
Stream video from a server (It's saved to disk)
Run across browsers (or at least give the
option for a fallback)
Run across mobile devices (Android and iOS)?
Have you looked into HTML5? video Embed, you should be able to stream from that. In terms of video protocol, you might have to make a converter but AVI might work. Give it a shot, I'd be interested to know what you find.
EDIT:
Links:
Streaming via RTSP or RTP in HTML5
http://www.pcworld.com/article/191030/how_to_ditch_flash_and_stream_video_with_html5.html

How can I play any audio file(e.g. mp3,wav) in C#?

I have a question regarding with audio files.My question is:How can I play any audio file(e.g. mp3,wav) in C#? So if I press a button,I want to play to an audio file.
How can I do that? Can you tell me how it is done with a sample code?Lastly,I have used .Net Framework 4.0.
for that first you need to load wmp.dll from your system32 folder
Then you need to add COM component
Now you can do other things(creating player)
I have a tiny project (cutted NAudio version, only playback is left and only MP3 and WAV is supported) to play MP3 and WAV files. Do you still need it? I can upload it if you need to.
A full code example on how to play waves in c# forms apps can be found here
http://msdn.microsoft.com/en-us/library/ms173187%28v=VS.100%29.aspx
You can also play wave files using C# and the XNA Framework. But that may not serve your purpose, since that is primarily for games development.

Categories