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

create_script_tag() is malfunctioning #3

Open
phillijw opened this issue Sep 6, 2023 · 0 comments
Open

create_script_tag() is malfunctioning #3

phillijw opened this issue Sep 6, 2023 · 0 comments

Comments

@phillijw
Copy link

phillijw commented Sep 6, 2023

I'm running into an issue with the following code. You can see that it's inserting an 0x02 and 0x08 where it shouldn't (see the right side of the diff). The left side is the correct output.

custom_payload = FLVObject()
custom_payload["audioBandwidth"] = struct.pack(">d", 64000.0)
custom_payload["audioChannels"] = struct.pack(">d", 1.0)
custom_payload["audioFrequency"] = struct.pack(">d", 48000.0)
custom_payload["channelId"] = struct.pack(">d", 0.0)
payload = create_script_tag('onMetaData', custom_payload, 0)

image

I think this is the code inserting it:

# Here there's always a byte with the value of 0x02,

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

1 participant