Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stubing NetStream for video playback

  • Loading branch information...
commit 6901830f9377a3fb900cd58ef2dda27723114f9b 1 parent 2cd517f
@yurydelendik yurydelendik authored mbebenita committed
Showing with 5 additions and 21 deletions.
  1. +2 −18 src/flash/net/NetConnection.js
  2. +3 −3 src/flash/net/NetStream.js
View
20 src/flash/net/NetConnection.js
@@ -18,13 +18,13 @@ var NetConnectionDefinition = (function () {
},
instance: {
connect: function connect(command) { // (command:String) -> void
- notImplemented("NetConnection.connect");
+ somewhatImplemented("NetConnection.connect");
},
invoke: function invoke(index) { // (index:uint) -> any
notImplemented("NetConnection.invoke");
},
invokeWithArgsArray: function invokeWithArgsArray(index, args) { // (index:uint, args:Array) -> any
- notImplemented("NetConnection.invokeWithArgsArray");
+ somewhatImplemented("NetConnection.invokeWithArgsArray");
},
connected: {
get: function connected() { // (void) -> Boolean
@@ -127,22 +127,6 @@ var NetConnectionDefinition = (function () {
}
}
}
- },
- script: {
- static: {
- // ...
- },
- instance: {
- close: function close() { // (void) -> void
- notImplemented("NetConnection.close");
- },
- addHeader: function addHeader(operation, mustUnderstand, param) { // (operation:String, mustUnderstand:Boolean = false, param:Object = null) -> void
- notImplemented("NetConnection.addHeader");
- },
- call: function call(command, responder) { // (command:String, responder:Responder) -> void
- notImplemented("NetConnection.call");
- }
- }
}
}
};
View
6 src/flash/net/NetStream.js
@@ -11,7 +11,7 @@ var NetStreamDefinition = (function () {
instance: {
ctor: function ctor(connection, peerID) {
// (connection:NetConnection, peerID:String) -> void
- notImplemented("NetStream.ctor");
+ somewhatImplemented("NetStream.ctor");
},
onResult: function onResult(streamId) {
// (streamId:int) -> void
@@ -21,10 +21,10 @@ var NetStreamDefinition = (function () {
// (void) -> void
notImplemented("NetStream.dispose");
},
- play: function play() {
+ play: function play(url) {
// (void) -> void
this._url = url;
- notImplemented("NetStream.play");
+ somewhatImplemented("NetStream.play");
},
play2: function play2(param) {
// (param:NetStreamPlayOptions) -> void
Please sign in to comment.
Something went wrong with that request. Please try again.