Lee Whitaker
8da6ac576a
use npm version of media-sources
12 years ago
Lee Whitaker
7e347ede6a
Fixup .travis.yml file.
12 years ago
Lee Whitaker
858b3db834
Add travisci hook. Fix some jshint issues.
12 years ago
Lee Whitaker
81c90a70d8
Use handelbars to make templates for the manifest files. Add tests for media_sequence, playlist_type, and target_duration.
12 years ago
Lee Whitaker
975a1b5ead
Move manifest parsing tests into their own test file.
12 years ago
David LaPalomento
7c5d2ac469
Get rid of unused example HTML page
Not sure how this got in here but it doesn't belong.
12 years ago
David LaPalomento
1e7cdb7f81
Update name
Joining videojs-contrib so change the name to reflect that.
12 years ago
David LaPalomento
bcf7700a5d
Update dependency name
vjs-media-sources is now a "contrib" project, so make sure the dependency name reflects that.
12 years ago
David LaPalomento
c1a0df0af7
Merge pull request #11 from sheffernan/patch-1
Update videojs-media-source to videojs org repo version
12 years ago
sheffernan
0422f584ac
Update to videojs org repo
12 years ago
David LaPalomento
fa5d66de91
Merge pull request #10 from dlapalomento/hotfix/manifest-test
Fix the tests. Only manifests with the X-STREAM_INF tag should be consid...
12 years ago
Lee Whitaker
021f4911d4
Fix the tests. Only manifests with the X-STREAM_INF tag should be considered a playlist file.
12 years ago
David LaPalomento
4b96b9ca18
Merge pull request #8 from dlapalomento/feature/perf-fixes
Grow FLV tags as necessary and make some performance tweaks
12 years ago
David LaPalomento
961e0073f4
Use the local bip-bop file in the example page
The example page should always work without additional services running. Use a checked-in HLS stream to guarantee this.
12 years ago
David LaPalomento
daa419b4a2
Tweak the segment parser to avoid shifts
The difference isn't particularly significant but we can get away with a couple fewer shifts when parsing TS packets. Also, avoid an additional branch by default the dts value to the calculated pts.
12 years ago
David LaPalomento
cfb6c4198f
Use 3-byte end object tag
Drop the extra null byte when closing an "ecmascript array" in the metadata tag. The spec specifies a 3 byte tag and I'm not sure how the 4-byte version managed to work in practice. This makes the output differ significantly from the original actionscript version of the code but the converted video still plays back without any issues.
12 years ago
David LaPalomento
e8e9240965
Fix throughput calc and units
Forgot that time was being measured in ms so the throughput values were off by 1000. Changed reporting unit to MB/s and fixed the precision to 3 digits so it's not overwhelming.
12 years ago
David LaPalomento
45cb15c6cb
Use more descriptive variables
Replace more one-letter variables with more descriptive names.
12 years ago
David LaPalomento
31680bd474
Don't try to run perf.html as a qunit test
Exclude the performance page from the qunit grunt task.
12 years ago
David LaPalomento
54069f40eb
Add throughput column
Calculate parser throughput and add a column to the result table to show it for each run.
12 years ago
David LaPalomento
0eec9a259b
Grow flv-tag buffer when needed. Optimize double metadata tags
Check whether the byte buffer is large enough before performing a write and allocate a larger buffer if necessary. Do less byte-by-byte ops when writing metadata double tags since they were a significant portion of parse computation when testing on my laptop.
12 years ago
David LaPalomento
0acf0d034a
Add performance test page
Created a page that runs the segment parser repeatedly on the bunnies test segment. Initial testing indicates garbage parseTSPacket and garbage collection take up about a quarter of the parse run.
12 years ago
David LaPalomento
89d286d18b
Grow the internal array if an FLV tag needs more than 16k
Before each write, check that the FLV tag's buffer has enough capacity and grow it if necessary.
12 years ago
David LaPalomento
64f30e95a4
Merge pull request #7 from tojohnson/hotfixes
changed url and added fixes to manifest parseing
12 years ago
Tom Johnson
a2b2cd6394
changed url and added fixes to manifest parseing
12 years ago
David LaPalomento
a810eb633d
Merge pull request #4 from dlapalomento/feature/m3u8s
HLS playback support cleanup
12 years ago
David LaPalomento
884e8d3ce1
Remove console.logs
Use videojs.log instead of console.log but in general prefer quieter operation.
12 years ago
David LaPalomento
a02c09db4a
Fix up dist production in Gruntfile and cleanup jshint in test cases
Explicitly list out source files so they are concatenated in the correct order in the final build.
12 years ago
Tom Johnson
dd4862c9ea
toms intro to jshint
12 years ago
David LaPalomento
0b06638fd1
Tighten up jshint
Enforce more formatting and style rules with jshint. Make the gruntile compliant.
12 years ago
David LaPalomento
31ad020cfa
Ignore IDE metadata
Make sure metadata isn't committed to the repo in the future.
12 years ago
David LaPalomento
0e1719e23f
Remove IDE metadata
Don't commit intelliJ metadata to the repo.
12 years ago
David LaPalomento
0d50a43cb5
Remove (hopefully) the last remaining tabs
Actually run `untabify` in emacs to get rid of tabs.
12 years ago
David LaPalomento
977e86ea94
Use bipbop in example.html
Switch the example to use the locally committed HLS fixture to avoid CORS issues when trying it out. It will still be necessary to load the example page through a web server, though.
12 years ago
David LaPalomento
df9faa3f04
Whitespace and formatting cleanup
Remove a remaining tabs. Standardize whitespace usage around declarations and keywords. Lift and unify `var` declarations.
12 years ago
David LaPalomento
e95cfe5ae9
Fix whitespace
All files should use 2-space indenting.
12 years ago
Tom Johnson
eda0866242
toms working example base
12 years ago
David LaPalomento
3b271282f3
Merge pull request #2 from dlapalomento/hotfix/deps-cleanup
Use npm to manage dependencies
12 years ago
David LaPalomento
491a0983b8
Use npm deps in test case
Load video.js through node_modules instead of looking for it to be checked in to libs/
12 years ago
David LaPalomento
afa9bcd290
Rename artifacts
Use 'videojs-hls' instead of 'video-js-hls'.
12 years ago
David LaPalomento
204be1ba0d
Use npm for dependencies
Pull in vjs-media-sources and vjs itself with npm. Add the apache 2 license.
12 years ago
David LaPalomento
0b45400e36
Fix jshint
Split boolean expressions after the operator and don't create functions inside of loops.
12 years ago
David LaPalomento
f8abd1d7bf
Pull in the manifest and segment parsing to the example page
The example page is very ugly but attempts to play two segments of bip-bop. The first segment plays fine but the player seems to jump to the end of the second segment after the first one finishes. Add bip bop test fixtures.
12 years ago
David LaPalomento
e03bfc266a
Fix writeShort
Swap the order of arguments when writing a short to an FLV tag so the correct value is actually written.
12 years ago
David LaPalomento
8478511a62
Clean up example
Get rid of a whole bunch of intermediate copies when shuffling flv tags into the netstream.
12 years ago
David LaPalomento
a179965012
Merge pull request #1 from tojohnson/master
Tom's Hack week progress
12 years ago
Tom Johnson
866d581d20
merge commit
12 years ago
David LaPalomento
1541a1dcdb
Working example!
The single-segment example works.
12 years ago
Tom Johnson
17ec407882
progress update
12 years ago
David LaPalomento
fbb6a66365
Use 4-byte ecmascriptarray terminator to match acstionscript. Fix writeBytes.
The actionscript segment parser uses a 4-byte terminator for "ecmascriptarray" objects in script tags. This doesn't match my reading of the spec but we'll go with it for now to get these things binary-compatible. The writeBytes method on FlvTag defaults the length argument to zero but in that case, the entire bytes argument should be written out instead of nothing.
12 years ago