Giter Site home page Giter Site logo

denisirkhin / sense-media-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stefanwalther/sense-media-box

2.0 0.0 0.0 23.48 MB

Include web pages, videos, images and much more into your Qlik Sense app.

License: Other

JavaScript 45.98% CSS 0.32% HTML 4.72% Less 48.98%

sense-media-box's Introduction

Media Box for Qlik Sense

Include web pages, videos, images and much more into your Qlik Sense app.


(Table of contents generated by [verb])


Purpose and Description

The idea of this solution is to bundle the usage of several media-types into one Visualization Extension to be used within Qlik Sense.

As of now the following media types are currently supported:

  • HTML (+CSS)
  • Image from Url
  • Image from Library
  • Video
  • Web sites

Screenshots

HTML

Image

Video

Website

Installation

  1. Download the latest version
  2. Qlik Sense Desktop
  • To install, copy all files in the .zip file to folder "C:\Users%USERNAME%\Documents\Qlik\Sense\Extensions\sense-media-box"

Configuration

After installing the Visualization Extension and dropping it onto a sheet in Qlik Sense follow these steps:

Define the media type

Depending on the selected media type you'll then see different options in the property panel:

Media type Html

  • HTML - Define either inline HTML or reference to a field

Example:

=only(HTML)
or
='<div style="font-weight:bold;">inline HTML</div>'

Example:

Html:
LOAD * INLINE [
    HTML, HtmlAsset
    'This is some <b>bold</b> test', 'Some Html'
    'This is another test<br/><br/>with breaks<br/>and<br/>another break', 'Some Html with breaks'
    '<div style="font-weight:bold;color:red;">Inline style</div>', 'Some Html with inline style'
];

then use

=only(HTML)

Media type Image

  • Image Source (Url) - Define the Url for the image to be embedded.
  • Vertical Alignment - Vertical alignment of the image, defaults to "top".
  • Horizontal Alignment - Horizontal alignment of the image, defaults to "left".
  • Image aspect ratio - Either "keep size" or "best fit", which uses the maximum available width.

Media type Video

  • Video type - Define the type of the video to be embedded, possible values: MP4
  • Video poster image - Define the preview image for the video, possible values: any valid URL to a .png/.jpeg file
  • Video Url - Url to the video

Media type Website

  • Web site (Url) - Url of the website to be embedded, any valid website Url
  • Scrollbars - Behavior of scrollbars, Auto, Always On
  • Interaction - Define whether interaction with the website should be possible or not, defaults to Off

Testing the visualization extension

Here are some samples how to test if the MediaBox works for you:

Image:

http://video-js.zencoder.com/oceans-clip.png

Video:

Video poster image: http://video-js.zencoder.com/oceans-clip.png

Video source: http://video-js.zencoder.com/oceans-clip.mp4

Change Log

0.4.x

  • Images can now also be selected from the media-library.

0.3.0

  • Added horizontal & vertical alignment of images + aspect ratio

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. The process for contributing is outlined below:

  1. Create a fork of the project
  2. Work on whatever bug or feature you wish
  3. Create a pull request (PR)

I cannot guarantee that I will merge all PRs but I will evaluate them all.

Roadmap & Todos

The following features are planned to be implemented:

Media type HTML

  • Allow definition of an external style-sheet

Media type Website

Media type Image

  • Settings to control the images' aspect ratio
  • Vertical alignment

Media type Video

  • Support for a video type YouTube

  • Support for a video type Vimeo

  • Support for a video from the media library

  • Support for a preview image

Actions

  • Allow actions for all media types (e.g. jump to sheet, open application, etc.)

Any further ideas, please let me know!

Known Issues

  • Video doesn't work in Qlik Sense Desktop but in local browser or Qlik Sense server.

Author

Stefan Walther

License

Copyright © 2016 Stefan Walther

Released under the MIT license.


This file was generated by verb-cli on May 23, 2016.

sense-media-box's People

Contributors

denisirkhin avatar renovate[bot] avatar

Stargazers

Roman avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.