2011-06-10 14:58:55 +00:00
|
|
|
import gst
|
|
|
|
|
|
|
|
from common import TestCase
|
2011-08-11 12:27:31 +00:00
|
|
|
import ges
|
2011-06-10 14:58:55 +00:00
|
|
|
|
|
|
|
class TimelineFileSource(TestCase):
|
|
|
|
|
|
|
|
def testTimelineFileSource(self):
|
2011-08-11 12:31:47 +00:00
|
|
|
src = ges.TimelineFileSource("file://blahblahblah")
|
2011-06-10 14:58:55 +00:00
|
|
|
|
|
|
|
src.set_mute(True)
|
|
|
|
src.set_max_duration(long(100))
|
|
|
|
src.set_supported_formats("video")
|
|
|
|
assert (src.get_supported_formats().value_nicks[0] == "video")
|
|
|
|
src.set_is_image(True)
|
|
|
|
assert (src.get_max_duration() == 100)
|
|
|
|
assert (src.is_image() == True)
|
2011-08-11 12:31:47 +00:00
|
|
|
assert (src.get_uri() == "file://blahblahblah")
|