android - Bullet Proof Way To Tell If the Device Is A Mobile -


i need able load mp4s make them available if device mobile.

i using.

var ismobile = false; if( /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent) ) { ismobile = true; } 

which works great users can open safari , click developer user agent select iphone ipad or , app serve mp4 links can use web inspector download.

is possible or need find work around?

pretty sure not possible...

thanks


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -