通过wowza(实时流)将谷歌眼镜连接到android应用

时间:2018-09-19 11:49:40

标签: android google-glass live-streaming wowza wowza-transcoder

我尝试将Google Glass连接到我自己的android应用程序,并且尝试使用wowza live在其上显示实时流,但是我不知道为什么它不起作用。任何人都有主意吗?

这是我的全部代码: https://github.com/andermaco/GlassStream

这是我的代码中提供错误的一部分,这是什么错误??

try {
                // We parse the URI written in the Editext
                Pattern uri = Pattern.compile("rtsp://(.+):(\\d+)/(.+)");
                Matcher m = uri.matcher(url); m.find();

                ip = m.group(1);
                port = m.group(2);
                path = m.group(3);

                // Connection to the RTSP server
                if (mSession.getVideoTrack() != null) {
                    mSession.getVideoTrack().setVideoQuality(mQuality);
                }
                mClient.setCredentials(user, password);
                mClient.setServerAddress(ip, Integer.parseInt(port));
                mClient.setStreamPath("/"+path);
                mClient.startStream(1);

                // Init recording flag
                recording = true;

                return START_SUCCEEDED;
            } catch (Exception e) {
                Log.e(TAG, "Error starting streaiming.", e);
                Toast.makeText(getApplicationContext(), e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();
                return START_FAILED;
            }

这是错误:

 E/CameraActivity: Error starting streaiming. 
java.lang.IllegalStateException: No successful match so far com.mundoglass.worldglass.CameraActivity$ToggleStreamAsyncTask.doInBackground(CameraActivity.java:190) 

0 个答案:

没有答案