angularjs - ionic locally stored video dont work on android -
i have problem playing videos locally stored inside ionic app. think tried every possible solution without success. decided ask here. try describe how app built.
my root folder is: /myapp/www/
in index.html inside body tag have ion-nav-view tag pair. im using 3 templates stored in:
/views/homepage.html /views/sights/list.html /views/sights/detail.html
inside /js/app.js
have controllers each template , until here everthing works fine.
inside /views/sights/detail.html
im using video tag:
<div class="video-container"> <video controls="controls"> <source ng-src="/video/vid01.mp4" type="video/mp4"/> </video> </div>
i have set:
<ion-content overflow-scroll="true"> <manifest android:hardwareaccelerated="true" ....> inside androidmanifest.xml <uses-permission android:name="android.permission.read_external_storage" />
other src paths tried:
file:///video/vid01.mp4 file:///android_asset/www/video/vid01.mp4 file:///mnt/sdcard/media/video/vid01.mp4
but works:
http://someserver.com/somevideo.mp4
unfortunately not option me. app used in place without internet conenction need have videos inside app.
locally stored videos working fine if run app cmd: ionic serve
.
when try deploy app on android (4.4.4 kitkat) like: ionic run android
works fine video refuses play.
i think tried literally everything. unfortunately tutorials on how play video in ionic app made online videos , examples work in browser not on android devices.
cross walk solved problem cross walk make me able use <video>
tag in ionic application not allowed default
it ionic 1.x
example code: https://github.com/malikasinger1/ionic-video-player
Comments
Post a Comment