[[BackLinksMenu]] [[TicketQuery(summary=VIDEO_CONTENT_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]] = Analysis = == Overview == Video content connects an video resource to a frame * Video content is a content of a frame representing video. * Video resources are resources for video. * Video resources have the same information as any other resources plus specific information about the video they are representing. * Video content is responsible for returning the visual representation of the video * There should be drag and drop support, so video can be dropped onto a frame and a video content is created automatically from them. Video are scaled if they are bigger than the frame they are dropped onto. * There should be support for creating a frame with video content by choosing an video file. * Video resources should support clipping (in point, out point), rate and volume == Task requirements == * Define basic video content. * Define basic video resource. * Define how content work with frames to find a renderer (is this a scene?) == Task result == The result of this task should be source code. == Implementation idea == * Create class !VideoContent which is concrete implementation of org.sophie2.base.model.book.!FrameContent for video. * !VideoContent should override mainResource() and return Prop. * Create class !VideoResource which is concrete implementation of org.sophie2.base.model.book.resource.!BookResource for video resources. * !VideoResource should have methods: * inPoint * outPoint * startPoint (0) * endPoint (same as duration) * rate * volume * duration * poster frame (time code for the frame to use when displaying the video as a still, defaults to 0) * Video * Video is represented by an image, either the first frame of the video, or the poster frame * Video can have a controller * Determine if any of this should be part of the content, or kept elsewhere, ie does the content have any say in how the resource is represented on screen? * If yes, maybe contents should have extension points that keep the list of renderers for this content (and similar for images and audio, ie any content) == Related == * [wiki:UNPLANNED_BASE_MODEL_FRAME_CONTENT_R0][[BR]] * [wiki:BASE_RESOURCE_COMMONS_R0] * [wiki:IMAGE_CONTENT_R0] * [wiki:AUDIO_CONTENT_R0] == How to demo == * Create a frame with video resource. * Check if the resource is set correctly and check if the information about the resource is correct. * Try changing the resource and check again the same things. = Design = = Implementation = ^(Implementation results should be described and linked here (from the wiki or the repository))^ = Testing = = Comments = ^(Write comments for this or later revisions here.)