~ubuntu-branches/ubuntu/raring/gpac/raring

« back to all changes in this revision

Viewing changes to regression_tests/bifs-script-load-url.bt

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-01-24 23:34:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070124233457-zzlls8afkt0nyakj
Tags: 0.4.2~rc2-0ubuntu1
* New upstream release
  * Most notably MP4 tagging support via MP4Box -itags
* debian/patches/01_64bits.dpatch: dropped; included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
InitialObjectDescriptor {
 
2
 objectDescriptorID 1
 
3
 audioProfileLevelIndication 255
 
4
 visualProfileLevelIndication 254
 
5
 sceneProfileLevelIndication 1
 
6
 graphicsProfileLevelIndication 1
 
7
 ODProfileLevelIndication 1
 
8
 esDescr [
 
9
  ES_Descriptor {
 
10
   ES_ID 1
 
11
   decConfigDescr DecoderConfigDescriptor {
 
12
    streamType 3
 
13
    decSpecificInfo BIFSConfig {
 
14
     isCommandStream true
 
15
     pixelMetric true
 
16
     pixelWidth 600
 
17
     pixelHeight 400
 
18
    }
 
19
   }
 
20
  }
 
21
 ]
 
22
}
 
23
 
 
24
OrderedGroup {
 
25
 children [
 
26
  Background2D {
 
27
   backColor 1 1 1
 
28
  }
 
29
  WorldInfo {
 
30
   info ["This shows script loading URL" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"]
 
31
   title "Script URL loading"
 
32
  }
 
33
  Transform2D {
 
34
   children [
 
35
    DEF TS TouchSensor {}
 
36
    Shape {
 
37
     appearance Appearance {
 
38
      material DEF MAT Material2D {
 
39
       emissiveColor 1 0 0
 
40
       filled TRUE
 
41
      }
 
42
     }
 
43
     geometry Rectangle {
 
44
      size 50 50
 
45
     }
 
46
    }
 
47
   ]
 
48
  }
 
49
  DEF TR Transform2D {
 
50
   translation -150 -120
 
51
  }
 
52
  DEF SCRIPT Script {
 
53
   eventIn SFBool act
 
54
   field SFNode t USE TR
 
55
   url ["javascript: function act(value, timestamp) {if (!value) return; str = new MFString('http://gpac.sourceforge.net'); Browser.loadURL(str) ;}"   ]
 
56
  }
 
57
 ]
 
58
}
 
59
 
 
60
ROUTE TS.isActive TO SCRIPT.act
 
61