I'm creating a tool to scrape and search the Amazon music database, it then cross references with google to display a bunch of information about the songs. One thing I want to add if possible, is to play the sound from the form using the media link scraped form amazons webpage.
This is the media link:
https://d2q1srilgjznst.cloudfront.net/64%2F30%2F232646106_S64.mp3?response-content-type=audio%2Fmpeg&Expires=1534727161&Signature=HF~qj5XP2WRKBJlT0VT1hDIq4cieH7SWcgnxRUGWm045iqIV4L7YTxlLihQdde9ZNrL97xf8zkfatRn-YxGYh0Yk1RmCHHI6H53j1wjig36KsHPdlnwoEp7qM45NsNhYf4IfXXjHzQ-tnkDfocpFSHMqss9FosYXWCf9qGrWKTo_&Key-Pair-Id=APKAJVZTZLZ7I5XDXGUQ
I have already scraped the data needed, I just am unsure how I can go about playing this on my C# application?
I don't have any code to show as searching on google I couldn't find a single thing relevant to this, or if its even possible. The closest I found was this, for playing media files.
System.Media.SoundPlayer player = new System.Media.SoundPlayer(#"");
player.Play();
The other question is for MP3 files, this is for data sourced online.
Related
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?
I have a video file at my Server and the path to which resembles like "10.151.98.82/Medias/New/Videos/001.dat".
(Actually a video file but the extension is in .dat)
I have already built a WPF application which allows my users to enter the above Server URL and then let them to download it and then play it.
But my guess is that they need not wait till the entire file gets downloaded; just watch the files on the fly.
I have googled on video streaming but could not get a solid material to proceed on with.
[Sorry, if the question is naive or needs modification, i will be happy to do that or move to a relevant forum.]
Any pointers on how to do this is much appreciated.
Edit: This question talks about WCF service and WPF application. But, I dont' use a WCF Service. The video file has to be streamed from the server.
First try to play your file using VLC Player. it also have many advance streaming and Trans-coding Options. you can play, save and trans code simultaneously. Once you are able to Play your file in VLC Player than i would recommend to use VlcDotNet for wpf application. Tutorial for hosting VlcDotNet is available in downloads
My final project in Fundamentals of Programming requires a video component and we haven't gotten to inserting a video yet. I found instructions for embedding Windows Media Player, but I'm having no luck playing files with it. I've tried compressing files into low bitrate WMV, and it complains about the file extension not matching (files play fine externally) and using a youtube link, which gives me no error, but the player says it's loading the media, then just stops and does nothing.
My current activation code is:
axWindowsMediaPlayer1.URL = txtVariable.Text;
axWindowsMediaPlayer1.Ctlcontrols.play();
And I'm setting up the video to be played as
txtVariable.Text = #"http://www.youtube.com/watch?v=aHjpOzsQ9YI";
Does anyone have any clues on what's going wrong?
It is not possible to play a youtube video because the URL does not refer to the "actual" video. This URL redirects you to a web page that contains the video. The URL should refer only to a video for example, "webpage.com\Videos\video.mp4".
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.
I have tonss of videos in database and they can't be accessed directly but I can play them one by one and can record them. Now I want to write a program (probably in C#) that will get a URL and will start Internet Explorer or any other default browser to start the link. Once the link will be started, video will be playing.
Now my job is to record the video for "x" seconds along with audio. I can record the video by taking screenshots very frequently but what about audio and it's quality? Do I need to put microphone in a sound proof room attached with speaker so that I record it or I can directly pull the audio off from audio interface card before letting it toward the speakers?
Any ideas?
Umair
This is not wise at all. You will have a huge quality loss recording video from screen and re-encoding it, not to mention the time this will take.
You should find a way to access those videos directly from the database, and run them through a converter like ffmpeg.
What about using rtmpdump to retrieve the video stream as a .flv? Of course, you will need to parse the stream information from the respective web pages, but that should be manageable.