Reputation: 148
i have a video with .swf extension i don't know exactly how can i load it in the start of my application i have a sample code of splash video but i don't know how to use it and i don't know if it works with .SWF can i have your help
MediaController mc = new MediaController(this);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
video.setMediaController(mc);
video.setVideoURI(uri);
video.setOnCompletionListener(this);
video.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View arg0, MotionEvent arg1) {
Toast.makeText(getApplicationContext(), "ontouch",Toast.LENGTH_LONG).show();
return true;
}
}) ;
Upvotes: 1
Views: 1017
Reputation: 1406
The only way I could think to use it would be to have a WebView
with the .swf embedded, but not all devices have (or support) Flash and it is being discontinued.
Expanding on user1093822's comment, if you convert it to a video you can use a VideoView to show it. A list of compatible extensions can be found here
Upvotes: 1