Merge pull request #10 from seniorflexdeveloper/master
Repo Updates towards Beta
Showing
3 changed files
with
22 additions
and
8 deletions
... | @@ -33,7 +33,7 @@ module.exports = function(grunt) { | ... | @@ -33,7 +33,7 @@ module.exports = function(grunt) { |
33 | 'src/m3u8/m3u8-parser.js' | 33 | 'src/m3u8/m3u8-parser.js' |
34 | ], | 34 | ], |
35 | dest: 'dist/videojs.hls.js' | 35 | dest: 'dist/videojs.hls.js' |
36 | }, | 36 | } |
37 | }, | 37 | }, |
38 | uglify: { | 38 | uglify: { |
39 | options: { | 39 | options: { |
... | @@ -42,7 +42,7 @@ module.exports = function(grunt) { | ... | @@ -42,7 +42,7 @@ module.exports = function(grunt) { |
42 | dist: { | 42 | dist: { |
43 | src: '<%= concat.dist.dest %>', | 43 | src: '<%= concat.dist.dest %>', |
44 | dest: 'dist/videojs.hls.min.js' | 44 | dest: 'dist/videojs.hls.min.js' |
45 | }, | 45 | } |
46 | }, | 46 | }, |
47 | qunit: { | 47 | qunit: { |
48 | files: ['test/**/*.html', '!test/perf.html'] | 48 | files: ['test/**/*.html', '!test/perf.html'] |
... | @@ -68,7 +68,13 @@ module.exports = function(grunt) { | ... | @@ -68,7 +68,13 @@ module.exports = function(grunt) { |
68 | '!test/tsSegment.js', | 68 | '!test/tsSegment.js', |
69 | '!test/fixtures/*.js', | 69 | '!test/fixtures/*.js', |
70 | '!test/manifest/**'] | 70 | '!test/manifest/**'] |
71 | }, | 71 | } |
72 | }, | ||
73 | connect: { | ||
74 | dev: { | ||
75 | port: 8000, | ||
76 | base: '.' | ||
77 | } | ||
72 | }, | 78 | }, |
73 | watch: { | 79 | watch: { |
74 | gruntfile: { | 80 | gruntfile: { |
... | @@ -82,8 +88,8 @@ module.exports = function(grunt) { | ... | @@ -82,8 +88,8 @@ module.exports = function(grunt) { |
82 | test: { | 88 | test: { |
83 | files: '<%= jshint.test.src %>', | 89 | files: '<%= jshint.test.src %>', |
84 | tasks: ['jshint:test', 'qunit'] | 90 | tasks: ['jshint:test', 'qunit'] |
85 | }, | 91 | } |
86 | }, | 92 | } |
87 | }); | 93 | }); |
88 | 94 | ||
89 | // These plugins provide necessary tasks. | 95 | // These plugins provide necessary tasks. |
... | @@ -93,6 +99,7 @@ module.exports = function(grunt) { | ... | @@ -93,6 +99,7 @@ module.exports = function(grunt) { |
93 | grunt.loadNpmTasks('grunt-contrib-qunit'); | 99 | grunt.loadNpmTasks('grunt-contrib-qunit'); |
94 | grunt.loadNpmTasks('grunt-contrib-jshint'); | 100 | grunt.loadNpmTasks('grunt-contrib-jshint'); |
95 | grunt.loadNpmTasks('grunt-contrib-watch'); | 101 | grunt.loadNpmTasks('grunt-contrib-watch'); |
102 | grunt.loadNpmTasks('grunt-contrib-connect'); | ||
96 | 103 | ||
97 | grunt.registerTask('manifests-to-js', 'Wrap the test fixtures and output' + | 104 | grunt.registerTask('manifests-to-js', 'Wrap the test fixtures and output' + |
98 | ' so they can be loaded in a browser', | 105 | ' so they can be loaded in a browser', | ... | ... |
... | @@ -45,7 +45,7 @@ | ... | @@ -45,7 +45,7 @@ |
45 | type="application/x-mpegURL"> | 45 | type="application/x-mpegURL"> |
46 | </video> | 46 | </video> |
47 | <script> | 47 | <script> |
48 | videojs.options.flash.swf = 'node_modules/video.js/dist/video-js/video-js.swf'; | 48 | videojs.options.flash.swf = 'node_modules/videojs-swf/dist/video-js.swf'; |
49 | // initialize the player | 49 | // initialize the player |
50 | var player = videojs('video'); | 50 | var player = videojs('video'); |
51 | 51 | ... | ... |
... | @@ -4,9 +4,14 @@ | ... | @@ -4,9 +4,14 @@ |
4 | "engines": { | 4 | "engines": { |
5 | "node": ">= 0.8.0" | 5 | "node": ">= 0.8.0" |
6 | }, | 6 | }, |
7 | "repository": { | ||
8 | "type": "git", | ||
9 | "url": "git@github.com:videojs/videojs-contrib-hls.git" | ||
10 | }, | ||
7 | "license": "Apache 2", | 11 | "license": "Apache 2", |
8 | "scripts": { | 12 | "scripts": { |
9 | "test": "grunt" | 13 | "test": "grunt", |
14 | "postinstall": "echo 'fire post install' && cd node_modules/video.js/ && npm install && grunt" | ||
10 | }, | 15 | }, |
11 | "devDependencies": { | 16 | "devDependencies": { |
12 | "grunt-contrib-jshint": "~0.6.0", | 17 | "grunt-contrib-jshint": "~0.6.0", |
... | @@ -15,10 +20,12 @@ | ... | @@ -15,10 +20,12 @@ |
15 | "grunt-contrib-uglify": "~0.2.0", | 20 | "grunt-contrib-uglify": "~0.2.0", |
16 | "grunt-contrib-watch": "~0.4.0", | 21 | "grunt-contrib-watch": "~0.4.0", |
17 | "grunt-contrib-clean": "~0.4.0", | 22 | "grunt-contrib-clean": "~0.4.0", |
23 | "grunt-contrib-connect": "~0.6.0", | ||
18 | "grunt": "~0.4.1" | 24 | "grunt": "~0.4.1" |
19 | }, | 25 | }, |
20 | "dependencies": { | 26 | "dependencies": { |
21 | "video.js": "git+https://github.com/dmlap/video-js.git#v4.3.0-10", | 27 | "video.js": "git+https://github.com/videojs/video.js.git", |
28 | "videojs-swf": "git+https://github.com/seniorflexdeveloper/video-js-swf.git", | ||
22 | "videojs-contrib-media-sources": "git+https://github.com/dmlap/videojs-contrib-media-sources.git#hotfix/misc-fixes" | 29 | "videojs-contrib-media-sources": "git+https://github.com/dmlap/videojs-contrib-media-sources.git#hotfix/misc-fixes" |
23 | } | 30 | } |
24 | } | 31 | } | ... | ... |
-
Please register or sign in to post a comment