Android Custom VideoView

Đã hoàn thành Đã đăng vào Aug 19, 2013 Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

Custom VideoView

Purpose

Video streams shall be decoded and displayed using the Android VideoView class. It is necessary to display additional graphical and textual information. Therefore the VideoView class shall be extended.

Overview

The new class - PanView - shall consist of three main building blocks:

The main area to display the video stream. The functionality is identical to the underlying class.

A rectangular drawing area, limited by a line with attributes ovOuterColor and ovOuterStroke, which is defined by top, left, bottom and right coordinates. This area lies within the bounds of the VideoView and serves to draw rectangles, lines.. as it is possible on a Canvas. Specifically the methods

drawRect, drawCircle and drawColor using a Paint shall be available.

A layout with widgets (read from a XML-layout), that can be positioned freely (in one of the four corners) as a group inside the boundaries of the VideoView, based on custom attributes.

Central video dispaly and the two variable areas for drawing and additional widgets.

Details

The following functional requirements shall be fulfilled:

The PanView shall extend the VideoView class.

A drawing area shall be available inside the boundaries of the video display.

The area shall be defined by "top", "right", "bottom", "left".

The area shall be set by reading custom attributes from the layout XML.

A border shall be drawn around the area, taking into account the stroke of the line (i.e. the inner area needs to be used for drawing operations).

The PanView class shall offer methods to draw rectangles, circles, lines and bitmaps.

The drawing area shall be normalized to the interval [0 ... 1], all drawing commands shall only accept this value range.

A method shall be available to inflate a RelativeLayout and to display it in one of the four corners, defined by the attributes "bnXPos" and "btnYPos"

For the buttons an "OnClickListener" and "OnLongClickListener" shall be implemented inside the PanView class (NOT in the activity).

For the drawing area an "OnTouchlistener" shall be implemented, delivering touch events only for the drawing area and calculating touch coordinates in the interval [0 ... 1].

Hint: it may be necessary to work with a SurfaceTexture, as trying to lock the canvas leads to an exception because of SURFACE_TYPE_PUSH_BUFFERS in VideoView class).

Styleables

The extended VideoView shall be configurable by using styleables , described in "".

The follwoing properties shall be editable, using the listed tags:

Android

ID dự án: #4841344

Về dự án

9 đề xuất Dự án từ xa Aug 20, 2013 đang mở

Được trao cho:

TechniVN

Hi sir, I have years of experience in Android development. I can do your project

$299 USD trong 14 ngày
(27 Đánh Giá)
5.9

9 freelancer chào giá trung bình$549 cho công việc này

hyperlinkinfo

We can do this work for sure 100%

$1546 USD trong 10 ngày
(11 Nhận xét)
4.2
chandannsharma

I don't think videoview can be extended...I would suggest instead of extending...why not draw the required feature on top of video class

$722 USD trong 30 ngày
(0 Nhận xét)
3.8
kpaliwal

Hello , I can complete this work withing 2 weeks . Thanks Krishnendra

$227 USD trong 3 ngày
(0 Nhận xét)
0.0
aticul

Thanks for your project. I am ready to start. I will make you 100% satisfy.

$200 USD trong 3 ngày
(0 Nhận xét)
0.0
besterMe

It's so easy with me, let's start!

$450 USD trong 12 ngày
(0 Nhận xét)
0.0