Video Streaming

It’s all becoming a little too frustrating now.

I can put the stream into VLC on the android box and it works fine, I can put the URL into the default android browser and it works fine, I can put it into the media player on the android device and it works fine. I cannot however put the URL into xibo CMS and have it play on the android box.

I’ve tried the RTSP method, hls and via local video

http://ipaddress/hls/BBC_NEWS_HD/BBC_NEWS_HD.m3u8 is the path that is used

If I can overcome the reason why it is not playing it will be a major boost to the services we can provide.

thanks

Chris

Please can you try with a known-good stream, and see if that works?

For Android, the following in the LocalVideo module should work:
http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8

That address should also work when entered in the HLS module on newer versions of Android, but won’t work with Android 4 and potentially not with Android 5.

The Player itself has no involvement in the playback of videos - streamed or not. It is purely your device’s firmware and the native Android media playback engine that handle this.

We are using DSDevices with xibo installed on them and are currently running on Android 4.4.4 and xibo 1.8.0 could this be reason why it is not playing?

RTSP definitely works on DSDevices hardware - subject to the stream being in a suitable codec.

RTSP using the local video option or embedded? The codec on the stream should be fine as it is h264

You need to use Local Video for RTSP

Hi Alex, localVideo is letting me add the sample URL (within Chrome) : http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8, and when i play it on preview :
http://CMS-ip/xibo/web/layout/preview/7 , it loads all the things it requires to parse the content from “http://CMS-IP/xibo/web/layout/xlf/7” which is an xml rendered. But after that loads, there is a blank screen. And after sometime it says “play again”. Is the xml not correct in someway, or the URI that it inputs to the CMS, is incorrectly converted for playback somehow.

LocalVideo won’t play in the preview at all, as the resources required to play it are by definition assumed only to be available locally to the Player.

As a side note, you must not have “web” in the URL you use to access the CMS. You have it installed incorrectly and will have issues as a result. Please check the installation guide which explains how to correctly install the CMS, or use Docker if you’d prefer not to have to worry about that.

Ok. I have assigned layout created containing the HLS stream, and launching on a windows client. it seems to appear blank after waiting a long time. what should be done? :expressionless:

LocalVideo only works for HLS on Android. If you’re using Windows, you should use the dedicated HLS widget. You must be running Windows 8.1 or later for HLS support to work.

Ok , got it. Will get the client to work on win 8.1 and above (currently its win 7). Also, I wanted to learn how to enable the HLS widget ?
I see the issue resolution has changes listed here https://github.com/xibosignage/xibo/issues/980, but there is no help / tutorial related to how to enable that widget. As in, what modifications are required. Could you please help regarding that?

If you don’t have it installed already, then you’ll be able to install it at the top of the Modules page in the CMS.

1 Like

Thanks Alex! You’re a savior :smile:

Hi Alex, I tried with the client on wind 10 this time. Created campaign, granted permissions, created layout (made it part of campaign), gave that permissions as well, added the display to CMS, did schedule now on the campaign (ideally, that should schedule the content across all layouts within the campaign , right). Still, there is no live streaming on the client. When I play , or fetch the m3u8 its available on browser. But not showing on xibo windows client. Can you please suggest :slight_smile:

You need to apply the patch from this bug report:

Then edit your HLS widget, and save it.

Hi Alex,

I have pushed the changes, and did this configuration for event creation and scheduling:

below is my layout config :

and my hls stream config

that successfully works here
https://video-dev.github.io/hls.js/demo/

am i not scheduling it properly? there is no hls.min.js getting pushed at the client end. and layout doesnt get downloaded either. Should I be applying the layout on display page individually also?

You shouldn’t be using the Assign Layout screen. Schedule will do what is required for you.

Did you edit or recreate the HLS widget after applying the patch? Just applying the patch won’t fix existing widgets.

Ok, I edited the file only, didn’t recompile. How to re-compile only one widget? Or do you mean recreating, as in deleting the module and re-adding it from modules page?
Also, I hope display order and priority left blank is not causing trouble.

I mean that you need to either delete the HLS widget from your layout and recreate it, or edit it in some way (eg change the URL and then change it back again).

Leaving those fields blank won’t cause a problem.

1 Like

Yes, it works now :slight_smile: so, this change that I had to make (calling the extra js resources during getResources() ) , is the kind of issue in every widget that sometimes dont work? like the clock widget. It seems to not work at times, and I can see that the required JS files are not pushed into the client when scheduled.