tomohiro-yamashita / videotimelineview Goto Github PK
View Code? Open in Web Editor NEWVideo timeline UI for iOS Apps
Home Page: https://twitter.com/DevYamashita
Video timeline UI for iOS Apps
Home Page: https://twitter.com/DevYamashita
Hello, do you have plan to provide android version for VideoTimelineView in future?
add multiple video in one VideoTimelineView?
let frame = CGRect(x: 0, y: 0, width: timelineView.frame.width, height: 200)
videoTimelineView.frame = frame
videoTimelineView.new(asset: item)
videoTimelineView.repeatOn = false
videoTimelineView.setTrimIsEnabled(false)
videoTimelineView.setTrimmerIsHidden(true)
timelineView.addSubview(videoTimelineView)
but I need to make it small it looks too big when the height get increase
Can't just make it small and not related to frame height,
is it possible to set default zoom value ?
Ui Breaking when replacing the video url
The number thumbnails image/frame of video is actually very low in this library. How to increase it?
in swift 4(or 5)
int(double) make runtime errors
I quick fixed below func to avoid runtime error
in TimelineView.swift
func snapWidth(_ width:CGFloat, max:CGFloat) -> CGFloat {
let n = log2((2 * max) / width)
var intN = trunc(n)
if n - intN >= 0.5 {
intN += 1
}
let result = (2 * max) / (pow(2,intN))
return result
}
in FrameImagesView.swift
func indexWithPosition(_ position:CGFloat) -> Int{
let index = position * CGFloat(thumbnailCountFloat()) / frame.size.width
let indexround = round(index)
let doubleToString = "(indexround)"
let indexInt = (doubleToString as NSString).integerValue
return indexInt
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.