Dash-Industry-Forum / dash.js

A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.
http://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html
Other
5.15k stars 1.68k forks source link

Example about videojs and dashjs integration #495

Closed hientm1 closed 8 years ago

hientm1 commented 9 years ago

I downloaded all the file in the master branch, i also found out about the integration of both videojs and dashjs that i have been looking, but when i use the "example.html" in the "contr/videojs" foler it appear a player but with the (x) in the middle and the line said "The video could not be loaded, either because the server or network failed or because the format is not supported". problem

Can somebody help me? I have not changed anything yet in the file or folder.

Thanks for your help,

Best regards.

heff commented 9 years ago

I grabbed the example.html and put it in a jsbin, replacing the project file references with RawGit urls. http://jsbin.com/xocebi/1/edit?html,output

The example video doesn't play for me, but it does get passed the "X", and I see the "<video> play " console output from dash.js, so at least we're getting that far. Can anyone else tell why the example video here might not be playing? It is at an IP address, so maybe something changed. http://54.201.151.65/livesim/tfdt_32/testpic_2s/Manifest.mpd

@hientm1 do you see any errors in the javascript console that might help us understand what's happening?

wilaw commented 9 years ago

@Steve - replace http://54.201.151.65/livesim/tfdt_32/testpic_2s/Manifest.mpdhttps://urldefense.proofpoint.com/v2/url?u=http-3A__54.201.151.65_livesim_tfdt-5F32_testpic-5F2s_Manifest.mpd&d=AwMCaQ&c=96ZbZZcaMF4w0F4jpN6LZg&r=KkevKJerDHRF9WRs8nW8Ew&m=DNqG3bCgGrOfSHnUOhrsjY1RNENBNeMCB9tLEhuLnx0&s=R5bMR3XDPCi5D7VeVFwhCnFccr8q5pK1368nKR58bGA&e= with http://vm2.dashif.org/livesim/testpic_2s/Manifest.mpd.

You can find a descriptive page telling you how to modify this live stream (it si quite configurable) here: http://vm2.dashif.org/index.html

Cheers

Will

heff commented 9 years ago

I updated the video and it still isn't playing, but I still see the <video> play output from dash.js. Did anything change about initializing dash.js recently where the video.js tech might need to be updated?

dsparacio commented 9 years ago

@heff Not that I know of I am using the same tech with 1.4 branch as it is is today no issues. Let me try the stream and get back to you.

dsparacio commented 9 years ago

@heff Plays fine for me with video.js dash tech from contrib folder , dahs.js 1.4 dev branch using MPD: http://vm2.dashif.org/livesim/testpic_2s/Manifest.mpd

hientm1 commented 9 years ago

@heff @AkamaiDASH thank for helping out but i still have trouble in playing the vdieo, sometime it gives me the "X" sometime it keep me waiting like this:

troule

the console is this situation is like this:

ing complete: ( xml2json: 4ms, objectiron: 1ms, total: 0.005s) dash.all.js:8 Manifest has loaded. dash.all.js:8 Manifest has been refreshed. dash.all.js:8

i tried to replace the mpd file from many sources but it still doesn't work!

Thanks for your help

hientm1 commented 9 years ago

@heff @AkamaiDASH : i think the problem is when i run with browser it appear the error ERR_FILE_NOT_FOUND, which is file://www.google-analytics.com/utm.gif?utmwv=5.4.2&utmac=UA-16505296-2&utmn=1&utmhn=&utmsr=1280x984&utmul=en-us&utmr=file%3A%2F%2F%2FC%3A%2FUsers%2FHienTM1%2FDesktop%2Fdash_videojs%2Fdemo2.html&utmp=%2FC%3A%2FUsers%2FHienTM1%2FDesktop%2Fdash_videojs%2Fdemo2.html&utmcc=utma%3D1.7990729440.1.1.1.1%3B&utme=8(vjsv)9(v4.6.4), it tried to find some file in my computer i supposed?

And i find the code which is probably the same is : !function (t, a, e, n, m) { m = a.location, t.src = "//www.google-analytics.com/utm.gif?utmwv=5.4.2&utmac=UA-16505296-2&utmn=1&utmhn=" + n(m.hostname) + "&utmsr=" + a.screen.availWidth + "x" + a.screen.availHeight + "&utmul=" + (e.language || e.userLanguage || "").toLowerCase() + "&utmr=" + n(m.href) + "&utmp=" + n(m.hostname + m.pathname) + "&utmcc=utma%3D1." + Math.floor(1e10 * Math.random()) + ".1.1.1.1%3B" + "&utme=8(vjsv)9(v4.6.4)" }(new Image, window, navigator, encodeURIComponent);

which is located in the last lines of "video.js"

Can you help me with this please?

Thankx

heff commented 9 years ago

@hientm1 it appears you're loading a local file in the browser (file:///). The player really shouldn't error on that, but it also won't work in a lot of cases when loading a local file. You might try running a local server for your test file.