Frequently asked questions

Archive filtered by media class API

To remove filter keyword, click on it's name above.

 

M30Q: Is it possible to detect that a stream is interrupted and restart it automatically?

A: Yes, this can be accomplished by adding an event listener which reacts to this event with a specific action you can define yourself. Take a look at the following API call: addEventListener

Filter: JS-API M30

M30Q: Using media.play does not work, what am I doing wrong?

A: Before you can use media.play you will have to initialize the media and display object, using the following functions:



It might be that you have a non-transparent background. Please set the background to transparent. It might also be that the screen is hidden by a HTML object. You can set the opacity to 0.5 for these objects. For example, you can set the the opacity of the body tag to opacity:0.5:



so the video will shine through. Then you will be able to find out if the video is really played on the device. If it is, you will have to change something about your HTML. Otherwise, try to find out why media.play does not work.

Filter: ABOX42 Showcases JS-API M30

M30Q: How can I store data on the box?

A: There are several possibilities:

Cookies are best when you want to store litte data (e.g. session keys).

Storage via HTML5 LocalStorage is also available.

- Storage via local SQLite database is another possibility you should look at.

- Play content from a USB storage device.

Filter: ABOX42 Showcases JS-API M30

M30Q: How can I set (or retrieve) the parameters for the playout of my stream?

A: You can either set the parameters with the JS-API "play" call directly or you can use the "setConfig" call for further parameters. Please visit the individual call in the Developer IDE. When you want to retrieve the parameters set, you can do so using "getConfig".

Filter: JS-API M30

M30Q: Using media.play does not work, what am I doing wrong?

A: Before you can use media.play you will have to initialize the media and display object, using the following functions:



It might be that you have a non-transparent background. Please set the background to transparent. It might also be that the screen is hidden by a HTML object. You can set the opacity to 0.5 for these objects. For example, you can set the the opacity of the body tag to opacity:0.5:



so the video will shine through. Then you will be able to find out if the video is really played on the device. If it is, you will have to change something about your HTML. Otherwise, try to find out why media.play does not work.

Filter: ABOX42 Showcases JS-API M30

M30Q: How can I switch the audio channel when my stream offers more than one?

A: We prepared an example that shows you how to use the JS-API to switch between audio channels of video streams. Take a closer look at the code used to see exactly how this can be done.

Filter: JS-API M30 Smart STB

M30Q: Is it possible to set the DRM type of my stream with the setconfig() call?

A: The setconfig() call provided by the ABOX42 JS-API provides several possibilities to manipulate the playout. For example, you can set the DRM type to enable the streaming of your encrypted content. Take a look at the JS-API documentation in the Developer IDE.

Filter: ABOX42 Showcases HLS JS-API M30 Media Player runtime