Skip to content

Problems with dynamic source #19

Open
@calvinkei

Description

@calvinkei

Hi, I have a problem with using dynamic source.
My app's idea is to go to firebase and retrieve an array of links of videos, and play the videos one by one like a playlist.
Using ionic-cache-src, even if the device is offline, videos can still be played (the links are stored in local storage when they are retrieved from firebase, so even if it's in offline state, the links are still available)
Now the problem is, when I test the app in a web browser, everything works well as expected even when the device is offline. But when I try to deploy on a device, the videos can't be loaded when it's offline.

        <video autoplay ui-event="{ended:'next()'}">
          <source cache-src="{{link}}" type="video/mp4">
        </video>

One more thing, when the "{{link}}" part is changed to the actual url of the video, it works perfectly.
Thanks for help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions