Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preload is not a function #6077

Closed
shigristudy opened this issue Jan 10, 2024 · 3 comments
Closed

preload is not a function #6077

shigristudy opened this issue Jan 10, 2024 · 3 comments
Labels
status: archived Archived and locked; will not be updated status: working as intended The behavior is intended; this is not a bug

Comments

@shigristudy
Copy link

Have you read the FAQ and checked for duplicate open issues?
Yes

If the problem is related to FairPlay, have you read the tutorial?
Not Related to fairplay

What version of Shaka Player are you using?
v4.7 (latest)

Can you reproduce the issue with our latest release version?
Yes

Can you reproduce the issue with the latest code from main?
Yes

Are you using the demo app or your own custom app?
No

If custom app, can you reproduce the issue using our demo app?
Yes

What browser and OS are you using?
Chrome Linux

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

What are the manifest and license server URIs?

What configuration are you using? What is the output of player.getConfiguration()?

What did you do?

What did you expect to happen?

What actually happened?

I'm using shaka player to create a website like tiktok.

so far everything is good.
I want to preload next video but from shaka player documentation is see preload function in new API.

but when i try to load next video source with preload function i get

Video.vue:113 Uncaught (in promise) TypeError: player.value.preload is not a function at shakaPlayerInit (Video.vue:113:16)

`const shakaPlayerInit = async () => {
player.value = new shaka.Player();
player.value.attach(video.value)

player.value.preload(nextFeed.value.src_m3u8)

player.value.configure({
streaming: {
segmentPrefetchLimit: 5,
},
abr: {
restrictions: {
minWidth: 481
},
defaultBandwidthEstimate: 4000000
}
});

console.log(player.value.getConfiguration())
player.value
.load(post.value.src_m3u8)
.then(() => {})
.catch(onError);
}`

@shigristudy shigristudy added the type: bug Something isn't working correctly label Jan 10, 2024
@avelad avelad added status: working as intended The behavior is intended; this is not a bug and removed type: bug Something isn't working correctly labels Jan 10, 2024
@avelad
Copy link
Member

avelad commented Jan 10, 2024

It's not implemented yet: #5897

@avelad avelad closed this as completed Jan 10, 2024
@shigristudy
Copy link
Author

when this feature will be available?

@avelad
Copy link
Member

avelad commented Jan 10, 2024

You can track the issue at #880

@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Mar 10, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Mar 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated status: working as intended The behavior is intended; this is not a bug
Projects
None yet
Development

No branches or pull requests

3 participants