How to customize streaming video played on an image

0 votes
asked Dec 5, 2018 by artechlearn (120 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)

1 Answer

0 votes
answered Dec 6, 2018 by zhnagjian (5,280 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 (260 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 (260 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)
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...