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

Feature/mp4 muxing example #4

Merged
merged 12 commits into from
Nov 22, 2016
Merged

Feature/mp4 muxing example #4

merged 12 commits into from
Nov 22, 2016

Conversation

SInCE
Copy link
Contributor

@SInCE SInCE commented Nov 22, 2016

No description provided.

private static function createFMP4Muxing(Encoding $encoding, Stream $stream, $output, $outputPath, ApiClient $apiClient)
{
$encodingOutput = null;
if ($output != null && $outputPath != null)
$encodingOutput = NULL;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it basically a constant, I tend to write null, true, false in uppercase. However, reverted it

@@ -129,28 +211,33 @@ public static function createMuxingForEncoding(JobContainer $jobContainer, Encod
{
$smoothStreamingOutputFormat = $format;
}
if ($format instanceof ProgressiveMp4OutputFormat)
{
$progressiveMp4OutputFormats[] = $format;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of introducing a new variable here, you could do this check in static::createMP4MuxingsForEncoding

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved all the related code into createMP4MuxingsForEncoding()

…sive muxing related into createMP4MuxingsForEncoding()
@SInCE SInCE changed the base branch from master to develop November 22, 2016 18:00
@SInCE SInCE merged commit 34bfd28 into develop Nov 22, 2016
@rkersche rkersche deleted the feature/mp4MuxingExample branch November 29, 2016 06:10
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

Successfully merging this pull request may close these issues.

2 participants