Video player issues again.

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I have been working on my app and now i found out that the video widget has changed again. My issues are as follows with android 4.4 and below. Caching is fine and working but playback is an issue. On initial load i here the video playing but its a blank screen. The second time it plays and i see it. Now after that things get weird. I see the video start and then go blank, but i can here it. Once the blank video is done, the video appears and plays like normal. This happens every other rotation. One shows the other goes blank. Im thinking its a visibility issue but not sure. 
This happens with other items in the placeholder as well.Trying to find a solution for this. Thanks
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Stuart Lees

Stuart Lees, Employee

  • 586 Points 500 badge 2x thumb

Hi William,

The Video Widget recently got refactored to fix long term playback issues that users were experiencing. In this refactoring, the following has changed since the last version:

- JWPlayer is used for HTML5 video playback

- The HTML and JS code responsible for loading and leveraging JWPlayer API is now isolated in https://github.com/Rise-Vision/widget-video/blob/master/dist/player.html This is so the HTML can be loaded within an <iframe>, and the <iframe> can be destroyed when needed, ensuring for proper garbage collection of JWPlayer instance and <video> element.

- Two container <divs> exist and both create <iframes> to load the player.html file. They are essentially duplicates, and their visibility gets toggled depending on which one has the current <iframe> playing the video  - https://github.com/Rise-Vision/widget-video/blob/master/dist/widget.html#L19-L20

- Upon a video completing, the <div> container that is hidden is now shown and its <iframe> is ready to play the video. The <div> container that holds the video that just finished has its <iframe> destroyed and recreated and now gets hidden.

- The reason there is two of them is to provide seamless playback after the video finishes, if the Video Widget is the only item in a presentation placeholder (Viewer will tell the Widget to play again after every time the video completes)

Thanks
(Edited)
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
Looks like im getting a cross somewhere because one works the other one does not. It works fine on my amazon fire tv and my google tv device. Its the others im trying to figure out. Now grant it that i have to use an old version of chromium on the other devices. I think amazon and google tv use chromium 37 and above. It could be webview thats an issue but i shouldnt have one visible and the other one not. Its always the first one thats invisible if that helps. 
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
William,

I don't know how much help I can be of here. I've got my Android stick running 4.2.2 and video appears to be working fine with your Widget. Is there anything I can get from this device to assist in troubleshooting the issue?
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
My widget is fine. I'm trying to get your widget working again. My issue (i think) is with how there is two instances of the player. The player creates two instances of the video as per stuart.The first instance of the video is always hidden where the second instance is visible. So in rotation i get a blank, visible, blank, visible, and so on.  It doesn't happen on newer version of android or on webview with ver 37 and above but older versions like 4.4 or my test app that has ver 34 and below does have this issue. Thats about 70% of my devices thats out there. Right now I'm telling them to use either the old gadget or my widget to get by but i would like to keep everything working from rise as well as my stuff. 
Photo of Jakub Marciniak

Jakub Marciniak

  • 120 Points 100 badge 2x thumb
Hi, at first thanks William for Your app on android.I'm using it on 4 devices and after some complications works fine. But few days ago I bought new one and have the same problem with video. I hear sound but the screen is black. Interesting is that all of my devices use the same presentation with video, and the old ones are working well but the new not. I use a hdmibox with android 4.4.2. 
But interesting is that when i open preview option in editor it works fine, but, if i use the link http://preview.risevision.com/Viewer.html?type=display&id= MY DEVICE it also doesn't show the videos.

So its not a problem from your software.

Just wanted to give You an info.

Hope that Guys from Rise check this bug :)

Thanks
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
If your using the html 5 video widget from rise and made a new presentation then you need to use the android html5 widget in the store. I think rise has changed there video player four times in two months. The recent change only effects new presentation. I am working with them to find a fix because it's on there end. Anyway I will let you know if it's fixed but for now use my android html5 widget to get you by. If anything it might run better. Thanks
(Edited)
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Jakub,

Can you confirm that video in your presentation is not appearing, even in preview mode with the Rise Vision HTML5 Video widget?
Photo of Jakub Marciniak

Jakub Marciniak

  • 120 Points 100 badge 2x thumb
Ok, i've made some tests of video widgets on mac and android and played webm file.
Ive tested:
a) video widget - the standard widget 
b) html 5 video widget from content store
c) my rise player video widget

The a) widget - doesn't work anywhere

The b) widget:
1. preview from editor link to presentation - works fine on chrome on Mac
2. preview from editor link to presentation - works after while on Scotts Digital Signage Player
3. preview from editor link to presentation - doesn't work on chrome on android
4. viewer from the link of device - works fine chrome on Mac
5. viewer from the link of device - sometimes works after while on Scotts Digital Signage Player but with long pause 
6. viewer from the link od device - doesn't work on chrome on android
7. My Rise Player from Scotts - doesnt work

The c) widget:
1. preview from editor link to presentation - works fine on chrome on Mac
2. preview from editor link to presentation - works after while on Scotts Digital Signage Player
3. preview from editor link to presentation - doesn't work on chrome on android 
4. viewer from the link of device - doesn't work on chrome on Mac
5. viewer from the link of device - doesn't work on Scotts Digital Signage Player
6. viewer from the link of device - doesn't work on chrome on android
7. My Rise Player from Scotts - doesn't work

I used android 4.4.2
chrome v. on android - 36  and 43

ufff....
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
Use mp4 on android some manufacturers don't get the codecs correct so some webm and some mp4 types don't work. I prefer mp4 since it works better on android
Photo of Jakub Marciniak

Jakub Marciniak

  • 120 Points 100 badge 2x thumb
i've checked mp4 and its the same. i converted mp4 files (used miro video converter, and wondershare video converter) and its the same. your widget cache files well, md5 checksum is the same. i am out off ideas how to fix it.
Photo of Jakub Marciniak

Jakub Marciniak

  • 120 Points 100 badge 2x thumb
i ve checked cached files on all video players on my device and everytime it worked so i guess its not codecs problem
Photo of Jakub Marciniak

Jakub Marciniak

  • 120 Points 100 badge 2x thumb
ok, i ve checked one 3 other devices (two old samsung tablets and one lenovo smartfon) and everything works well. So the problem is in my android box. glad to finally find it out, but question is what is the problem in some devices? processor? i used http://himediatech.com/q3iv.html
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
My best guess is it's webview. Have you tried the my rise player test. It's in the store and eliminates the device webview from being the issue. It also brings chromium as a library to help with certain issues. Now it's not guaranteed to work but on some devices but it has fixed ones that have that issue. Try the my rise player test and let me know thanks
Photo of Jakub Marciniak

Jakub Marciniak

  • 120 Points 100 badge 2x thumb
I can't belive but it works :)))) if you will need to test anything ask me, i'll be glad to help You. thanks a lot
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
Yea the rom must have a bad webview that isn't working correctly with video. Seen it way to much with android. There are some that I stay away from and others I will always buy from. Anyway keep an eye on it and let me know how it goes.