forked from Zulko/moviepy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Zulko#446 from kerstin/fix_yt_objects
fix YouTube embeds in docs
- Loading branch information
Showing
15 changed files
with
49 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,18 @@ | ||
A Star-Wars like opening title | ||
------------------------------- | ||
|
||
This is an approximate effect (the perspective would require some more complex transformations) but it is a nice exercise. | ||
This is an approximate effect (the perspective would require some more complex transformations) but it is a nice exercise. | ||
|
||
Warning: clip with sound. | ||
|
||
.. raw:: html | ||
|
||
<center> | ||
<object><param name="movie" | ||
value="http://www.youtube.com/v/5euLdo8L0o0&hl=en_US&fs=1&rel=0"> | ||
</param><param name="allowFullScreen" value="true"></param><param | ||
name="allowscriptaccess" value="always"></param><embed | ||
src="http://www.youtube.com/v/5euLdo8L0o0&hl=en_US&fs=1&rel=0" | ||
type="application/x-shockwave-flash" allowscriptaccess="always" | ||
allowfullscreen="true" width="550" height="450"></embed></object> | ||
</center> | ||
|
||
Let us also have a look at this tutorial which shows the different steps: | ||
|
||
.. raw:: html | ||
|
||
<center> | ||
<object><param name="movie" | ||
value="http://www.youtube.com/v/dGrP7GhzWEE&hl=en_US&fs=1&rel=0"> | ||
</param><param name="allowFullScreen" value="true"></param><param | ||
name="allowscriptaccess" value="always"></param><embed | ||
src="http://www.youtube.com/v/dGrP7GhzWEE&hl=en_US&fs=1&rel=0" | ||
type="application/x-shockwave-flash" allowscriptaccess="always" | ||
allowfullscreen="true" width="550" height="450"></embed></object> | ||
</center> | ||
|
||
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/5euLdo8L0o0&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div> | ||
|
||
And here you are for the code, and for the code of the tutorial. | ||
|
||
.. literalinclude:: ../../examples/star_worms.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.