node.js,audio-streaming,red5,rtmp,webrtcRelated issues-Collection of common programming errors


  • Kiran
    javascript node.js express jade
    I am new to nodejs and trying to create a jade file for the html content myfile.jade: Here are the contents of the file:extends layout block contentscriptfunction capitalize(s) { console.log(“Testing js exec”);return s.charAt(0).toUpperCase() + s.slice(1); };table- each item in listtrtda(href=”/collection/#{item.name}”) #{capitalize(itemName)}However, when running it throws the following error:Error: mweb/views/collections.jade:86| script7| function capitalize(s) { > 8| console.lo

  • Spero78
    javascript node.js function object
    I am currently programming a socket server in node.js using the json-socket module, and am having some trouble.Currently when a client connects to the server they send a command in a json object with some data for instance a login would look like this{ type : ‘login’, data : { username: ‘Spero78’ } }to deal with these requests i have a commands objectvar commands = {‘login’ : authUser,’register’ : userRegister }and these functions are called by server.on server.on(‘connection’, function(socket)

  • bryanmac
    javascript json node.js
    I have been looking for a couple of days for the answer for this and nothing seems to work. Im kinda new to node.js and I’m working on only the server side to answer POST from the client side. This is kinda like an assignment that i have to do. What i need to do is when the client script, that i did not write, makes a POST request at location ‘/sort’ with parameter theArray, i need to sort the array removing all non-string values and return the resulting value as JSON. The client script will sen

  • Garbagemanonfire
    javascript osx node.js terminal read-eval-print-loop
    I am using node v0.10.20 and OSX 10.8.5. I created a simple js file called variables.js which you can see below:var productName var currentPrice var totalCost var productTaxproductName = “cookies” currentPrice = 3 productTax = currentPrice * .07 totalCost = currentPrice + productTax console.log(“Your ” + productName + ” cost $” + totalCost)When I run the lines individually in the node repl, or in chrome, it works correctly and the ouput is “Your cookies cost $3.21”.However, when I run the comman

  • Ilya Tsuryev
    node.js
    Let’s take e.g. “top” application which displays system information and periodically updates it.I want to run it using node.js and display that information (and updates!). Code I’ve come up with:#!/usr/bin/env nodevar spawn = require(‘child_process’).spawn;var top = spawn(‘top’, []);top.stdout.on(‘readable’, function () {console.log(“readable”);console.log(‘stdout: ‘+top.stdout.read()); });It doesn’t behave the way I expected. In fact it produces nothing:readable stdout: null readable stdout: r

  • casperOne
    bash node.js npm forever
    i am attempting to install forever using npm via shell command line:npm install foreverthis is the response i am getting:npm ERR! Failed to parse json npm ERR! Unexpected end of input npm ERR! File: /home/MYUSER/package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse npm ERR! System Linux 3.1.9-vs2.3.2.5 npm ERR!

  • Lee Abraham
    node.js object coffeescript
    I have some CoffeeScript code that reads in data from an http stream.https = require ‘https’export.commScore = (IP,from,file)->options =path: “ctasd/ClassifyMessage_File”,host: “127.0.0.1”,method: “POST”,port: “8088”,headers:”Accept-Language”:”en-us”,”Accept”:”*/*”,”User-Agent”:”Commtouch HTTP Client”,”X-CTCH-PVer”: “0000001”,”X-CTCH-SenderIP”: IP,”X-CTCH-MailFrom”: from,”X-CTCH-FileName”: filestream = http.request(options,(response)->)Every time I try to compile this code I get an error t

  • sarat
    javascript node.js
    This is really fundamental… I am just getting started with Node.js.I have a simple moduleserver.jsvar http = require(“http”);function start() {function onRequest() {console.log(“Request received”);response.writeHead(200, {“Content-Type”: “text/plain”});response.write(“Hello World”);response.end();}http.createServer(onRequest).listen(8888);console.log(“Server has started…”); }export.start = start;and it’s being called from index.js as followsvar server = require(“./server”); server.start();bu

  • Mohamed Naguib
    javascript node.js
    I am trying to do a function like async/await in C# but in node js I have found an example but It gives me an error.here is the codefunction* gotNews(response){ console.log(“in gotNews”);str=”;response.on(‘data’, function (chunk) {str += chunk;}); response.on(‘end’, function () {str = JSON.parse(str);console.log(str);fetchCategories();});return str; }function fetchNews(sourceURL){console.log(“in fetch news”);sourceURL = url.parse(sourceURL);console.log(sourceURL);var options = {host: sour

  • 1.44mb
    node.js design express socket.io
    I have almost completed a turn-based multiplayer game with node.js and socket.io. I have express.js as web server and another class acting as game server, using socket.io.My problem is that these two are running in the same application. I have a web-landing page where users can log in and see their player details and chat in the lobby. Now until here there is nothing related to game logic. So i’m asking myself why in the hell is this game server running in the same app with webserver. Also note

  • Geoffrey Hing
    node.js audio-streaming red5 rtmp webrtc
    This is more a conceptual question rather than a direct “how to do this”. Is it generally possible to implement a flash-like solution to stream the audio (independent of where we get the stream data from, e.g. webRTC or other) in HTML5 and nodeJS/binaryJS. If so, how would you go about this?There has been only one inquire on stackoverflow found here and its from 2010. NodeJS and HTML5 have grown and matured since then.What people usually do: When using multimedia streaming (i.e. video or audio)

  • Angelo Lupo
    php mongodb audio-streaming html5-audio
    I wrote a little audio streamer based on mongo and php with a player in HTML5. Every time I play something audio suddenly stops. I’m using php 5.3.3-1 as server on xubuntu 13.04 and MongoDB, everything is streamed locally. The code is on github at this address: link<?phprequire(“core/core.php”);$id = $_GET[‘id’]; $x = Track::object($id);header(“Content-Type: {$x->mime}”); header(“Content-Description: File Transfer”); header(“Content-lenght: {$x->size}”); if ( !empty($_GET[‘download’]) )

  • Curtis
    asp.net streaming audio-streaming
    We have a need to stream live audio from remote devices and be able to listen to it in a web page. I can stream stored audio files, but the live stream has me a bit confused, since we will be adding the data at runtime. Can someone point me in the right direction to show me how to do this?Thanks

  • Nika Gamkrelidze
    java audio audio-streaming keylistener
    I’m writing text editor that is supposed to actually SAY the current key that is pressed. I managed to do that, I even prepared files. And everything works just fine, but when the amount of symbols becomes more than 29, the compiler says: javax.sound.sampled.LineUnavailableException: unable to obtain a line at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.connect(PulseAudioDataLine.java:279) at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:102) at org.cla

  • Madan Mohan
    iphone objective-c audio-streaming
    I am using an Audio streamer into my application.I am getting the audiofile form the server and playing it using audio streamer.The url is like http://182.18.140.134/ExpressPlus/audio/356108042705526/teja.mp3 when I try to play this audio its generating an alert as “Parse bytes failed. err: optm 1869640813”.Guy’s any idea how to resolve it?Thanks to all, Madan.

  • ohnoes
    audio streaming live audio-streaming
    I wonder if you could share your thoughts / resources about live audio streaming (to run on-line radio station). I have to admit, I am a complete newbie to the subject, so please excuse me lack of details. What are the most recommended platforms / software setups? Opinions based on personal experience would be highly appreciated.Thank you in advance.

  • iUser
    iphone xcode memory-management audio-streaming avqueueplayer
    I am using AVQueuePlayer for playing multiple music file.I am using this code,NSString *str1 = @”www.mymusic.1.mp3″; NSURL *url1 = [NSURL URLWithString:str1]; AVPlayerItem *s1 = [AVPlayerItem playerItemWithURL:url1];NSString *str2 = @”www.mymusic.2.mp3″; NSURL *url2 = [NSURL URLWithString:str2]; AVPlayerItem *s2 = [AVPlayerItem playerItemWithURL:url2];myQueue = [[AVQueuePlayer alloc] initWithItems:[NSArray arrayWithObjects:s1,s2, nil]]; [myQueue play];But application crashes while playing first

  • Saurabh
    iphone audio-streaming crash-dumps
    I am using DigitalDj’s AudioStreamer project (https://github.com/DigitalDJ/AudioStreamer) to stream audio in the background in my application. Everything works fine when the app is in the foreground but sometimes it gets crashed in back ground. Here is a very strange crash log.Incident Identifier: F6F6B97C-1943-460D-8A4E-5608B47E6989 CrashReporter Key: 3a88f20a9e18f468445bddc212b7aa673c6dc89b Hardware Model: iPod4,1 Process: iMixtapes [1075] Path: /var/mobile/Applicatio

  • Michael Scott Cuthbert
    ios crash audio-streaming radio music-player
    I tried to build a radio in my app using webView. But on loading the link my app crashes every time.- (IBAction)playMusic:(id)sender {NSString *stream = @”http://www.bbc.co.uk/radio/listen/live/r2.pls”; //just an example linkNSURL *url = [NSURL URLWithString:stream];NSURLRequest *urlrequest = [NSURLRequest requestWithURL:url];[Webview loadRequest:urlrequest]; }…but with a page link (like www.google.com) everything works fine. Maybe there is also a better solution than using webView to play rad

  • marienke
    android buffer android-mediaplayer audio-streaming http-live-streaming
    We are experiencing almost the exact opposite of what is mentioned here: Why does it take so long for Androids MediaPlayer to prepare some live streams for playback?I’ve tested multiple streams but two in particular1 – http://usa8-vn.mixstream.net:8138 – SampleRate: 32000Hz and Bitrate: 96 kb/s2 – http://source01.platform02.true.nl:800 – SampleRate: 44100Hz and Bitrate: 128 kb/sThe lower bitrate stream starts playing instantly (as soon as the media player is prepared), while the higher bitrate s

  • Geoffrey Hing
    node.js audio-streaming red5 rtmp webrtc
    This is more a conceptual question rather than a direct “how to do this”. Is it generally possible to implement a flash-like solution to stream the audio (independent of where we get the stream data from, e.g. webRTC or other) in HTML5 and nodeJS/binaryJS. If so, how would you go about this?There has been only one inquire on stackoverflow found here and its from 2010. NodeJS and HTML5 have grown and matured since then.What people usually do: When using multimedia streaming (i.e. video or audio)

  • ufk
    java spring module red5
    I’m writing a big Red5 Java application for the web. Red5 a Flash Media Server alternative that is java based and is written with the spring framework.I want to have many versions of my application online, each with different behaviors and different classes enabled or disabled.I’m looking for a way to convert my code into modules based code that will allow me to remove/add modules/features from the main application.I know about OSGI http://www.springsource.org/osgi but it says that it needs a Sp

  • haxpanel
    video stream red5 duration
    I’ve created a Red5-based video recorder/streamer and the problem is if I play back a previously recorded video the duration of the stream does not always got by the client. I think the server does not sends it reliably… Any idea? Thanks!

  • mat3001
    java eclipse spring jruby red5
    I am trying to run a JRuby app in Spring. I use Eclipse to run it. But it doesn’t compile. Does anybody know what’s going on here? Exception in thread “Launcher:/oflaDemo” [INFO] [Launcher:/oflaDemo] org.springframework.beans.factory.support.DefaultListableBeanFactory – Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4a009ab0: defining beans [placeholderConfig,web.context,web.scope,web.handler,demoService.service]; parent: org.springframework.beans.f

  • user1540371
    live red5
    Can some one tell me that how it is possible to rewind the live stream via RED5 Server.? Is it possible or not. Code Snippet may help.Reply soon.Also. I know pause has to deal with the flash player but i want to know from which position stream starts playing(from runtime,where it was stopped).??Awaiting Quick Response.B/R

  • Fuxi
    iis red5
    i’m trying to run the Red5 Media Server on my Live Server (Win Server 2008 R2). installation worked, i’ve entered localhost with port 5080, but when trying to start the Red5 service i’m getting this error:Windows could not start the Red5 service on Local Computer. Error 1067: The process terminated unexpectedly.things i already tried (without success):run red5 setup as administrator run red5 service as administrator open port 5080 in firewall turn off iis before trying to start the serviceany id

  • Matt
    eclipse spring red5 mybatis
    All,I’m trying to configure MyBatis in an application running under Red5 server. I created an additional spring config file red5-ibatis.xml under WEB-INF which has these beans configured (as described in mybatis-spring user guide):<bean id=”hsqldbDataSource” class=”org.apache.commons.dbcp.BasicDataSource”destroy-method=”close”><property name=”driverClassName” value=”org.hsqldb.jdbcDriver” /><property name=”url” value=”jdbc:hsqldb:file:./db/hsqldb/testdb” /><property name=”us

  • user1610684
    red5
    I want to ask you about building red5 application on centosI prepare all the files and configurationsAPP_NAME=> WEB-INF=>lib=>src=> Application.java=>classes=> Application.class=>build.xml=>red5-web.xml=>web.xml=>red5-web.properties=>log4j.properties=>build.properties all is ok the building also ok and make jar file is okant build ant build BUILD SUCCESSFUL but when I restart my red5 server all demos applications and my new application not workif I make new ne

  • Leri
    eclipse red5
    Im using windows 8 64-bit OS. I’m using Eclipse Indigo 32-bit for red5. I’ve installed red5 plugins. I wanted to build a dynamic web project and need Infrared5 server as New Server Runtime Environment. But I cannot find Infrared5 option when I click new Runtime.What is the matter? Am I missing something? Please help.

  • Kenshi
    java eclipse red5
    When I went to create a Dynamic Web Project in Eclipse I went to new runtime and clicked “Red5 Server Runtime”. When I hit next it is saying that I am missing class path entry red5.jar. I did a search on my computer and I could not find that. What to do?

  • Jan Dvorak
    php json flash flex rtmp
    {name: ‘com.riotgames.platform.summoner.PublicSummoner’,keys: [ ‘internalName’, ‘dataVersion’, ‘acctId’, ‘name’, ‘profileIconId’, ‘revisionDate’, ‘revisionId’, ‘summonerLevel’, ‘summonerId’, ‘futureData’ ],object: {internalName: ‘mrquackers’,dataVersion: 0,acctId: { value: 34117327 },name: ‘MrQuackers’,profileIconId: 502,revisionDate: Tue, 30 Oct 2012 19:38:32 GMT,revisionId: { value: 0 },summonerLevel: { value: 30 },summonerId: { value: 20933307 },futureData: null},encoding: 0 }(newlines and in

  • Geoffrey Hing
    node.js audio-streaming red5 rtmp webrtc
    This is more a conceptual question rather than a direct “how to do this”. Is it generally possible to implement a flash-like solution to stream the audio (independent of where we get the stream data from, e.g. webRTC or other) in HTML5 and nodeJS/binaryJS. If so, how would you go about this?There has been only one inquire on stackoverflow found here and its from 2010. NodeJS and HTML5 have grown and matured since then.What people usually do: When using multimedia streaming (i.e. video or audio)

  • Alexandr R
    ffmpeg h.264 rtmp libavcodec libavformat
    Have a nice day to you, people!I am writing an application for Windows that will capture the screen and send the stream to Wowza server by rtmp (for broadcasting). My application use ffmpeg and Qt. I capture the screen with WinApi, convert a buffer to YUV444(because it’s simplest) and encode frame as described at the file decoding_encoding.c (from FFmpeg examples)://///////////////////////// //Encoder initialization /////////////////////////// avcodec_register_all(); codec=avcodec_find_encoder(A

  • Wildan Muhlis
    linux ffmpeg red5 rtmp
    Is it possible to enabling ffmpeg library(e.g librtmp) at runtime?(not from config build)

  • elexhobby
    video-streaming vlc rtmp mplayer
    I often download rtmp videos from techtalks.tv usingmplayer -dumpstream rtmpurlWhen I play the stream in vlc, I cannot move to an arbitrary location – it crashes. Why is this? Can I convert the stream to some other format where I can jump to an arbitrary location like any mp4/mpeg video? How do I do that?

  • Rick Scolaro
    video-streaming memcache rtmp apc
    MY BUILDI am using a Linux CENTOS 6 server with Plesk 10.4.4 Apache and Wowza Media Server 3. The server is a quad core and has 12GB RAM.WHAT HAPPENED BEFOREI was having a problem with some WordPress websites that utilize lots of CPU when running custom CRON jobs, so I looked for ways to make the server faster.I first installed eAccelerator, and that caused alot of my MYSQL tables to crash and some other problems arose. I uninstalled it and everything went back to normal.Next, I found people w

  • jamix
    actionscript-3 flex rtmp netstream wowza
    I’m developing a one-on-one video chat application using Wowza. After the remote client stops publishing, I’m disconnecting the incoming NetStream. Here’s a gist of my code:incomingStream = new NetStream(netConnection); incomingStream.addEventListener(NetStatusEvent.NET_STATUS, incomingStreamHandler); incomingStream.play(“media”);private function incomingStreamHandler(event:NetStatusEvent):void {trace(event.info.code);if (event.info.code == “NetStream.Play.UnpublishNotify”){incomingStream.close(

  • Awais Ahmed Khan
    flex chat rtmp
    I am developing simple chat application, my main class is asac.as. When click send button It gives me exception Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.SharedObject was unable to invoke callback receiveMessag, connection is successful, don’t know why error is coming. chat.asc is chat file on server. can anybody tell me what is the problem?public class ASAC {protected var so:SharedObject;protected var chatStr:String;protected var nc1:NetConnection;protected var myResponder:Respon

  • ballofpopculture
    javascript jquery rtmp flowplayer
    Below is the code:<script language=”JavaScript” type=”text/javascript” src=”//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script><script language=”JavaScript” type=”text/javascript” src=”flowplayer/flowplayer.min.js”></script></head> <body><a style=”display: block;height:400px;width:600px;background-color: #ffffff;border: solid 1px #ccc;” id=”fms”></a><script language=”JavaScript” type=”text/javascript”>$f(“fms”, “flowplayer/flowp

  • HighFlyingFantasy
    ios ffmpeg openssl rtmp
    When compiling ffmpeg for OSX, I can simply use the:./configure –enable-librtmp –enable-gplcommand and get a build that can I/O with an rtmp stream. If I attempt to compile for iOS using: ./configure \ –disable-ffmpeg \ –disable-ffplay \ –disable-ffprobe \ –disable-ffserver \ –disable-mmx \ –enable-gpl \ –enable-shared \ –enable-librtmp \ –enable-avresample \ –enable-cross-compile \ –enable-pic \ –sysroot=”/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Dev

  • Imran Sheikh
    webrtc
    I am using the same code of AppRTC hosted by WebRTC.ORG but still my appRTC does not works.kindly let me know, what am I doing wrong?this is my appRTC app: http://qoon.azurewebsites.net

  • Geoffrey Hing
    node.js audio-streaming red5 rtmp webrtc
    This is more a conceptual question rather than a direct “how to do this”. Is it generally possible to implement a flash-like solution to stream the audio (independent of where we get the stream data from, e.g. webRTC or other) in HTML5 and nodeJS/binaryJS. If so, how would you go about this?There has been only one inquire on stackoverflow found here and its from 2010. NodeJS and HTML5 have grown and matured since then.What people usually do: When using multimedia streaming (i.e. video or audio)

  • Leo Lou
    node.js websocket localhost port webrtc
    I get the source code of a great webrtc demo from https://github.com/webRTC/webrtc.io-demoand the demo site is: webrtc.dennis.isIt works fine when I start a local node server, but when I upload the demo to a node server online( www.appfog.com ), I come into an unexpected bug which says :WebSocket connection to ‘ws://talktosomeone4.ap01.aws.af.cm/’ failed: Unexpected response code: 200 talktosomeone4.ap01.aws.af.cm:1At first I think maybe it’s caused by missing port,so I try to complete the webso

  • Konga Raju
    html5 webrtc
    How many peer connections can I create on a single client? Is there any limit?

  • user3026495
    video-streaming raspberry-pi webrtc beagleboneblack
    I want to build a standalone video chat application using Raspberry pi/ Beaglebone board (linux based). I have compiled the WebRTC API (libjingle_peerconnection library) but during runtime, it sayslibjingle_peerconnection_so.so : cannot open shared object file: No such file or directoryKindly provide the solution for this or any other alternative to achieve the objective.

  • Shih-En Chou
    html5 html5-video webrtc
    I run my webrtc code with chrome 21.If I open two tabs in the same chrome, and then open page with webrtc code inside. One tab is for sending video stream; one tab is for receiving video stream It works fine.However, If I open page with two Incognito mode or two different chrome browser, I can get the sdp and candidate information correctly. It seems that video can decode the information.In remote video, I only can see Besides, it seems crash. I tried to click “close chrome” but useless. Anyone

  • Jeet
    node.js deployment express production-environment webrtc
    I am using Webrtc, nodejs, Expressjs as the framework to create a audio, video and chat application. I have used Forever so that the script runs continuously. As my application deals with audio, video and chat. User presence plays an important role. We need to have the system up and running always and avoid system crashes and restart. If it happens we are going to loose all information regarding the users who were online. Need Suggestions what are the best approaches to avoid such situations.Als

  • nickd717
    ios ipad webrtc avcapture opentok
    I have a beta tester getting this error when trying to start a video session on our iPad app using the OpenTok iOS WebRTC SDK. The app crashes every time. User is on an iPad 2 with iOS 6.1.3. Does anyone have a clue what could be causing such an error? My best guess is something involving camera access, but I’m at a loss for what it could be.

  • user2773279
    ios webrtc
    I just downloaded the lukeweber version of webrtcjingle, which I believe is just a branch of the google one. I change the server and account setting on the demo and run it. It was able to log in and send/receive messages. However, When I tried to logout. The app crash.I had a little debug on it, and found out the line of code that crash was in file txmppump.cc, function:void TXmppPump::WakeTasks() {talk_base::Thread::Current()->Post(this);} Does anyone have an idea what the problem is? I not

  • Tako
    node.js socket.io webrtc
    I’m actually working on an application based on NodeJS, ws, WebRTC.io and socket.io. The aim of this application is to broadcast the video of an Host to multiple attendees.The host and all the attendees load the web application, then the host launch his video and stream it to all the attendees. For this case I don’t have any problem, but if the host launch his video, then an attendee join the room, this attendee is not able to retrieve the stream, and I don’t how to get this stream.I’ve tried ma

Web site is in building