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

wasm_player_sample : Example of using an external source (URL) #4

Open
ELOUFIR opened this issue May 5, 2022 · 1 comment
Open

Comments

@ELOUFIR
Copy link

ELOUFIR commented May 5, 2022

Hi
I'm new to Webassembly and C++ and want to try playing an external video using a URL:
https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_30MB.mp4
The example uses hardcoded data.
Could you please help me to change it in order to load the data from the URL?
Thanks

@ELOUFIR ELOUFIR changed the title wasm_player_sample : Example of using external source. wasm_player_sample : Example of using an external source (URL) May 5, 2022
@abujalski
Copy link
Collaborator

Hi,
It is not simple to change it this way.

In order to do so you need to:

  1. Add library responsible for downloading data using HTTP protocol (cURL is one of such libraries) and implement download logic using that library
  2. Add library responsible for demuxing downloaded content, so it will be possible to feed it EMSS (FFmpeg is such library).

We haven't include such logic in our example because this logic is application specific and will complicate demo in such way that it will be hard to see how to use EMSS API.

You can find more information regarding EMSS here: https://developer.samsung.com/smarttv/develop/extension-libraries/webassembly/tizen-wasm-player/overview.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants