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

[ASK] loadPlaylist method not working as expected #115

Open
normtronics opened this issue Jan 16, 2025 · 0 comments
Open

[ASK] loadPlaylist method not working as expected #115

normtronics opened this issue Jan 16, 2025 · 0 comments
Labels
needs-grooming Has not been reviewed by codeowners for scope/validation

Comments

@normtronics
Copy link

normtronics commented Jan 16, 2025

What isn't clear?
I have been trying to use the loadPlaylist function because I want to dynamically change the playlist. When I call the function and pass it my playlist I end up getting an error on the native side:

Argument 1 ((
        {
        "ads_enabled" = true;
        adschedule =         (
                        {
                offset = pre;
                tag = "";
            }
        );
        categories = "movies,tmz-tv-clips";
        "channel_slug" = movies;
        description = "Will Smith really knows how to clear an area ... with his rear end!";
        duration = 70;
        "has_music" = 0;
        id = "6d0b3688-59a4-486e-8d81-04dc5cff8642";
        image = "https://cdn.jwplayer.com/v2/media/ztc3XrRa/poster.jpg?width=720";
        images =         (
                        {
                src = "https://cdn.jwplayer.com/v2/media/ztc3XrRa/poster.jpg?width=320";
                type = "image/jpeg";
                width = 320;
            },
                        {
                src = "https://cdn.jwplayer.com/v2/media/ztc3XrRa/poster.jpg?width=480";
                type = "image/jpeg";
                width = 480;
            },
                        {
                src = "https://cdn.jwplayer.com/v2/media/ztc3XrRa/poster.jpg?width=640";
                type = "image/jpeg";
                width = 640;
            },
                        {
                src = "https://cdn.jwplayer.com/v2/media/ztc3XrRa/poster.jpg?width=720";
                type = "image/jpeg";
                width = 720;
            },
                        {
                src = "https://cdn.jwplayer.com/v2/media/ztc3XrRa/poster.jpg?width=1280";
                type = "image/jpeg";
                width = 1280;
            },
                        {
                src = "https://cdn.jwplayer.com/v2/media/ztc3XrRa/poster.jpg?width=1920";
                type = "image/jpeg";
                width = 1920;
            }
        );
        "is_full_episode" = false;
        "is_live" = false;
        "is_promo" = false;
        "is_unlisted" = false;
        jwpseg =         (
            16000001,
            16010001,
            13011001
        );
        link = "";
        mediaid = ztc3XrRa;
        people = "will-smith";
        pubdate = 1727993552;
        "sharing_enabled" = true;
        show = "tmz-on-tv";
        sources =         (
                        {
                file = "";
                type = "application/vnd.apple.mpegurl";
            }
        );
        status = published;
        tags = "status:published,is_unlisted:false,hashtag:tmzontv,show:tmz-on-tv,category:tmz-tv-clips,person:will-smith,category:movies,id:6d0b3688-59a4-486e-8d81-04dc5cff8642";
        title = "Will Smith's Fart Caused 'Men In Black' Set to Halt, Director Reveals | TMZ TV";
        tracks =         (
                        {
                file = "https://cdn.jwplayer.com/tracks/KC029fL7.vtt";
                kind = captions;
                label = English;
                language = en;
            }
        );
        variations =         {
        };
    }
)) of RNJWPlayerViewManager.loadPlaylist could not be processed. Aborting method call.

I can pass the playlist fine via the config, but the loadPlaylist doesn't work as expected.

@normtronics normtronics added the needs-grooming Has not been reviewed by codeowners for scope/validation label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-grooming Has not been reviewed by codeowners for scope/validation
Projects
None yet
Development

No branches or pull requests

1 participant