fyhertz / libstreaming-examples

Some examples of how to use libstreaming
283 stars 231 forks source link

VLC no connection #32

Open simongiesen opened 8 years ago

simongiesen commented 8 years ago

Hi folks,

great work!

Just trying to get connected from my Mac by using the latest VLC build. Console Output is: 01-08 14:52:34.283 18206-18206/com.simongiesen.xperiastream D/MainActivity: Bitrate: 436987 01-08 14:52:34.784 18206-18206/com.simongiesen.xperiastream D/MainActivity: Bitrate: 540618 01-08 14:52:35.285 18206-18206/com.simongiesen.xperiastream D/MainActivity: Bitrate: 562897

Session is started, as well as Server by using this.startService(new Intent(this,RtspServer.class));

the IP of my Z3 is being received by using WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); int ipAddress = wifiManager.getConnectionInfo().getIpAddress(); Log.i("info", "ip address " + String.format("%d.%d.%d.%d", (ipAddress & 0xff), (ipAddress >> 8 & 0xff), (ipAddress >> 16 & 0xff), (ipAddress >> 24 & 0xff)));

there is no stream which could be opened. Did I got anything wrong?

mSession = SessionBuilder.getInstance() .setCallback(this) .setSurfaceView(mSurfaceView)

            .setContext(getApplicationContext())
            .setAudioEncoder(SessionBuilder.AUDIO_NONE)
            .setAudioQuality(new AudioQuality(16000, 32000))
            .setVideoEncoder(SessionBuilder.VIDEO_H264)
            .setVideoQuality(new VideoQuality(320,240,20,500000))
            .build();