MHEG-5


The scope of MHEG (Multimedia & Hypermedia Expert Group) is to specify semantics and final-form interchange syntax for all multimedia objects.

MHEG-1, ISO/IEC 13522-1 international standard, specifies the coded representation of multimedia/hypermedia information objects (MHEG objects) for interchange as final form units within or across services and applications, by any means of interchange including local area networks, wide area telecommunication or broadcast networks, storage media, etc.

MHEG-5 (ISO/IEC 13522-5) is the fifth part of MHEG . This part defines the MHEG object classes for interchange and use in base-level applications intended to be run on limited resource terminals such as set-top-boxes in such contexts as interactive broadband services.

(Text from http://www.ccett.fr/mheg/overview.htm)


first file called startup!!!! (no extension)

{:Application ("/startup" 0)
 :Items
 (


   {:Link 1
     :EventSource 0
     :EventType IsRunning
     :LinkEffect
     (
       :TransitionTo (("/helloWorld.mheg" 0))
     )
   }
 )
}

second file the application, i felt you could not really keep on printing to the screen on tv, so i made i scroll instead, hope this is okay!! this file should be called helloWorld.mheg

{:Scene ("/helloWorld.mheg" 0)
  :Items
  (
//Author:       Mark Cooper
//Description:  Scrolling hello world program written in mheg5 to british
standard for digital tv
//-------------------------------OnStartUp Link-------------------------------
   {:Link 1
  :EventSource 0
  :EventType IsRunning
  :LinkEffect
  (
    :settimer(0 1 100)
  )
   }

//-------------------------------Body-------------------------------

    {:Text 2000
  :InitiallyActive True
    :CHook 10
    :OrigContent "Hello World"
  :origboxsize 115 50
  :origposition 310 250
    :FontAttributes "plain.24.22.10"
    :TextColour '=ff=ff=ff=00'
  :hjustification start
  :vjustification centre
  :lineorientation horizontal
  :startcorner upper-left
  :textwrapping false
    }


 {:Link 2001
  :InitiallyActive True
    :EventSource 0
    :EventType TimerFired
    :EventData 1
    :LinkEffect
    (
   :unlockscreen (("~/startup" 0 ))
   :add(2002 2)
   :testvariable( 2002 6 :ginteger 720)
    )
 }

    {:IntegerVar 2002
  :InitiallyActive True
  :OrigValue 310
    }

 {:Link 2003
  :InitiallyActive True
    :EventSource 2002
    :EventType TestEvent
    :EventData True
    :LinkEffect
    (
   :lockscreen(("~/startup" 0))
   :setvariable( 2002 :ginteger -100)
   :setposition( 2000 :indirectref 2002 250)
    :settimer(0 1 100)
    )
 }

 {:Link 2004
  :InitiallyActive True
    :EventSource 2002
    :EventType TestEvent
    :EventData false
    :LinkEffect
    (
   :lockscreen(("~/startup" 0))
   :setposition( 2000 :indirectref 2002 250)
    :settimer(0 1 100)
    )
 }

//-------------------------------OnShutdown Link-------------------------------
     {:Link 3
       :EventSource 0
       :EventType UserInput
       :EventData 104
       :LinkEffect
       (
          :Quit ( ( "/startup" 0 ) )
       )
     }
  )
  :InputEventReg 4
  :SceneCS 720 576
}

submitted by mcooper@static.co.uk (Mark Cooper)