How to customize streaming video played on an image

+1 vote
asked Dec 5, 2018 by artechlearn (130 points)
On trying to play a streaming video , get the exception. Please help understand the resolution:

12-05 14:03:57.591 13491-13509/cn.easyar.samples.helloarvideo W/MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: Video_url 2-05 14:03:57.601 13491-13509/cn.easyar.samples.helloarvideo D/MediaPlayer: setDataSource IOException | SecurityException happend :
    java.io.FileNotFoundException: No content provider: Video_url
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1141)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:991)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:914)
        at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1121)
        at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1082)
        at cn.easyar.engine.VideoPlayer.prepare(VideoPlayer.java:52)
        at cn.easyar.VideoPlayer.open(Native Method)
        at cn.easyar.samples.helloarvideo.ARVideo.openStreamingVideo(ARVideo.java:66)

2 Answers

0 votes
answered Dec 6, 2018 by zhnagjian (11,130 points)
Hello,

Your error shows that the server did not find your specified file. Check the path of your video resourse.

Thank you!
commented Dec 7, 2018 by arinnovationeig (270 points)
Am able to access the video on the browser with the same url. Is there any additional change required?
commented Dec 7, 2018 by arinnovationeig (270 points)
For instance if i use the existing url shared in the sample video with a new image. Still face the same issue. Am able to view the video vis this url on the browser

12-07 15:01:27.491 2301-4261/com.eig.liveads W/MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: https://sightpvideo-cdn.sightp.com/sdkvideo/EasyARSDKShow201520.mp4
12-07 15:01:27.491 2301-4261/com.eig.liveads D/MediaPlayer: setDataSource IOException | SecurityException happend :
    java.io.FileNotFoundException: No content provider: https://sightpvideo-cdn.sightp.com/sdkvideo/EasyARSDKShow201520.mp4
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1141)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:991)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:914)
        at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1121)
        at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1082)
        at cn.easyar.engine.VideoPlayer.prepare(VideoPlayer.java:52)
        at cn.easyar.VideoPlayer.open(Native Method)
0 votes
answered Jun 20, 2019 by zzhenia (270 points)

This question is similar to the issue I am facing: 
https://answers.easyar.com/14564/critical-bug-in-easyar-lib-on-android

Basically, video streaming doesn't work consistently on Android devices.
Looks like EasyAR doesn't care to respond to errors which they have in their library or example projects.

@artechlearn did you manage to resolve the issue? I would very much appreciate any help. 

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...