JW player. on click getting a window asking open or save file - asp.net

I have two applications that play video. in one of them the JWplayer plays the video as it should , and on load, the video plays by itself.Thats what i need exactly
I'm doing the same process with the second application, but the thing is when it loads the player , first of all i cant see the control bar, second it doesnt play the video. and third when i click the play button. it opens a dialog asking me if i want to open or save the file, but this isnt what i need.all i need is to play the video like in the first application.
Why is it behaving like this ?
thanks all
One more thing, the second application is on a machine that hasnt a media player,
does this have any effect on the player.swf ??? I can see the player and the play button thou. but just wondering ...

Check whether your iis has the mime type of the video file you are trying to play.
If not add it as follows,
File extension: .mp4
Mime Type: video/mp4
After that restart iis and browse the site again...
Note: Search for the exact mime type for the file
Hope this will help you...

Related

Play video from an intermediate point

I am in the middle of an application that has a module to play videos from a directory on the same web-server. Everything is fine, except for the point that, while video is streaming, if I try to drag the player tip to an intermediate point, it either drags back to where it was(in flex player) or keeps loading un-till the video actually approaches that point(in case of jw-player or html5 player) or does nothing(in some other online players available). My client wants to be able to play or start buffering from any desirable point. I read something about RTMP to be used for such thing, but wasnt able to find a direct guide over how to do it.
Help appreciated!
If you're talking about being able to load a video file from x seconds in to the video, you should look into http pseudo-streaming. Here's a link to the jwplayer page about it: jwplayer pseudo-streaming

Play audio online in ASP.Net website

i need to play audio online in asp.net website
My requirement is
users will be able to browser the audio file using file upload control and two button will be displayed 'Play' and 'Stop'.
site should have the capability to play audio file in any format.
Please share any links or code to achieve this.
Thanks!
Look into these links. They may help.
http://forums.asp.net/t/1303198.aspx
http://www.dotnetspider.com/resources/5014-Play-Audio-File-Wav.aspx
http://www.dotnetspider.com/resources/22231-Play-audio-files-asp-net.aspx
http://www.vbdotnetheaven.com/UploadFile/scottlysle/PlaySoundsInASPX09032006083212AM/PlaySoundsInASPX.aspx
Not most appropriate but worth a thought
you can try embedding a silverlight element..
In silverlight you can import the audio file to project
and then can just drag and drop "media element" set source.
drag and drop buttons play and pause..
play : mediasource.play();
pause : mediasource.pause();
voila done.. Its easy to do all this in sileverlight..

Drag and drop files FROM a browser TO desktop/app

I've seen many articles about dragging files INTO a browser, but none about dragging files FROM the browser to a windows application or the desktop/windows-explorer.
I'm looking for a cross-browser solution but IE8 is our main browser.
If I create a link in a web page and then drag that link from the page into Microsoft Word, it inserts a link. However, if that link is pointing at a PDF document, I would like it to embed the PDF doc inside the Word doc, as if I'd dragged it from Windows Explorer, into MS Word.
Is that possible?
I've even tried pointing the link at an ASP page which returns "application/pdf" data but I still just get a link in my word doc so I suspect that links are the wrong way to go.
Thanks for any help!
I suspect you'll find that it is indeed not possible. The behavior upon drop is determined by the "receiving" application, not the "sending" application. As you point out, Word creates links to things that are dropped on it. The browser doesn't have any control over that.
I noticed that you can actually drag a HYPERLINK from a browser and drop in into a folder. After that a file there is created with .URL extension that contains the actual link.
So it is possible develop a program that will be able to accept that hyperlinks (as the usual windows folder does) and after it accepts the hyperlink file, it will automatically download the actual file from internet (by the hyperlink from the hyperlink file).
So the process will be:
drag-n-drop a hyperlink to the app
app recognizes the link
app automatically downloads the appropriate file and stores it somewhere.

How does YouTube prevent video content from being saved/redistributed?

Sure, you can embed a YouTube video on any site, but the content ultimately must come from their server. What technology(ies) do they have that prevents us from saving/redistributing content?
From a protocol standpoint, you would think that anything that comes over the wire could be saved. I hope I am not the only guy on Earth who does not know how to "save" a YouTube video...
There are a couple of plugins for Firefox out there that let you save the content. Basically it parses the sourcecode and looks for the videofile (either .flv or .mp4) and downloads that directly. The flash player on the page just plays the supplied file. They could of course obfuscate the path to the video file, but that can be reverse engineered as well. They can't really do anything about it, because the video file has to be on the user's computer at some point, or if not, the stream could be intercepted as well.
eg. https://addons.mozilla.org/de/firefox/addon/6584/?src=api
Mostly it's a legal deterrent rather than technical. There are a plethora of programs out there that will allow you to download their video. But there are two things they do that help reduce unauthorized downloads:
Use is flash to control the download and playback.
Hosting video yourself is not cheap, and thus it's much easier to simply leave the video on youtube.
They don't do anything about it. Very likely your Flash viewer downloads a copy and puts in somewhere on your harddrive (under my Linux system with Firefox and Adobe Flash in /tmp). After you are done viewing the file is removed to save disk space, but since it is on your harddrive nothing prevents you from making a copy elsewhere.
You might want to look at the 'analogue hole', in the end, data still has to be displayed on your screen, or get through your speakers and what not. It's always theoretically possible to intercept it at that point, or even just record your audio-out into another machine.
So as far as the analogue hole goes, the only solution is to skip that, in this form:
(source: thisdomainisirrelevant.net)
Which is not that marketable.

Image preview in Flex

I am working on an image management application. We have an Adobe AIR client talking to a WAMP server. The MySQL DB stores the images as blobs.
We have an image search feature. Upon searching, I am displaying the results as XMLList in a popup window and provided a download button. Downloads work fine. I also want to add a preview button to the popup.
Please let me know how can I code this. Without having the file on the client, I cannot preview. But when I use save() method, the os dialog opens up. Anything to be done on the PHP side?
Please help.
Regards
Jad.
Don't you mean to display an Image? Wouldn't the normal work? Of course, for performance issues, your PHP code must render smaller images (thumbnails).
Correct me if wrongly understood your question. :(

Resources