From b05964f2765e4b0c8d7c8f5fa14e97d8444ab9cd Mon Sep 17 00:00:00 2001 From: bipoza Date: Sat, 10 Dec 2022 13:31:39 +0100 Subject: [PATCH] m3u8 file example --- README.MD | 5 ++++ docs/index.html | 55 +++++++++++++++++++++++++++++++++----- docs/video-js-example.html | 30 +++++++++++++++++++++ 3 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 docs/video-js-example.html diff --git a/README.MD b/README.MD index 57da93a..3d88fef 100644 --- a/README.MD +++ b/README.MD @@ -48,6 +48,11 @@ getTVCategory(category_slug).then(res => { }); ```` +## Nola erreproduzitu ditzakegu m3u8 fitxategiak? +Video.js liburutegia erabili dezakegu streaming fitxategia irakurri ahal izateko. + +Hemen adibidea: https://bipoza.github.io/nahieran-js/docs/video-js-example.html + ## Garapen ingurunea martxan jartzeko JS funtzioak testeatzeko docs karpetan HTML sinple bat dago. diff --git a/docs/index.html b/docs/index.html index b5f5b6b..1c4194f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -23,7 +23,7 @@
-

Get Programs

+

Get program list

import { getTVPrograms } from "nahieran-js"; getTVPrograms().then(res => { @@ -39,7 +39,7 @@

Get Programs

-

Get TV Categories

+

Get tv categories

import { getTVCategories } from "nahieran-js"; getTVCategories().then(res => { @@ -50,7 +50,7 @@

Get TV Categories


DEMO: + onclick="getDocTVCategories()">getTVCategories()
@@ -58,7 +58,7 @@

Get TV Categories

-

Get TV Category

+

Get tv category

import { getTVCategory } from "nahieran-js"; getTVCategory(category_slug).then(res => { @@ -68,7 +68,7 @@

Get TV Category

});

DEMO: + onclick="getDocTVCategory()">getTVCategory('PELICULAS')
@@ -78,7 +78,7 @@

Get TV Category

-

get TV Category Programs

+

Get tv category programs

import { getTVCategoryPrograms } from "nahieran-js"; getTVCategoryPrograms(category_id).then(res => { @@ -93,7 +93,27 @@

get TV Category Programs

+
+
+

Get tv category program playlist

+ import { getTVCategoryProgramPlaylist } from "nahieran-js"; + +getTVCategoryProgramPlaylist(playlist_id).then(res => { + console.log("Response: ", res); +}, err => { + console.error("Response error: ", err); +}); +
+ DEMO: +
+
+ + +
@@ -117,7 +137,14 @@ diff --git a/docs/video-js-example.html b/docs/video-js-example.html new file mode 100644 index 0000000..cc06312 --- /dev/null +++ b/docs/video-js-example.html @@ -0,0 +1,30 @@ + + + + + + + + + + + + \ No newline at end of file