GithubHelp home page GithubHelp logo

skyway-android-sample's Introduction

Deprecated!

We have released a new WebRTC platform, ECLWebRTC, to take the place of SkyWay. We will be shutting down the SkyWay servers in March 2018. Customers who are currently using SkyWay are required to migrate to ECLWebRTC by then or their services will stop working.

If you are looking for the repository of ECLWebRTC, please see the new examples.

このレポジトリは、2018年3月に提供を終了する旧SkyWayのAndroid SDKのサンプルアプリです。新しいSkyWayへの移行をお願いします。

すでに新しいSkyWayをご利用の方は、新しいサンプルアプリをご覧ください。

SKWAndroidSampleApp

How to build (Android Studio)

  1. Register an account on SkyWay and get an API key
  2. Clone or download this repository.
  3. Open "SkyWay-Android-Sample"
  4. Make directory "app/libs" of your project. Add "SkyWay.aar" to the "app/libs".
  5. Download "SkyWay.aar" from SkyWay
  6. Set APIKey and Domain to your API key/Domain registered on SkyWay.io at both "DatActivity.java" and "MediaActivity" and build!
// Please check this page. >> https://skyway.io/ds/
//Enter your API Key and registered Domain.
options.key = "";
options.domain = "";

ビルド方法 (Android Studio)

  1. SkyWayでアカウントを作成し、APIkeyを取得
  2. このレポジトリをクローンまたはダウンロード
  3. "SkyWay-Android-Sample"を開く
  4. プロジェクト内でapp/libsディレクトリ作成し、"SkyWay.aar"をapp/libsに追加
  5. "SkyWay.aar"はSkyWayからダウンロード
  6. "DataActivity.java" と "MediaActivity.java"のAPIKeyとDomainにAPIkeyとDomainを入力し、ビルド
// Please check this page. >> https://skyway.io/ds/
//Enter your API Key and registered Domain.
options.key = "";
options.domain = "";

skyway-android-sample's People

Contributors

iwashi avatar rocky85 avatar rokihiro avatar rotsuya avatar sho-y avatar y-i avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skyway-android-sample's Issues

AndroidからWeb(Perrjs)にCallするとTypeError

SkyWay-Android-SampleからWeb(Perrjs)にCallするとTypeErrorが発生してしまいます。
SkyWay-iOS-Sampleでは正常に動作しました。幾つかのAndroidデバイスで試しましたが同様の結果になってしまいます。こちら原因はわかりますでしょうか?下記にWeb上で発生したエラーログを載せておきます。

(program):39 [stackTrace] TypeError: Cannot read property 'addIceCandidate' of undefined
    at Object.Negotiator.handleCandidate (eval at <anonymous> (http://localhost:8080/main.bundle.js:1062:2), <anonymous>:343:16)
    at MediaConnection.handleMessage (eval at <anonymous> (http://localhost:8080/main.bundle.js:3189:2), <anonymous>:53:18)
    at Peer._handleMessage (eval at <anonymous> (http://localhost:8080/main.bundle.js:3195:2), <anonymous>:305:22)
    at Socket.eval (eval at <anonymous> (http://localhost:8080/main.bundle.js:3195:2), <anonymous>:127:10)
    at Socket.emit (eval at <anonymous> (http://localhost:8080/main.bundle.js:322:2), <anonymous>:73:28)
    at WebSocket._socket.onmessage (eval at <anonymous> (http://localhost:8080/main.bundle.js:3201:2), <anonymous>:55:10)
    at WebSocket.wrapFn [as _onmessage] (eval at <anonymous> (http://localhost:8080/polyfills.bundle.js:1:0), <anonymous>:769:30)
    at ZoneDelegate.invokeTask (eval at <anonymous> (http://localhost:8080/polyfills.bundle.js:1:0), <anonymous>:356:38)
    at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/vendor.bundle.js:1705:2), <anonymous>:37:41)
    at ZoneDelegate.invokeTask (eval at <anonymous> (http://localhost:8080/polyfills.bundle.js:1:0), <anonymous>:355:43)
    at Zone.runTask (eval at <anonymous> (http://localhost:8080/polyfills.bundle.js:1:0), <anonymous>:256:48)
    at WebSocket.ZoneTask.invoke (eval at <anonymous> (http://localhost:8080/polyfills.bundle.js:1:0), <anonymous>:423:34)

Crash application when close mediastream during remote accept phone call.

When remote accept phone call, local perform hangup and disconnect to remote. The first, local check mediastream not null and are opened. Local call close method and get Null pointer exception after that.

Reproduce step:

  • A call to B.
  • B accept call.
  • A press cancel button.

Actual:

  • A crash application.

Expect:

  • Check null before call.

Exception information:

io.skyway.skw_sample E/AndroidRuntime: FATAL EXCEPTION: io.skyway.peer.handler
    Process: io.skyway.skw_sample, PID: 17485
    method 'void io.skyway.Peer.Peer.queueWSMessage(org.json.JSONObject)' on a null object reference
    at io.skyway.Peer.BaseConnection$4.run(BaseConnection.java:867)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.os.HandlerThread.run(HandlerThread.java:61)

Reason:

this.provider.handler.postDelayed(new Runnable() {
        public void run() {
            if(null != BaseConnection.this._jsonOffer) {
                BaseConnection.this.provider.queueWSMessage(BaseConnection.this._jsonOffer);
                BaseConnection.this._jsonOffer = null;
            }
         }
}, 500L);

When remote accept phone call. this code above will be called. This code delay for 0.5 second and if local call close() method during this time, BaseConnection.this.provider will be clear. Only BaseConnection.this._jsonOffer had been checked null. Therefore, Null pointer exception occurred.

Canvas rotation error, black screen

Hello all,
I have a problem with io.skyway.Peer.Browser.Canvas. I would like to rotate video stream on this canvas by 90 degrees but it did not execute rotation.
Setting "android:rotation='90'" in layout xml rotates but yields black surface - no camera preview.
How can I do it?
Please help me,
Thanks for all

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.