I implemented an application run on Raspberry Pi 3 using Android Things. This application will be able to play rtsp
video and output to screen via HDMI port. But the audio is not working with jack 3.5mm. Below is my code:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
VideoView videoView = findViewById(R.id.video_view);
videoView.setVideoPath("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov");
videoView.start();
}
}
How can I fix it?
android.speech.tts.TextToSpeech
library. Here is my code. I could only get audio to play out of the USB port. The mini RCA (headphone jack) and HDMI ports were silent.