I have Solved the issue by checking if the device is android or not
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1;
jwplayer("mediaplayer").setup({
playlist: [{
sources: [
(isAndroid)?{file:'rtsp://localhost:1935/vod/dexter/dexter.mp4'}:{file:'rtmp://localhost:1935/vod/mp4:dexter/dexter.mp4'},
{file:'http://localhost:1935/vod/mp4:dexter.mp4/playlist.m3u8'}
],
title: 'dexter',
width: 854,
height: 480,
});