this is simplified of my question.
i can access to offline file via :
<ion-button fill="clear" [core-download-file]="{fileurl: '<% urlout %>', timemodified: '1712408908'}" moduleId="64" courseId="3" component="mod_myOwnModule" [attr.aria-label]="'core.download' | translate">
<ion-icon name="cloud-download" slot="icon-only" aria-hidden="true"></ion-icon>
</ion-button>
in my plugin's .mustache,
and i defined urlout in the mobile.php and this code work offline and online . if app is online ,then automatically use online use <% urlout %> and connect to server and if app i offline , then automatically try to show file via according mobile application. for example if my file is cartificate.pdf then open it via appropriate installed app in on my device. but my problem is:
my file is a specific video that i want play in app and don't want open it by other android player. i want simply it play such as mod_file or mod_lable if video was downloaded.
i use this code but only work app is online in .mustache:
<ion-content overflow-scroll="true">
<video controls="controls" preload="metadata" webkit-playsinline="webkit-playsinline" class="videoPlayer" id="video">
<source src="<% urlout %>" core-external-content component="mod_danehplayer" type="video/mp4" />
</video>
</ion-content>
how can i play a video that was downloaded in the offline mode? is there any example code?
please note, my problem is not download a file for offline usage, i want play a video in the app in offline mode such as mod_resource or mod_lable.