Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion example/index.js → devtools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ function App() {
<div>
<select value={src} onChange={onSelectSrc}>
{STREAMS.map(stream => (
<option value={stream.src}>{stream.name}</option>
<option key={stream.src} value={stream.src}>
{stream.name}
</option>
))}
</select>
</div>
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions examples/next.js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.next
17 changes: 17 additions & 0 deletions examples/next.js/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "shaka-player-react-next.js-sample",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "^9.2.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"shaka-player-react": "^1.0.1"
}
}
5 changes: 5 additions & 0 deletions examples/next.js/pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import './shaka-player-controls.css';

export default function App({ Component, pageProps }) {
return <Component {...pageProps} />;
}
17 changes: 17 additions & 0 deletions examples/next.js/pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import dynamic from 'next/dynamic';

const ShakaPlayer = dynamic(() => import('shaka-player-react'), {
ssr: false,
});

export default function Index() {
return (
<div>
<ShakaPlayer
autoPlay
src="https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd"
/>
</div>
);
}
17 changes: 17 additions & 0 deletions examples/next.js/pages/shaka-player-controls.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading