Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-01-2010
Member
 
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
Reply With Quote
  #2  
Old 05-01-2010
Member
 
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.
Reply With Quote
  #3  
Old 05-01-2010
Member
 
Join Date: May 2008
Posts: 2,008
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
Reply With Quote
  #4  
Old 05-01-2010
Member
 
Join Date: Jan 2008
Posts: 1,515
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;
}
}
Reply With Quote
  #5  
Old 05-01-2010
Member
 
Join Date: Feb 2008
Posts: 1,848
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.
Reply With Quote
  #6  
Old 05-01-2010
Member
 
Join Date: May 2008
Posts: 2,293
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How do I stream media from my webpage or server?"
Thread Thread Starter Forum Replies Last Post
Is it possible to stream videos on xbmc and other media server MindIT! MediaCenter 4 08-02-2012 11:53 PM
PS3, after 3.70 update Media player server is not able to stream with my ps3 Kalatapaswi Portable Devices 4 26-08-2011 07:44 AM
How to stream 1080p content from media server using gigabit connection? X-MaaN Networking & Security 6 22-07-2011 11:29 AM
How to stream media from Mac to PS3? Kusumakar Video Games 4 01-06-2010 03:58 PM
How to Set VLC Player as Media Server to Stream Media Files in Digital Home Pratim Tips & Tweaks 1 24-10-2008 04:14 PM


All times are GMT +5.5. The time now is 11:59 AM.