Hi,
I need to read a stream two times, from start to end.
But the following code throws an ObjectDisposedException: Cannot access a closed file exception.
string fileToReadPath = @"<path here>";
using (FileStream fs = new FileStream(fileToReadPath, FileMode.Open))
{
using (StreamReader reader = new StreamReader(fs))
{
...
I know this stream works because of two reasons:
1) It works OUTSIDE of OSMF
2) It works in the akamai support player: http://support.akamai.com/flash/ I don't believe the current akamai support player is using OSMF (which is suprising since they built the predecessor to osmf..)
My question is: How in the world do I play a live str...
I am pulling data from a bzip2 stream within a C application. As chunks of data come out of the decompressor, they can be written to stdout:
fwrite(buffer, 1, length, stdout);
This works great. I get all the data when it is sent to stdout.
Instead of writing to stdout, I would like to process the output from this statement internally...
Hy!
I read shoutcast stream in android, the probeleme is the following:
in VLC i get 200 kb/s inner byte speed
in android i get 50 kb/s
is it normal? i get always the VLC kb/4 in my android phone. i am using WIFI
why?
...
Hello Everyone,
I am connecting to a server which sends updates about financial information. The code I post below will work correctly for a few minutes then usually blows up when it tries to do an EndRead (where I have noted), because there was 0 bytes at that moment to be read. Obviously in the financial world some things can stay t...
I'm writing a simple frontend in Python to play and record internet radio channels (e.g. from shoutcast) using mplayer (in a subprocess). When a user clicks a station the following code is run:
url = http://77.111.88.131:8010 # only an example
cmd = "mplayer %s" % url
p = subprocess.Popen(cmd.split(), shell=False)
wait = os.waitpid(p....
I have a flash application, some kind of a play-list that loads external SWF video player (I don't have code access to that external file), so users can watch the video or skip to another one. When user switches to another video new SWF file is being loaded.
The problem: If user didn't finish watching the video and skips to the next th...
HI all,
Im having a strange thing. Im having a code that was working that doesnt anymore. To me, I think i didnt make any changes...Can someone give me an idea what is wrong ??
I'm trying to publish a text with an image and a link using the attachment method of stream.publish.
here is the code :
Bundle myParams = new Bundl...
Hello, I have a flex app (3.0) working with a red5 server (0.63). (yes, we did not upgrade yet).
My App records a video in Red5, and during the recording we use the ns.send to send some messages (such changing images). When playing back the live stream, it works perfectly.
But when I playback the recorded videos, it does not work. Usin...
Hello,
im looking for something quite simple, i thought, but didn't find any solution on the web.
I want to get the posts (only from the band, not others) from a FB Page Wall (its a Band, so no private profile) and publish it on MY own site.
I hoped to get the Posts as XML or JSON and then parse them.
So i wanted to use FB as a news Sy...
I'm making a downloader using C#, i want to add a feature of Pause & Resume download, i googled & implemented the suggestions but it didn't work for me meaning it started the download from the correct position but its not merging the existing file correctly, i tested it by downloading a video file but after pausing the download & startin...
I have a stream object in which I have some document, I know what document is it, how can I open that document without saving it into a file physically. So I want to directlly open the document from stream itself without saving it.
How to do that? I doing it in c#
...
I'm using ASP.NET MVC 2 and playing around with iCal Events.
I Generated my own .ics file and with Thunderbird I subscribe to that Calendar. Every time I change an Event in Thunderbird, it's fires a PUT and a PROPFIND methods.
In the PUT it sends the calendar file modified.
How can I get that in an Action?
my current action is:...
This is really strange. Absolute path doesn't work for both ifstream and ostream. It works when I use a relative path like so:
ofstream out;
out.open("file2.txt");
string river = "i love cheese";
if(!out){
cout << "error"; // have breakpoint set here
} else {
out << river; // have breakpoint set here (stops here when debugging)...
Hi,
I'm building a solution where a servlet on tomcat6 handles input from another machine by providing a jsp web page. I'd also like the same servlet to communicate with an applet on the same machine to show some results and perform a few tasks.
I'm able to connect from the applet to the servlet using a URLConnection but when receving ...
I want to make a class (let's call the class HugeStream) that takes an IEnumerable<Stream> in its constructor. This HugeStream should implement the Stream abstract class.
Basically, I have 1 to many pieces of UTF8 streams coming from a DB that when put together, make a gigantic XML document. The HugeStream needs to be file-backed so tha...
I wrote this this method to download a webpage given a URL. It is designed to download HTML only. If I want to do error checking and allow HTML only how should I do this?
public static String download(URL url) throws IOException {
InputStream is = url.openStream();
BufferedReader reader = new BufferedReader(new InputStreamRe...
By default url.openStream(); uses IPv6. My schools server silently blocks IPv6. This causes url.openStream(); to hang for 3 minutes and 15 seconds. Is there a way that I can get url.openStream() to use IPv4 by default?
...
In the following code:
DataInputStream in = new DataInputStream(
new BufferedInputStream(new FileInputStream(file)));
in.close();
do I need to close the 2 other stream in addition to closing the "top level" stream ?
Manu
...
Hello everybody.
I've got quite a weird problem.
I'm writing a wrapper for TcpClient to send and receive HTTP requests.
The main reason I don't use the built-in WebRequest is because I need a support for SOCKS proxies, and WebRequest does not support it.
Anyway, in one of my tests(That use no proxy, just ordinary TcpClient), I've got a...