Changes

Jump to: navigation, search

PopcornOpenVideoAPI

353 bytes added, 18:44, 8 February 2011
XML file
<wikipedia in="00:00:01:01" out="00:00:06:00" resourceid="bieber" numberOfWords="350" target="popcorn_box"/>
<wikipedia in="00:00:06:30" out="00:00:11:00" resourceid="london" numberOfWords="350" target="popcorn_box"/>
<twitter in="00:00:00:01" out="00:03:00:00" src="#justinbieber" title="Bieber Tweets" target="twitter_box"/>
</resources>
<footnotes>
<footnote in="00:00:01" out="00:0929:00" target="popcorn_boxfootnote_box">&lt;p&gt;Custom Text in a footnote that uses html tags for things like&lt;a href="http://en.wikipedia.org/wiki/Justin_Bieber"&gt;Custom Text in a footnotelinks&lt;/a&gt;&lt;/p&gt;</footnote>
</footnotes>
<twitter in="00:00:00:01" out="00:01:00:00" src="#justinbieber" title="Bieber Tweets" target="popcorn_box"/>
</timeline>
</popcorn>
</pre>
Notes:===Tips and possible bugs=======Possible Bugs====* Need an id in the video tag to be able to target it with popcorn* It seems like you cannot access the same target with different resources - for example, I couldn't switch between sending Twitter and Footnotes to the same box as the Wikipedia====Tips====
* you need to escape your html with entity tags in the footnote in order for it to work (CDATA might also work)
* check your xml syntax by going to the page in a browser and making sure it is being read properly, a tag that's not closed, or a character in footnotes can really mess you up
Confirm
4,467
edits

Navigation menu