Streaming Video in .NET languages including C# - c#

It is one thing to stream a video to a html page and render the web page using a .NET Form and .NET Web Browser. My Question to you is whether it is possible to render or stream video to a video player rather than an embedded video in a html page. Is that called breaking in ?

Have you checked out MSDN and the DirectX api Video object?

Related

MVC5 HTML5 Video Tag

I have a video library developed using C# MVC5. I import videos into my video library and try to display "stream" them when a user clicks on the video in the front end.
The video is being rendered using the HTML5 video tag, but according to what I have read, there needs to be separate video files for each of the different browsers.
What is the best way to achieve this? The videos being imported are in MP4 format, which plays in Chrome but not in the other browsers. I see some articles on using ffmpeg to create "versions" of the video.
Any advice?

view swf in asp.net website and determine if it was viewed

I have a request to host a swf file in an asp.net web page. That works using an object tag. My problem is that I need to determine if the user viewed the entire swf file or part of it. I do not see any events in the HTML object tag that are related to reaching end of the file.
Is there a way to detect that an end of an swf file has been reached in an asp.net web page?
nope, swf is a relatively closed format, not good for SEO the content inside.
I think there is no way to manipulate inside it by (client or serverside language) without communicating with its actionscript.
so i think you need to use swf source file the .flash source code to add some triggers
(using actionscript 2 or actionscript 3)
to send request to server to do counting when the swf movie enter the lastframe.
BUT
if you convert the flash swf to other relatively open format such as mp4 etc, you can easily adquire the playing progress of it. using html5 video tag or framework such as video.js

C# Web API HTML5 Audio Tag Seekable

Im playing around with the C# Web API and built a RESTfull API to access resources in my Database.
What i want to achieve is a HTML5 Audio Tag is playing a mp3 loaded from the database. As the src attribute i make a request, and on the server i respond with a ByteArrayContent
The MP3 is playing ... so far so good. Im displaying the controls of the audio tag, but i cant seek through the MP3.
My Questions:
Do i serve the right response for Seeking?
Do i need to make a ranged request?
Do i need any javascript to seek, or is the audio tag all i need?
Does someone has an example to achieve this?

How to download a video file from YouTube to hard disk using C#.NET?

How to download a video file from YouTube as .FLV or .MP4 format to hard disk using .NET?
I want to create a small YouTube downloader application which asks the user for the specefic link, when i click the download button, the download process start downloading the video as an FLV file directly from YouTube server to the hard disk.
I'm not asking here for the detailed procedure but i want to know only how to start ? is there a YouTube c# api which handle this process.
How to download an Flv video file from YouTube to hard disk using C# ?
Thank you !
I think this project is interesting
https://github.com/flagbug/YoutubeExtractor
try run an embed browser and add event handler to grep URLs of all resources on webpage, then you can study the protocol used by youtube.
changing the HTML request header to simulate an iOS device may force youtube use HTML5 player , instead of flash player ( if the above method cannot track network activities inside a flash player )
Find an open source program that can do this, and read the portion of the source code that forms the youtube requests.
For example, gPodder is my favorite application of this type, and would be a good choice if you read python code. But I'm sure you can find others.
Once you find out the right format for requests, you can use C#'s HTTP classes such as HttpWebRequest. Finally, save the data to a file.
Google has also provided some documentation for accessing YouTube from .NET, but this is more related to the social networking aspects of the site than the video content.

How could i paly a video & audio file on an asp.net page?

How could i paly a video & audio file on an asp.net page so that the file is determined on the run time
ASP.NET itself has no capabilities to do this as it's a server side technology. What you can do however is put html, just like like you would do in a standard html file, to display these.
If you can already make use of html5 then you're in luck as it provides dedicated tags like <video> and <audio>.
I wouldn't do this in ASP.NET myself, I'd use one of the jQuery plug-ins that make this easy. Check out the jQuery Media Plugin as an example.

Categories