- About project
- Privacy policy
- Log out
- My area
- Sign up
- Sign in
Simple JavaScript API
Sonettic-Cinema flash video player Simple JavaScript API is very simple way to operate your video content through JavaScript. This API have only five functions:
For all of Simple JavaScript API functions available JSDoc-generated documentation.
Through usage of Simple JavaScript API you can change path of the video, play, pause or stop. You can also change position in the video.
General usage of Simple JavaScript API looks like:
<a href="javascript:void(0)" onclick="javascript:setPosition('sonetticFLVPlayer', 60)"> Listing item </a>
Where onclick param is an event which should send to Sonettic-Cinema Cinema HD.
Note that you have to change value of param allowScriptAccess from sameDomain to always within object and embed elements if player not on your domain.
Sample code
The code below is created for JavaScriptApi use.
Sample usage
-
TVW.ORG RTMP Stream
RTMP Stream video from Washington state public affairs tv network. www.tvw.org
-
HTTP Stream from Sonettic's website
HTTP Stream video from Sonettic's website (Walle trailer) . Source
-
Content in format F4V
I Am Legend Trailer in F4V format.
-
Video in MOV format
Video in MOV format based on H.264 codec
Sample chapters usage
-
Chapter 1
Start playing at 30 seconds from beginning of the video
-
Chapter 2
Start playing at 80 seconds from beginning of the video
-
Chapter 3
Start playing at 100 seconds from beginning of the video
-
Chapter 3
Start playing at 120 seconds from beginning of the video
