You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following code to process a ws stream.
The data I am sending works fine through a http stream in an audio tag - and through a conventional flash method method of playing streams.
I have included the console.log of data, if that helps... the byte length looks fairly big enough (byteLength: 4180), but I can increase if need be... I have tried some big numbers already!
The stream is an MP3 feed, which is realtime radio so dosn't have the MP3 headers AV may be expecting, I can inject these on connection if that's the right thig to do, just need to know what AV is expected.
var MySource = AV.EventEmitter.extend({
start: function() {
var source = this
source.socket = new WebSocket("ws://localhost:8071");
source.socket.binaryType = 'arraybuffer';
I am using the following code to process a ws stream.
The data I am sending works fine through a http stream in an audio tag - and through a conventional flash method method of playing streams.
I have included the console.log of data, if that helps... the byte length looks fairly big enough (byteLength: 4180), but I can increase if need be... I have tried some big numbers already!
The stream is an MP3 feed, which is realtime radio so dosn't have the MP3 headers AV may be expecting, I can inject these on connection if that's the right thig to do, just need to know what AV is expected.
var MySource = AV.EventEmitter.extend({
start: function() {
var source = this
source.socket = new WebSocket("ws://localhost:8071");
source.socket.binaryType = 'arraybuffer';
Console Output
MessageEvent {ports: Array[0], data: ArrayBuffer, source: null, lastEventId: "", origin: "ws://localhost:8071"…}
bubbles: false
cancelBubble: false
cancelable: false
clipboardData: undefined
currentTarget: WebSocket
data: ArrayBuffer
byteLength: 4180
proto: ArrayBuffer
defaultPrevented: false
eventPhase: 0
lastEventId: ""
origin: "ws://localhost:8071"
ports: Array[0]
returnValue: true
source: null
srcElement: WebSocket
target: WebSocket
timeStamp: 1383899351132
type: "message"
proto: MessageEvent
The text was updated successfully, but these errors were encountered: