InWiSer

Innovative intelligent Wireless Services

InWiSer

Innovative intelligent Wireless Services

Sivuston työkalut


Translations of this page:

Top level

  • ”iws_comment” : <string>
    • Generic comment, is ignored on parser
    • example:
       "iws_comment" : "version 1.2 adds iwsbase for layouts", 
  • ”iws_version : <float>
    • Describes the version number of config specification used. This document is for version 1.3
    • example:
         "iws_version" : 1.3, 
  • iws_config : <dictionary>
    • Contains all the main config information
  • iwsvideo : <dictionary>
    • contains information about videos in presentention
  • <pdf alias> : <dictionary>
    • contains information regarding each pdf

Video definitions

* iwsvideo: {<language>}

  • dicitonary of language specific video definitions

* <language>: Videos and their control are dependent on language that comes from user device. If language coming from user device is not support ”fi” definitions are used. * ”videodict”: {<alias>:<filename>}

  • dictionary for aliases to video files. Aliases can be used to refer for given video
  •   "videodict" : {"mediapilot":"video/IWS-tut.mp4"}, 

    means that IWS-tut.mp4 can be referred as mediapilot in configuration.

* ”control” : defines dictionaries for different GUIs that will be sent to user device when video is played.

  • <name>: determines which gui is used. First there is check if there is name that matches for video alias, if not ”default layout is used”

* ”layout” : defines list of gui widgets and their confugiration. See layout chapter at the end of document for details.

Example

{
    "iwsvideo" : {
        "fi": {
            "videodict" : {"mediapilot":"video/IWS-tut.mp4", "messu":"video/iws-messu.mp4","quick":"video/iwsquick.mp4"},
            "control" : {
                "default" : {        
                    "layout" : [
                        {"FF": "iwsff" , "loc": [1, 2], "type":"button" },
                        {"Pause/play": "iwspause" , "loc": [1, 1], "type":"button" },
                        {"REW": "iwsrew" , "loc": [1, 0], "type":"button" },
                        {"Exit \n video": "iwsquitvideo" , "loc": [2, 2], "type":"button" }
                        ]
                }
            }
        }
    },   
 

Pdf definitions

  • <pdf alias> : {iws_pageconf:{},iws_lists:{},<lang>:{}
    • contains information regarding each pdf
  • iws_pageconf : {”iws_pages”: {<alias>:<page number>},”iws_lists”: {<listalias> :[<pagenumber, alias or video>]
    • ”iws_pages” defines aliases for page numbers on this pdf file
    • ”iws_lists” defines aliases for lists.
      • list can contain pagenumbers from this pdf, videos alias (”iwsvideo:<alias>) or pages from other pdfs (<pdfalias>:<pagenumber>
    "mypdf" : {
        "iws_pageconf": {
            "iws_pages" : {
                "eka" : 1,
                "app" : 2,
                "mediaohjaus" : 5,
                "esittelija" : 9,
                "pika" : 12                
            },
            "iws_lists" : {
                "demolist" : [1,2,"iwsvideo:messu",5,"iwsvideo:mediapilot",9,"iwsvideo:quick",12, "touch:1"],
                "tuotteet" : [2,5,9,12]
            }
        },
 
  • <lang> :{ ”urir”:<relative uri for pdf file>:”pages”:{}:”iws_capture”:{}
    • language based definitions for this alias pdf.
  • ”urir”
    • relative URI for the pdf file for this language when this alias is referred
    • "urir":"show/Inwiser-demo.pdf", 
  • ”pages” : { <alias>: ”layout”:[ list of dictionaries definisn widgets and their configuration ]}
  • ”layout” : [<label>:<action>, ”loc”:[x,y], ”type”:<widget type>}]
    • label is the label shown in UI
    • action is definition what happens when widget is activated. (see available actions at the end of document)
    • loc : defines the widget location in UI
    • type: defines the widget type. Currently only button is supported.
                    "layout" : [ 
                        {"Seuraava \n tuote": "iwsbigger:tuotteet", "loc": [1, 2], "type": "button" },
                        {"Edellinen \n tuote": "iwssmaller:tuotteet", "loc": [1,0], "type": "button" },
                        {"Lisätietoa \n": "iwsnext", "loc": [1,1], "type": "button" },
                        {"Tallenna \n": "iwscapture", "loc": [2, 1], "type": "button"},  
                        {"Poistu\n": "iwsexit", "loc": [0,2], "type": "button"},
                        {"Valikko \n ": "iwsindex", "loc": [3,0], "type": "button"}    
                        ] 
            "iws_capture" : {
                "capmode" :0,
                "iws_dlink" : "http://www.inwiser.com/",
                "iws_dtags" : ["Demo"],
                "iws_clists": {
                        "cappdfplaymain" : [2,3],
                        "capmediamain" : [4,5]
                        },
                "pages": {
                    "iws_default" : {                
                        "iws_comment" : "default capture definition. nothing special",
                        "iws_dlink" : "http://www.inwiser.com/",
                        "iws_dtags" : ["Demo"]
                        },
                    "demopdf": {
                        "iws_comment" : "capturing pdf. Feature for next version.",
                        "iws_dlink" : "http://www.inwiser.com/",
                        "iws_captureimage" : "Inwiser-demo.pdf",
                        "iws_mtype" : "application/pdf",
                        "iws_dtags" : ["Inwiser","pdf"]
                        },
                    "cappage2": {
                        "iws_comment" : "Capture page 2",
                        "iws_dlink" : "http://www.inwiser.com/",
                        "iws_capturepage" : 2,
                        "iws_dtags" : ["Inwiser"]
                        }
                    }
            }
        }
    }

Actions

List of actions that can be used on buttons

  • <page alias> | show page number with the given alias
  • <pdfalias>:<page number> | show page number from pdf that the alias points at.
  • iwsexit | close connection
  • iwscapture|<alias> | capture bookmark/file defined in alias
  • iwsvideo|<alias> | show video <alias>
  • iwsnext| show next page
  • iwsprev| show previous page
  • iwsbigger:<list alias>| show next page in list
  • iwssmaller:<list alias>| show previous page in list
  • iwsbiggerin: <list alias>| show next page. rotate inside the list values e.g. a = [1,5,8] and current page is 4. iwsbiggerin changes to page 2 (4+1 =5, 5 is in list, so take smaller value in list (1) and add 1
  • iwssmallerin: <list alias> show previous page between the list items
  • iwsindex: show page 1
  • iwsff: fastforward video 5 seconds
  • iwsrew: rewind video 5 seconds
  • iwsmenu|<alias>: show <alias> layout without changing page
  • iwsmback: Go back to layout that was before iwmenu was activated.