Fix issue #47 Add support for image or video file path
Hi, I solved this problem for the local project I add another argument file in the story view widget and it works fine in my local project so I decided to send a pull request please check my work thanks.
Great work @DanialV . Sorry for the late response. I've looked at your commit. I think the API becomes bloated if we include an explicit parameter file. Instead what we can do is use protocols for the url. That is, specifying url as file://mnt/ex0/downloads/video.mp4 for instance, indicates a file and loads from that directory.
What do you think?
I am also interested in this. @DanialV I think the API would look better with named constructors like following:
StoryItem.pageLocalImage()
StoryItem.pageNetworkImage()
StoryItem.pageLocalVideo()
StoryItem.pageNetworkVideo()
Closing for inactivity