hugomods / video-js

Hugo Video.js Module
https://hugomods.com/en/docs/media/video-js/
MIT License
2 stars 0 forks source link

VideoJS Element is not loading the example streams #31

Closed cbellosoto closed 7 months ago

cbellosoto commented 8 months ago

When attempting to run the exampels in the Hugo VideoJS site it is not working with the examples provided. https://hugomods.com/docs/media/video-js/#videojs-hls-example https://hugomods.com/docs/media/video-js/#videojs-mpeg-dash-example

In my .md the regular video is loading fine but no the stream.

//working fine {{< video-js "https://heishenhua.com/video/preview/video_PV03_Music.mp4" >}}

//not working {{< video-js src="https://devstreaming-cdn.apple.com/videos/streaming/examples/adv_dv_atmos/main.m3u8" type="application/x-mpegURL"

}}

image

Let me know if more information is needed or if the issue is just me.

razonyang commented 8 months ago

Does it work on the docs site? Is there any error on Chrome Console tab?

razonyang commented 8 months ago

It would be better if you can provide a public repo for reproducing this issue.

cbellosoto commented 8 months ago

Yes it is working in the Doc Site. https://hugomods.com/docs/media/video-js/

No errors in the DevConsole

And here is my repo https://github.com/cbellosoto/TestSite/blob/main/content/index.md

Let me know if you have any questions.

razonyang commented 8 months ago

There are several issues:

  1. Your theme doesn't implement the HugoPress, you've to include the CSS and JavaScript on your templates, tweak your template and check the page's source code. image
  2. You're copying the source code to your own project, please keep in mind that you're maintaining the code yourself, you won't got updated if there is bugfix on this repo.
  3. Please append -D flag on hugo server to build draft content.

image

razonyang commented 7 months ago

Closed per above comment.