Stream rather than download videos over HTTP

I have a home-built NAS server running a custom Web server.
When I click an MP3 file from my NAS, it streams in Safari. It does not download, which is fine, and actually the behavior I want. (If I need to download, I'll right-click and choose Download.)
But when I play a video file, it simply starts downloading it no matter what I do.
The only solution I have for streaming video off my NAS is to copy the link to the video with a right-click, open QT Player, bring up Open Location and paste the URL. QT Player streams the video just fine.
I'm guessing this has either to do with a MIME type issue or a headers issue, and not a Safari configuration problem. I can't find any settings that would allow me to change this behavior in the Safari UI.
What I want to happen is for the video file to play in the browser window similar to how MP3 files do. I have seen this happen properly on older Safari builds accessing videos from public web sites, so I know it's possible - unless Apple removed this ability for some deliberate reason recently.
Since I have control over the Webserver, I could change the MIME type it sends for m4v files. I just don't know what I should change it to, or if it's even possible to modify Safari settings in such a way to make streaming in-browser the default behavior.
Is this possible to do?
Thanks!
F

Yes, turned out my web server was giving the generic "application/octet-stream" mimetype. I told it to issue "video/mp4" and that seems to have worked. video/x-m4v also worked so maybe it doesn't matter which.
Solved!
F

Similar Messages

  • Streaming video over http

    Hello
    I need your help to understand how streaming over http works
    In our company we have about 600 users who will be able to view streaming video over http hosted in Internet
    We have 100 Mbps Internet link . What can we expect to happen in the network when there is contention for resources to access video on our network which delivers best effort service for video
    We have enough bandwidth 4 gigs in local area network to core , so there's no real bandwidth cruch
    How to differentiate or monitor bandwidth used for http streaming as against http normal traffic
    Sent from Cisco Technical Support iPad App

    One step closer:
    Changed the crossdomain.xml file (more permissive settings).
    Changed the encoding on FMLE to vp6. Working somewhat (don't know what I did to make it start streaming through hds).
    But at least now I can get the individual streams in the set manifest file to work:
    http://localhost/hds-live/livepkgr/_definst_/livevent/livestream1.f4m
    http://localhost/hds-live/livepkgr/_definst_/livevent/livestream2.f4m
    http://localhost/hds-live/livepkgr/_definst_/livevent/livestream3.f4m
    BUT when I try to play the streams through the set manifest file from http://localhost/liveevent.f4m I'm getting the following error:
    "The F4m document contains errors URL missing from Media tag." I'll search the forums to see if anyone else has come across this problem.
    I used the f4m config tool to make the file. These are the file's contents:
    <manifest xmlns="http://ns.adobe.com/f4m/2.0">
      <baseURL>http://localhost/hds-live/livepkgr/_definst_/liveevent/</baseURL>
      <media href="livestream1.f4m " bitrate="200"/>
      <media href="livestream2.f4m " bitrate="500"/>
      <media href="livestream3.f4m " bitrate="1000"/>
    </manifest>
    Thanks

  • How to play SWF with AxShockwaveFlash control using a stream rather than a file path?

    My WinForm app downloads and plays SWF files from my server. Currently, I have an object of type AxShockwaveFlash called "flash" display the movie. The code I use to load the SWF is:
    flash.Movie = "http://example.com/file.swf"
    The URL is generated dynamically by the module based on what the user wants to watch.  I'd like to know how can I load the SWF using a memory stream rather than a file path? I have already configured my server to process the url and return the contents
    of the file. What I don't know is how to read those contents within my WinForm application as a stream instead of the default which is to just provide a URL path to the movie.
    For instance I think I can use the Net.HttpWebRequest object to make an HTTP request, and read the response contained in the resulting Net.HttpWebResponse into a stream, but I have no idea what I could do to that stream to feed it to AxShockwaveFlash
    A very similar question was posed on
    stackOverflow but I cannot make sense of the answer (I'm quite inexperienced).
    I'd appreciate your help,
    -Patrick

    Hi Patrick,
    Since this issue is mainly related to a control which belongs to third-party, I would recommend you consider posting this issue on the same site like the following thread because issues related to third-party are not supported.
    https://forums.adobe.com/thread/717505?tstart=0
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there a way to select MULTIPLE tabs and then copy ALL of the the URLs and titles/or URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; However, I prefer to use a Firefox feature rather than download an add on. Thanks.

    Currently, I can copy ONE tab's url and nothing else (not its name). Or I can bookmark all tabs that are open. However, I'd like to have the ability to select multiple tabs and then copy ALL of the the URLs AND their titles/or copy ALL of the URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; when I download the add on, I get a message saying that using the add on will disable Firefox's tab features. I prefer to use Firefox features rather than download and use an add on. Is there a way to do this without an add on?

    Hi LRagsdale517,
    You should definitely be able to upload multiple files by Shift-clicking or Ctrl-clicking the files you want to upload. Just to make sure you don't have an old version of the service cached, please clear the browser cache and then log in to https://cloud.acrobat.com/files. After clicking the File Upload icon in the upper-right corner, you should be able so select multiple files for upload.
    Please let us know how it goes.
    Best,
    Sara

  • Why my Firefox v6.02 browser always open *.csv (comma delimited) file in another tab rather than downloading a file? I do not have right click option to save this file.

    My Firefox v6.02 browser always open *.csv (comma delimited) file in another tab rather than downloading a file? I do not have right click option to save this file. My OP is windows XP sp2.

    Hi mha007,
    Go to this site "http://www.nseindia.com/content/indices/ind_histvalues.htm"
    Select any Index type and from dates select just one day or any number of days. Click "Get Details" button. This will open tabular data on loaded page (with link CSV file link at bottom).
    When I click this link, it opens CSV file in new tab (in Firefox browser) and does not open download window (just as in case of other file formats like *.zip, *.rar or *.xls).
    Right-click of link does not give "save as" or "save file" option.
    Firefox is my preferred and default browser.
    ========
    surprisingly, When I do same thing in IE6 browser, data-table page shows 2 options below table, i.e. (1) download file (2) open file.

  • Loading a video over HTTP

    I'm having problems loading a .3gp video over HTTP. I get the
    following error message "Error preparing video for playing".
    Everything else (xml data, images) loads nicely. I've tested
    this with Nokia 6630 and N70, but with no luck.
    If I transfer the files to my phone and load the video from
    the memory card, it works just fine. Is there something I can do to
    fix this?

    Ciao
    the defualt streaming protocol for Nokia is rtsp not http. So
    it will not work an http call to a video.
    Also using rtsp requires a streaming server, it's not enough
    to place the video file on the server.
    Other phone might use http for streaming.
    Alessandro

  • Safari always opens a linked file rather than download it.

    Safari always opens a linked file rather than download it. Can't always Right Click for menu option as the web page is not setup that way.
    Have tried trashing the Downloads.plist from the user library. Still no joy.
    Thanks anyone

    Hi guys
    Thanks for suggestions. Carolyn, I did as you suggested but didn't solve problem. KeeChan, as explained in original post, that is my usual fallback but not all web sites work like that. Try downloading Safari - right click (Ctrl Click) on download button and all you get is the "Download.png" image.
    I finally found the answer. A long time ago I had downloaded and used "SpeedDownload" and had deleted it. Somehow, some trace of the app was left behind and the mime association with dmg files was messed up.
    You can not get rid of Speed Download by throwing its files away or by using an app cleaner product. You MUST run the Speed Download installer program and select the "uninstall" option to remove it.
    My browsers now download dmg files correctly.

  • Cannot download file over https behind firewall ?

    I have a program to download files :
    public class TestServlet
         public static void main(String args[]){
        Authenticator.setDefault(new AuthImpl());
         if (args.length!=2){
          System.out.println("Proper Usage: java -Dhttp.proxyHost=172.21.32.166 -Dhttp.proxyPort=80 TestServlet RemoteFileURL LocalFileName");
           System.out.println("Usage Example:java -Dhttp.proxyHost=199.67.138.83 -Dhttp.proxyPort=8080 TestServlet https://url.com/csv/file.zip file.zip");
          System.exit(0);
         DataOutputStream out=null;
         FileOutputStream fOut=null;
         try
          trustAllHttpsCertificates();
          String urlStr = args[0];
              HostnameVerifier hv = new HostnameVerifier() {
                   public boolean verify(String urlHostName, SSLSession session) {
                        System.out.println("Warning: URL Host: "+urlHostName+" vs. "+session.getPeerHost());
                        return true;
             HttpsURLConnection.setDefaultHostnameVerifier(hv);
              System.out.println("\nConnecting to Website . . . "+urlStr);
              URL url = new URL(urlStr == null ? "https://url/Downloads/WC.csv" : urlStr);
              System.out.println("\nConnecting . . . . ");
              BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
              System.out.println(". . . Connected");
              System.out.print("\nDownloading the file . . . ");
              int buff;
              fOut=new FileOutputStream(args[1]);
              System.out.print(" . .");
              out=new DataOutputStream(fOut);
              System.out.print(" . .");
              while ((buff = in.read()) != -1) {
                fOut.write(buff);
              in.close();
            System.out.println(" . . . Done \n");
          catch (Exception e) {
                e.printStackTrace();
           finally {
              try{
                   fOut.flush();
                   fOut.close();
                   System.exit(0);
               catch(Exception e){
                   e.printStackTrace();
        HostnameVerifier hv = new HostnameVerifier()
            public boolean verify(String urlHostName, SSLSession session) {
                //System.out.println("Warning: URL Host: " + urlHostName + " vs. " + session.getPeerHost());
                return true;
        private static void trustAllHttpsCertificates() throws Exception
             //  Create a trust manager that does not validate certificate chains:
            javax.net.ssl.TrustManager[] trustAllCerts =  new javax.net.ssl.TrustManager[1];
            javax.net.ssl.TrustManager tm = new miTM();
            trustAllCerts[0] = tm;
              javax.net.ssl.SSLContext sc = javax.net.ssl.SSLContext.getInstance("SSL");
            sc.init(null, trustAllCerts, null);
            javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
        public static class miTM implements javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager {
            public java.security.cert.X509Certificate[] getAcceptedIssuers() {
                return null;
            public boolean isServerTrusted(java.security.cert.X509Certificate[] certs) {
                return true;
            public boolean isClientTrusted(java.security.cert.X509Certificate[] certs) {
                return true;
            public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType)
                    throws java.security.cert.CertificateException {
                return;
            public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType)
                    throws java.security.cert.CertificateException {
                return;
       public static class AuthImpl extends Authenticator {
       protected PasswordAuthentication getPasswordAuthentication() {
          String username = new String("guest");
    String password = new String ("guest");
           return new PasswordAuthentication(username, password.toCharArray());
    }This program works fine for downloading files, over both http and https from my home. When I run this on my desktop in the office it can download files over http, but cannot download https files.
    When I try to download files over https, I get the foll. exception:
    java.net.UnknownHostException: www.site.com
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
    at java.net.Socket.connect(Socket.java:452)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA12275)
    at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA12275)
    There are 2 differences here, one being that my office desktop sits behind a firewall and there is a proxy in between.
    In the office I run the program as :
    java -Dhttp.proxyHost -Dhttp.proxyPort TestServlet URL [filename]
    eg.:
    java -Dhttp.proxyHost=235.67.138.84 -Dhttp.proxyPort=8080 TestServlet https://site.com/portal/Downloads/file.csv file.csv
    This url requires authentication, the userid and pwd are hardcoded in the code.
    Now, my problem is I cannot understand why this error would come. Is it because of the firewall or because of the proxy ?
    Why is it that I can download over http successfully from my office desktop? If the problem is with the firewall or proxy, then even http protocol urls should give the same problem.
    Please help.
    Vinay
    Message was edited by:
    vinay_dsouza
    Message was edited by:
    vinay_dsouza

    If you are using HTTPS you should be setting
    https.proxyHost
    https.proxyPortnot the http.* ones.

  • Possible to "Update" the SDK rather than download entire 1+ GB file?

    Is it possible to "Update" the SDK from an older one rather than download the entire SDK again?
    Thanks

    Short answer: no.
    You would probably have to replace the individual files in the way that you want.
    Just leave the download on overnight if your connection is that slow.

  • Streaming iTunes (shared library) video over ethernet...

    I'm hoping someone with combined iTunes and networking savvy might be willing to help me out here. Here's the setup,
    I have an Intel iMac hooked up to Fantom 1TB drive via USB 2.0 (iTunes library on external). The iTunes library is shared to an iBook G4 over ethernet via a Linksys Wireless B router (but both comps are wired in for max speed). (To be clear, when I say 'shared' I mean that I open iTunes on the iBook with it's own library and select the shared iMac library from within the iTunes GUI). When I go to play videos over the shared library on the iBook they are quite choppy and slow and I'm wondering where the bottleneck is.
    I'm using Cat5e cable (1000Mbs+ so far as I can gather), but the router ports are 10/100 as is the ethernet port on the iBook (max 100Mbs). Further, the iBook has only 32MB of VRAM (although I've upgraded the RAM to 1.12GB). The iMac is running Leopard 10.5.5, iBook running Tiger 10.4.11, both machines running iTunes 8.0.1. I'm presuming that the read and transfer rates of the external are not the issue here because there are no problems viewing on the iMac, but I could be wrong.
    So is the bottleneck the 10/100 ethernet ports on the router/iBook, the iBook VRAM, or is there something inherent in iTunes library sharing itself that is causing the delays? I also have an Xbox 360 which reads the same shared library via Rivet/Connect360 over the same network and router and videos are fine on the Xbox which makes me think the problem is with the iBook or iTunes.
    I ask because I'm considering upgrading the router, and even replacing the iBook, but if it's something to do with iTunes itself, then there's not much point.
    Thanks to any and all who can offer advice.

    This evening I tried to narrow down the problem further and I think it boils down to the iBook not being able to process the video data fast enough rather than the transfer rate over the network or something inherent in iTunes.
    To do this I shared my library folder on the network and copied a file from it to the iBook's HDD, adding it also to iTunes locally on the iBook. The quality is the same whether I view it:
    1) Through the iTunes GUI 'SHARED' library over the network
    2) By opening it directly (using Quicktime) over the network through the mounted shared folder in finder
    3) Viewing it in Quicktime directly from the iBook's internal HDD
    4) Viewing it locally in iTunes from the iBook's HDD
    Now the question is whether the iBook should be able to view this video smoothly given its hardware, or do I have the logic board VRAM problem that I've been reading about...I guess an issue for another post/topic.
    Thanks for trying to help Tom.

  • Anybody transmit video over HTTP?

    use JMF to transmit video stream over HTTP but not RTP

    I'm trying to do just this at the moment, to try to implement a low bitrate videoconferencing application. It is possible. The people behind Microsoft Portrait did it successfully. Check out their white paper at http://www.acm.org/sigs/sigmm/MM2001/ep/li-demo/.
    But I don't have any idea how to do it. I'm not too good at networking stuff. Any help I can get?

  • Cannot change preference for JPG file to open in browser rather than download Mac OS 10.5.8

    I want to view individual jpg files uploaded to my mobileme account. The URL ends in .jpg. I can view the files as webpages in Safari, but with Firefox, my only choice is to download the file. I tried to change the preferences>applications>jpeg picture>to "use other" but the drop down menu goes right back to always ask. I've uninstalled and reinstalled Firefox, and restarted my computer. I have two other macs running 10.5.8, and this happens on both. When I type the same URL into my mac running 10.6.3, a dialog box appears that gives me the option of choosing which application to open the file with (in this case Firefox, so that I can view the file in a web page) rather than just downloading the file. The dialog box in the 10.5.8 doesn't give me the option of choosing an app, only "Save File" or "Cancel". I'm sorry if this is long-winded.
    == This happened ==
    Every time Firefox opened
    == Today ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16

    Could any of these apply?
    Installation Restrictions
    Do not install the product if you use any applications, which extend standard Finder
    functionality (such as Path Finder, SNAX, etc.) If you already have some of these applications,
    disable them first, and then install SPSS 13 for Mac OS X. Installation may not be completed
    successfully if the name of any folder in the installation path exceeds 31 characters. This is due
    to a limitation of Installer VISE.
    Updating or Modifying Your Installation
    To add a component, start the installation program from your CD-ROM. Select any new
    components that you want to include. Make sure that every option you want to include is
    selected including any previously installed components. 
    To add an SPSS option (Categories, Conjoint, Tables, and so on), start the SPSS 13 License
    Renewal utility. If your license for SPSS Base or an SPSS option has expired you should run
    this utility and enter the new license(s).
    An installation log file is created in the  ~/Library/Logs folder of the destination volume. You
    may use the information in the log file to remove the installed copy of SPSS 13 for Mac OS X.

  • How can I change my safari preferences to save a file rather than download

    How can I change my safari preferences to save a file rather than it downloading

    danieladorotiak wrote:
    When I click on the 'save application file, it download's it and doesn't give me the option to save it.
    I can't be sure, but what probably happens is that the page doesn't give you a link to a downloadable file, but a button which activates a script. There's nothing you can do about that, because you don't control the script.
    it just downloads the transcripts not the document.
    It sounds like the downloaded file does not open or execute as it's supposed to (which, for instance, would happen if what you downloaded was a Java application, but you didn't have Java installed).
    If you are allowed to, give us the URL and we'll have a look. Also, you should add what version of Mac OS X and of Safari you are using, and you should correct your profile (which says "Mac Pro" -- this forum is for the MacBook Pro, which is a different computer from the Mac Pro).

  • Csv files open rather than download

    Hello,
    We've just set up a new Communigate Pro mail server. However, our Safari users are experiencing a bit of a quirk when it comes to accessing their attachments. When clicking on the download link for an attachment of content-type text/csv, the attachment opens as plain text in a new Safari window by default rather than it being downloaded. The user can option-click to force it to download, but I'd rather it download by default, as is the case with Firefox. Is there a preferences setting I can change to make this happen?
    Thanks,
    Bill

    Hi Bill,
    There's no setting you can set in Safari to make it download a particular file. I don't know anything about Communigate but can you modify it to specify a content-disposition header for the csv files? E.g.
    Content-Disposition: attachment; filename="mydatafile.csv"
    The 'Content-Disposition' header will tell the browser to download the file rather than view it inline.

  • How do I open an xlsx file from a website rather than downloading it?

    When I try to open an .xlsx file from a website, it downloads and does not open. Before the last update, it would just open the file. How do I get it to open when I click on it rather than just download it?

    Thanks for the suggestion. Unfortunately, that didn't work...it still just downloads it to the temp file and doesn't open. Any other ideas? It worked before the last update of Firefox.

Maybe you are looking for