Results 1 to 6 of 6

Thread: How do I stream media from my webpage or server?

  1. #1
    Join Date
    Aug 2006
    Posts
    173

    How do I stream media from my webpage or server?

    I want to create a Web page that can play the media. All I want is to stream media from my webpage. So that when someone visits that web page, it should play from the starting. I hope that you have got my point. Does anyone know how to do that? Any suggestions are really appreciable.
    "Let us remember that our interest is in concord, not conflict, and that our real eminence rests in the victories of peace, not those of war." -McKinley

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How do I stream media from my webpage or server?

    Using the Streaming media, such as RealAudio sound files in your Website is the great way to make it attractive. There are some specific things that are required, so that it can work correctly. They are :
    • file types that can be streamed
    • server software that supports streaming media

    Web Server needs to support streaming then only you can put streaming media on your Web site. Nowadays many hosting providers offer streaming media support. So you can ask your provider about the compatibility of the media.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: How do I stream media from my webpage or server?

    Once you know that your Web server has streaming media support, then you can set up your RAM file using that server. And that RAM file should have only a URL pointing to the .pm file where it would be located on the streaming server. After this you will have to save your RAM file as "filename".ram and make sure that nothing is there in that file except the link to your pnm server. Then on your HTML page, you have to just link the RAM file as the other file on your Server. When user clicks on that link, the file will begin to stream from the computer.
    e.g. : <a href="http://mywebpage.demo.com/welcome.ram">
    Then upload the HTML and the RAM to your Web server and the .rm file to your streaming media server

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How do I stream media from my webpage or server?

    You can use the following code to stream media to your Server using the Java :

    import java.io.*;
    import java.net.*;
    import java.util.*;

    public class HTTPServer {
    ServerSocket serversocket;
    Socket socket;
    BufferedReader input;
    PrintWriter output;
    boolean error;

    public HTTPServer() {
    error = false;
    }

    public void start() {
    try {
    serversocket = new ServerSocket(80);
    socket = serversocket.accept();
    input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    output = new PrintWriter(socket.getOutputStream());
    } catch(IOException e) {
    error = true;
    }
    }

    public void stop() {
    try {
    input.close();
    output.flush();
    output.close();
    socket.close();
    serversocket.close();
    } catch(IOException e) {
    error = true;
    }
    }

    public void send(String data) {
    output.println(data);
    output.flush();
    }

    public String receive() {
    String data = "";

    try {
    data = input.readLine();
    } catch(IOException e) {
    error = true;
    }

    return data;
    }
    }

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How do I stream media from my webpage or server?

    You will have to check some details before Streaming Media from the Webpage and they are :
    • How much bandwidth do you need for a given size of video stream which depends on how good the encoding/compression is and other factors like the amount of dynamic activity there is going on. It can vary quite a bit during the video sequence.
    • The overall system capability will also determine how effectively the video stream can be encoded, compressed and streamed. It will be better if the CPU power is more.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    Re: How do I stream media from my webpage or server?

    You can also use the Icecast for streaming media from your Webpage or the Server. I think that you should try this first and suppose that it is not working according to you then you can go for the coding. I think that the coding in Java will certainly help you.

Similar Threads

  1. Replies: 4
    Last Post: 08-02-2012, 11:53 PM
  2. Replies: 4
    Last Post: 26-08-2011, 07:44 AM
  3. Replies: 6
    Last Post: 22-07-2011, 11:29 AM
  4. How to stream media from Mac to PS3?
    By Kusumakar in forum Video Games
    Replies: 4
    Last Post: 01-06-2010, 03:58 PM
  5. Replies: 1
    Last Post: 24-10-2008, 04:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,037,867.04855 seconds with 17 queries